Changeset 4870
- Timestamp:
- 06/30/09 15:27:38 (5 months ago)
- Location:
- mpich2/branches/dev/kumudb
- Files:
-
- 35 removed
- 175 modified
- 41 copied
-
CHANGES (modified) (1 diff)
-
README.vin (modified) (2 diffs)
-
RELEASE_NOTES (modified) (1 diff)
-
confdb/aclangf90.m4 (modified) (3 diffs)
-
confdb/aclocal.m4 (modified) (3 diffs)
-
confdb/aclocal_bugfix.m4 (modified) (2 diffs)
-
confdb/aclocal_cache.m4 (modified) (3 diffs)
-
confdb/aclocal_cc.m4 (modified) (34 diffs)
-
confdb/aclocal_cross.m4 (modified) (3 diffs)
-
confdb/aclocal_csharp.m4 (modified) (2 diffs)
-
confdb/aclocal_cxx.m4 (modified) (3 diffs)
-
confdb/aclocal_enable.m4 (modified) (1 diff)
-
confdb/aclocal_f77.m4 (modified) (15 diffs)
-
confdb/aclocal_f90.m4 (modified) (11 diffs)
-
confdb/aclocal_make.m4 (modified) (14 diffs)
-
confdb/aclocal_mpi.m4 (modified) (5 diffs)
-
confdb/aclocal_perl.m4 (modified) (1 diff)
-
confdb/aclocal_shl.m4 (modified) (3 diffs)
-
confdb/aclocal_subcfg.m4 (modified) (2 diffs)
-
confdb/aclocal_util.m4 (modified) (2 diffs)
-
confdb/aclocal_web.m4 (modified) (1 diff)
-
confdb/install-sh (copied) (copied from mpich2/trunk/confdb/install-sh)
-
configure.in (modified) (15 diffs)
-
doc/logging/logging.tex (modified) (2 diffs)
-
doc/windev/windev.tex.vin (modified) (1 diff)
-
maint/Version (modified) (1 diff)
-
maint/clmake.in (modified) (2 diffs)
-
maint/gccimpgen.c (deleted)
-
maint/gccimpgen.cpp (copied) (copied from mpich2/trunk/maint/gccimpgen.cpp)
-
maint/impgen.vcproj (modified) (1 diff)
-
maint/release.pl (modified) (6 diffs)
-
maint/simplemake.in (modified) (7 diffs)
-
maint/updatefiles (modified) (4 diffs)
-
src/binding/cxx/buildiface (modified) (7 diffs)
-
src/binding/f77/buildiface (modified) (1 diff)
-
src/binding/f90/configure.in (modified) (1 diff)
-
src/env/Makefile.sm (modified) (1 diff)
-
src/env/mpicc.bash.in (modified) (1 diff)
-
src/env/mpicc.in (modified) (1 diff)
-
src/env/mpicxx.bash.in (modified) (1 diff)
-
src/env/mpicxx.in (modified) (1 diff)
-
src/env/mpif77.bash.in (modified) (1 diff)
-
src/env/mpif77.in (modified) (1 diff)
-
src/env/mpif90.bash.in (modified) (1 diff)
-
src/env/mpif90.in (modified) (1 diff)
-
src/include/mpiimpl.h (modified) (1 diff)
-
src/mpe2/README (modified) (1 diff)
-
src/mpe2/mpewrap.vcproj (modified) (1 diff)
-
src/mpe2/sbin/mpeinstall.in (modified) (2 diffs)
-
src/mpe2/src/logging/configure.in (modified) (1 diff)
-
src/mpe2/src/slog2sdk/sbin/install-package.in (modified) (2 diffs)
-
src/mpe2/src/wrappers/src/Makefile.in (modified) (3 diffs)
-
src/mpe2/src/wrappers/src/log_mpi_core.c (modified) (1 diff)
-
src/mpe2/src/wrappers/src/log_mpi_util.c (copied) (copied from mpich2/trunk/src/mpe2/src/wrappers/src/log_mpi_util.c)
-
src/mpe2/src/wrappers/src/mpe_proff.c (modified) (1 diff)
-
src/mpe2/src/wrappers/src/mpi_f2c_consts.f (modified) (1 diff)
-
src/mpi/datatype/get_elements.c (modified) (1 diff)
-
src/mpi/datatype/pack.c (modified) (2 diffs)
-
src/mpi/datatype/unpack.c (modified) (2 diffs)
-
src/mpi/init/finalize.c (modified) (3 diffs)
-
src/mpi/init/initthread.c (modified) (2 diffs)
-
src/mpi/romio (modified) (1 prop)
-
src/mpi/romio/adio/ad_bgl/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/ad_bglockless/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/ad_gridftp/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/ad_hfs/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/ad_lustre/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/ad_nfs/Makefile.in (modified) (2 diffs)
-
src/mpi/romio/adio/ad_panfs/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/ad_pfs/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/ad_piofs/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/ad_pvfs/Makefile.in (modified) (2 diffs)
-
src/mpi/romio/adio/ad_pvfs2/Makefile.in (modified) (2 diffs)
-
src/mpi/romio/adio/ad_sfs/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/ad_testfs/Makefile.in (modified) (2 diffs)
-
src/mpi/romio/adio/ad_ufs/Makefile.in (modified) (2 diffs)
-
src/mpi/romio/adio/ad_xfs/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/ad_zoidfs/Makefile.in (modified) (1 diff)
-
src/mpi/romio/adio/common/Makefile.in (modified) (3 diffs)
-
src/mpi/romio/mpi-io/Makefile.in (modified) (4 diffs)
-
src/mpi/romio/mpi-io/fortran/Makefile.in (modified) (2 diffs)
-
src/mpi/romio/mpi-io/glue/mpich2/Makefile.in (modified) (2 diffs)
-
src/mpi/romio/mpi-io/mpioimpl.h (modified) (1 diff)
-
src/mpid/ch3/channels/nemesis/nemesis/include/mpid_nem_memdefs.h (modified) (1 diff)
-
src/mpid/ch3/channels/nemesis/nemesis/netmod/newmad/newmad_impl.h (modified) (1 diff)
-
src/mpid/ch3/channels/nemesis/nemesis/netmod/newmad/newmad_init.c (modified) (3 diffs)
-
src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp/socksm.c (modified) (2 diffs)
-
src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp/tcp_finalize.c (modified) (2 diffs)
-
src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp/tcp_impl.h (modified) (1 diff)
-
src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp/tcp_init.c (modified) (1 diff)
-
src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp/tcp_send.c (modified) (2 diffs)
-
src/mpid/ch3/channels/nemesis/nemesis/src/mpid_nem_alloc.c (modified) (1 diff)
-
src/mpid/ch3/channels/nemesis/nemesis/src/mpid_nem_finalize.c (modified) (2 diffs)
-
src/mpid/ch3/channels/nemesis/nemesis/src/mpid_nem_lmt_shm.c (modified) (1 diff)
-
src/mpid/ch3/channels/shm/configure.in (modified) (1 diff)
-
src/mpid/ch3/channels/ssm/configure.in (modified) (1 diff)
-
src/mpid/common/datatype/dataloop/dataloop_create_contig.c (modified) (1 diff)
-
src/mpid/common/datatype/dataloop/dataloop_create_struct.c (modified) (1 diff)
-
src/mpid/common/datatype/mpid_ext32_datatype.c (modified) (1 diff)
-
src/pm/Makefile.sm (modified) (2 diffs)
-
src/pm/gforker/configure.in (modified) (1 diff)
-
src/pm/hydra (modified) (2 props)
-
src/pm/hydra/Makefile.am (copied) (copied from mpich2/trunk/src/pm/hydra/Makefile.am)
-
src/pm/hydra/Makefile.sm (deleted)
-
src/pm/hydra/README (modified) (2 diffs)
-
src/pm/hydra/bootstrap/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/bootstrap/Makefile.mk)
-
src/pm/hydra/bootstrap/Makefile.sm (deleted)
-
src/pm/hydra/bootstrap/fork/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/bootstrap/fork/Makefile.mk)
-
src/pm/hydra/bootstrap/fork/Makefile.sm (deleted)
-
src/pm/hydra/bootstrap/rsh/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/bootstrap/rsh/Makefile.mk)
-
src/pm/hydra/bootstrap/rsh/Makefile.sm (deleted)
-
src/pm/hydra/bootstrap/slurm/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/bootstrap/slurm/Makefile.mk)
-
src/pm/hydra/bootstrap/slurm/Makefile.sm (deleted)
-
src/pm/hydra/bootstrap/src/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/bootstrap/src/Makefile.mk)
-
src/pm/hydra/bootstrap/src/Makefile.sm (deleted)
-
src/pm/hydra/bootstrap/ssh/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/bootstrap/ssh/Makefile.mk)
-
src/pm/hydra/bootstrap/ssh/Makefile.sm (deleted)
-
src/pm/hydra/bootstrap/utils/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/bootstrap/utils/Makefile.mk)
-
src/pm/hydra/bootstrap/utils/Makefile.sm (deleted)
-
src/pm/hydra/configure.in (modified) (15 diffs)
-
src/pm/hydra/css/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/css/Makefile.mk)
-
src/pm/hydra/css/Makefile.sm (deleted)
-
src/pm/hydra/css/none/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/css/none/Makefile.mk)
-
src/pm/hydra/css/none/Makefile.sm (deleted)
-
src/pm/hydra/css/src/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/css/src/Makefile.mk)
-
src/pm/hydra/css/src/Makefile.sm (deleted)
-
src/pm/hydra/css/utils/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/css/utils/Makefile.mk)
-
src/pm/hydra/css/utils/Makefile.sm (deleted)
-
src/pm/hydra/demux/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/demux/Makefile.mk)
-
src/pm/hydra/demux/Makefile.sm (deleted)
-
src/pm/hydra/examples (copied) (copied from mpich2/trunk/src/pm/hydra/examples)
-
src/pm/hydra/examples/binding.c (copied) (copied from mpich2/trunk/src/pm/hydra/examples/binding.c)
-
src/pm/hydra/include/hydra.h (modified) (1 diff)
-
src/pm/hydra/include/hydra_base.h (modified) (4 diffs)
-
src/pm/hydra/include/hydra_utils.h (modified) (6 diffs)
-
src/pm/hydra/pm/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/pm/Makefile.mk)
-
src/pm/hydra/pm/Makefile.sm (deleted)
-
src/pm/hydra/pm/pmiserv/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/pm/pmiserv/Makefile.mk)
-
src/pm/hydra/pm/pmiserv/Makefile.sm (deleted)
-
src/pm/hydra/pm/pmiserv/pmi_handle.c (modified) (2 diffs)
-
src/pm/hydra/pm/pmiserv/pmi_handle_common.c (modified) (2 diffs)
-
src/pm/hydra/pm/pmiserv/pmi_proxy.h (modified) (1 diff)
-
src/pm/hydra/pm/pmiserv/pmi_proxy_cb.c (modified) (1 diff)
-
src/pm/hydra/pm/pmiserv/pmi_proxy_utils.c (modified) (13 diffs)
-
src/pm/hydra/pm/pmiserv/pmi_serv_launch.c (modified) (8 diffs)
-
src/pm/hydra/pm/utils/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/pm/utils/Makefile.mk)
-
src/pm/hydra/pm/utils/Makefile.sm (deleted)
-
src/pm/hydra/rmk/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/rmk/Makefile.mk)
-
src/pm/hydra/rmk/Makefile.sm (deleted)
-
src/pm/hydra/rmk/dummy/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/rmk/dummy/Makefile.mk)
-
src/pm/hydra/rmk/dummy/Makefile.sm (deleted)
-
src/pm/hydra/rmk/src/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/rmk/src/Makefile.mk)
-
src/pm/hydra/rmk/src/Makefile.sm (deleted)
-
src/pm/hydra/rmk/utils/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/rmk/utils/Makefile.mk)
-
src/pm/hydra/rmk/utils/Makefile.sm (deleted)
-
src/pm/hydra/ui/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/ui/Makefile.mk)
-
src/pm/hydra/ui/Makefile.sm (deleted)
-
src/pm/hydra/ui/mpiexec/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/ui/mpiexec/Makefile.mk)
-
src/pm/hydra/ui/mpiexec/Makefile.sm (deleted)
-
src/pm/hydra/ui/mpiexec/utils.c (modified) (2 diffs)
-
src/pm/hydra/ui/utils/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/ui/utils/Makefile.mk)
-
src/pm/hydra/ui/utils/Makefile.sm (deleted)
-
src/pm/hydra/ui/utils/uiu.c (modified) (8 diffs)
-
src/pm/hydra/utils/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/Makefile.mk)
-
src/pm/hydra/utils/Makefile.sm (deleted)
-
src/pm/hydra/utils/args/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/args/Makefile.mk)
-
src/pm/hydra/utils/args/Makefile.sm (deleted)
-
src/pm/hydra/utils/bind/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/bind/Makefile.mk)
-
src/pm/hydra/utils/bind/Makefile.sm (deleted)
-
src/pm/hydra/utils/bind/bind.c (modified) (1 diff)
-
src/pm/hydra/utils/dbg/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/dbg/Makefile.mk)
-
src/pm/hydra/utils/dbg/Makefile.sm (deleted)
-
src/pm/hydra/utils/env/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/env/Makefile.mk)
-
src/pm/hydra/utils/env/Makefile.sm (deleted)
-
src/pm/hydra/utils/env/env.c (modified) (5 diffs)
-
src/pm/hydra/utils/launch/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/launch/Makefile.mk)
-
src/pm/hydra/utils/launch/Makefile.sm (deleted)
-
src/pm/hydra/utils/launch/allocate.c (modified) (6 diffs)
-
src/pm/hydra/utils/launch/launch.c (modified) (3 diffs)
-
src/pm/hydra/utils/plpa/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/plpa/Makefile.mk)
-
src/pm/hydra/utils/plpa/Makefile.sm (deleted)
-
src/pm/hydra/utils/signals/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/signals/Makefile.mk)
-
src/pm/hydra/utils/signals/Makefile.sm (deleted)
-
src/pm/hydra/utils/sock/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/sock/Makefile.mk)
-
src/pm/hydra/utils/sock/Makefile.sm (deleted)
-
src/pm/hydra/utils/string/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/string/Makefile.mk)
-
src/pm/hydra/utils/string/Makefile.sm (deleted)
-
src/pm/hydra/utils/timer/Makefile.mk (copied) (copied from mpich2/trunk/src/pm/hydra/utils/timer/Makefile.mk)
-
src/pm/hydra/utils/timer/Makefile.sm (deleted)
-
src/pm/remshell/configure.in (modified) (1 diff)
-
src/pm/smpd/Makefile.sm (modified) (1 diff)
-
src/pm/smpd/mp_parse_command_line.c (modified) (2 diffs)
-
src/pm/smpd/smpd.h (modified) (2 diffs)
-
src/pm/smpd/smpd_affinitize.c (copied) (copied from mpich2/trunk/src/pm/smpd/smpd_affinitize.c)
-
src/pm/smpd/smpd_cmd_args.c (modified) (1 diff)
-
src/pm/smpd/smpd_connect.c (modified) (1 diff)
-
src/pm/smpd/smpd_handle_command.c (modified) (2 diffs)
-
src/pm/smpd/smpd_launch_process.c (modified) (1 diff)
-
src/pm/smpd/smpd_util.vcproj (modified) (1 diff)
-
src/pm/util/configure.in (modified) (1 diff)
-
src/pmi/smpd/smpd_ipmi.c (modified) (1 diff)
-
src/util/logging/rlog/irlog2rlog.c (modified) (3 diffs)
-
src/util/logging/rlog/irlogutil.c (modified) (5 diffs)
-
src/util/logging/rlog/rlogutil.c (modified) (1 diff)
-
src/util/logging/rlog/trace_input.c (modified) (1 diff)
-
src/util/thread/posix_funcs.i (modified) (1 diff)
-
test/mpi/attr/keyval_double_free.c (modified) (3 diffs)
-
test/mpi/coll/Makefile.sm (modified) (4 diffs)
-
test/mpi/coll/allred.c (modified) (3 diffs)
-
test/mpi/coll/bcasttest.c (modified) (3 diffs)
-
test/mpi/coll/coll4.c (modified) (3 diffs)
-
test/mpi/coll/redscat2.c (modified) (4 diffs)
-
test/mpi/comm/ic1.c (modified) (2 diffs)
-
test/mpi/configure.in (modified) (1 diff)
-
test/mpi/datatype/Makefile.sm (modified) (4 diffs)
-
test/mpi/datatype/darray-pack.c (modified) (3 diffs)
-
test/mpi/datatype/lbub.c (modified) (4 diffs)
-
test/mpi/datatype/simple-pack-external.c (modified) (3 diffs)
-
test/mpi/datatype/struct-derived-zeros.c (modified) (3 diffs)
-
test/mpi/datatype/struct-no-real-types.c (modified) (3 diffs)
-
test/mpi/datatype/testlist (modified) (1 diff)
-
test/mpi/datatype/triangular-pack.c (modified) (3 diffs)
-
test/mpi/datatype/typecommit.c (copied) (copied from mpich2/trunk/test/mpi/datatype/typecommit.c)
-
test/mpi/errors/coll/bcastlength.c (modified) (3 diffs)
-
test/mpi/errors/coll/rerr.c (modified) (3 diffs)
-
test/mpi/errors/comm/manysplit.c (modified) (3 diffs)
-
test/mpi/errors/cxx/errhan/Makefile.sm (modified) (1 diff)
-
test/mpi/errors/cxx/errhan/errgetx.cxx (modified) (3 diffs)
-
test/mpi/errors/cxx/errhan/errsetx.cxx (modified) (6 diffs)
-
test/mpi/errors/cxx/errhan/throwtest.cxx (modified) (3 diffs)
-
test/mpi/errors/group/gerr.c (modified) (3 diffs)
-
test/mpi/errors/io/fileerrret.c (modified) (3 diffs)
-
test/mpi/errors/pt2pt/truncmsg2.c (modified) (4 diffs)
-
test/mpi/errors/spawn/badport.c (modified) (3 diffs)
-
test/mpi/f77/datatype/typenamef.f (modified) (2 diffs)
-
test/mpi/f77/ext/Makefile.sm (modified) (2 diffs)
-
test/mpi/f77/ext/c2fmult.c (modified) (3 diffs)
-
test/mpi/f77/ext/ctypesinf.f (modified) (2 diffs)
-
test/mpi/f77/io/Makefile.sm (modified) (1 diff)
-
test/mpi/f77/io/miscfilef.f (modified) (3 diffs)
-
test/mpi/f90/datatype/createf90.f90 (modified) (3 diffs)
-
test/mpi/f90/datatype/indtype.f90 (modified) (2 diffs)
-
test/mpi/f90/datatype/sizeof.f90 (modified) (2 diffs)
-
test/mpi/f90/f90types/Makefile.sm (modified) (1 diff)
-
test/mpi/f90/f90types/createf90types.c (modified) (3 diffs)
-
test/mpi/info/infomany.c (modified) (4 diffs)
-
test/mpi/info/infomany2.c (modified) (4 diffs)
-
test/mpi/perf/testlist (modified) (1 diff)
-
test/mpi/pt2pt/cancelrecv.c (modified) (2 diffs)
-
test/mpi/spawn/taskmaster.c (modified) (2 diffs)
-
winconfigure.wsf (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mpich2/branches/dev/kumudb/CHANGES
r4647 r4870 1 =============================================================================== 2 Changes in 1.1.1 3 =============================================================================== 4 5 # OVERALL: Improved support for Boost MPI. 6 7 # PM/PMI: Improved startup time with MPD. 8 9 # PM/PMI: Improved support for hybrid MPI-UPC program launching with 10 Hydra. 11 12 # PM/PMI: Improved support for process-core binding with Hydra. 13 14 # PM/PMI: Preliminary support for PMI-2. Currently supported only 15 with Hydra. 16 17 # Many other bug fixes, memory leak fixes and code cleanup. A full 18 list of changes is available using: 19 20 svn log -r4655:HEAD https://svn.mcs.anl.gov/repos/mpi/mpich2/tags/release/mpich2-1.1.1 21 22 ... or at the following link: 23 24 https://trac.mcs.anl.gov/projects/mpich2/log/mpich2/tags/release/mpich2-1.1.1?action=follow_copy&rev=HEAD&stop_rev=4655&mode=follow_copy 25 26 1 27 =============================================================================== 2 28 Changes in 1.1 -
mpich2/branches/dev/kumudb/README.vin
r4669 r4870 381 381 =================== 382 382 383 MPICH2 can be configured with two sets of compiler flags: CFLAGS, 384 CXXFLAGS, FFLAGS, F90FLAGS (abbreviated as xFLAGS) and 385 MPICH2LIB_CFLAGS, MPICH2LIB_CXXFLAGS, MPICH2LIB_FFLAGS, 386 MPICH2LIB_F90FLAGS (abbreviated as MPICH2LIB_xFLAGS) for compilation; 387 LDFLAGS and MPICH2LIB_LDFLAGS for linking. All these flags can be set 388 as part of configure command or through environment variables. 389 (CPPFLAGS stands for C preprocessor flags, which should NOT be set) 390 391 Both xFLAGS and MPICH2LIB_xFLAGS affect the compilation of the MPICH2 392 libraries. However, only xFLAGS are appended to MPI wrapper scripts, 393 mpicc and friends. 394 395 MPICH2 libraries are built with default compiler optimization, -O2, 396 which can be modified by --enable-fast configure option. For 397 instance, --disable-fast disables the default optimization option. 398 --enable-fast=O<n> sets default compiler optimization as -O<n>. For 399 more details of --enable-fast, see the output of "configure --help". 400 Any other complicated optimization flags for MPICH2 libraries have to 401 be set throught MPICH2LIB_xFLAGS. CFLAGS and friends are empty by 402 default. 403 404 For example, to build a "production" MPICH2 environment with -O3 for all 405 language bindings, one can simply do 383 MPICH2 allows several sets of compiler flags to be used. The first 384 three sets are configure-time options for MPICH2, while the fourth is 385 only relevant when compiling applications with mpicc and friends. 386 387 1. CFLAGS, CXXFLAGS, FFLAGS, F90FLAGS and LDFLAGS (abbreviated as 388 xFLAGS): Setting these flags would result in the MPICH2 library being 389 compiled/linked with these flags and the flags internally being used 390 in mpicc and friends. 391 392 2. MPICH2LIB_CFLAGS, MPICH2LIB_CXXFLAGS, MPICH2LIB_FFLAGS, 393 MPICH2LIB_F90FLAGS and MPICH2LIB_LDFLAGS (abbreviated as 394 MPICH2LIB_xFLAGS): Setting these flags would result in the MPICH2 395 library being compiled/linked with these flags. However, these flags 396 will *not* be used by mpicc and friends. 397 398 3. MPICH2_MAKE_CFLAGS: Setting these flags would result in MPICH2's 399 configure tests to not use these flags, but the makefile's to use 400 them. This is a temporary hack for certain cases that advanced 401 developers might be interested in which break existing configure tests 402 (e.g., -Werror) and are not recommended for regular users. 403 404 4. MPICH2_MPICC_FLAGS, MPICH2_MPICXX_FLAGS, MPICH2_MPIF77_FLAGS, 405 MPICH2_MPIF90_FLAGS and MPICH2_LDFLAGS (abbreviated as 406 MPICH2_MPIX_FLAGS): These flags do *not* affect the compilation of the 407 MPICH2 library itself, but will be internally used by mpicc and 408 friends. 409 410 411 +--------------------------------------------------------------------+ 412 | | | | 413 | | MPICH2 library | mpicc and friends | 414 | | | | 415 +--------------------+----------------------+------------------------+ 416 | | | | 417 | xFLAGS | Yes | Yes | 418 | | | | 419 +--------------------+----------------------+------------------------+ 420 | | | | 421 | MPICH2LIB_xFLAGS | Yes | No | 422 | | | | 423 +--------------------+----------------------+------------------------+ 424 | | | | 425 | MPICH2_MAKE_xFLAGS | Yes | No | 426 | | | | 427 +--------------------+----------------------+------------------------+ 428 | | | | 429 | MPICH2_MPIX_FLAGS | No | Yes | 430 | | | | 431 +--------------------+----------------------+------------------------+ 432 433 434 All these flags can be set as part of configure command or through 435 environment variables. (CPPFLAGS stands for C preprocessor flags, 436 which should NOT be set) 437 438 439 Default flags 440 -------------- 441 By default, MPICH2 automatically adds certain compiler optimizations 442 to MPICH2LIB_CFLAGS. The currently used optimization level is -O2. 443 444 ** IMPORTANT NOTE: Remember that this only affects the compilation of 445 the MPICH2 library and is not used in the wrappers (mpicc and friends) 446 that are used to compile your applications or other libraries. 447 448 This optimization level can be changed with the --enable-fast option 449 passed to configure. For example, to build an MPICH2 environment with 450 -O3 for all language bindings, one can simply do: 406 451 407 452 ./configure --enable-fast=O3 408 453 409 or 454 Or to disable all compiler optimizations, one can do: 455 456 ./configure --disable-fast 457 458 For more details of --enable-fast, see the output of "configure 459 --help". 460 461 462 Examples 463 -------- 464 465 Example 1: 410 466 411 467 ./configure --disable-fast MPICH2LIB_CFLAGS=-O3 MPICH2LIB_FFLAGS=-O3 MPICH2LIB_CXXFLAGS=-O3 MPICH2LIB_F90FLAGS=-O3 412 468 413 This will cause the MPICH2 libraries to be built with -O3, and -O3 will 414 not be included in the mpicc and other MPI wrapper script. 469 This will cause the MPICH2 libraries to be built with -O3, and -O3 470 will *not* be included in the mpicc and other MPI wrapper script. 471 472 Example 2: 473 474 ./configure --disable-fast CFLAGS=-O3 FFLAGS=-O3 CXXFLAGS=-O3 F90FLAGS=-O3 475 476 This will cause the MPICH2 libraries to be built with -O3, and -O3 477 will be included in the mpicc and other MPI wrapper script. 478 479 Example 3: 415 480 416 481 There are certain compiler flags that should not be used with MPICH2's … … 421 486 MPICH2_MAKE_CFLAGS as follows: 422 487 423 make VERBOSE=1MPICH2_MAKE_CFLAGS="-Wall -Werror"424 425 (assuming CC is set to gcc). The content of MPICH2_MAKE_CFLAGS is 426 appended to the CFLAGS in almost allMakefiles.488 make MPICH2_MAKE_CFLAGS="-Wall -Werror" 489 490 The content of MPICH2_MAKE_CFLAGS is appended to the CFLAGS in all 491 relevant Makefiles. 427 492 428 493 ------------------------------------------------------------------------- -
mpich2/branches/dev/kumudb/RELEASE_NOTES
r4209 r4870 45 45 46 46 ### Other configure options 47 48 * The "--enable-strict" configure option is broken when using49 sigaction and friends; this causes some of the process managers50 (e.g., hydra, remshell) to not work51 correctly. "--enable-strict=posix" is the recommended configure52 option.53 47 54 48 * --enable-sharedlibs=gcc does not work on Solaris because of -
mpich2/branches/dev/kumudb/confdb/aclangf90.m4
r974 r4870 985 985 dnl 986 986 dnl D*/ 987 AC_DEFUN( PAC_PROG_F90_INT_KIND,[987 AC_DEFUN([PAC_PROG_F90_INT_KIND],[ 988 988 # Set the default 989 989 $1=-1 … … 1104 1104 dnl Internal routine for testing F90 1105 1105 dnl PAC_PROG_F90_WORKS() 1106 AC_DEFUN( PAC_PROG_F90_WORKS,1106 AC_DEFUN([PAC_PROG_F90_WORKS], 1107 1107 [AC_MSG_CHECKING([for extension for Fortran 90 programs]) 1108 1108 pac_cv_f90_ext="f90" … … 1234 1234 dnl PAC_PROG_F90_HAS_POINTER(action-if-true,action-if-false) 1235 1235 dnl D*/ 1236 AC_DEFUN( PAC_PROG_F90_HAS_POINTER,[1236 AC_DEFUN([PAC_PROG_F90_HAS_POINTER],[ 1237 1237 AC_CACHE_CHECK([whether Fortran 90 has Cray-style pointer declaration], 1238 1238 pac_cv_prog_f90_has_pointer,[ -
mpich2/branches/dev/kumudb/confdb/aclocal.m4
r4146 r4870 38 38 dnl If these are not available, just set them as empty 39 39 ifdef([AC_EXEEXT],,[ 40 AC_DEFUN( AC_EXEEXT,[40 AC_DEFUN([AC_EXEEXT],[ 41 41 EXEEXT= 42 42 AC_SUBST(EXEEXT) 43 43 ])]) 44 44 ifdef([AC_OBJEXT],,[ 45 AC_DEFUN( AC_OBJEXT,[45 AC_DEFUN([AC_OBJEXT],[ 46 46 OBJEXT= 47 47 AC_SUBST(OBJEXT) … … 74 74 dnl directories in the case that this is a vpath build. 75 75 dnl 76 AC_DEFUN( PAC_CONFIG_SUBDIRS_IMMEDIATE,76 AC_DEFUN([PAC_CONFIG_SUBDIRS_IMMEDIATE], 77 77 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 78 78 SAVE_subdirs="$subdirs" … … 105 105 dnl Find something to use for mkdir -p. Eventually, this will 106 106 dnl have a script for backup 107 AC_DEFUN( PAC_PROG_MKDIR_P,[107 AC_DEFUN([PAC_PROG_MKDIR_P],[ 108 108 AC_CACHE_CHECK([whether mkdir -p works], 109 109 pac_cv_mkdir_p,[ -
mpich2/branches/dev/kumudb/confdb/aclocal_bugfix.m4
r3619 r4870 53 53 dnl D*/ 54 54 undefine([AC_CONFIG_AUX_DIRS]) 55 AC_DEFUN( AC_CONFIG_AUX_DIRS,55 AC_DEFUN([AC_CONFIG_AUX_DIRS], 56 56 [if test -f $CONFIG_AUX_DIR/install-sh ; then ac_aux_dir=$CONFIG_AUX_DIR 57 57 else … … 96 96 dnl 97 97 dnl undefine([AC_CHECK_HEADER]) 98 AC_DEFUN( PAC_OLD_CHECK_HEADER,98 AC_DEFUN([PAC_OLD_CHECK_HEADER], 99 99 [dnl Do the transliteration at runtime so arg 1 can be a shell variable. 100 100 ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` -
mpich2/branches/dev/kumudb/confdb/aclocal_cache.m4
r100 r4870 174 174 dnl set here are redundant; the LOAD_CACHE call relies on the way autoconf 175 175 dnl initially processes ARG_ENABLE commands. 176 AC_DEFUN( PAC_ARG_CACHING,[176 AC_DEFUN([PAC_ARG_CACHING],[ 177 177 AC_ARG_ENABLE(cache, 178 178 [--enable-cache - Turn on configure caching], … … 227 227 dnl 228 228 dnl D*/ 229 AC_DEFUN( PAC_SUBDIR_CACHE,[])230 AC_DEFUN( PAC_SUBDIR_CACHE_OLD,[229 AC_DEFUN([PAC_SUBDIR_CACHE],[]) 230 AC_DEFUN([PAC_SUBDIR_CACHE_OLD],[ 231 231 if test "x$1" = "xalways" -o \( "$cache_file" = "/dev/null" -a "X$real_enable_cache" = "Xnotgiven" \) ; then 232 232 # Use an absolute directory to help keep the subdir configures from getting … … 313 313 export CCFLAGS 314 314 ]) 315 AC_DEFUN( PAC_SUBDIR_CACHE_CLEANUP,[])316 AC_DEFUN( PAC_SUBDIR_CACHE_CLEANUP_OLD,[315 AC_DEFUN([PAC_SUBDIR_CACHE_CLEANUP],[]) 316 AC_DEFUN([PAC_SUBDIR_CACHE_CLEANUP_OLD],[ 317 317 if test "$cache_file" != "/dev/null" -a "X$real_enable_cache" = "Xnotgiven" ; then 318 318 rm -f $cache_file -
mpich2/branches/dev/kumudb/confdb/aclocal_cc.m4
r4581 r4870 23 23 dnl 2.52 doesn't have AC_PROG_CC_GNU 24 24 ifdef([AC_PROG_CC_GNU],,[AC_DEFUN([AC_PROG_CC_GNU],)]) 25 AC_DEFUN( PAC_PROG_CC,[25 AC_DEFUN([PAC_PROG_CC],[ 26 26 AC_PROVIDE([AC_PROG_CC]) 27 27 AC_CHECK_PROGS(CC, cc xlC xlc pgcc icc pathcc gcc ) … … 57 57 dnl variable containing the option name as the first argument. 58 58 dnl D*/ 59 AC_DEFUN( PAC_C_CHECK_COMPILER_OPTION,[59 AC_DEFUN([PAC_C_CHECK_COMPILER_OPTION],[ 60 60 AC_MSG_CHECKING([whether C compiler accepts option $1]) 61 61 save_CFLAGS="$CFLAGS" … … 145 145 dnl optimization. 146 146 dnl D*/ 147 AC_DEFUN( PAC_C_OPTIMIZATION,[147 AC_DEFUN([PAC_C_OPTIMIZATION],[ 148 148 for copt in "-O4 -Ofast" "-Ofast" "-fast" "-O3" "-xO3" "-O" ; do 149 149 PAC_C_CHECK_COMPILER_OPTION($copt,found_opt=yes,found_opt=no) … … 221 221 dnl includes, such as /usr/xxxx and /opt/xxxx 222 222 dnl 223 AC_DEFUN( PAC_C_DEPENDS,[223 AC_DEFUN([PAC_C_DEPENDS],[ 224 224 AC_SUBST(C_DEPEND_OPT)AM_IGNORE(C_DEPEND_OPT) 225 225 AC_SUBST(C_DEPEND_OUT)AM_IGNORE(C_DEPEND_OUT) … … 325 325 dnl 326 326 dnl D*/ 327 AC_DEFUN( PAC_C_PROTOTYPES,[327 AC_DEFUN([PAC_C_PROTOTYPES],[ 328 328 AC_CACHE_CHECK([whether $CC supports function prototypes], 329 329 pac_cv_c_prototypes,[ … … 350 350 dnl D*/ 351 351 dnl Check for semctl and arguments 352 AC_DEFUN( PAC_FUNC_SEMCTL,[352 AC_DEFUN([PAC_FUNC_SEMCTL],[ 353 353 AC_CHECK_FUNC(semctl) 354 354 if test "$ac_cv_func_semctl" = "yes" ; then … … 389 389 dnl 390 390 dnl D*/ 391 AC_DEFUN( PAC_C_VOLATILE,[391 AC_DEFUN([PAC_C_VOLATILE],[ 392 392 AC_CACHE_CHECK([for volatile], 393 393 pac_cv_c_volatile,[ … … 409 409 dnl 410 410 dnl D*/ 411 AC_DEFUN( PAC_C_INLINE,[411 AC_DEFUN([PAC_C_INLINE],[ 412 412 AC_CACHE_CHECK([for inline], 413 413 pac_cv_c_inline,[ … … 511 511 dnl 512 512 dnl D*/ 513 AC_DEFUN( PAC_C_CPP_CONCAT,[513 AC_DEFUN([PAC_C_CPP_CONCAT],[ 514 514 pac_pound="#" 515 515 AC_CACHE_CHECK([whether the compiler $CC accepts $ac_pound$ac_pound for concatenation in cpp], … … 535 535 dnl 536 536 dnl D*/ 537 AC_DEFUN( PAC_FUNC_GETTIMEOFDAY,[537 AC_DEFUN([PAC_FUNC_GETTIMEOFDAY],[ 538 538 AC_CACHE_CHECK([whether gettimeofday takes 2 arguments], 539 539 pac_cv_func_gettimeofday,[ … … 565 565 dnl 566 566 dnl D*/ 567 AC_DEFUN( PAC_C_RESTRICT,[567 AC_DEFUN([PAC_C_RESTRICT],[ 568 568 AC_CACHE_CHECK([for restrict], 569 569 pac_cv_c_restrict,[ … … 613 613 dnl 614 614 dnl D*/ 615 AC_DEFUN( PAC_HEADER_STDARG,[615 AC_DEFUN([PAC_HEADER_STDARG],[ 616 616 AC_CHECK_HEADER(stdarg.h) 617 617 dnl Sets ac_cv_header_stdarg_h … … 692 692 dnl 693 693 dnl D*/ 694 AC_DEFUN( PAC_C_TRY_COMPILE_CLEAN,[694 AC_DEFUN([PAC_C_TRY_COMPILE_CLEAN],[ 695 695 $3=2 696 696 dnl Get the compiler output to test against … … 753 753 dnl 'action-if-unknown' is used in the case of cross-compilation. 754 754 dnl D*/ 755 AC_DEFUN( PAC_PROG_C_UNALIGNED_DOUBLES,[755 AC_DEFUN([PAC_PROG_C_UNALIGNED_DOUBLES],[ 756 756 AC_CACHE_CHECK([whether C compiler allows unaligned doubles], 757 757 pac_cv_prog_c_unaligned_doubles,[ … … 813 813 dnl 814 814 dnl D*/ 815 AC_DEFUN( PAC_PROG_C_WEAK_SYMBOLS,[815 AC_DEFUN([PAC_PROG_C_WEAK_SYMBOLS],[ 816 816 pragma_extra_message="" 817 817 AC_CACHE_CHECK([for type of weak symbol alias support], … … 953 953 ifdef([AC_PROG_CC_WORKS],,[AC_DEFUN([AC_PROG_CC_WORKS],)]) 954 954 dnl 955 AC_DEFUN( PAC_PROG_CC_WORKS,955 AC_DEFUN([PAC_PROG_CC_WORKS], 956 956 [AC_PROG_CC_WORKS 957 957 AC_MSG_CHECKING([whether the C compiler sets its return status correctly]) … … 975 975 dnl 976 976 dnl D*/ 977 AC_DEFUN( PAC_PROG_C_MULTIPLE_WEAK_SYMBOLS,[977 AC_DEFUN([PAC_PROG_C_MULTIPLE_WEAK_SYMBOLS],[ 978 978 AC_CACHE_CHECK([for multiple weak symbol support], 979 979 pac_cv_prog_c_multiple_weak_symbols,[ … … 1034 1034 dnl Defines NEED_CRYPT_PROTOTYPE if no prototype is found. 1035 1035 dnl D*/ 1036 AC_DEFUN( PAC_FUNC_CRYPT,[1036 AC_DEFUN([PAC_FUNC_CRYPT],[ 1037 1037 AC_CACHE_CHECK([whether crypt defined in unistd.h], 1038 1038 pac_cv_func_crypt_defined,[ … … 1057 1057 fi 1058 1058 ])dnl 1059 1060 dnl Use the value of enable-strict to update CFLAGS 1061 dnl pac_cc_strict_flags contains the strict flags. 1062 dnl 1063 dnl -std=c89 is used to select the C89 version of the ANSI/ISO C standard. 1064 dnl As of this writing, many C compilers still accepted only this version, 1065 dnl not the later C99 version. When all compilers accept C99, this 1066 dnl should be changed to the appropriate standard level. Note that we've 1067 dnl had trouble with gcc 2.95.3 accepting -std=c89 but then trying to 1068 dnl compile program with a invalid set of options 1069 dnl (-D __STRICT_ANSI__-trigraphs) 1070 AC_DEFUN([PAC_CC_STRICT],[ 1071 export enable_strict_done 1072 if test "$enable_strict_done" != "yes" ; then 1073 1074 # Some comments on strict warning options. 1075 # These were added to reduce warnings: 1076 # -Wno-missing-field-initializers -- We want to allow a struct to be 1077 # initialized to zero using "struct x y = {0};" and not require 1078 # each field to be initialized individually. 1079 # -Wno-type-limits -- There are places where we compare an unsigned to 1080 # a constant that happens to be zero e.g., if x is unsigned and 1081 # MIN_VAL is zero, we'd like to do "MPIU_Assert(x >= MIN_VAL);". 1082 # Note this option is not supported by gcc 4.2. 1083 # -Wno-unused-parameter -- For portability, some parameters go unused 1084 # when we have different implementations of functions for 1085 # different platforms 1086 # -Wno-unused-label -- We add fn_exit: and fn_fail: on all functions, 1087 # but fn_fail may not be used if the function doesn't return an 1088 # error. 1089 # These were removed to reduce warnings: 1090 # -Wcast-qual -- Sometimes we need to cast "volatile char*" to 1091 # "char*", e.g., for memcpy. 1092 # -Wpadded -- We catch struct padding with asserts when we need to 1093 # -Wredundant-decls -- Having redundant declarations is benign and the 1094 # code already has some. 1095 1096 pac_common_strict_flags="-O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL -Wno-unused-parameter -Wno-unused-label -Wshadow -Wmissing-declarations -Wno-long-long -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wsign-compare -Waggregate-return -Wold-style-definition -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wnested-externs -Winline -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros -std=c89" 1097 pac_cc_strict_flags="" 1098 case "$1" in 1099 yes|all|posix) 1100 enable_strict_done="yes" 1101 pac_cc_strict_flags="$pac_common_strict_flags -D_POSIX_C_SOURCE=199506L" 1102 ;; 1103 1104 noposix) 1105 enable_strict_done="yes" 1106 pac_cc_strict_flags="$pac_common_strict_flags" 1107 ;; 1108 1109 no) 1110 # Accept and ignore this value 1111 : 1112 ;; 1113 1114 *) 1115 if test -n "$1" ; then 1116 AC_MSG_WARN([Unrecognized value for enable-strict:$1]) 1117 fi 1118 ;; 1119 1120 esac 1121 1122 # See if the above options work with the compiler 1123 accepted_flags="" 1124 for flag in $pac_cc_strict_flags ; do 1125 old_CFLAGS=$CFLAGS 1126 CFLAGS="$CFLAGS $accepted_flags $flag" 1127 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])],accepted_flags="$accepted_flags $flag",) 1128 CFLAGS="$old_CFLAGS" 1129 done 1130 pac_cc_strict_flags=$accepted_flags 1131 fi 1132 ]) 1133 1059 1134 dnl/*D 1060 1135 dnl PAC_ARG_STRICT - Add --enable-strict to configure. … … 1064 1139 dnl 1065 1140 dnl Output effects: 1066 dnl Adds '--enable-strict' to the command line. If this is enabled, then 1067 dnl if no compiler has been set, set 'CC' to 'gcc'. 1068 dnl If the compiler is 'gcc', 'COPTIONS' is set to include 1069 dnl.vb 1070 dnl -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror=pointer-arith -DGCC_WALL -std=c89 1071 dnl.ve 1072 dnl This makes using a void * with pointer arithmetic an error, not a warning. 1073 dnl We do this because pointer arithmetic with void * is not valid C but 1074 dnl gcc accepts this unless these particular optiones are used. 1075 dnl Grr. -Werror=name is a recent addition to gcc, so we can't require it yet. 1076 dnl 1077 dnl -std=c89 is used to select the C89 version of the ANSI/ISO C standard. 1078 dnl As of this writing, many C compilers still accepted only this version, 1079 dnl not the later C99 version. When all compilers accept C99, this 1080 dnl should be changed to the appropriate standard level. Note that we've 1081 dnl had trouble with gcc 2.95.3 accepting -std=c89 but then trying to 1082 dnl compile program with a invalid set of options 1083 dnl (-D __STRICT_ANSI__-trigraphs) 1084 dnl 1085 dnl If the value 'all' is given to '--enable-strict', additional warning 1086 dnl options are included. These are 1087 dnl.vb 1088 dnl -Wunused -Wshadow -Wmissing-declarations -Wno-long-long 1089 dnl.ve 1090 dnl 1091 dnl If the value 'noopt' is given to '--enable-strict', no optimization 1092 dnl options are set. For some compilers (including gcc), this may 1093 dnl cause some strict complication tests to be skipped (typically, these are 1094 dnl tests for unused variables or variables used before they are defined). 1095 dnl 1096 dnl If the value 'posix' is given to '--enable-strict', POSIX is selected 1097 dnl as the C dialect (including the definition for the POSIX level) 1098 dnl 1099 dnl If the value 'all' is given to '--enable-strict', use the "GNU" Unix 1100 dnl dialect. This permits the use of stricter checking for declarations of 1101 dnl system functions (note that fsync is not defined in strict, non-real-time 1102 dnl POSIX). This level includes 1103 dnl .vb 1104 dnl -Werror-implicit-function-declaration 1105 dnl .ve 1106 dnl 1107 dnl This only works where 'gcc' is available. 1108 dnl In addition, it exports the variable 'enable_strict_done'. This 1109 dnl ensures that subsidiary 'configure's do not add the above flags to 1110 dnl 'COPTIONS' once the top level 'configure' sees '--enable-strict'. To ensure 1111 dnl this, 'COPTIONS' is also exported. 1112 dnl 1113 dnl Not yet available: options when using other compilers. However, 1114 dnl here are some possible choices 1115 dnl Solaris cc 1116 dnl -fd -v -Xc 1117 dnl -Xc is strict ANSI (some version) and does not allow "long long", for 1118 dnl example 1119 dnl IRIX 1120 dnl -ansi -DEBUG:trap_uninitialized=ON:varargs_interface_check=ON:verbose_runtime=ON 1141 dnl Adds '--enable-strict' to the command line. 1121 1142 dnl 1122 1143 dnl D*/ 1123 AC_DEFUN( PAC_ARG_STRICT,[1144 AC_DEFUN([PAC_ARG_STRICT],[ 1124 1145 AC_ARG_ENABLE(strict, 1125 1146 [--enable-strict - Turn on strict compilation testing when using gcc]) 1126 saveCFLAGS="$CFLAGS" 1127 if test "$enable_strict_done" != "yes" ; then 1128 if test -z "$GCC_OPTFLAG" ; then GCC_OPTFLAG="-O2" ; fi 1129 if test -z "CC" ; then 1130 AC_CHECK_PROGS(CC,gcc) 1131 fi 1132 case "$enable_strict" in 1133 yes) 1134 enable_strict_done="yes" 1135 if test "$CC" = "gcc" ; then 1136 COPTIONS="${COPTIONS} -Wall $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -DGCC_WALL -std=c89" 1137 fi 1138 ;; 1139 all) 1140 enable_strict_done="yes" 1141 if test "$CC" = "gcc" ; then 1142 # Note that -Wall does not include all of the warnings that 1143 # the gcc documentation claims that it does; in particular, 1144 # the -Wunused-parameter option is *not* part of -Wall 1145 # -Wextra (if available) adds some to -Wall (!) 1146 # -Wsystem-headers removed because of too many warning messages 1147 # that are unfixable by the user of this option (the warnings 1148 # often show benign but real problems) 1149 # -Wunreachable-code has a serious bug and falsely reports 1150 # labels as unreachable code. This makes that option useless 1151 # for the MPICH2 code, for example 1152 COPTIONS="${COPTIONS} -Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Werror-implicit-function-declaration -Wno-long-long -Wunused-parameter -Wunused-value -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wold-style-definition -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Winline -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros -std=c89" 1153 fi 1154 ;; 1155 1156 # The MPICH2 code has several modules that have duplicate 1157 # function declarations. The resulting list of warnings is 1158 # swamped by those duplicates, rendering the output nearly 1159 # useless. This temporary option choice is the same as 1160 # --enable-strict=all, but without that one option 1161 allbutdupdefs) 1162 enable_strict_done="yes" 1163 if test "$CC" = "gcc" ; then 1164 # Note that -Wall does not include all of the warnings that 1165 # the gcc documentation claims that it does; in particular, 1166 # the -Wunused-parameter option is *not* part of -Wall 1167 # -Wextra (if available) adds some to -Wall (!) 1168 # -Wsystem-headers removed because of too many warning messages 1169 # that are unfixable by the user of this option (the warnings 1170 # often show benign but real problems) 1171 # -Wunreachable-code has a serious bug and falsely reports 1172 # labels as unreachable code. This makes that option useless 1173 # for the MPICH2 code, for example 1174 COPTIONS="${COPTIONS} -Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Werror-implicit-function-declaration -Wno-long-long -Wunused-parameter -Wunused-value -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wold-style-definition -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wnested-externs -Winline -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros -std=c89" 1175 fi 1176 ;; 1177 1178 posix) 1179 # fsync is a part of POSIX only in the real-time extensions, 1180 # apparently, so code that used include <unistd.h> and POSIX 1181 # and expects fsync to be defined is in trouble. Because of that 1182 # we're not including the -W option to error if a function is 1183 # not prototyped. 1184 enable_strict_done="yes" 1185 if test "$CC" = "gcc" ; then 1186 COPTIONS="${COPTIONS} -Wall $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL -D_POSIX_C_SOURCE=199506L -std=c89" 1187 fi 1188 ;; 1189 1190 noopt) 1191 enable_strict_done="yes" 1192 if test "$CC" = "gcc" ; then 1193 COPTIONS="${COPTIONS} -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -DGCC_WALL -std=c89" 1194 fi 1195 ;; 1196 no) 1197 # Accept and ignore this value 1198 : 1199 ;; 1200 *) 1201 # Silently accept blank values for enable strict 1202 if test -n "$enable_strict" ; then 1203 AC_MSG_WARN([Unrecognized value for enable-strict:$enable_strict]) 1204 fi 1205 ;; 1206 esac 1207 fi 1208 export enable_strict_done 1209 ]) 1210 dnl 1211 dnl Use the value of enable-strict to update CFLAGS 1212 dnl pac_cc_strict_flags contains the strict flags. 1213 dnl 1214 dnl -std=c89 is used to select the C89 version of the ANSI/ISO C standard. 1215 dnl As of this writing, many C compilers still accepted only this version, 1216 dnl not the later C99 version. When all compilers accept C99, this 1217 dnl should be changed to the appropriate standard level. Note that we've 1218 dnl had trouble with gcc 2.95.3 accepting -std=c89 but then trying to 1219 dnl compile program with a invalid set of options 1220 dnl (-D __STRICT_ANSI__-trigraphs) 1221 dnl 1222 dnl 1223 AC_DEFUN(PAC_CC_STRICT,[ 1224 export enable_strict_done 1225 if test "$enable_strict_done" != "yes" ; then 1226 # We must know the compiler type 1227 if test -z "$GCC_OPTFLAG" ; then GCC_OPTFLAG="-O2" ; fi 1228 if test -z "CC" ; then 1229 AC_CHECK_PROGS(CC,gcc) 1230 fi 1231 pac_cc_strict_flags="" 1232 case "$enable_strict" in 1233 yes) 1234 enable_strict_done="yes" 1235 if test "$ac_cv_prog_gcc" = "yes" ; then 1236 pac_cc_strict_flags="-Wall $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL" 1237 CFLAGS="$CFLAGS $pac_cc_strict_flags" 1238 AC_MSG_RESULT([Adding strict check arguments to CFLAGS]) 1239 AC_MSG_CHECKING([whether we can add -std=c89]) 1240 # See if we can add -std=c89 1241 savCFLAGS=$CFLAGS 1242 CFLAGS="$CFLAGS -std=c89" 1243 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])], 1244 stdc_ok=yes, 1245 stdc_ok=no) 1246 AC_MSG_RESULT($stdc_ok) 1247 if test "$stdc_ok" != yes ; then 1248 CFLAGS="$savCFLAGS" 1249 else 1250 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" 1251 fi 1252 else 1253 AC_MSG_WARN([enable strict supported only for gcc]) 1254 fi 1255 ;; 1256 1257 all) 1258 enable_strict_done="yes" 1259 if test "$ac_cv_prog_gcc" = "yes" ; then 1260 # -Wsystem-headers removed because of too many warning messages 1261 # that are unfixable by the user of this option (the warnings 1262 # often show benign but real problems) 1263 # -Wunreachable-code has a serious bug and falsely reports 1264 # labels as unreachable code. This makes that option useless 1265 # for the MPICH2 code, for example 1266 # The next line was the original set of options; this 1267 # worked with gcc version 2.x 1268 # pac_cc_strict_flags="-Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Wunused-parameter -Wunused-value -Wno-long-long -Werror-implicit-function-declaration" 1269 pac_cc_strict_flags="-Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Werror-implicit-function-declaration -Wno-long-long -Wunused-parameter -Wunused-value -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wold-style-definition -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Winline -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros" 1270 CFLAGS="$CFLAGS $pac_cc_strict_flags" 1271 AC_MSG_CHECKING([whether we can add -std=c89]) 1272 # See if we can add -std=c89 1273 savCFLAGS=$CFLAGS 1274 CFLAGS="$CFLAGS -std=c89" 1275 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])], 1276 stdc_ok=yes, 1277 stdc_ok=no) 1278 AC_MSG_RESULT($stdc_ok) 1279 if test "$stdc_ok" != yes ; then 1280 CFLAGS="$savCFLAGS" 1281 else 1282 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" 1283 fi 1284 else 1285 AC_MSG_WARN([enable strict supported only for gcc]) 1286 fi 1287 ;; 1288 1289 # The MPICH2 code has several modules that have duplicate 1290 # function declarations. The resulting list of warnings is 1291 # swamped by those duplicates, rendering the output nearly 1292 # useless. This temporary option choice is the same as 1293 # --enable-strict=all, but without that one option 1294 allbutdupdefs) 1295 enable_strict_done="yes" 1296 if test "$ac_cv_prog_gcc" = "yes" ; then 1297 # -Wsystem-headers removed because of too many warning messages 1298 # that are unfixable by the user of this option (the warnings 1299 # often show benign but real problems) 1300 # -Wunreachable-code has a serious bug and falsely reports 1301 # labels as unreachable code. This makes that option useless 1302 # for the MPICH2 code, for example 1303 # This next line contains the options used with gcc version 2.x 1304 # pac_cc_strict_flags="-Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Wunused-parameter -Wunused-value -Wno-long-long -Werror-implicit-function-declaration" 1305 pac_cc_strict_flags="-Wall -Wextra $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL -Wunused -Wshadow -Wmissing-declarations -Werror-implicit-function-declaration -Wno-long-long -Wunused-parameter -Wunused-value -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wold-style-definition -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wnested-externs -Winline -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros -std=c89" 1306 CFLAGS="$CFLAGS $pac_cc_strict_flags" 1307 AC_MSG_CHECKING([whether we can add -std=c89]) 1308 # See if we can add -std=c89 1309 savCFLAGS=$CFLAGS 1310 CFLAGS="$CFLAGS -std=c89" 1311 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])], 1312 stdc_ok=yes, 1313 stdc_ok=no) 1314 AC_MSG_RESULT($stdc_ok) 1315 if test "$stdc_ok" != yes ; then 1316 CFLAGS="$savCFLAGS" 1317 else 1318 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" 1319 fi 1320 else 1321 AC_MSG_WARN([enable strict supported only for gcc]) 1322 fi 1323 ;; 1324 1325 posix) 1326 # fsync is a part of POSIX only in the real-time extensions, 1327 # apparently, so code that used include <unistd.h> and POSIX 1328 # and expects fsync to be defined is in trouble. Because of that 1329 # we're not including the -W option to error if a function is 1330 # not prototyped. 1331 enable_strict_done="yes" 1332 if test "$ac_cv_prog_gcc" = "yes" ; then 1333 pac_cc_strict_flags="-Wall $GCC_OPTFLAG -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL -D_POSIX_C_SOURCE=199506L" 1334 CFLAGS="$CFLAGS $pac_cc_strict_flags" 1335 AC_MSG_RESULT([Adding strict check arguments (POSIX flavor) to CFLAGS]) 1336 AC_MSG_CHECKING([whether we can add -std=c89]) 1337 # See if we can add -std=c89 1338 savCFLAGS=$CFLAGS 1339 CFLAGS="$CFLAGS -std=c89" 1340 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])], 1341 stdc_ok=yes, 1342 stdc_ok=no) 1343 AC_MSG_RESULT($stdc_ok) 1344 if test "$stdc_ok" != yes ; then 1345 CFLAGS="$savCFLAGS" 1346 else 1347 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" 1348 fi 1349 else 1350 AC_MSG_WARN([enable strict supported only for gcc]) 1351 fi 1352 ;; 1353 1354 noopt) 1355 enable_strict_done="yes" 1356 if test "$ac_cv_prog_gcc" = "yes" ; then 1357 pac_cc_strict_flags="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wpointer-arith -Wbad-function-cast -ansi -DGCC_WALL" 1358 CFLAGS="$CFLAGS $pac_cc_strict_flags" 1359 AC_MSG_RESULT([Adding strict check arguments to CFLAGS]) 1360 AC_MSG_CHECKING([whether we can add -std=c89]) 1361 # See if we can add -std=c89 1362 savCFLAGS=$CFLAGS 1363 CFLAGS="$CFLAGS -std=c89" 1364 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[int a;])], 1365 stdc_ok=yes, 1366 stdc_ok=no) 1367 AC_MSG_RESULT($stdc_ok) 1368 if test "$stdc_ok" != yes ; then 1369 CFLAGS="$savCFLAGS" 1370 else 1371 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" 1372 fi 1373 else 1374 AC_MSG_WARN([enable strict supported only for gcc]) 1375 fi 1376 ;; 1377 no) 1378 # Accept and ignore this value 1379 : 1380 ;; 1381 *) 1382 if test -n "$enable_strict" ; then 1383 AC_MSG_WARN([Unrecognized value for enable-strict:$enable_strict]) 1384 fi 1385 ;; 1386 esac 1387 fi 1388 ]) 1147 PAC_CC_STRICT($enable_strict) 1148 CFLAGS="$CFLAGS $pac_cc_strict_flags" 1149 export CFLAGS 1150 ]) 1151 1389 1152 dnl/*D 1390 1153 dnl PAC_ARG_CC_G - Add debugging flags for the C compiler … … 1421 1184 dnl 1422 1185 dnl D*/ 1423 AC_DEFUN( PAC_ARG_CC_G,[1186 AC_DEFUN([PAC_ARG_CC_G],[ 1424 1187 AC_ARG_ENABLE(g, 1425 1188 [--enable-g - Turn on debugging of the package (typically adds -g to COPTIONS)]) … … 1437 1200 dnl Simple version for both options 1438 1201 dnl 1439 AC_DEFUN( PAC_ARG_CC_COMMON,[1202 AC_DEFUN([PAC_ARG_CC_COMMON],[ 1440 1203 PAC_ARG_CC_G 1441 1204 PAC_ARG_STRICT … … 1476 1239 dnl the system to find common symbols. 1477 1240 dnl 1478 AC_DEFUN( PAC_PROG_C_BROKEN_COMMON,[1241 AC_DEFUN([PAC_PROG_C_BROKEN_COMMON],[ 1479 1242 AC_CACHE_CHECK([whether global variables handled properly], 1480 1243 ac_cv_prog_cc_globals_work,[ … … 1557 1320 dnl "Multiple cases:" return is possible. 1558 1321 dnl 1559 AC_DEFUN( PAC_C_STRUCT_ALIGNMENT,[1322 AC_DEFUN([PAC_C_STRUCT_ALIGNMENT],[ 1560 1323 AC_CACHE_CHECK([for C struct alignment],pac_cv_c_struct_align,[ 1561 1324 AC_TRY_RUN([ … … 1758 1521 dnl In addition, a "Could not determine alignment" and a "error!" 1759 1522 dnl return is possible. 1760 AC_DEFUN( PAC_C_MAX_INTEGER_ALIGN,[1523 AC_DEFUN([PAC_C_MAX_INTEGER_ALIGN],[ 1761 1524 AC_CACHE_CHECK([for max C struct integer alignment], 1762 1525 pac_cv_c_max_integer_align,[ … … 1890 1653 dnl In addition, a "Could not determine alignment" and a "error!" 1891 1654 dnl return is possible. 1892 AC_DEFUN( PAC_C_MAX_FP_ALIGN,[1655 AC_DEFUN([PAC_C_MAX_FP_ALIGN],[ 1893 1656 AC_CACHE_CHECK([for max C struct floating point alignment], 1894 1657 pac_cv_c_max_fp_align,[ … … 2005 1768 dnl In addition, a "Could not determine alignment" and a "error!" 2006 1769 dnl return is possible. 2007 AC_DEFUN( PAC_C_MAX_DOUBLE_FP_ALIGN,[1770 AC_DEFUN([PAC_C_MAX_DOUBLE_FP_ALIGN],[ 2008 1771 AC_CACHE_CHECK([for max C struct alignment of structs with doubles], 2009 1772 pac_cv_c_max_double_fp_align,[ … … 2076 1839 fi 2077 1840 ]) 2078 AC_DEFUN( PAC_C_MAX_LONGDOUBLE_FP_ALIGN,[1841 AC_DEFUN([PAC_C_MAX_LONGDOUBLE_FP_ALIGN],[ 2079 1842 AC_CACHE_CHECK([for max C struct floating point alignment with long doubles], 2080 1843 pac_cv_c_max_longdouble_fp_align,[ … … 2163 1926 dnl Possible values currently include no and four. 2164 1927 dnl 2165 AC_DEFUN( PAC_C_DOUBLE_ALIGNMENT_EXCEPTION,[1928 AC_DEFUN([PAC_C_DOUBLE_ALIGNMENT_EXCEPTION],[ 2166 1929 AC_CACHE_CHECK([if double alignment breaks rules, find actual alignment], 2167 1930 pac_cv_c_double_alignment_exception,[ … … 2220 1983 dnl Possible values include yes, no, and unknown. 2221 1984 dnl 2222 AC_DEFUN( PAC_C_DOUBLE_POS_ALIGN,[1985 AC_DEFUN([PAC_C_DOUBLE_POS_ALIGN],[ 2223 1986 AC_CACHE_CHECK([if alignment of structs with doubles is based on position], 2224 1987 pac_cv_c_double_pos_align,[ … … 2264 2027 dnl Possible values include yes, no, and unknown. 2265 2028 dnl 2266 AC_DEFUN( PAC_C_LLINT_POS_ALIGN,[2029 AC_DEFUN([PAC_C_LLINT_POS_ALIGN],[ 2267 2030 AC_CACHE_CHECK([if alignment of structs with long long ints is based on position], 2268 2031 pac_cv_c_llint_pos_align,[ … … 2327 2090 dnl 2328 2091 dnl D*/ 2329 AC_DEFUN( PAC_FUNC_NEEDS_DECL,[2092 AC_DEFUN([PAC_FUNC_NEEDS_DECL],[ 2330 2093 AC_CACHE_CHECK([whether $2 needs a declaration], 2331 2094 pac_cv_func_decl_$2,[ … … 2351 2114 dnl autoheader can''t handle this case) 2352 2115 dnl D*/ 2353 AC_DEFUN( PAC_CHECK_SIZEOF_DERIVED,[2116 AC_DEFUN([PAC_CHECK_SIZEOF_DERIVED],[ 2354 2117 changequote(<<,>>)dnl 2355 2118 define(<<AC_TYPE_NAME>>,translit(sizeof_$1,[a-z *], [A-Z_P]))dnl … … 2381 2144 dnl autoheader can''t handle this case) 2382 2145 dnl D*/ 2383 AC_DEFUN( PAC_CHECK_SIZEOF_2TYPES,[2146 AC_DEFUN([PAC_CHECK_SIZEOF_2TYPES],[ 2384 2147 changequote(<<,>>)dnl 2385 2148 define(<<AC_TYPE_NAME>>,translit(sizeof_$1,[a-z *], [A-Z_P]))dnl -
mpich2/branches/dev/kumudb/confdb/aclocal_cross.m4
r3050 r4870 62 62 dnl platform 63 63 dnl 64 AC_DEFUN( PAC_LANG_PUSH_COMPILERS,[64 AC_DEFUN([PAC_LANG_PUSH_COMPILERS],[ 65 65 if test "X$pac_save_level" = "X" ; then 66 66 pac_save_CC="$CC" … … 178 178 dnl PAC_LANG_PUSH_COMPILERS 179 179 dnl D*/ 180 AC_DEFUN( PAC_LANG_POP_COMPILERS,[180 AC_DEFUN([PAC_LANG_POP_COMPILERS],[ 181 181 pac_save_level=`expr $pac_save_level - 1` 182 182 if test "X$pac_save_level" = "X0" ; then … … 193 193 fi 194 194 ]) 195 AC_DEFUN( PAC_PROG_TESTCPP,[195 AC_DEFUN([PAC_PROG_TESTCPP],[ 196 196 if test -z "$TESTCPP"; then 197 197 AC_CACHE_VAL(pac_cv_prog_TESTCPP,[ -
mpich2/branches/dev/kumudb/confdb/aclocal_csharp.m4
r100 r4870 18 18 dnl /optimize 19 19 dnl /unsafe (allow unsafe code) 20 AC_DEFUN( PAC_LANG_CSHARP,20 AC_DEFUN([PAC_LANG_CSHARP], 21 21 [AC_REQUIRE([PAC_PROG_CSHARP]) 22 22 define([AC_LANG], [CSHARP])dnl … … 30 30 dnl cross_compiling=$pac_cv_prog_csharp_cross 31 31 ]) 32 AC_DEFUN( PAC_PROG_CSHARP,[32 AC_DEFUN([PAC_PROG_CSHARP],[ 33 33 if test -z "$CSHARP" ; then 34 34 AC_CHECK_PROGS(CSHARP,csc) -
mpich2/branches/dev/kumudb/confdb/aclocal_cxx.m4
r556 r4870 11 11 dnl sets dirname to the name of the template directory, or to empty 12 12 dnl if it can not be determined. 13 AC_DEFUN( PAC_PROG_CXX_TEMPLATE_DIR,[13 AC_DEFUN([PAC_PROG_CXX_TEMPLATE_DIR],[ 14 14 AC_CACHE_CHECK([for C++ template repository directory name], 15 15 pac_cv_cxx_template_dir,[ … … 97 97 # compiler, but they should not HAVE to 98 98 # 99 AC_DEFUN( PAC_PROG_CXX_WORKS,99 AC_DEFUN([PAC_PROG_CXX_WORKS], 100 100 [AC_PROG_CXX_WORKS 101 101 AC_MSG_CHECKING([whether the C++ compiler sets its return status correctly]) … … 232 232 dnl variable containing the option name as the first argument. 233 233 dnl D*/ 234 AC_DEFUN( PAC_CXX_CHECK_COMPILER_OPTION,[234 AC_DEFUN([PAC_CXX_CHECK_COMPILER_OPTION],[ 235 235 AC_MSG_CHECKING([whether C++ compiler accepts option $1]) 236 236 save_CXXFLAGS="$CXXFLAGS" -
mpich2/branches/dev/kumudb/confdb/aclocal_enable.m4
r100 r4870 20 20 dnl HAVE_ENABLE_G_MEM=trace 21 21 dnl 22 AC_DEFUN( PAC_ARG_ENABLE_PARSE,[22 AC_DEFUN([PAC_ARG_ENABLE_PARSE],[ 23 23 eval ac_e_parse=${enable}_$1 24 24 save_IFS="$IFS" -
mpich2/branches/dev/kumudb/confdb/aclocal_f77.m4
r4384 r4870 39 39 dnl D*/ 40 40 dnl 41 AC_DEFUN( PAC_PROG_F77_NAME_MANGLE,[41 AC_DEFUN([PAC_PROG_F77_NAME_MANGLE],[ 42 42 AC_CACHE_CHECK([for Fortran 77 name mangling], 43 43 pac_cv_prog_f77_name_mangle, … … 300 300 dnl 301 301 dnl D*/ 302 AC_DEFUN( PAC_PROG_F77_CHECK_SIZEOF,[302 AC_DEFUN([PAC_PROG_F77_CHECK_SIZEOF],[ 303 303 changequote(<<, >>)dnl 304 304 dnl The name to #define. … … 377 377 dnl of the Portland Group compilers) 378 378 dnl 379 AC_DEFUN( PAC_PROG_F77_CHECK_SIZEOF_EXT,[379 AC_DEFUN([PAC_PROG_F77_CHECK_SIZEOF_EXT],[ 380 380 changequote(<<,>>)dnl 381 381 dnl The name to #define. … … 480 480 dnl 481 481 dnl D*/ 482 AC_DEFUN( PAC_PROG_F77_EXCLAIM_COMMENTS,[482 AC_DEFUN([PAC_PROG_F77_EXCLAIM_COMMENTS],[ 483 483 AC_CACHE_CHECK([whether Fortran accepts ! for comments], 484 484 pac_cv_prog_f77_exclaim_comments,[ … … 518 518 dnl variable containing the option name as the first argument. 519 519 dnl D*/ 520 AC_DEFUN( PAC_F77_CHECK_COMPILER_OPTION,[520 AC_DEFUN([PAC_F77_CHECK_COMPILER_OPTION],[ 521 521 AC_MSG_CHECKING([whether Fortran 77 compiler accepts option $1]) 522 522 ac_result="no" … … 641 641 dnl f_setarg( __libc_argc, __libc_argv ); 642 642 dnl 643 AC_DEFUN( PAC_PROG_F77_CMDARGS,[643 AC_DEFUN([PAC_PROG_F77_CMDARGS],[ 644 644 found_cached="yes" 645 645 AC_MSG_CHECKING([for routines to access the command line from Fortran 77]) … … 994 994 dnl a library. This failed when the HP compiler complained about the 995 995 dnl arguments, but produced an executable anyway. 996 AC_DEFUN( PAC_PROG_F77_LIBRARY_DIR_FLAG,[996 AC_DEFUN([PAC_PROG_F77_LIBRARY_DIR_FLAG],[ 997 997 if test "X$F77_LIBDIR_LEADER" = "X" ; then 998 998 AC_CACHE_CHECK([for Fortran 77 flag for library directories], … … 1058 1058 dnl 1059 1059 dnl D*/ 1060 AC_DEFUN( PAC_PROG_F77_HAS_INCDIR,[1060 AC_DEFUN([PAC_PROG_F77_HAS_INCDIR],[ 1061 1061 checkdir=$1 1062 1062 AC_CACHE_CHECK([for include directory flag for Fortran], … … 1101 1101 dnl 1102 1102 dnl D*/ 1103 AC_DEFUN( PAC_PROG_F77_ALLOWS_UNUSED_EXTERNALS,[1103 AC_DEFUN([PAC_PROG_F77_ALLOWS_UNUSED_EXTERNALS],[ 1104 1104 AC_CACHE_CHECK([whether Fortran allows unused externals], 1105 1105 pac_cv_prog_f77_allows_unused_externals,[ … … 1145 1145 dnl PAC_PROG_F77_HAS_POINTER(action-if-true,action-if-false) 1146 1146 dnl D*/ 1147 AC_DEFUN( PAC_PROG_F77_HAS_POINTER,[1147 AC_DEFUN([PAC_PROG_F77_HAS_POINTER],[ 1148 1148 AC_CACHE_CHECK([whether Fortran has pointer declaration], 1149 1149 pac_cv_prog_f77_has_pointer,[ … … 1172 1172 dnl to select the appropriate Fortran name. 1173 1173 dnl 1174 AC_DEFUN( PAC_PROG_F77_RUN_PROC_FROM_C,[1174 AC_DEFUN([PAC_PROG_F77_RUN_PROC_FROM_C],[ 1175 1175 # This is needed for Mac OSX 10.5 1176 1176 rm -rf conftest.dSYM … … 1223 1223 dnl 1224 1224 dnl 1225 AC_DEFUN( PAC_PROG_F77_IN_C_LIBS,[1225 AC_DEFUN([PAC_PROG_F77_IN_C_LIBS],[ 1226 1226 AC_MSG_CHECKING([for which Fortran libraries are needed to link C with Fortran]) 1227 1227 F77_IN_C_LIBS="$FLIBS" … … 1370 1370 dnl needed by C programs 1371 1371 dnl 1372 AC_DEFUN( PAC_PROG_F77_CHECK_FLIBS,1372 AC_DEFUN([PAC_PROG_F77_CHECK_FLIBS], 1373 1373 [AC_MSG_CHECKING([whether C can link with $FLIBS]) 1374 1374 # Try to link a C program with all of these libraries … … 1407 1407 dnl use the new form if it is available. 1408 1408 dnl 1409 AC_DEFUN( PAC_PROG_F77_NEW_CHAR_DECL,[1409 AC_DEFUN([PAC_PROG_F77_NEW_CHAR_DECL],[ 1410 1410 AC_CACHE_CHECK([whether Fortran supports new-style character declarations], 1411 1411 pac_cv_prog_f77_new_char_decl,[ … … 1593 1593 dnl 1594 1594 dnl 1595 AC_DEFUN( PAC_PROG_F77_OBJ_LINKS_WITH_C,[1595 AC_DEFUN([PAC_PROG_F77_OBJ_LINKS_WITH_C],[ 1596 1596 AC_MSG_CHECKING([whether Fortran 77 and C objects are compatible]) 1597 1597 dnl -
mpich2/branches/dev/kumudb/confdb/aclocal_f90.m4
r974 r4870 5 5 dnl that would require too many changes to autoconf macros. 6 6 dnl 7 AC_DEFUN( PAC_LANG_FORTRAN90,7 AC_DEFUN([PAC_LANG_FORTRAN90], 8 8 [AC_REQUIRE([PAC_PROG_F90]) 9 9 define([AC_LANG], [FORTRAN90])dnl … … 20 20 dnl This is an addition for AC_TRY_COMPILE, but for f90. If the current 21 21 dnl language is not f90, it does a save/restore 22 AC_DEFUN( PAC_TRY_F90_COMPILE,22 AC_DEFUN([PAC_TRY_F90_COMPILE], 23 23 [AC_REQUIRE([PAC_LANG_FORTRAN90]) 24 24 ifelse(AC_LANG, FORTRAN90,,[AC_LANG_SAVE … … 59 59 dnl of unknown, lower, upper 60 60 dnl D*/ 61 AC_DEFUN( PAC_F90_MODULE_EXT,61 AC_DEFUN([PAC_F90_MODULE_EXT], 62 62 [AC_CACHE_CHECK([for Fortran 90 module extension], 63 63 pac_cv_f90_module_ext,[ … … 134 134 dnl directories that contain compiled Fortran 90 modules 135 135 dnl 136 AC_DEFUN( PAC_F90_MODULE_INCFLAG,[136 AC_DEFUN([PAC_F90_MODULE_INCFLAG],[ 137 137 AC_CACHE_CHECK([for Fortran 90 module include flag], 138 138 pac_cv_f90_module_incflag,[ … … 227 227 F90MODINCFLAG=$pac_cv_f90_module_incflag 228 228 ]) 229 AC_DEFUN( PAC_F90_MODULE,[229 AC_DEFUN([PAC_F90_MODULE],[ 230 230 PAC_F90_MODULE_EXT 231 231 PAC_F90_MODULE_INCFLAG 232 232 ]) 233 AC_DEFUN( PAC_F90_EXT,[233 AC_DEFUN([PAC_F90_EXT],[ 234 234 AC_CACHE_CHECK([whether Fortran 90 accepts f90 suffix], 235 235 pac_cv_f90_ext_f90,[ … … 249 249 dnl 250 250 dnl D*/ 251 AC_DEFUN( PAC_PROG_F90_INT_KIND,[251 AC_DEFUN([PAC_PROG_F90_INT_KIND],[ 252 252 # Set the default 253 253 $1=-1 … … 325 325 # efc - An older Intel compiler (?) 326 326 # ifc - An older Intel compiler 327 AC_DEFUN( PAC_PROG_F90,[327 AC_DEFUN([PAC_PROG_F90],[ 328 328 if test -z "$F90" ; then 329 329 AC_CHECK_PROGS(F90,f90 xlf90 pgf90 ifort epcf90 f95 fort xlf95 lf95 pathf95 pathf90 g95 gfortran ifc efc) … … 353 353 dnl Internal routine for testing F90 354 354 dnl PAC_PROG_F90_WORKS() 355 AC_DEFUN( PAC_PROG_F90_WORKS,355 AC_DEFUN([PAC_PROG_F90_WORKS], 356 356 [AC_MSG_CHECKING([for extension for Fortran 90 programs]) 357 357 pac_cv_f90_ext="f90" … … 434 434 dnl We assume a naming convention consistent with the Fortran 77 one. 435 435 dnl 436 AC_DEFUN( PAC_PROG_F90_CHECK_SIZEOF,[436 AC_DEFUN([PAC_PROG_F90_CHECK_SIZEOF],[ 437 437 changequote(<<,>>)dnl 438 438 dnl The name to #define. … … 588 588 dnl PAC_PROG_F90_HAS_POINTER(action-if-true,action-if-false) 589 589 dnl D*/ 590 AC_DEFUN( PAC_PROG_F90_HAS_POINTER,[590 AC_DEFUN([PAC_PROG_F90_HAS_POINTER],[ 591 591 AC_CACHE_CHECK([whether Fortran 90 has Cray-style pointer declaration], 592 592 pac_cv_prog_f90_has_pointer,[ … … 629 629 dnl variable containing the option name as the first argument. 630 630 dnl D*/ 631 AC_DEFUN( PAC_F90_CHECK_COMPILER_OPTION,[631 AC_DEFUN([PAC_F90_CHECK_COMPILER_OPTION],[ 632 632 AC_MSG_CHECKING([whether Fortran 90 compiler accepts option $1]) 633 633 ac_result="no" -
mpich2/branches/dev/kumudb/confdb/aclocal_make.m4
r3050 r4870 18 18 dnl 19 19 dnl Find a make program if none is defined. 20 AC_DEFUN( PAC_PROG_MAKE_PROGRAM,[true20 AC_DEFUN([PAC_PROG_MAKE_PROGRAM],[true 21 21 if test "X$MAKE" = "X" ; then 22 22 AC_CHECK_PROGS(MAKE,make gnumake nmake pmake smake) … … 41 41 dnl D*/ 42 42 dnl 43 AC_DEFUN( PAC_PROG_MAKE_ECHOS_DIR,[43 AC_DEFUN([PAC_PROG_MAKE_ECHOS_DIR],[ 44 44 if test "$MAKE_MAY_PRINT_DIR" != "yes" ; then 45 45 AC_CACHE_CHECK([whether make echos directory changes], … … 47 47 [ 48 48 AC_REQUIRE([PAC_PROG_MAKE_PROGRAM]) 49 # This is needed for Mac OSX 10.5 50 rm -rf conftest.dSYM 49 51 rm -f conftest 50 52 cat > conftest <<. … … 69 71 pac_cv_prog_make_echos_dir="no" 70 72 fi 73 # This is needed for Mac OSX 10.5 74 rm -rf conftest.dSYM 71 75 rm -f conftest 72 76 str="" … … 97 101 dnl D*/ 98 102 dnl 99 AC_DEFUN( PAC_PROG_MAKE_INCLUDE,[103 AC_DEFUN([PAC_PROG_MAKE_INCLUDE],[ 100 104 AC_CACHE_CHECK([whether make supports include],pac_cv_prog_make_include,[ 101 105 AC_REQUIRE([PAC_PROG_MAKE_PROGRAM]) 106 # This is needed for Mac OSX 10.5 107 rm -rf conftest.dSYM 102 108 rm -f conftest 103 109 cat > conftest <<. … … 109 115 . 110 116 pac_str=`$MAKE -f conftest1 2>&1` 117 # This is needed for Mac OSX 10.5 118 rm -rf conftest.dSYM 111 119 rm -f conftest conftest1 112 120 if test "$pac_str" != "success" ; then … … 141 149 dnl D*/ 142 150 dnl 143 AC_DEFUN( PAC_PROG_MAKE_ALLOWS_COMMENTS,[151 AC_DEFUN([PAC_PROG_MAKE_ALLOWS_COMMENTS],[ 144 152 AC_CACHE_CHECK([whether make allows comments in actions], 145 153 pac_cv_prog_make_allows_comments,[ 146 154 AC_REQUIRE([PAC_PROG_MAKE_PROGRAM]) 155 # This is needed for Mac OSX 10.5 156 rm -rf conftest.dSYM 147 157 rm -f conftest 148 158 cat > conftest <<. … … 153 163 . 154 164 pac_str=`$MAKE -f conftest 2>&1` 165 # This is needed for Mac OSX 10.5 166 rm -rf conftest.dSYM 155 167 rm -f conftest 156 168 if test "$pac_str" != "success" ; then … … 195 207 dnl D*/ 196 208 dnl 197 AC_DEFUN( PAC_PROG_MAKE_VPATH,[209 AC_DEFUN([PAC_PROG_MAKE_VPATH],[ 198 210 AC_SUBST(VPATH)AM_IGNORE(VPATH) 199 211 AC_CACHE_CHECK([for virtual path format], … … 259 271 dnl PAC_PROG_MAKE 260 272 dnl D*/ 261 AC_DEFUN( PAC_PROG_MAKE_SET_CFLAGS,[273 AC_DEFUN([PAC_PROG_MAKE_SET_CFLAGS],[ 262 274 AC_CACHE_CHECK([whether make sets CFLAGS], 263 275 pac_cv_prog_make_set_cflags,[ 264 276 AC_REQUIRE([PAC_PROG_MAKE_PROGRAM]) 277 # This is needed for Mac OSX 10.5 278 rm -rf conftest.dSYM 265 279 rm -f conftest 266 280 cat > conftest <<EOF … … 270 284 EOF 271 285 pac_str=`$MAKE -f conftest 2>&1` 286 # This is needed for Mac OSX 10.5 287 rm -rf conftest.dSYM 272 288 rm -f conftest 273 289 if test "$pac_str" = "XX" ; then … … 290 306 dnl Sets the cache variable 'pac_cv_prog_make_found_clock_skew' to yes or no 291 307 dnl D*/ 292 AC_DEFUN( PAC_PROG_MAKE_CLOCK_SKEW,[308 AC_DEFUN([PAC_PROG_MAKE_CLOCK_SKEW],[ 293 309 AC_CACHE_CHECK([whether clock skew breaks make], 294 310 pac_cv_prog_make_found_clock_skew,[ … … 339 355 dnl 340 356 dnl D*/ 341 AC_DEFUN( PAC_PROG_MAKE_HAS_PATTERN_RULES,[357 AC_DEFUN([PAC_PROG_MAKE_HAS_PATTERN_RULES],[ 342 358 AC_CACHE_CHECK([whether make has pattern rules], 343 359 pac_cv_prog_make_has_patterns,[ … … 397 413 dnl D*/ 398 414 dnl 399 AC_DEFUN( PAC_PROG_MAKE,[415 AC_DEFUN([PAC_PROG_MAKE],[ 400 416 PAC_PROG_MAKE_PROGRAM 401 417 PAC_PROG_MAKE_CLOCK_SKEW -
mpich2/branches/dev/kumudb/confdb/aclocal_mpi.m4
r3623 r4870 24 24 dnl MPI-2 RMA? 25 25 dnl PAC_LIB_MPI([found text],[not found text]) 26 AC_DEFUN( PAC_LIB_MPI,[26 AC_DEFUN([PAC_LIB_MPI],[ 27 27 dnl Set the prereq to 2.50 to avoid having 28 28 AC_PREREQ(2.50) … … 72 72 dnl PAC_LIB_MPI 73 73 dnl D*/ 74 AC_DEFUN( PAC_ARG_MPICH_BUILDING,[74 AC_DEFUN([PAC_ARG_MPICH_BUILDING],[ 75 75 AC_ARG_WITH(mpichbuilding, 76 76 [--with-mpichbuilding - Assume that MPICH is being built], … … 115 115 dnl PAC_LANG_PUSH_COMPILERS, PAC_LIB_MPI 116 116 dnl D*/ 117 AC_DEFUN( PAC_ARG_MPI_TYPES,[117 AC_DEFUN([PAC_ARG_MPI_TYPES],[ 118 118 AC_PROVIDE([AC_PROG_CC]) 119 119 AC_SUBST(CC) … … 375 375 dnl Looks only for 'MPI_Request_c2f'. 376 376 dnl D*/ 377 AC_DEFUN( PAC_MPI_F2C,[377 AC_DEFUN([PAC_MPI_F2C],[ 378 378 AC_CACHE_CHECK([for MPI F2C and C2F routines], 379 379 pac_cv_mpi_f2c, … … 394 394 dnl expands @HAVE_ROMIO@ in mpi.h into #include "mpio.h" 395 395 dnl D*/ 396 AC_DEFUN( PAC_HAVE_ROMIO,[396 AC_DEFUN([PAC_HAVE_ROMIO],[ 397 397 if test "$enable_romio" = "yes" ; then HAVE_ROMIO='#include "mpio.h"'; fi 398 398 AC_SUBST(HAVE_ROMIO) -
mpich2/branches/dev/kumudb/confdb/aclocal_perl.m4
r100 r4870 2 2 dnl 3 3 dnl Find perl5 4 AC_DEFUN( PAC_PROG_PERL5,[4 AC_DEFUN([PAC_PROG_PERL5],[ 5 5 AC_CACHE_VAL(pac_cv_prog_perl, 6 6 [ -
mpich2/branches/dev/kumudb/confdb/aclocal_shl.m4
r2977 r4870 52 52 dnl search paths are specified and how shared library names are set. 53 53 dnl D*/ 54 AC_DEFUN( PAC_ARG_SHAREDLIBS,[54 AC_DEFUN([PAC_ARG_SHAREDLIBS],[ 55 55 AC_ARG_ENABLE(sharedlibs, 56 56 [--enable-sharedlibs=kind - Enable shared libraries. kind may be … … 218 218 dnl PAC_CC_SHAREDLIBS(type,CCvar,CLINKvar) 219 219 dnl D*/ 220 AC_DEFUN( PAC_CC_SHAREDLIBS,220 AC_DEFUN([PAC_CC_SHAREDLIBS], 221 221 [ 222 222 pac_kinds=$1 … … 283 283 dnl This is a more robust (and, in the case of libtool, only 284 284 dnl managable) method. 285 AC_DEFUN( PAC_CC_SUBDIR_SHLIBS,[285 AC_DEFUN([PAC_CC_SUBDIR_SHLIBS],[ 286 286 AC_SUBST(CC_SHL) 287 287 AC_SUBST(C_LINK_SHL) -
mpich2/branches/dev/kumudb/confdb/aclocal_subcfg.m4
r1000 r4870 3 3 dnl Call before invocation of mpich2's subpackage configure 4 4 dnl 5 AC_DEFUN( PAC_MPICH2_INIT,[5 AC_DEFUN([PAC_MPICH2_INIT],[ 6 6 # Exporting the MPICH2_INTERNAL_xFLAGS with modified xFLAGS 7 7 # before calling subconfigure. … … 32 32 dnl Called after AC_INIT before any of xFLAGS is accessed. 33 33 dnl 34 AC_DEFUN( PAC_SUBCONFIG_INIT,[34 AC_DEFUN([PAC_SUBCONFIG_INIT],[ 35 35 # Initialize xFLAGS with MPICH2_INTERNAL_xFLAGS. 36 if test "$FROM_MPICH2" = "yes" ; then 36 37 CFLAGS="$MPICH2_INTERNAL_CFLAGS" 37 38 CXXFLAGS="$MPICH2_INTERNAL_CXXFLAGS" 38 39 FFLAGS="$MPICH2_INTERNAL_FFLAGS" 39 40 F90FLAGS="$MPICH2_INTERNAL_F90FLAGS" 41 fi 40 42 ])dnl 41 43 dnl 42 44 dnl Do we need PAC_SUBCONFIG_FINALIZE or PAC_MPICH2_FINALIZE ? 43 45 dnl 44 AC_DEFUN( PAC_SUBCONFIG_FINALIZE,[46 AC_DEFUN([PAC_SUBCONFIG_FINALIZE],[ 45 47 ])dnl 46 AC_DEFUN( PAC_MPICH2_FINALIZE,[48 AC_DEFUN([PAC_MPICH2_FINALIZE],[ 47 49 ])dnl -
mpich2/branches/dev/kumudb/confdb/aclocal_util.m4
r670 r4870 3 3 dnl token is defined as string without any blank space in it. 4 4 dnl 5 AC_DEFUN( PAC_APPEND_UNIQ_TOKEN,[5 AC_DEFUN([PAC_APPEND_UNIQ_TOKEN],[ 6 6 dnl Since PAC_APPEND_UNIQ_TOKEN may be called by PAC_MAKE_UNIQ_STRING 7 7 dnl saved IFS should be in a different variable than MAKE_UNIQ_STRING's. … … 50 50 dnl duplicated substings. 51 51 dnl 52 AC_DEFUN( PAC_MAKE_UNIQ_STRING, [52 AC_DEFUN([PAC_MAKE_UNIQ_STRING], [ 53 53 saveIFS="$IFS" 54 54 dnl eval inflags=\$$1 -
mpich2/branches/dev/kumudb/confdb/aclocal_web.m4
r100 r4870 10 10 dnl D*/ 11 11 dnl 12 AC_DEFUN( PAC_ARG_WWWDIR,[12 AC_DEFUN([PAC_ARG_WWWDIR],[ 13 13 AC_ARG_WITH([wwwdir],[ 14 14 --with-wwwdir=directory - Specify the root directory for HTML documentation], -
mpich2/branches/dev/kumudb/configure.in
r4827 r4870 241 241 [--enable-echo - Turn on strong echoing. The default is enable=no.] ,set -x) 242 242 dnl 243 AC_ARG_ENABLE(strict,[--enable-strict - Turn on strict debugging with gcc],,enable_strict=no)244 243 dnl 245 244 AC_ARG_ENABLE(coverage, … … 1604 1603 # Set CFLAGS for enable strict if necessary. Do this *first* because 1605 1604 # it may influence the output of the other tests 1606 PAC_CC_STRICT 1605 AC_ARG_ENABLE(strict,[--enable-strict - Turn on strict debugging with gcc],,enable_strict=no) 1606 PAC_CC_STRICT($enable_strict) 1607 1607 if test -n "$pac_cc_strict_flags" ; then 1608 1608 MPICH2_EXTRA_CFLAGS="$MPICH2_EXTRA_CFLAGS $pac_cc_strict_flags" … … 1808 1808 fi 1809 1809 fi 1810 1811 # The MPI standard requires that MPI_Init in any language initialize 1812 # MPI in all languages. This can be a problem when objects produced 1813 # by the Fortran compiler require symbols from the Fortran runtime 1814 # (making linking C-only programs unnecessarily difficult). What we test 1815 # here is whether the much more restricted needs of the Fortran 1816 # initialize can be met with no special use of the Fortran runtime 1817 pac_f_init_works_with_c=unknown 1818 AC_MSG_CHECKING([whether Fortran init will work with C]) 1819 rm -f conftest* 1820 cat > conftestc.c <<EOF 1821 #include <stdio.h> 1822 #include "confdefs.h" 1823 #ifdef F77_NAME_UPPER 1824 #define minit_ MINIT 1825 #elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED) 1826 #define minit_ minit 1827 #endif 1828 int main( int argc, char *argv ) 1829 { 1830 minit_(); 1831 return 0; 1832 } 1833 char *v1 = 0; 1834 char *vc2 = 0; 1835 int v2 = 0; 1836 minitc_( char *dv1, int d, char *dv2, int d2, int dv3 ) 1837 { 1838 v1 = dv1; 1839 v2 = dv3; 1840 vc2 = dv2; 1841 *vc2 = ' '; 1842 } 1843 EOF 1844 cat > conftestf.f <<EOF 1845 subroutine minit() 1846 common /m1/ vc, vc2 1847 character *1 vc(1,1), vc2(1) 1848 common /m2/ vd 1849 integer vd 1850 save /m1/, /m2/ 1851 call minitc( vc, vc2, vd ) 1852 end 1853 EOF 1854 myfcompile='${F77-f77} -c $FFLAGS conftestf.f 1>&AC_FD_CC' 1855 myccompile='${CC-cc} -c $CFLAGS conftestc.c 1>&AC_FD_CC' 1856 if AC_TRY_EVAL(myfcompile) && test -s conftestf.o ; then 1857 : 1858 else 1859 echo "configure: failed program was:" >&AC_FD_CC 1860 cat conftestf.f >&AC_FD_CC 1861 fi 1862 if AC_TRY_EVAL(myccompile) && test -s conftestc.o ; then 1863 : 1864 else 1865 echo "configure: failed program was:" >&AC_FD_CC 1866 cat conftestc.c >&AC_FD_CC 1867 fi 1868 # Now try the link step 1869 myclink='${CC-cc} $CFLAGS -o conftest conftestc.o conftestf.o $LDFLAGS >conftest.out 2>&1' 1870 if AC_TRY_EVAL(myclink) && test -x conftest${ac_exeext} ; then 1871 pac_f_init_works_with_c=yes 1872 else 1873 pac_f_init_works_with_c=no 1874 fi 1875 AC_MSG_RESULT($pac_f_init_works_with_c) 1876 if test "$pac_f_init_works_with_c" = "yes" ; then 1877 AC_DEFINE(HAVE_MPI_F_INIT_WORKS_WITH_C,1,[Define if the Fortran init code for MPI works from C programs without special libraries]) 1878 fi 1810 1879 fi 1811 1880 … … 2630 2699 2631 2700 # Copy the mpicxx.h file to the main include directory 2701 # Move a working version of the mpicxx script to the bin directory 2702 # Create an alias mpic++ for mpicxx (BOOST, at least, makes invalid assumptions 2703 # about the name of the MPI C++ compilation script) 2632 2704 AC_OUTPUT_COMMANDS([if test $enable_cxx = yes ; then 2633 2705 if test "$bashWorks" = yes ; then cp -f src/env/mpicxx.bash src/env/mpicxx ; fi … … 2640 2712 src/env/mpicxx > bin/mpicxx ; 2641 2713 chmod a+x bin/mpicxx 2714 ln -sf mpicxx bin/mpic++ 2642 2715 else 2643 2716 rm -f src/env/mpicxx src/env/mpicxx.conf … … 3086 3159 PAC_C_VOLATILE 3087 3160 PAC_C_RESTRICT 3161 3162 saveCFLAGS=$CFLAGS 3163 CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 3088 3164 AC_C_INLINE 3165 CFLAGS=$saveCFLAGS 3166 3089 3167 PAC_C_GNU_ATTRIBUTE 3090 3168 # We need to check for the endianess in order to implement the … … 4277 4355 eval fullvarvalue=\$$fullvar 4278 4356 #echo "$fullvar = $fullvarvalue" 4279 if test "x$fullvarvalue" = "x" ; then 4357 if test "x$fullvarvalue" = "x" -o \ 4358 "x$fullvarvalue" = "xMPI_DATATYPE_NULL" ; then 4280 4359 eval $fullf77var="MPI_DATATYPE_NULL" 4281 continue4360 continue 4282 4361 fi 4283 4362 value=0 … … 5011 5090 if test "$ac_cv_func_vsnprintf" = "yes" ; then 5012 5091 # vsnprintf may be declared in stdio.h and may need stdarg.h 5092 saveCFLAGS=$CFLAGS 5093 CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 5013 5094 PAC_FUNC_NEEDS_DECL([#include <stdio.h> 5014 5095 #include <stdarg.h>],vsnprintf) 5096 CFLAGS=$saveCFLAGS 5015 5097 fi 5016 5098 # We would like to use strerror in the file namepublisher; it is also used … … 5021 5103 AC_CHECK_FUNCS(snprintf) 5022 5104 if test "$ac_cv_func_snprintf" = "yes" ; then 5105 saveCFLAGS=$CFLAGS 5106 CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 5023 5107 PAC_FUNC_NEEDS_DECL([#include <stdio.h>],snprintf) 5108 CFLAGS=$saveCFLAGS 5024 5109 fi 5025 5110 # if we are using stdarg, we may need va_copy . Test to see if we have it … … 5030 5115 # test in confdb/aclocal_cc.m4). 5031 5116 AC_CACHE_CHECK([for va_copy],pac_cv_func_va_copy,[ 5117 saveCFLAGS=$CFLAGS 5118 CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 5032 5119 AC_TRY_LINK([ 5033 5120 #include <stdarg.h> … … 5040 5127 } 5041 5128 ],[foo1("a test %d", 3);],pac_cv_func_va_copy=yes,pac_cv_func_va_copy=no)]) 5129 CFLAGS=$saveCFLAGS 5130 5042 5131 if test "$pac_cv_func_va_copy" = "yes" ; then 5043 5132 AC_DEFINE(HAVE_VA_COPY,1,[Define if we have va_copy]) 5044 fi 5045 # We might have __va_copy... 5046 if test "$pac_cv_func_va_copy" != "yes" ; then 5133 else 5047 5134 AC_CACHE_CHECK([for __va_copy],pac_cv_func___va_copy,[ 5135 saveCFLAGS=$CFLAGS 5136 CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 5048 5137 AC_TRY_LINK([ 5049 5138 #include <stdarg.h> … … 5056 5145 } 5057 5146 ],[foo1("a test %d", 3);],pac_cv_func___va_copy=yes,pac_cv_func___va_copy=no)]) 5147 CFLAGS=$saveCFLAGS 5058 5148 if test "$pac_cv_func___va_copy" = "yes" ; then 5059 AC_DEFINE(HAVE___VA_COPY,1,[Define if we have __va_copy])5149 AC_DEFINE(HAVE___VA_COPY,1,[Define if we have __va_copy]) 5060 5150 fi 5061 5151 fi … … 5091 5181 if test "$ac_cv_func_strdup" = "yes" ; then 5092 5182 # Do we need to declare strdup? 5183 saveCFLAGS=$CFLAGS 5184 CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 5093 5185 PAC_FUNC_NEEDS_DECL([#include <string.h>],strdup) 5186 CFLAGS=$saveCFLAGS 5094 5187 fi 5095 5188 else … … 5122 5215 AC_HAVE_FUNCS(mkstemp) 5123 5216 if test "$ac_cv_func_mkstemp" = "yes" ; then 5217 saveCFLAGS=$CFLAGS 5218 CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 5124 5219 PAC_FUNC_NEEDS_DECL([#include <stdlib.h>],mkstemp) 5220 CFLAGS=$saveCFLAGS 5125 5221 fi 5126 5222 # fdopen() converts from an fd to a FILE* 5127 5223 AC_HAVE_FUNCS(fdopen) 5128 5224 if test "$ac_cv_func_fdopen" = "yes" ; then 5225 saveCFLAGS=$CFLAGS 5226 CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 5129 5227 PAC_FUNC_NEEDS_DECL([#include <stdlib.h>],fdopen) 5228 CFLAGS=$saveCFLAGS 5130 5229 fi 5131 5230 # putenv() sets environment variable 5132 5231 AC_HAVE_FUNCS(putenv) 5133 5232 if test "$ac_cv_func_putenv" = "yes" ; then 5233 saveCFLAGS=$CFLAGS 5234 CFLAGS="$CFLAGS $MPICH2_EXTRA_CFLAGS" 5134 5235 PAC_FUNC_NEEDS_DECL([#include <stdlib.h>],putenv) 5236 CFLAGS=$saveCFLAGS 5135 5237 fi 5136 5238 … … 5715 5817 AC_DEFINE(HAVE_PTHREAD_MUTEX_RECURSIVE,1,[Define if PTHREAD_MUTEX_RECURSIVE is available in pthread.h]) 5716 5818 fi 5819 5820 # Check for PTHREAD_MUTEX_ERRORCHECK_NP and PTHREAD_MUTEX_ERRORCHECK 5821 AC_CACHE_CHECK([whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK_NP], 5822 pac_cv_has_pthread_mutex_errorcheck_np,[ 5823 AC_TRY_COMPILE([#include <pthread.h>], 5824 [int a=PTHREAD_MUTEX_ERRORCHECK_NP;], 5825 pac_cv_has_pthread_mutex_errorcheck_np=yes, 5826 pac_cv_has_pthread_mutex_errorcheck_np=no)]) 5827 AC_CACHE_CHECK([whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK], 5828 pac_cv_has_pthread_mutex_errorcheck,[ 5829 AC_TRY_COMPILE([#include <pthread.h>], 5830 [int a=PTHREAD_MUTEX_ERRORCHECK;], 5831 pac_cv_has_pthread_mutex_errorcheck=yes, 5832 pac_cv_has_pthread_mutex_errorcheck=no)]) 5833 5834 if test "$pac_cv_has_pthread_mutex_errorcheck" = yes ; then 5835 AC_DEFINE(PTHREAD_MUTEX_ERRORCHECK_VALUE,PTHREAD_MUTEX_ERRORCHECK, 5836 [Define to an expression that will result in an error checking mutex type.]) 5837 elif test "$pac_cv_has_pthread_mutex_errorcheck_np" = yes ; then 5838 AC_DEFINE(PTHREAD_MUTEX_ERRORCHECK_VALUE,PTHREAD_MUTEX_ERRORCHECK_NP, 5839 [Define to an expression that will result in an error checking mutex type.]) 5840 fi 5841 5717 5842 THR_LIBS="$THR_LIBS -lpthread" 5718 5843 MPICH2_THREAD_PACKAGE=pthreads -
mpich2/branches/dev/kumudb/doc/logging/logging.tex
r100 r4870 62 62 Most Unix systems 63 63 \item \texttt{linux86\_cycle} - 64 Linux x86 ; uses cycle counts to approximate time in seconds64 Linux x86 cycle counter* 65 65 \item \texttt{linuxalpha\_cycle} - 66 Like linux86\_cycle, but for Linux Alpha 66 Like linux86\_cycle, but for Linux Alpha* 67 67 \item \texttt{gcc\_ia64\_cycle} - 68 I PF ar.itc timer68 IA64 cycle counter* 69 69 \end{itemize} 70 * Note that CPU cycle counters count cycles, not elapsed time. 71 Because processor frequencies are variable, especially with modern 72 power-aware hardware, these are not always reliable for timing and so 73 should only be used if you're sure you know what you're doing. 74 70 75 \end{description} 71 76 … … 75 80 --enable-timing=log 76 81 --with-logging=rlog 77 --enable-timer-type= linux86_cycle82 --enable-timer-type=gettimeofday 78 83 ... 79 84 \end{verbatim} -
mpich2/branches/dev/kumudb/doc/windev/windev.tex.vin
r4568 r4870 521 521 host. The current user must match the user specifed by the \texttt{-add\_job job\_name username} 522 522 command. 523 524 \item \texttt{-binding process\_binding\_scheme} 525 Specify a process binding scheme for the MPI processes. Currently only \texttt{auto} 526 is the supported binding scheme. Using \texttt{auto} as the process binding scheme 527 the process manager will choose the process binding scheme automatically taking into 528 account the load on system resources like caches. 523 529 524 530 \item \texttt{-channel channel\_name} -
mpich2/branches/dev/kumudb/maint/Version
r4642 r4870 1 1.1 1 1.1.1 -
mpich2/branches/dev/kumudb/maint/clmake.in
r4500 r4870 17 17 "rm", "mv", "cp", "ar", "ranlib", "perl", "for", 18 18 "/bin/rm", "/bin/mv", "/bin/cp", 19 "if", "make", "gnumake", "[A-Za-z0-9_\/\.-]*\/mpicc", 19 "if", "make", "gnumake", 20 "[A-Za-z0-9_\/\.-]*\/mpicc", 21 "[A-Za-z0-9_\/\.-]*\/mpif77", 22 "[A-Za-z0-9_\/\.-]*\/mpif90", 23 "[A-Za-z0-9_\/\.-]*\/mpicxx", 20 24 "cleaning", "sleep", "date", "g77", "f77", "f90", "f95", "pgCC", 21 25 "pgf77", "pgf90", "CC", "g95", "g\\+\\+", "c\\+\\+", … … 27 31 "/bin/sh\\s+[A-Za-z0-9_\/\.-]*libtool\\s+--finish", 28 32 "/bin/bash\\s+[A-Za-z0-9_\/\.-]*libtool\\s+--finish", 33 "libtool:\\s+compile:", 34 "libtool:\\s+link:", 35 "libtool:\\s+install:", 36 "libtool:\\s+finish:", 29 37 "[A-Za-z0-9_\/-]*\/icc", 30 38 "[A-Za-z0-9_\/-]*\/install-sh", -
mpich2/branches/dev/kumudb/maint/impgen.vcproj
r3902 r4870 258 258 > 259 259 <File 260 RelativePath=".\gccimpgen.c "260 RelativePath=".\gccimpgen.cpp" 261 261 > 262 262 </File> -
mpich2/branches/dev/kumudb/maint/release.pl
r4585 r4870 14 14 15 15 # This path is the default for the MCS home directory mounts. Pass 16 # --with-autoconf='' to this script to use whatever is in your path. 17 my $with_autoconf = "/homes/goodell/autoconf/ac-2.62_am-1.10.2/bin"; 16 # --with-autoconf='' and --with-automake='' options to this script to 17 # use whatever is in your path. 18 my $with_autoconf = "/homes/balaji/projects/autotools/install/bin"; 19 my $with_automake = "/homes/balaji/projects/autotools/install/bin"; 18 20 19 21 my $logfile = "release.log"; … … 30 32 31 33 print "===> Checking for package $pack... "; 32 if ($with_autoconf and ($pack eq "autoconf" or $pack eq "automake")) {33 # the user specified a dir where autoconf /automakecan be found34 if ($with_autoconf and ($pack eq "autoconf")) { 35 # the user specified a dir where autoconf can be found 34 36 if (not -x "$with_autoconf/$pack") { 37 print "not found\n"; 38 exit; 39 } 40 } 41 if ($with_automake and ($pack eq "automake")) { 42 # the user specified a dir where automake can be found 43 if (not -x "$with_automake/$pack") { 35 44 print "not found\n"; 36 45 exit; … … 107 116 my $cmd = "./maint/updatefiles"; 108 117 $cmd .= " --with-autoconf=$with_autoconf" if $with_autoconf; 118 $cmd .= " --with-automake=$with_automake" if $with_automake; 109 119 run_cmd($cmd); 110 120 } … … 128 138 my $cmd = "./maint/updatefiles"; 129 139 $cmd .= " --with-autoconf=$with_autoconf" if $with_autoconf; 140 $cmd .= " --with-automake=$with_automake" if $with_automake; 130 141 run_cmd($cmd); 131 142 } … … 202 213 debug("===> Creating configure... "); 203 214 chdir("${root}/mpe2"); 204 run_cmd("./maint/updatefiles --with-autoconf=/homes/chan/autoconf/2.62/bin"); 215 { 216 my $cmd = "./maint/updatefiles"; 217 $cmd .= " --with-autoconf=$with_autoconf" if $with_autoconf; 218 $cmd .= " --with-automake=$with_automake" if $with_automake; 219 run_cmd($cmd); 220 } 205 221 debug("done\n"); 206 222 … … 223 239 "package:s" => \$pack, 224 240 "with-autoconf" => \$with_autoconf, 241 "with-automake" => \$with_automake, 225 242 "help" => \&usage, 226 243 ) or die "unable to parse options, stopped"; -
mpich2/branches/dev/kumudb/maint/simplemake.in
r4869 r4870 1755 1755 # is applied. 1756 1756 &RecursiveOp( "apply" ); 1757 &TargetPostamble( "apply" ); 1757 1758 1758 1759 # Clean targets … … 2769 2770 # Finally, execute make clean in any subdirs 2770 2771 &RecursiveOp( "clean" ); 2772 &TargetPostamble( "clean" ); 2771 2773 2772 2774 # -------------------------------------------- … … 2778 2780 } 2779 2781 print FD " distclean-xxx remove-makefile"; 2782 &TargetPostamble( "distclean" ); 2783 2780 2784 print FD "$newline"; 2781 2785 … … 2851 2855 } 2852 2856 print FD " distclean-xxx remove-genmakefiles"; 2857 &TargetPostamble( "maintainer-clean" ); 2853 2858 print FD "$newline"; 2854 2859 … … 4046 4051 } 4047 4052 } 4053 &TargetPostamble( "install" ); 4048 4054 print FD "$newline"; 4049 4055 … … 4103 4109 &RecursiveOp( "uninstall", "install_subdirs" ); 4104 4110 } 4111 &TargetPostamble( "uninstall" ); 4105 4112 4106 4113 # also add the recursive installcheck target … … 4896 4903 } 4897 4904 &RecursiveOp( "coverage" ); 4905 &TargetPostamble( "coverage" ); 4898 4906 } 4899 4907 # -
mpich2/branches/dev/kumudb/maint/updatefiles
r4713 r4870 40 40 41 41 openpa_dir="src/openpa" 42 mpl_dir="src/pm/hydra/mpl"42 hydra_dir="src/pm/hydra" 43 43 44 44 # List of steps that we will consider … … 51 51 automakedir="" 52 52 autotoolsdir="" 53 # Extract defaults from the environment 54 if [ "x$MPICH2_AUTOCONF_DIR" != "x" ] ; then 55 autoconfdir=$MPICH2_AUTOCONF_DIR 56 fi 57 if [ "x$MPICH2_AUTOMAKE_DIR" != "x" ] ; then 58 automakedir=$MPICH2_AUTOMAKE_DIR 59 fi 60 if [ "x$MPICH2_AUTOTOOLS_DIR" != "x" ] ; then 61 autotoolsdir=$MPICH2_AUTOTOOLS_DIR 62 fi 53 63 # 54 64 # Extract the arguments intended for updatefiles. Any others are … … 628 638 continue 629 639 fi 630 q mpl=`echo $dir | sed -e 's%.*'"$mpl_dir"'.*%FOUNDMPL%'`631 if [ "$q mpl" = "FOUNDMPL" ] ; then632 # mplis updated using autoreconf later in this script640 qhydra=`echo $dir | sed -e 's%.*'"$hydra_dir"'.*%FOUNDHYDRA%'` 641 if [ "$qhydra" = "FOUNDHYDRA" ] ; then 642 # hydra is updated using autoreconf later in this script 633 643 continue 634 644 fi … … 864 874 (cd $openpa_dir && $autoreconf -vif) || exit 1 865 875 fi 866 if [ -d "$ mpl_dir" -o -L "$mpl_dir" ] ; then867 echo "running autoreconf in $ mpl_dir"868 (cd $ mpl_dir && $autoreconf -vif) || exit 1876 if [ -d "$hydra_dir" -o -L "$hydra_dir" ] ; then 877 echo "running autoreconf in $hydra_dir" 878 (cd $hydra_dir && $autoreconf -vif) || exit 1 869 879 fi 870 880 -
mpich2/branches/dev/kumudb/src/binding/cxx/buildiface
r4250 r4870 409 409 # 'Create_keyval' => 'int', 410 410 'Free_keyval' => 'static:0:1', 411 # this routine is special and cannot be auto-generated 412 # 'Call_errhandler' => 0, 411 'Call_errhandler' => 0, 413 412 'Set_name' => '0:2', 414 413 'Get_name' => '0:3', … … 530 529 'Get_errhandler' => 'MPI_Errhandler', 531 530 'Set_errhandler' => 0, 532 # this routine is special and cannot be autogenerated 533 #'Call_errhandler' => 0, 531 'Call_errhandler' => 0, 534 532 ); 535 533 # %class_mpi2file = ( … … 595 593 'Fence' => '0', 596 594 'Get_group' => 'MPI_Group', 597 # this routine is special and cannot be auto-generated 598 #'Call_errhandler' => 0, 595 'Call_errhandler' => 0, 599 596 'Get_attr' => '0', 600 597 'Start' => '0', … … 1006 1003 $defer_definition{"Join"} = "Comm"; 1007 1004 $defer_definition{"Merge"} = "Intercomm"; 1005 $defer_definition{"Call_errhandler"} = "Comm"; 1006 $defer_definition{"Call_errhandler"} = "File"; 1007 $defer_definition{"Call_errhandler"} = "Win"; 1008 1008 1009 1009 $dtype_Get_name_init = " MPIR_CXX_InitDatatypeNames();"; … … 3267 3267 *(void **)attr_out = attr_in; return 0;} 3268 3268 static Errhandler Create_errhandler( Errhandler_fn * ); 3269 virtual void Call_errhandler( int errcode ) const;3270 3269 \n"; 3271 3270 } … … 3278 3277 3279 3278 static Errhandler Create_errhandler( Errhandler_fn * ); 3280 virtual void Call_errhandler( int errcode ) const;3281 3279 \n"; 3282 3280 } … … 3289 3287 3290 3288 static Errhandler Create_errhandler( Errhandler_fn * ); 3291 virtual void Call_errhandler( int errcode ) const;3292 3289 3293 3290 typedef int Copy_attr_function(const Win& oldwin, int win_keyval, void* extra_state, void* attribute_val_in, void* attribute_val_out, bool& flag); -
mpich2/branches/dev/kumudb/src/binding/f77/buildiface
r4624 r4870 83 83 # Fortran runtime. Thus, we must check whether the values are initialized 84 84 # before any use in any routine. 85 # 86 # Having said the above, however, if the environment (specifically, the 87 # C and Fortran compilers) makes it easy for the C init routines to initialize 88 # the Fortran environment, then we should make that easy. This is indicated 89 # by the CPP name HAVE_MPI_F_INIT_WORKS_WITH_C. If that is defined, then 90 # there is no lazy initialization of these values. 85 91 $specialInitAdded = 0; 86 92 $specialInitString = "\ 87 if (MPIR_F_NeedInit){ mpirinitf_(); MPIR_F_NeedInit = 0; }"; 93 #ifndef HAVE_MPI_F_INIT_WORKS_WITH_C 94 if (MPIR_F_NeedInit){ mpirinitf_(); MPIR_F_NeedInit = 0; } 95 #endif"; 88 96 89 97 # Process arguments -
mpich2/branches/dev/kumudb/src/binding/f90/configure.in
r604 r4870 65 65 # Get the C compiler (needed for type_create_f90_xxx functions) 66 66 PAC_PROG_CC 67 dnl Set CFLAGS for enable strict if necessary 68 PAC_ CC_STRICT67 68 PAC_ARG_STRICT 69 69 AC_C_CONST 70 70 -
mpich2/branches/dev/kumudb/src/env/Makefile.sm
