adios-1.5.0/0000755000175000017500000000000012251360200013735 5ustar amckinstryamckinstryadios-1.5.0/Makefile.am0000644000175000017500000000346412251360163016010 0ustar amckinstryamckinstryACLOCAL_AMFLAGS=-I config SUBDIRS=src utils tests examples EXTRA_DIST = runconf \ KNOWN_BUGS \ adios_config \ scripts/create.nssi.config.sh \ scripts/kill.nssi.staging.sh \ scripts/start.nssi.staging.sh # wrappers/matlab/Makefile \ # wrappers/matlab/adios.m \ # wrappers/matlab/adiosclose.m \ # wrappers/matlab/adiosopen.m \ # wrappers/matlab/adiosread.m \ # wrappers/matlab/adiosclosec.c \ # wrappers/matlab/adiosopenc.c \ # wrappers/matlab/adiosreadc.c bin_SCRIPTS = adios_config if HAVE_NSSI bin_SCRIPTS += scripts/create.nssi.config.sh \ scripts/kill.nssi.staging.sh \ scripts/start.nssi.staging.sh endif #install-data-hook: # echo -n "VERSIONSTRING=\"$(PACKAGE) version $(VERSION) svn revision " >> adios_config.flags # if type svnversion &>/dev/null; then \ # echo `svnversion`\" >> adios_config.flags; \ # else \ # echo "unknown\"" >> adios_config.flags; \ # echo "Error: svnversion command not found"; \ # fi # cp adios_config.flags $(DESTDIR)$(bindir) install-data-hook: echo "SRCDIR=\"$(PWD)\"" >> adios_config.flags; \ if git rev-parse --git-dir &>/dev/null; then \ echo "GITLOG=\"`git log -n 1 --format=\"Last commit on %ad hash %h\"`\"" > git.status; \ echo "read -d '' GITSTAT <<'_EOF_'" >> git.status; \ git status -uno >> git.status; \ echo "_EOF_" >> git.status; \ else \ echo "GITLOG=\"git log not available\"" >> git.status; \ echo "GITSTAT=\"git status not available\"" >> git.status; \ echo "Note: git command not found or $(PWD) is not a git repository."; \ fi cp adios_config.flags $(DESTDIR)$(bindir) cp git.status $(DESTDIR)$(bindir) adios-1.5.0/scripts/0000755000175000017500000000000012251360163015434 5ustar amckinstryamckinstryadios-1.5.0/scripts/create.nssi.config.sh0000755000175000017500000000166612251360163021466 0ustar amckinstryamckinstry#!/bin/bash CONFIG_FILE=$1 ; shift SERVER_CONTACT_INFO=$1 ; shift CONFIG_FRAG=/tmp/config.frag.$PBS_JOBID while [ ! -s ${SERVER_CONTACT_INFO} ]; do echo "waiting for contact info. retry in 1 second..." sleep 1 done ls -l ${SERVER_CONTACT_INFO} cat >$CONFIG_FRAG< HERE SVC_LIST=`cat ${SERVER_CONTACT_INFO} | awk '{ ML=$0" "ML } END { print ML }'` for SVC in $SVC_LIST; do SVC_NID=`echo $SVC | sed -e 's/\(.*\)@\(.*\)@\(.*\)@\(.*\)/\1/'` SVC_PID=`echo $SVC | sed -e 's/\(.*\)@\(.*\)@\(.*\)@\(.*\)/\2/'` SVC_ADDR=`echo $SVC | sed -e 's/\(.*\)@\(.*\)@\(.*\)@\(.*\)/\3/'` SVC_PORT=`echo $SVC | sed -e 's/\(.*\)@\(.*\)@\(.*\)@\(.*\)/\4/'` cat>>$CONFIG_FRAG< HERE done cat >>$CONFIG_FRAG< HERE mv $CONFIG_FRAG $CONFIG_FILE adios-1.5.0/scripts/start.nssi.staging.sh0000755000175000017500000000036312251360163021540 0ustar amckinstryamckinstry#!/bin/sh SERVICE_COUNT=$1 ; shift SERVICE_CONFIG_FILE=$1 ; shift rm $ADIOS_NSSI_CONTACT_INFO aprun -n $SERVICE_COUNT -N 1 $ADIOS_DIR/bin/nssi-staging-server $SERVICE_CONFIG_FILE while [ ! -s $ADIOS_NSSI_CONTACT_INFO ] do sleep 1 done adios-1.5.0/scripts/kill.nssi.staging.sh0000755000175000017500000000071412251360163021336 0ustar amckinstryamckinstry#!/bin/sh SERVER_CONTACT_INFO=$1 ; shift SVC=`head -1 ${SERVER_CONTACT_INFO} | awk '{ ML=$0" "ML } END { print ML }'` SVC_NID=`echo $SVC | sed -e 's/\(.*\)@\(.*\)@\(.*\)@\(.*\)/\1/'` SVC_PID=`echo $SVC | sed -e 's/\(.*\)@\(.*\)@\(.*\)@\(.*\)/\2/'` SVC_ADDR=`echo $SVC | sed -e 's/\(.*\)@\(.*\)@\(.*\)@\(.*\)/\3/'` SVC_PORT=`echo $SVC | sed -e 's/\(.*\)@\(.*\)@\(.*\)@\(.*\)/\4/'` $ADIOS_DIR/nssi/bin/nssi-kill --server-nid="$SVC_NID" --server-pid="$SVC_PID" adios-1.5.0/NEWS0000644000175000017500000001000012251360163014433 0ustar amckinstryamckinstry1.5.0 Release June 2013 - Changes to Write API: - adios_init() and adios_init_noxml() has MPI_Comm argument - adios_open() has MPI_comm argument instead of void * argument - Changes to Read API: - adios_read_open_stream() obsolete and now it's called adios_read_open() indicating that it's used for both files and staged data. - New staging methods: - DIMES - FLEXPATH - CMAKE build files (besides Automake files) - New write method VAR_MERGE for spatial aggregation of small per-process-output into larger chunks. It improves both write and read performance for such applications. - fix: segfault in adios_inq_var_blockinfo() - fix: endianness independence ( - fix: in adios_inq_var_stat() for getting statistics (avg, std.dev) - fix: backward compatibility in reading old BP files containing scalars over time (a 1D array) 1.4.1 Release Dec 2012 - aggregated file reader method (from 1.3.1): use ADIOS_READ_METHOD_BP_AGGREGATE - memory limitation specified by user for chunked reading now taken into account in file reading - stage writer example code for staged I/O see examples/stage_write - code coupling example code for file-based/staged coupling see examples/coupling - bp2h5 supports converting complex and double complex types - new adios_write_byid() function to write multiple-blocks of the same global array from a process - fix: F90 modules: adios_write, adios_schedule_read - fix: invalid "out of bound" errors when reading multiple steps of multi-dimensional arrays - fix: double-free bug in support of old read API in Fortran - fix: backward compatibility of old read API to read multi-group files (fixed "invalid variable id..." errors) 1.4.0 Release July 2012 - new read API for staging method with step-by-step processing, also with non-blocking and chunking APIs - visualization schema added to ADIOS XML format - skel: I/O skeleton generator and evaluation tools - unified error/debug logging - attributes written from only 1 processor to save on metadata - ADIOS version identifier in ADIOS-BP format - extra hidden attributes (version, create/update times) - Java and Python bindings - F90 modules adios_write_mod and adios_read_mod to check syntax at compile time 1.3.1 Released Nov 2011 - fix: non-compliant MPI collective calls - fix: MPI_AMR method caused MPI_Finalize issues on some clusters - fix: histogram calculation: freeing memory too early 1.3 Released July 12, 2011 - New read method BP_STAGED for reading files with improved performance - Changes in MPI_AMR and MPI_LUSTRE to support default parameters. Parameters for MPI_LUSTRE and MPI_AMR in XML file are not mandatory any more. 1.2.1 Released Aug 25, 2010 - Bug fix in read API (arrays written every timestep but without time dimension caused aborts) - DIMES method from Rutgers 1.2 Released July 15, 2010 - XML and non-XML write APIs are available - More statistics (min/max/avg/std.dev) available without overhead in write performance - Added MPI_AMR method for advanced mesh refinement codes and for aggregated writing (N procs to P writers to M disks) - Added support for subfiles - POSIX method many-file output can be read as one file - MPI_AMR method uses subfiles to improve write performance - Added NetCDF-4 transport method - Asynchronous, staging methods on Jaguar XT5 at ORNL - DataTap from Georgia Tech - DataSpaces from Rutgers - NSSI from Sandia - MPI_LUSTRE method for best performance on Lustre file system 1.0.1 Released on Dec 9, 2009 - fix: builds read API on Mac (was broken at utils/bpdump) - fix: Fortran written BP files are correctly read by Fortran readers - added adios_mpi_stripe2 method for improved performance on Lustre file system 1.0 Released on Nov 18, 2009 adios-1.5.0/adios_config0000755000175000017500000001133512251360163016322 0ustar amckinstryamckinstry#!/bin/bash # # Print compiler/linker flags to use ADIOS # # Configuration values from configure script # FLAGSFILE=`dirname $0`/adios_config.flags if [ ! -f ${FLAGSFILE} ]; then echo "ERROR: settings file ${FLAGSFILE} not found." exit 1 fi . ${FLAGSFILE} GITSTATFILE=`dirname $0`/git.status if [ -f ${GITSTATFILE} ]; then . ${GITSTATFILE} fi function Usage () { echo "`basename $0` [-d | -c | -l] [-f] [-r] [-s] [-1] [-v] [-i] Arguments -d Base directory for ADIOS install -c Compiler flags for C/C++, using ADIOS write/read methods -l Linker flags for C/C++, using ADIOS write/read methods -f Print above flags for Fortran90 -r Print above flags for using ADIOS read library only. -s Print above flags for using ADIOS in a sequential code (no MPI). -1 Print above flags for using old Read API of ADIOS. -v Version of the installed package -i More installation information about the package Notes - Multiple options of d,c,l are enabled. In such a case, the output is a list of FLAG=flags, where FLAG is one of (DIR, CFLAGS, LDFLAGS) - If none of d,c,l are given, all of them is printed - If none of f,r,s are given, flags for C/C++, using ADIOS write/read methods are printed " } # default PRINT_DIR=no PRINT_CFLAGS=no PRINT_LDFLAGS=no OPT_FORTRAN=no OPT_READ=no OPT_SEQ=no NFLAGS_ASKED=0 while getopts ":dclfrs1vih" Option do case $Option in d) PRINT_DIR=yes; let "NFLAGS_ASKED=NFLAGS_ASKED+1";; c) PRINT_CFLAGS=yes; let "NFLAGS_ASKED=NFLAGS_ASKED+1";; l) PRINT_LDFLAGS=yes; let "NFLAGS_ASKED=NFLAGS_ASKED+1";; f) OPT_FORTRAN=yes;; r) OPT_READ=yes;; s) OPT_SEQ=yes;; 1) OPT_V1=yes;; v) echo "$VERSIONSTRING"; exit 0;; i) echo "ADIOS $VERSIONSTRING"; echo "Installed from source directory: $SRCDIR"; if [ ! -z "$GITLOG" ]; then echo "$GITLOG"; fi if [ ! -z "$GITSTAT" ]; then echo "Git status of source directory:"; echo "$GITSTAT"; fi exit 0;; h) Usage; exit 0;; *) echo "Invalid option -$Option."; Usage; exit 255;; # DEFAULT esac done shift $(($OPTIND - 1)) if [ $NFLAGS_ASKED == 0 ]; then NFLAGS_ASKED=3; PRINT_DIR=yes PRINT_CFLAGS=yes PRINT_LDFLAGS=yes fi #if [ "$OPT_SEQ" == "yes" ]; then # OPT_READ=yes #fi # Print requested values if [ "$PRINT_DIR" == "yes" ]; then if [ $NFLAGS_ASKED -gt 1 ]; then echo -n "DIR=" fi echo $ADIOS_DIR fi if [ "$PRINT_CFLAGS" == "yes" ]; then if [ "$OPT_READ" == "yes" ]; then if [ "$OPT_SEQ" == "yes" ]; then if [ "$OPT_V1" == "yes" ]; then CFLAGS="$ADIOSREAD_SEQ_V1_INC" else CFLAGS="$ADIOSREAD_SEQ_INC" fi else if [ "$OPT_V1" == "yes" ]; then CFLAGS="$ADIOSREAD_V1_INC" else CFLAGS="$ADIOSREAD_INC" fi fi else if [ "$OPT_SEQ" == "yes" ]; then CFLAGS="$ADIOS_SEQ_INC" else CFLAGS="$ADIOS_INC" fi fi if [ $NFLAGS_ASKED -gt 1 ]; then echo -n "CFLAGS=" fi echo $CFLAGS fi if [ "$PRINT_LDFLAGS" == "yes" ]; then if [ "$OPT_SEQ" == "yes" ]; then if [ "$OPT_READ" == "yes" ]; then # ADIOSREAD + SEQ if [ "$OPT_FORTRAN" == "yes" ]; then if [ "$OPT_V1" == "yes" ]; then LDFLAGS="$ADIOSREAD_SEQ_V1_FLIB" else LDFLAGS="$ADIOSREAD_SEQ_FLIB" fi else LDFLAGS="$ADIOSREAD_SEQ_CLIB" fi else # ADIOS + SEQ if [ "$OPT_FORTRAN" == "yes" ]; then if [ "$OPT_V1" == "yes" ]; then LDFLAGS="$ADIOS_SEQ_V1_FLIB" else LDFLAGS="$ADIOS_SEQ_FLIB" fi else LDFLAGS="$ADIOS_SEQ_CLIB" fi fi elif [ "$OPT_READ" == "yes" ]; then # ADIOSREAD + parallel code if [ "$OPT_FORTRAN" == "yes" ]; then if [ "$OPT_V1" == "yes" ]; then LDFLAGS="$ADIOSREAD_V1_FLIB" else LDFLAGS="$ADIOSREAD_FLIB" fi else LDFLAGS="$ADIOSREAD_CLIB" fi else # ADIOS + parallel code if [ "$OPT_FORTRAN" == "yes" ]; then if [ "$OPT_V1" == "yes" ]; then LDFLAGS="$ADIOS_V1_FLIB" else LDFLAGS="$ADIOS_FLIB" fi else LDFLAGS="$ADIOS_CLIB" fi fi if [ $NFLAGS_ASKED -gt 1 ]; then echo -n "LDFLAGS=" fi echo $LDFLAGS fi adios-1.5.0/INSTALL0000644000175000017500000001506612251360163015006 0ustar amckinstryamckinstryInstallation Instructions for ADIOS Software ================================================== This file provides instructions for installing the ADIOS software. If you have any problems with the installation, please see the ADIOS support page at the following location: http://www.nccs.gov/user-support/adios Obtaining ADIOS =============== You can download the latest ADIOS source package from the ADIOS home page. Requirements and optional features ================================== - ADIOS requires MPI and MPI-IO. - ADIOS requires a version 2.5 or higher of Mini-XML. The Mini-XML library is used to parse XML configuration files. It can be downloaded from http://www.minixml.org/software.php - A Fortran 90 compiler is optional. The Fortran API is built only if a Fortran 90 compiler is available. Use --disable-fortran at configuration time to disable this feature. - NetCDF-3 is optional. The bp2ncd converter utility to NetCDF format is built only if NetCDF is available. Currently ADIOS uses the NetCDF-3 library. Use the option --with netcdf= or ensure that the NETCDF_DIR environment variable is set before configuring ADIOS. NetCDF version 3.6.2 can be downloaded from http://www.unidata.ucar.edu/downloads/netcdf - HDF5 is optional. The bp2h5 converter utility to HDF5 format is built only if a HDF5 library is available. Currently ADIOS uses the 1.6 version of the HDF5 API but it can be built and used with the 1.8.x version of the HDF5 library too. Use the option --with hdf5= to configure ADIOS. HDF5 can be downloaded from http://www.hdfgroup.org/downloads - Parallel HDF5 is optional. The transport method writing files in the Parallel HDF5 format is built only if a parallel version of the HDF5 library is (also) available. You need to use the option with phdf5= to build this transport method. If you define Parallel HDF5 and do not define serial HDF5, then bp2h5 will be built with the parallel library. Note that if you build this transport method, ADIOS will depend on PHDF5 when you link any application with ADIOS even if you the application does not intend to use this method. If you have problems compiling ADIOS with PHDF5 due to missing flags or libraries, you can define them using --with-phdf5-incdir=, --with-phdf5-libdir= and --with-phdf5-libs= - NetCDF-4 Parallel is optional. The NC4 transport method writes files using the NetCDF-4 library which in turn is based on the parallel HDF5 library. You need to use the option -- with nc4par= to build this transport method. Also, you need the parallel HDF5 library. NetCDF version 4.0.1 can be downloaded from http://www.unidata.ucar.edu/downloads/netcdf You need to build NetCDF-4 with a parallel HDF5 library as described at http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/parallel.html - Matlab is optional. If you have Matlab, you can build the ADIOS reader for Matlab separatly after building ADIOS. See details below in the Matlab section but before configuring ADIOS. Quick Installation ================== The following steps are needed to configure, build and install ADIOS. For example, to install ADIOS to /usr/local/adios on a machine where mpicc and mpif90 are the compilers: $ tar zxf adios-1.0.tar.gz $ cd adios-1.0 $ CC=mpicc FC=mpif90 ./configure --prefix=/usr/local/adios --with-mxml= --with-hdf5= --with-netcdf= $ make $ make install Full installation instructions ============================== Architectures and compilers --------------------------- Cray XT machines ---------------- Use "CC=cc CXX=CC FC=ftn" for the configure command. These wrappers should be using the actual C, C++ and Fortran compilers on such machines. ADIOS can be compiled with GNU, PGI and Intel compilers but it does not compile with the Cray compiler. If you are using the Cray compilers to build your application build the ADIOS library with the GNU compiler. BlueGene machines ----------------- Use the following compiler settings for the configure command: MPICC=mpixlc_r MPIFC=mpixlf90_r CC=xlc_r FC=xlf90_r Mac OSX ------- Use separate MPICC/MPIFC and CC/FC compilers Add export CFLAGS="-DO_LARGEFILE=0 -fno-common" before configuring adios. If you do not want to install a fortran compiler on Mac, use --disable-fortran at configure. We have built ADIOS on OS X 10.6 using MacPorts and GCC4.4 and OpenMPI 1.4.2 ports. GCC4.4 contains the gfortran compiler too. Linux ----- ADIOS should configure and build fine on Linux. One possible issue is that configure may break in one of the tests for the fortran compiler test with mpif90. If you have set FC=mpif90 before configure, try to configure without setting it. Then configure will test the default f90 compiler (gfortran most likely) and pass but still will use mpif90 to build ADIOS. Or try MPIFC=mpif90 and FC= Configuring ----------- Hint: look at the runconf script in the distribution directory. This script is used to configure ADIOS on our systems. It may help you in configuring ADIOS for your system. ./configure --help lists the options that you can use. Matlab ------ Matlab MEX compiler uses GNU gcc to compile codes so you need to build ADIOS with gcc. It also requires relocatable code, therefore you need to specify -fPIC in your C compiler flags when configuring ADIOS: $ CFLAGS="-fPIC" ./configure $ make After building ADIOS, you can build the reader for Matlab. Ensure that the MEX compiler 'mex' is in the path: $ cd tools/matlab $ make matlab You need to install the ADIOS M and MEX files in tools/matlab manually to a directory where Matlab can find them (you can tell Matlab where to look for them by setting the MATLABPATH environment variable). HDF5 ---- If you have parallel HDF5 installed and use it with --with-phdf5 and you do not specify a serial HDF5 library with --with-hdf5, then configure will use the parallel library for both HDF5 and PHDF5. This may or may not work to build utils/bp2h5. If not, you need to use a serial version of HDF5 to build bp2h5. Use the --with-hdf5 option to tell configure where to look for the serial HDF5 library. adios-1.5.0/toolchain.cmake0000644000175000017500000000103412251360163016725 0ustar amckinstryamckinstry# Specify the target system (this allows cross-compiling) SET(CMAKE_SYSTEM_NAME CRAYXT_COMPUTE_LINUX) # specify the cross compiler set(CMAKE_C_COMPILER /opt/cray/xt-asyncpe/5.17/bin/cc) set(CMAKE_CXX_COMPILER /opt/cray/xt-asyncpe/5.17/bin/CC) # adjust the default behaviour of the FIND_XXX() commands: # search headers and libraries in the target environment, search # programs in the host environment set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) adios-1.5.0/runconf0000755000175000017500000007264712251360163015365 0ustar amckinstryamckinstry#!/bin/bash # # This script is for configuring adios on the authors' machines # You can study it to figure out how to configure adios on your system # if [ `hostname | cut -c 1-4` == "sith" ]; then ######## # Sith # ######## source /etc/profile.d/modules.sh TARGET=`module list 2>&1 | grep "PE"- | sed "s/^.*PE-\([a-z]*\).*/\1/"` if [ -z "$TARGET" ]; then echo "Cannot determine Programming environment. Exit" exit 1 fi echo "Configure on SITH for $TARGET env." source /etc/profile.d/modules.sh module unload hdf5 module unload netcdf module unload PE-gnu module unload PE-pgi module unload PE-intel module unload PE-pathscale module unload pgi gcc intel pathscale module unload python module load PE-$TARGET module load mxml module load python # Use both seq hdf5 (for utils) and # parallel hdf5 (for PHDF5 method) module load hdf5/1.8.10 SEQ_HDF5_DIR=$HDF5_DIR SEQ_HDF5_CLIB=$HDF5_CLIB module unload hdf5 module load hdf5/1.8.10_par PAR_HDF5_DIR=$HDF5_DIR PAR_HDF5_CLIB=$HDF5_CLIB module unload hdf5 # Seq. and Parallel NetCDF 4 module load netcdf/4.1.3 SEQ_NC_DIR=$NETCDF_DIR SEQ_NC_CLIB=$NETCDF_CLIB module unload netcdf module load netcdf/4.1.3_par PAR_NC_DIR=$NETCDF_DIR PAR_NC_CLIB=$NETCDF_CLIB module unload netcdf export MPICC=mpicc export MPICXX=mpiCC export MPIFC=mpif90 if [ "$TARGET" == "pgi" ]; then export CC=pgcc export CXX=pgCC export FC=pgf90 WITHDART="--with-dataspaces=/ccs/proj/e2e/dataspaces/sith/$TARGET" WITHFLEX="--with-flexpath=/ccs/proj/e2e/chaos/sith/$TARGET" elif [ "$TARGET" == "gnu" ]; then export CC=gcc export CXX=g++ export FC=gfortran WITHDART="--with-dataspaces=/ccs/proj/e2e/dataspaces/sith/$TARGET" WITHFLEX="--with-flexpath=/ccs/proj/e2e/chaos/sith/$TARGET" elif [ "$TARGET" == "intel" ]; then export CC=icc export CXX=icpc export FC=ifort WITHDART="" WITHFLEX="" else echo "TARGET must be pgi or gnu or intel" exit 1 fi export CPPFLAGS="-DMPICH_IGNORE_CXX_SEEK" export CFLAGS="-g -fPIC" ./configure --prefix=/ccs/proj/e2e/pnorbert/ADIOS/sith.$TARGET \ --enable-dependency-tracking \ --enable-research-transports \ --with-lustre=/usr/lib64 \ $WITHDART \ $WITHFLEX \ --with-hdf5=${SEQ_HDF5_DIR} \ --with-hdf5-libs="${SEQ_HDF5_CLIB}" \ --with-phdf5=${PAR_HDF5_DIR} \ --with-phdf5-libs="${PAR_HDF5_CLIB}" \ --with-netcdf=${SEQ_NC_DIR} \ --with-netcdf-libs="${SEQ_NC_CLIB}" \ --with-nc4par=${PAR_NC_DIR} \ --with-nc4par-libs="${PAR_NC_CLIB}" #--with-dmalloc=/ccs/proj/e2e/qliu/dmalloc.sith.$TARGET #--with-dmalloc=/ccs/proj/e2e/pnorbert/dmalloc.$TARGET #--enable-shared --disable-static #--without-datatap #--without-infiniband #--with-dmalloc=/ccs/proj/e2e/pnorbert/dmalloc.$TARGET #--with-datatap=/ccs/home/habbasi/work/ewok/ #--enable-datatap=ib elif [ `hostname | cut -c 1-4` == "yona" ]; then ######## # Yona # ######## TARGET=pgi echo "Configure on Yona for $TARGET env." source /etc/profile.d/modules.sh module unload hdf5 module unload netcdf module unload PE-gnu module unload PE-pgi module unload PE-intel module unload PE-pathscale module unload pgi gcc intel pathscale #module unload python module load PE-$TARGET module load mxml #module load python # Use both seq hdf5 (for utils) and # parallel hdf5 (for PHDF5 method) module load hdf5/1.8.5 SEQ_HDF5_DIR=$HDF5_DIR SEQ_HDF5_CLIB=$HDF5_CLIB module unload hdf5 #module load hdf5/1.8.5_par #PAR_HDF5_DIR=$HDF5_DIR #PAR_HDF5_CLIB=$HDF5_CLIB #module unload hdf5 # Seq. and Parallel NetCDF 4 module load netcdf/3.6.2 SEQ_NC_DIR=$NETCDF_DIR SEQ_NC_CLIB=$NETCDF_CLIB module unload netcdf #module load netcdf/4.1.1_par #PAR_NC_DIR=$NETCDF_DIR #PAR_NC_CLIB=$NETCDF_CLIB #module unload netcdf export MPICC=mpicc export MPICXX=mpiCC export MPIFC=mpif90 if [ "$TARGET" == "pgi" ]; then export CC=pgcc export CXX=pgCC export FC=pgf90 elif [ "$TARGET" == "gnu" ]; then export CC=gcc export CXX=g++ export FC=gfortran elif [ "$TARGET" == "intel" ]; then export CC=pgcc export CXX=pgCC export FC=pgf90 elif [ "$TARGET" == "gnu" ]; then export CC=gcc export CXX=g++ export FC=gfortran elif [ "$TARGET" == "intel" ]; then export CC=icc export CXX=icpc export FC=ifort else echo "TARGET must be pgi or gnu or intel" exit 1 fi export CFLAGS="-g -fPIC" ./configure --prefix=/ccs/proj/e2e/pnorbert/ADIOS/yona.$TARGET \ --enable-dependency-tracking \ --enable-research-transports \ --with-hdf5=${SEQ_HDF5_DIR} \ --with-hdf5-libs="${SEQ_HDF5_CLIB}" \ --with-netcdf=${SEQ_NC_DIR} \ --with-netcdf-libs="${SEQ_NC_CLIB}" \ --with-lustre=/usr \ --without-datatap --without-infiniband #--with-phdf5=${PAR_HDF5_DIR} \ #--with-phdf5-libs="${PAR_HDF5_CLIB}" \ #--with-nc4par=${PAR_NC_DIR} \ #--with-nc4par-libs="${PAR_NC_CLIB}" \ #--with-dmalloc=/ccs/proj/e2e/pnorbert/dmalloc.$TARGET #--with-datatap=/ccs/home/habbasi/work/ewok/ #--enable-datatap=ib elif [ `hostname | cut -c 1-4` == "lens" ]; then source /etc/profile.d/modules.sh source /etc/profile.d/modules.sh TARGET=`module list 2>&1 | grep "PE"- | sed "s/^.*PE-\([a-z]*\).*/\1/"` if [ -z "$TARGET" ]; then echo "Cannot determine Programming environment. Exit" exit 1 fi echo "Configure on LENS for $TARGET env." module unload hdf5 module unload netcdf module unload PE-gnu module unload PE-pgi module unload PE-pathscale module unload pgi module load PE-$TARGET module load mxml # Use both seq hdf5 (for utils) and # parallel hdf5 (for PHDF5 method) module load hdf5/1.8.6 SEQ_HDF5_DIR=$HDF5_DIR SEQ_HDF5_CLIB=$HDF5_CLIB module unload hdf5 #module load hdf5/1.8.6_ompi1.4.2 #PAR_HDF5_DIR=$HDF5_DIR #PAR_HDF5_CLIB=$HDF5_CLIB #module unload hdf5 # Seq NetCDF 3 for bp2ncd #module load netcdf/3.6.2 export MPICC=mpicc export MPICXX=mpiCC export MPIFC=mpif90 if [ "$TARGET" == "pgi" ]; then export CC=pgcc export CXX=pgCC export FC=pgf90 module switch pgi pgi/10.5 elif [ "$TARGET" == "gnu" ]; then export CC=gcc export CXX=g++ export FC=gfortran else echo "TARGET must be pgi or gnu" exit 1 fi export CFLAGS="-g -fPIC" ./configure --prefix=/ccs/proj/e2e/pnorbert/ADIOS/lens.$TARGET \ --enable-dependency-tracking \ --enable-research-transports \ --with-hdf5=${SEQ_HDF5_DIR} \ --with-hdf5-libs="${SEQ_HDF5_CLIB}" \ --without-datatap #--with-mxml=/ccs/proj/e2e/pnorbert/mxml \ elif [ `hostname | cut -c 1-5` == "titan" ]; then BUILD_STAGING=true if [ $BUILD_STAGING == "false" ]; then ################ # Titan # ################ TARGET=pgi echo "Configure on TITAN (XK7) for $TARGET env." export CC=cc #export CFLAGS="-Wall -g" export FC=ftn export CXX=CC source /opt/modules/default/etc/modules.sh module unload szip module unload hdf5 module unload netcdf module unload netcdf-hdf5parallel module unload hdf5-parallel module unload mxml module unload PrgEnv-gnu module unload PrgEnv-pgi module unload PrgEnv-intel module unload PrgEnv-cray #module unload papi module load PrgEnv-$TARGET module swap xtpe-interlagos xtpe-istanbul #module load szip #module load xt-papi module load mxml # use the two lines below for openmpi #export CC=mpicc #export FC=mpif90 CFLAGS="-g -fPIC" ./configure --prefix=/ccs/proj/e2e/qliu/ADIOS/test.$TARGET \ --host=titan --host_alias=titan \ --enable-dependency-tracking \ #--with-hdf5=/opt/cray/hdf5/1.8.7/pgi/109 \ #--with-phdf5=/opt/cray/hdf5-parallel/1.8.7/pgi/109 \ # --with-lustre=/opt/xt-lustre-ss/2.2_1.6.5/usr # --with-dmalloc=/ccs/proj/e2e/qliu/dmalloc.$TARGET # --enable-research-transports \ # --with-netcdf=/opt/cray/netcdf/3.6.2/netcdf-${TARGET} \ # --with-nc4par=/opt/cray/netcdf-hdf5parallel/4.0.1.3/netcdf-hdf5parallel-$TARGET \ # --with-phdf5=/opt/cray/hdf5-parallel/1.8.4.1/hdf5-parallel-$TARGET \ # --with-hdf5=/sw/xt5/hdf5/1.8.2/cnl2.1_gnu7.2.3 \ # --with-hdf5=/sw/xt5/hdf5/1.8.2/cnl2.1_gnu4.2.0 \ # --with-mxml=/ccs/proj/e2e/pnorbert/mxml.xt5.$TARGET \ else ########################## # Titan + staging # ########################## TARGET=pgi echo "Configure on TITAN (XK7) including staging methods for $TARGET env." export CC=cc export FC=ftn export CXX=CC source /opt/modules/default/etc/modules.sh module unload szip module unload hdf5 module unload netcdf module unload hdf5-parallel module unload netcdf-hdf5parallel module unload mxml module unload PrgEnv-gnu module unload PrgEnv-pgi module unload PrgEnv-intel module unload PrgEnv-cray #module unload papi #module unload xtpe-quadcore module load PrgEnv-$TARGET module swap xtpe-interlagos xtpe-istanbul #module load dataspaces/1.0.0 unset EXTRA_LIBS unset LDFLAGS if [ "$TARGET" == "pgi" ]; then #module swap pgi pgi/11.8.0 # NSSI needs -pgcpplibs flag export LDFLAGS="-pgcpplibs" DATASPACES_DIR="/ccs/proj/e2e/dataspaces/titan/$TARGET" elif [ "$TARGET" == "gnu" ]; then # NSSI needs libstdc++ export EXTRA_LIBS="/opt/gcc/4.7.2/snos/lib64/libstdc++.a" #module swap gcc gcc/4.4.4 DATASPACES_DIR="/ccs/proj/e2e/dataspaces/titan/$TARGET" else unset DATASPACES_DIR fi # NOTE hdf5-parallel module does not work with C++ compiler #module load hdf5-parallel #module load netcdf-hdf5parallel module load szip #module load papi module load mxml # use the two lines below for openmpi #export CC=mpicc #export FC=mpif90 export CPPFLAGS="-DMPICH_IGNORE_CXX_SEEK -DDART_DO_VERSIONING" export CFLAGS="-fPIC -g -O0" #./configure --prefix=/ccs/proj/fus022/norbert/RMP/adios.xt5.$TARGET \ ./configure --prefix=/ccs/proj/e2e/pnorbert/ADIOS/titan.$TARGET \ --enable-dependency-tracking \ --with-cray-pmi=/opt/cray/pmi/default \ --with-cray-ugni-incdir=/opt/cray/gni-headers/default/include \ --with-cray-ugni-libdir=/opt/cray/ugni/default/lib \ --with-dataspaces=$DATASPACES_DIR #--with-netcdf=/opt/cray/netcdf/3.6.2/netcdf-${TARGET} \ #--with-hdf5=/sw/xt5/hdf5/1.8.2/cnl2.1_gnu4.2.0 \ #--with-nc4par=/opt/cray/netcdf-hdf5parallel/4.0.1.3/netcdf-hdf5parallel-$TARGET \ #--with-phdf5=/opt/cray/hdf5-parallel/1.8.4.1/hdf5-parallel-$TARGET \ #--with-dimes=/ccs/proj/e2e/pnorbert/spaces/$TARGET #--with-nssi=/ccs/proj/e2e/pnorbert/nssi/xt5/$TARGET \ #--with-datatap=/ccs/home/zf2/work/pe.$TARGET \ #--with-datatap=/ccs/proj/e2e/pnorbert/datatap/xt5/$TARGET \ fi elif [ `hostname | cut -c 1-7` == "chester" ]; then ############### # Chester XK6 # ############### TARGET=`module list 2>&1 | grep "PrgEnv"- | sed "s/^.*PrgEnv-\([a-z]*\).*/\1/"` echo "Configure on Chester (XK6) for $TARGET env." export CC=cc #export CFLAGS="-Wall -g" export FC=ftn export CXX=CC source /opt/modules/default/etc/modules.sh module unload szip module unload hdf5 module unload netcdf module unload netcdf-hdf5parallel module unload hdf5-parallel module unload PrgEnv-gnu module unload PrgEnv-pgi module unload PrgEnv-intel module unload PrgEnv-cray module unload papi module unload pmi module load PrgEnv-$TARGET module load dataspaces/1.0.0 if [ "$TARGET" == "pgi" ]; then module swap pgi pgi/11.8.0 # NSSI needs -pgcpplibs flag export LDFLAGS="-pgcpplibs" unset EXTRA_LIBS WITHDART="--with-dataspaces=$DATASPACES_DIR" elif [ "$TARGET" == "gnu" ]; then # NSSI needs libstdc++ unset LDFLAGS export EXTRA_LIBS="/opt/gcc/4.7.1/snos/lib64/libstdc++.a" #module swap gcc gcc/4.4.4 WITHDART="--with-dataspaces=$DATASPACES_DIR" else unset LDFLAGS unset EXTRA_LIBS WITHDART="" fi #module load szip #module load xt-papi module load mxml module load pmi # use the two lines below for openmpi #export CC=mpicc #export FC=mpif90 CFLAGS="-g -fPIC" ./configure --prefix=/ccs/proj/e2e/pnorbert/ADIOS/chester.$TARGET \ --enable-dependency-tracking # --with-cray-pmi=/opt/cray/pmi/default \ # --with-cray-ugni-incdir=/opt/cray/gni-headers/2.1-1.0400.4351.3.1.gem/include \ # --with-cray-ugni-libdir=/opt/cray/ugni/default/lib \ # $WITHDART # --with-lustre=/opt/xt-lustre-ss/2.2_1.6.5/usr \ # --with-dmalloc=/ccs/proj/e2e/qliu/dmalloc.$TARGET \ # --enable-research-transports \ # --with-netcdf=/opt/cray/netcdf/3.6.2/netcdf-${TARGET} \ # --with-nc4par=/opt/cray/netcdf-hdf5parallel/4.0.1.3/netcdf-hdf5parallel-$TARGET \ # --with-phdf5=/opt/cray/hdf5-parallel/1.8.4.1/hdf5-parallel-$TARGET \ # --with-hdf5=/sw/xt5/hdf5/1.8.2/cnl2.1_gnu7.2.3 \ # --with-hdf5=/sw/xt5/hdf5/1.8.2/cnl2.1_gnu4.2.0 \ # --with-mxml=/ccs/proj/e2e/pnorbert/mxml.xt5.$TARGET \ elif [ `hostname | cut -c 1-5` == "smoky" ]; then ######### # Smoky # ######### echo "Configure on SMOKY" source /etc/profile.d/modules.sh module unload hdf5 module unload netcdf module unload PE-gnu module unload PE-pgi module unload PE-intel module unload PE-pathscale module unload pgi gcc intel pathscale TARGET=pgi module load PE-$TARGET # Use both seq hdf5 (for utils) and # parallel hdf5 (for PHDF5 method) #module load hdf5/1.8.5 #SEQ_HDF5_DIR=$HDF5_DIR #SEQ_HDF5_DIR=/sw/smoky/hdf5/1.8.5/centos5.5_pgi10.4 #SEQ_HDF5_CLIB=$HDF5_CLIB #module unload hdf5/1.8.5 #module load hdf5/1.8.5_ompi1.4.2 #PAR_HDF5_DIR=$HDF5_DIR #PAR_HDF5_DIR=/sw/smoky/hdf5/1.8.5/centos5.5_pgi10.4_ompi1.4.2 #PAR_HDF5_CLIB=$HDF5_CLIB export MPICC=mpicc export MPICXX=mpiCC export MPIFC=mpif90 if [ "$TARGET" == "pgi" ]; then export CC=pgcc export CXX=pgCC export FC=pgf90 elif [ "$TARGET" == "gnu" ]; then export CC=gcc export CXX=g++ export FC=gfortran elif [ "$TARGET" == "intel" ]; then export CC=icc export CXX=icpc export FC=ifort else echo "TARGET must be pgi or gnu" exit 1 fi export CFLAGS="-g -fPIC" ./configure --prefix=/ccs/proj/e2e/pnorbert/ADIOS/smoky.$TARGET \ --enable-dependency-tracking \ --enable-research-transports \ --with-mxml=/ccs/proj/e2e/pnorbert/mxml.smoky.$TARGET \ --without-hdf5 --without-phdf5 \ --without-netcdf --without-nc4par \ --with-lustre=/usr \ --without-datatap --without-infiniband \ #--with-phdf5=${PAR_HDF5_DIR} \ #--with-phdf5-libs="${PAR_HDF5_CLIB}" \ #--with-hdf5=${SEQ_HDF5_DIR} \ #--with-hdf5-libs="${SEQ_HDF5_CLIB}" \ #--with-netcdf=${SEQ_NC_DIR} \ #--with-netcdf-libs="${SEQ_NC_CLIB}" \ #--with-nc4par=${PAR_NC_DIR} \ #--with-nc4par-libs="${PAR_NC_CLIB}" \ elif [ `hostname | cut -c 1-6` == "jaguar" ]; then BUILD_STAGING=false if [ $BUILD_STAGING == "false" ]; then ########## # Jaguar # ########## TARGET=pgi echo "Configure on JAGUAR (XT5) for $TARGET env." export CC=cc #export CFLAGS="-Wall -g" export FC=ftn export CXX=CC source /opt/modules/default/etc/modules.sh module unload szip module unload hdf5 module unload netcdf module unload netcdf-hdf5parallel module unload hdf5-parallel module unload PrgEnv-gnu module unload PrgEnv-pgi module unload PrgEnv-intel module unload PrgEnv-cray module unload xt-papi module load PrgEnv-$TARGET module swap xtpe-interlagos xtpe-istanbul #module load szip #module load xt-papi module load mxml # use the two lines below for openmpi #export CC=mpicc #export FC=mpif90 CFLAGS="-g -fPIC" ./configure --prefix=/ccs/proj/e2e/qliu/ADIOS/test.$TARGET \ --enable-dependency-tracking \ --with-mxml=/ccs/proj/e2e/pnorbert/mxml.xt5.pgi \ --with-hdf5=/opt/cray/hdf5/1.8.7/pgi/109 \ --with-phdf5=/opt/cray/hdf5-parallel/1.8.7/pgi/109 \ --without-portals # --with-lustre=/opt/xt-lustre-ss/2.2_1.6.5/usr # --with-dmalloc=/ccs/proj/e2e/qliu/dmalloc.$TARGET # --enable-research-transports \ # --with-netcdf=/opt/cray/netcdf/3.6.2/netcdf-${TARGET} \ # --with-nc4par=/opt/cray/netcdf-hdf5parallel/4.0.1.3/netcdf-hdf5parallel-$TARGET \ # --with-phdf5=/opt/cray/hdf5-parallel/1.8.4.1/hdf5-parallel-$TARGET \ # --with-hdf5=/sw/xt5/hdf5/1.8.2/cnl2.1_gnu7.2.3 \ # --with-hdf5=/sw/xt5/hdf5/1.8.2/cnl2.1_gnu4.2.0 \ # --with-mxml=/ccs/proj/e2e/pnorbert/mxml.xt5.$TARGET \ else ########## # Jaguar # ########## TARGET=pgi echo "Configure on JAGUAR including staging methods for $TARGET env." export CC=cc export FC=ftn export CXX=CC source /opt/modules/default/etc/modules.sh module unload szip module unload hdf5 module unload netcdf module unload hdf5-parallel module unload netcdf-hdf5parallel module unload PrgEnv-gnu module unload PrgEnv-pgi module unload PrgEnv-intel module unload PrgEnv-cray module unload xt-papi #module unload xtpe-quadcore module load PrgEnv-$TARGET if [ "$TARGET" == "pgi" ]; then module swap pgi pgi/10.4.0 # NSSI needs -pgcpplibs flag export LDFLAGS="-pgcpplibs" WITHDART="--with-dart=/sw/xt5/adios/1.2.1/cnl2.2_pgi10.4/spaces" elif [ "$TARGET" == "gnu" ]; then # NSSI needs libstdc++ export EXTRA_LIBS="/opt/gcc/4.4.4/snos/lib64/libstdc++.a" module swap gcc gcc/4.4.4 WITHDART="--with-dart=/sw/xt5/adios/1.2.1/cnl2.2_gnu4.4.4/spaces" else WITHDART="" fi # NOTE hdf5-parallel module does not work with C++ compiler #module load hdf5-parallel #module load netcdf-hdf5parallel module load szip module load xt-papi module load mxml # use the two lines below for openmpi #export CC=mpicc #export FC=mpif90 export CPPFLAGS="-DMPICH_IGNORE_CXX_SEEK -DDART_DO_VERSIONING" export CFLAGS="-fPIC -g -O0" #./configure --prefix=/ccs/proj/e2e/pnorbert/ADIOS/xt5.$TARGET \ ./configure --prefix=/ccs/proj/fus022/norbert/RMP/adios.xt5.$TARGET \ --enable-dependency-tracking \ --with-portals=/opt/xt-pe/2.2.41A \ --with-netcdf=/opt/cray/netcdf/3.6.2/netcdf-${TARGET} \ --with-hdf5=/sw/xt5/hdf5/1.8.2/cnl2.1_gnu4.2.0 \ --with-nc4par=/opt/cray/netcdf-hdf5parallel/4.0.1.3/netcdf-hdf5parallel-$TARGET \ --with-phdf5=/opt/cray/hdf5-parallel/1.8.4.1/hdf5-parallel-$TARGET \ $WITHDART \ --with-dimes=/ccs/proj/e2e/pnorbert/spaces/$TARGET #--with-nssi=/ccs/proj/e2e/pnorbert/nssi/xt5/$TARGET \ #--with-datatap=/ccs/home/zf2/work/pe.$TARGET \ #--with-datatap=/ccs/proj/e2e/pnorbert/datatap/xt5/$TARGET \ fi elif [ "x"`hostname -f | cut -c 8-15` == "xintrepid" ]; then ##################### # Intrepid BlueGene # ##################### echo "Configure on Intrepid (BlueGene)" export MPICC=mpixlc_r export MPIFC=mpixlf90 export CFLAGS="" export FC=xlf90 export CC=xlc_r ./configure --prefix=/home/qliu/ADIOS \ --enable-dependency-tracking \ --with-mxml=/home/qliu/mxml elif [ `hostname | cut -c 1-4` == "euge" ]; then ################### # Eugene BlueGene # ################### echo "Configure on Eugene (BlueGene)" export MPICC=mpixlc_r export MPIFC=mpixlf90 #export CFLAGS="-g -O0" export CFLAGS="" export FC=xlf90 export CC=xlc_r export MACRODEFFLAG="-WL,-D" source /etc/profile.d/modules.sh module load python # NetCDF 3 for bp2ncd module load netcdf/3.6.2-linux # Seq HDF5 for bp2h5 #module load hdf5/1.8.5-linux export HDF5_DIR="/sw/bgp/hdf5/1.8.5/sles10.2_xlc9.0xlf11.1/install" export HDF5_CLIB="-I/sw/bgp/hdf5/1.8.5/sles10.2_xlc9.0xlf11.1/install/include -L/sw/bgp/hdf5/1.8.5/sles10.2_xlc9.0xlf11.1/install/lib -lhdf5_hl -lhdf5 -L/sw/bgp/szip/2.1/sles10.1_xlc9.0/lib -lsz /usr/lib/libz.a" module load mxml ./configure --prefix=/ccs/proj/e2e/pnorbert/ADIOS/eugene \ --enable-dependency-tracking \ --with-hdf5=$HDF5_DIR \ --with-hdf5-libs="$HDF5_CLIB" \ --without-phdf5 elif [ `hostname | cut -c 1-4` == "nid0" ]; then ############ # Franklin # ############ TARGET=pgi echo "Configure on FRANKLIN for $TARGET env." export CC=cc export CXX=CC export FC=ftn module unload hdf5 module unload netcdf module unload hdf5-parallel module unload netcdf-hdf5parallel module unload PrgEnv-gnu module unload PrgEnv-pgi module unload PrgEnv-pathscale module unload PrgEnv-cray module load PrgEnv-$TARGET #if [ "${TARGET}" == "pgi" ]; then # module swap pgi pgi/10.5.0 #fi export LDFLAGS="-pgcpplibs" export CPPFLAGS="-DMPICH_IGNORE_CXX_SEEK" export CFLAGS="-fPIC" #./configure --prefix=/project/projectdirs/m499/adios \ ./configure --prefix=/global/homes/p/pnorbert/adios \ --enable-dependency-tracking \ --with-mxml=$HOME/mxml \ --with-hdf5=/opt/cray/hdf5/1.8.5.0/hdf5-${TARGET} \ --with-netcdf=/opt/cray/netcdf/3.6.2/netcdf-${TARGET} \ --with-phdf5=/opt/cray/hdf5-parallel/1.8.5.0/hdf5-parallel-${TARGET} \ --with-nc4par=/opt/cray/netcdf-hdf5parallel/4.1.1.0/netcdf-hdf5parallel-${TARGET} \ --with-dart=/global/homes/p/pnorbert/dart.0628.pgi elif [ `hostname | cut -c 1-6` == "hopper" ]; then ########## # Hopper # ########## TARGET=pgi echo "Configure on HOPPER for $TARGET env." export MPICC=cc export MPICXX=CC export MPIFC=ftn module unload hdf5 module unload netcdf module unload hdf5-parallel module unload netcdf-hdf5parallel module unload PrgEnv-gnu module unload PrgEnv-pgi module unload PrgEnv-pathscale module unload PrgEnv-cray TARGET=pgi module load PrgEnv-$TARGET module load python if [ "$TARGET" == "pgi" ]; then export CC=pgcc export CXX=pgCC export FC=pgf90 export LDFLAGS="-pgcpplibs" WITHDART="--with-dataspaces=/global/homes/p/pnorbert/dataspaces/1.1.0/$TARGET" elif [ "$TARGET" == "gnu" ]; then export CC=gcc export CXX=g++ export FC=gfortran export LDFLAGS="" WITHDART="--with-dataspaces=/global/homes/p/pnorbert/dataspaces/1.1.0/$TARGET" elif [ "$TARGET" == "intel" ]; then export CC=icc export CXX=icpc export FC=ifort export LDFLAGS="" WITHDART="" else echo "TARGET must be pgi or gnu or intel" exit 1 fi export CPPFLAGS="-DMPICH_IGNORE_CXX_SEEK" export CFLAGS="-fPIC" ./configure --prefix=/global/homes/p/pnorbert/adios/1.4.1/hopper/$TARGET \ --enable-dependency-tracking \ --with-mxml=$HOME/mxml/mxml.hopper \ --with-lustre=/usr \ $WITHDART \ --with-cray-pmi-incdir=/opt/cray/pmi/default/include \ --with-cray-pmi-libdir=/opt/cray/pmi/default/lib64 \ --with-cray-ugni-incdir=/opt/cray/gni-headers/default/include \ --with-cray-ugni-libdir=/opt/cray/ugni/default/lib64 \ --without-hdf5 --without-netcdf elif [ `hostname | cut -c 1-6` == "kraken" ]; then ########## # Kraken # ########## source /opt/modules/default/etc/modules.sh TARGET=`module list 2>&1 | grep PrgEnv | sed "s/^.*Env-\([a-z]*\).*/\1/"` if [ -z "$TARGET" ]; then echo "Cannot determine Programming environment. Exit" exit 1 fi echo "" echo "Configure KRAKEN for the $TARGET compiler" echo "" export CC=cc export FC=ftn export CXX=CC module unload szip module unload hdf5 module unload netcdf module unload hdf5-parallel module unload netcdf-hdf5parallel module unload xt-papi module unload papi if [ "$TARGET" == "pgi" ]; then #module swap pgi pgi/10.4.0 # NSSI needs -pgcpplibs flag export EXTRA_LIBS="" export LDFLAGS="-pgcpplibs" elif [ "$TARGET" == "gnu" ]; then # NSSI needs libstdc++ export EXTRA_LIBS="/opt/gcc/4.4.4/snos/lib64/libstdc++.a" export LDFLAGS="" #module swap gcc gcc/4.4.4 fi module load szip module load mxml module load subversion export CPPFLAGS="-DMPICH_IGNORE_CXX_SEEK" export CFLAGS="-fPIC -g -O0" ./configure --prefix=/${HOME}/adios/$TARGET \ --enable-dependency-tracking \ --with-portals=yes \ --without-netcdf --without-nc4par --without-hdf5 --without-phdf5 \ --with-dataspaces=${HOME}/dataspaces/1.0.0/$TARGET elif [ `hostname | cut -c 1-4` == "dyn9" -o `hostname | cut -c 1-3` == "pnb" ]; then ####### # Mac # ####### echo "Configure on Mac" # Installed MacPorts and GCC4.4 and OpenMPI 1.4.2 ports # But should work with default mpicc and gcc, using --disable-fortran export CC=/opt/local/bin/gcc-mp-4.4 export FC=/opt/local/bin/gfortran-mp-4.4 export CXX=/opt/local/bin/g++-mp-4.4 export MPICC=/opt/local/bin/openmpicc export MPIFC=/opt/local/bin/openmpif90 export MPICXX=/opt/local/bin/openmpicxx CFLAGS="-g -DO_LARGEFILE=0 -fno-common" ./configure --prefix=/opt/adios \ --with-mxml=/opt/mxml \ --with-netcdf=/opt/netcdf \ --with-phdf5=/opt/hdf5 \ --with-hdf5=/opt/hdf5.seq elif [ `hostname | cut -c 1-7` == "ubuntu" ]; then ######################### # Scott's ubuntu laptop # ######################### echo "Configure on UBUNTU" export CC=mpicc ./configure --prefix=/usr/local/adios \ --enable-dependency-tracking \ --with-mxml=/usr/local/adios #--with-hdf5=/usr/local/hdf5-serial\ #--with-phdf5=/usr/local \ #--with-netcdf=/usr elif [ `hostname | cut -c 1-6` == "tomato" ]; then ######################### # Todd's ubuntu laptop # ######################### echo "Configure on UBUNTU" export CC=mpicc ./configure --prefix=/home/thkorde/local \ --enable-dependency-tracking \ --with-mxml=/home/thkorde/local \ --with-phdf5=/home/thkorde/local \ --with-hdf5=/home/thkorde/local \ --with-netcdf=/home/thkorde/local elif [ `hostname | cut -c 1-4` == "qliu" ]; then ######################### # Gary's ubuntu laptop # ######################### echo "Configure on UBUNTU" export CC=mpicc export CFLAGS="-g -O0 -fPIC" ./configure --prefix=/home/qliu/ADIOS \ --enable-dependency-tracking \ --with-mxml=/home/qliu/mxml \ #--with-phdf5=/home/thkorde/local \ #--with-hdf5=/home/thkorde/local \ #--with-netcdf=/home/thkorde/local elif [ `hostname | cut -c 1-7` == "esimmon" ]; then ####################### # Esimmon Virtual Box # ####################### echo "Configure on ESIMMON VirtualBox." export MPICC=mpicc export MPICXX=mpicxx export MPIFC=mpif90 export CC=gcc export CXX=g++ export FC=gfortran #export CFLAGS="-g -fPIC" ./configure --prefix=/opt/adios/1.5.0 \ --enable-dependency-tracking \ --with-mxml=/opt/mxml \ --with-hdf5=/opt/hdf5 \ --with-phdf5=/opt/phdf5 \ --with-netcdf=/opt/netcdf3 \ --with-nc4par=/opt/nc4par \ --with-flexpath=/opt/chaos else echo "Could not determine what machine is this." echo "This script is for configuring adios on the authors' machines." echo "You can study it to figure out how to configure adios on your system." fi adios-1.5.0/tests/0000755000175000017500000000000012251360163015107 5ustar amckinstryamckinstryadios-1.5.0/tests/Makefile.am0000644000175000017500000000021512251360163017141 0ustar amckinstryamckinstrySUITEDIR=suite if BUILD_WRITE if BUILD_FORTRAN SUBDIRS=C Fortran genarray bp_read ${SUITEDIR} else SUBDIRS=C bp_read ${SUITEDIR} endif endif adios-1.5.0/tests/C/0000755000175000017500000000000012251360163015271 5ustar amckinstryamckinstryadios-1.5.0/tests/C/Makefile.am0000644000175000017500000000071312251360163017326 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS=adios_test_c adios_test_c_SOURCES = adios_test_c.c adios_test_c_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) adios_test_c_CFLAGS = $(ADIOSLIB_CFLAGS) adios_test_c_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) adios_test_c_LDFLAGS = $(ADIOSLIB_LDFLAGS) CLEANFILES = restart.bp CC=$(MPICC) EXTRA_DIST = config_c.xml adios-1.5.0/tests/C/adios_test_c.c0000644000175000017500000002736712251360163020114 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include #include #include #include #include #include // mpi #include "mpi.h" #include "adios.h" #include /* Subtract the `struct timeval' values X and Y, storing the result in RESULT. Return 1 if the difference is negative, otherwise 0. */ int timeval_subtract (result, x, y) struct timeval *result, *x, *y; { /* Perform the carry for the later subtraction by updating y. */ if (x->tv_usec < y->tv_usec) { int nsec = (y->tv_usec - x->tv_usec) / 1000000 + 1; y->tv_usec -= 1000000 * nsec; y->tv_sec += nsec; } if (x->tv_usec - y->tv_usec > 1000000) { int nsec = (x->tv_usec - y->tv_usec) / 1000000; y->tv_usec += 1000000 * nsec; y->tv_sec -= nsec; } /* Compute the time remaining to wait. tv_usec is certainly positive. */ result->tv_sec = x->tv_sec - y->tv_sec; result->tv_usec = x->tv_usec - y->tv_usec; /* Return 1 if result is negative. */ return x->tv_sec < y->tv_sec; } #define DO_WRITE 1 #define DO_READ 0 #define DO_APPEND 0 #define MEMORY_THIEF 0 #define SPLIT_FILES 0 int main (int argc, char ** argv) { char * type_name = "restart"; char filename [100]; int64_t io_handle; // io handle MPI_Comm comm = MPI_COMM_WORLD; MPI_Comm c1; int rank; int size; struct timeval time_start; struct timeval time_end; struct timeval time_diff; struct timeval time_open; struct timeval time_group_size; struct timeval time_write1; struct timeval time_write2; struct timeval time_close; struct timeval * time_diff_all; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); #if SPLIT_FILES MPI_Comm_split (MPI_COMM_WORLD, rank % 2, rank, &comm); sprintf (filename, "restart%d.bp", rank % 2); printf ("rank %d filename: %s\n", rank, filename); #else strcpy (filename, "restart.bp"); #endif if (!adios_init ("config_c.xml", comm)) return -1; //uint64_t byte_test_length = 768LL * 1024 * 1024; uint64_t byte_test_length = 512LL * 1024 * 1024; uint64_t memory_thief_length = 1024 * 1024 * 1024 // 1 GB + 128 * 1024 * 1024 // 128 MB - byte_test_length; if (rank == 0) printf ("Byte_test_length: %llu\n", byte_test_length); #if DO_WRITE char * byte_test = 0; byte_test = malloc (byte_test_length + 1); if (byte_test == 0) { fprintf (stderr, "Error allocating memory for write byte_test: %llu\n" ,byte_test_length ); exit (-1); } byte_test [byte_test_length] = 0; #endif #if DO_READ char * r_byte_test = 0; r_byte_test = malloc (byte_test_length + 1); if (byte_test == 0) { fprintf (stderr, "Error allocating memory for read byte_test: %llu\n" ,byte_test_length ); exit (-1); } r_byte_test [byte_test_length] = 0; #endif int var_x1 = 101; int var_x2 = 102; int zionsize1 = 10; // fixed size int zionsize2 = 2; // attr_dim int zionsize3 = 5; // attr_dim2 float * zion1; float * zion2; float * zion3; zion1 = malloc (zionsize1 * sizeof (float)); zion2 = malloc (zionsize2 * zionsize2 * sizeof (float)); zion3 = malloc (zionsize2 * zionsize3 * sizeof (float)); assert (zion1); assert (zion2); assert (zion3); memset (zion1, 0, zionsize1 * sizeof (float)); memset (zion2, 0, zionsize2 * zionsize2 * sizeof (float)); memset (zion3, 0, zionsize2 * zionsize3 * sizeof (float)); int r_var_x1; int r_var_x2; int r_zsize; float r_z [zionsize1]; int node = 0; uint64_t total; int i; int j; zion1 [0] = 10.0; zion1 [1] = 11.0; zion1 [2] = 12.0; zion1 [3] = 13.0; zion1 [4] = 14.0; zion1 [5] = 15.0; zion1 [6] = 16.0; zion1 [7] = 17.0; zion1 [8] = 18.0; zion1 [9] = 19.0; for (i = 0; i < 100; i++) for (j = 0; j < 26; j++) byte_test [i * 26 + j] = 'a' + j; // allocate a big block of memory to stymie unwanted local caching // that would make the numbers suspect #if MEMORY_THIEF char * memory_thief = malloc (1 * 1024 * 1024 * 1024); #endif //if (rank == 0) time_diff_all = (struct timeval *) malloc (size * sizeof (struct timeval)); // else // time_diff_all = 0; #if DO_WRITE //printf ("XXXXXXXXXXXXXXXX do a write XXXXXXXXXXXXXXXXX\n"); gettimeofday (&time_start, NULL); adios_open (&io_handle, type_name, filename, "w", comm); gettimeofday (&time_open, NULL); #if 1 adios_group_size (io_handle, 4 + byte_test_length, &total); gettimeofday (&time_group_size, NULL); #else adios_group_size (io_handle, 4 + 4 + 4 * zionsize1 + 4 + 4 * zionsize2 * zionsize2 + 4 + 4 * zionsize2 * zionsize3 + 4 + 4 + byte_test_length ,&total ); gettimeofday (&time_group_size, NULL); adios_write (io_handle, "/mype", &var_x1); adios_write (io_handle, "/test/mype", &var_x2); adios_write (io_handle, "zion1", zion1); adios_write (io_handle, "zionsize2", &zionsize2); adios_write (io_handle, "zion2", zion2); adios_write (io_handle, "zionsize3", &zionsize3); adios_write (io_handle, "zion3", zion3); adios_write (io_handle, "node-attr", &node); #endif adios_write (io_handle, "byte_test_length", &byte_test_length); gettimeofday (&time_write1, NULL); adios_write (io_handle, "byte_test", byte_test); gettimeofday (&time_write2, NULL); adios_close (io_handle); gettimeofday (&time_end, NULL); MPI_Barrier (comm); timeval_subtract (&time_diff, &time_end, &time_start); MPI_Gather (&time_diff, sizeof (struct timeval), MPI_BYTE ,time_diff_all, sizeof (struct timeval), MPI_BYTE ,0, comm ); if (rank == 0) { memcpy (&(time_diff_all [0]), &time_diff, sizeof (struct timeval)); int i; int max_sec = 0; int max_usec = 0; int min_sec = INT_MAX; int min_usec = INT_MAX; printf ("Proc\tSec\n"); for (i = 0; i < size; i++) { printf ("%06d\t%02d.%06d\n", i, time_diff_all [i].tv_sec ,time_diff_all [i].tv_usec ); if (time_diff_all [i].tv_sec >= max_sec) { if ( time_diff_all [i].tv_usec > max_usec || time_diff_all [i].tv_sec > max_sec ) { max_sec = time_diff_all [i].tv_sec; max_usec = time_diff_all [i].tv_usec; } } if (time_diff_all [i].tv_sec <= min_sec) { if ( time_diff_all [i].tv_usec < min_usec || time_diff_all [i].tv_sec < min_sec ) { min_sec = time_diff_all [i].tv_sec; min_usec = time_diff_all [i].tv_usec; } } } printf ("Max time:\t%02d.%06d\n", max_sec, max_usec); printf ("Aggregate GB/sec:\t%f\n", (1.0 * total * size / (1024 * 1024 * 1024)) / (max_sec + (max_usec / 1000000.0))); } timeval_subtract (&time_diff, &time_end, &time_write2); MPI_Gather (&time_diff, sizeof (struct timeval), MPI_BYTE ,time_diff_all, sizeof (struct timeval), MPI_BYTE ,0, comm ); if (rank == 0) { memcpy (&(time_diff_all [0]), &time_diff, sizeof (struct timeval)); int i; int max_sec = 0; int max_usec = 0; int min_sec = INT_MAX; int min_usec = INT_MAX; for (i = 0; i < size; i++) { if (time_diff_all [i].tv_sec >= max_sec) { if ( time_diff_all [i].tv_usec > max_usec || time_diff_all [i].tv_sec > max_sec ) { max_sec = time_diff_all [i].tv_sec; max_usec = time_diff_all [i].tv_usec; } } if (time_diff_all [i].tv_sec <= min_sec) { if ( time_diff_all [i].tv_usec < min_usec || time_diff_all [i].tv_sec < min_sec ) { min_sec = time_diff_all [i].tv_sec; min_usec = time_diff_all [i].tv_usec; } } } printf ("Max write only time:\t%02d.%06d\n", max_sec, max_usec); printf ("Aggregate write only GB/sec:\t%f\n", (1.0 * total * size / (1024 * 1024 * 1024)) / (max_sec + (max_usec / 1000000.0))); } MPI_Barrier (comm); #endif #if DO_READ printf ("XXXXXXXXXXXXXXXX do a read XXXXXXXXXXXXXXXXX\n"); adios_open (&io_handle, type_name, filename, "r", comm); adios_group_size (io_handle, 0, &total); adios_read (io_handle, "/mype", &r_var_x1, 4); adios_read (io_handle, "/test/mype", &r_var_x2, 4); adios_read (io_handle, "zionsize2", &r_zsize, 4); adios_read (io_handle, "zion1", r_z, 4 * 10); adios_read (io_handle, "byte_test", r_byte_test, 26 * 100); adios_close (io_handle); MPI_Barrier (comm); for (i = 0; i < byte_test_length; i++) if (r_byte_test [i] != byte_test [i]) { printf ("byte_test doesn't match %d\n", i); printf ("byte_test:\n%s\n", byte_test); printf ("r_byte_test:\n%s\n", r_byte_test); break; } if ( var_x1 != r_var_x1 || var_x2 != r_var_x2 || r_zsize != zionsize2 || r_z [0] != zion1 [0] || r_z [1] != zion1 [1] || r_z [2] != zion1 [2] || r_z [3] != zion1 [3] || r_z [4] != zion1 [4] || r_z [5] != zion1 [5] || r_z [6] != zion1 [6] || r_z [7] != zion1 [7] || r_z [8] != zion1 [8] || r_z [9] != zion1 [9] ) { int i; printf ("rank: %d mismatch in reading\n", rank); printf ("r_var_x1: %d (%d)\n", r_var_x1, var_x1); printf ("r_var_x2: %d (%d)\n", r_var_x2, var_x2); printf ("r_zsize: %d (%d)\n", r_zsize, zionsize1); for (i = 0; i < 10; i++) printf ("z_dim [%d]: %f (%f)\n", i, r_z [i], zion1 [i]); } else { printf ("rank: %d read matches write\n", rank); } #endif #if DO_APPEND for (int i = 0; i < 3; i++) { printf ("XXXXXXXXXXXXXXXX do an append XXXXXXXXXXXXXXXXX\n"); var_x1 = 11; adios_open (&io_handle, type_name, filename, "a", comm); adios_group_size (io_handle, 4 + 4 + 4 * zionsize1 + 4 + 4 * zionsize2 * zionsize2 + 4 ,&total ); adios_write (io_handle, "/mype", &var_x1); adios_write (io_handle, "/test/mype", &var_x2); adios_write (io_handle, "zion1", zion1); adios_write (io_handle, "zionsize2", &zionsize2); adios_write (io_handle, "zion2", zion2); adios_write (io_handle, "node-attr", &node); adios_close (io_handle); printf ("rank: %d append completed\n", rank); } #endif MPI_Barrier (comm); adios_finalize (node); MPI_Finalize (); free (zion1); free (zion2); free (zion3); #if DO_WRITE free (byte_test); #endif #if DO_READ free (r_byte_test); #endif #if MEMORY_THIEF free (memory_thief); #endif return 0; } adios-1.5.0/tests/C/Makefile.in0000644000175000017500000004354312251360163017347 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = adios_test_c$(EXEEXT) subdir = tests/C DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_adios_test_c_OBJECTS = adios_test_c-adios_test_c.$(OBJEXT) adios_test_c_OBJECTS = $(am_adios_test_c_OBJECTS) am__DEPENDENCIES_1 = adios_test_c_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) adios_test_c_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(adios_test_c_CFLAGS) \ $(CFLAGS) $(adios_test_c_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(adios_test_c_SOURCES) DIST_SOURCES = $(adios_test_c_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies adios_test_c_SOURCES = adios_test_c.c adios_test_c_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) adios_test_c_CFLAGS = $(ADIOSLIB_CFLAGS) adios_test_c_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) adios_test_c_LDFLAGS = $(ADIOSLIB_LDFLAGS) CLEANFILES = restart.bp EXTRA_DIST = config_c.xml all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/C/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/C/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list adios_test_c$(EXEEXT): $(adios_test_c_OBJECTS) $(adios_test_c_DEPENDENCIES) @rm -f adios_test_c$(EXEEXT) $(adios_test_c_LINK) $(adios_test_c_OBJECTS) $(adios_test_c_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< adios_test_c-adios_test_c.o: adios_test_c.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(adios_test_c_CPPFLAGS) $(CPPFLAGS) $(adios_test_c_CFLAGS) $(CFLAGS) -c -o adios_test_c-adios_test_c.o `test -f 'adios_test_c.c' || echo '$(srcdir)/'`adios_test_c.c adios_test_c-adios_test_c.obj: adios_test_c.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(adios_test_c_CPPFLAGS) $(CPPFLAGS) $(adios_test_c_CFLAGS) $(CFLAGS) -c -o adios_test_c-adios_test_c.obj `if test -f 'adios_test_c.c'; then $(CYGPATH_W) 'adios_test_c.c'; else $(CYGPATH_W) '$(srcdir)/adios_test_c.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/tests/C/CMakeLists.txt0000644000175000017500000000116212251360163020031 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/tests/C) include_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) link_directories(${PROJECT_SOURCE_DIR}/src) link_directories(${MXML_INCLUDE_DIR}/../lib) add_executable(adios_test_c adios_test_c.c) target_link_libraries(adios_test_c adios ${ADIOSLIB_LDADD}) set(adios_test_c_CPPFLAGS "${ADIOSLIB_CPPFLAGS}") set(adios_test_c_CFLAGS "${ADIOSLIB_CFLAGS}") set_target_properties(adios_test_c PROPERTIES COMPILE_FLAGS "${adios_test_c_CFLAGS} ${adios_test_c_CPPFLAGS}") #install(FILES config_c.xml DESTINATION ${PROJECT_BINARY_DIR}/tests/C) adios-1.5.0/tests/C/config_c.xml0000644000175000017500000000310712251360163017563 0ustar amckinstryamckinstry max_storage_targets=144;max_stripe_count=144;files_number=1;overlap_factor= 0;min_stripe_count=1;split_target_count=1;split_files_count=max adios-1.5.0/tests/suite/0000755000175000017500000000000012251360163016240 5ustar amckinstryamckinstryadios-1.5.0/tests/suite/Makefile.am0000644000175000017500000000032312251360163020272 0ustar amckinstryamckinstrySUBDIRS = programs EXTRA_DIST = HOWTO-Add-new-test \ HOWTO-Run \ cleanup.sh \ reference/* \ test.sh \ tests/* adios-1.5.0/tests/suite/test.sh0000755000175000017500000001075712251360163017570 0ustar amckinstryamckinstry#!/bin/bash # # Run this script in an interactive-job environment, with 16 cores at least. # Define MPIRUN and NP_MPIRUN environment variables for running parallel programs # like mpirun and -np or aprun and -n # # Run the script in the job directory with full path. # # Log output of each test can be found in ./log/ # # default values XXX=`which aprun &>/dev/null` if [ $? == 0 ]; then MPIRUN="aprun -q" NP_MPIRUN=-n else MPIRUN=mpirun NP_MPIRUN=-np fi KEEPOUTPUT=no MAXPROCS=128 function Usage() { echo " Usage: /`basename $0` [-m runcmd] [-n "-np"] [-p procs] [-h] [-k] [pattern [pattern2 pattern3 ...]] is used to find all the test codes, inputs and reference outputs. codes and inputs will be copied to the job directory pattern if given, only those tests are executed, that match 'tests/**.sh'; otherwise all tests are executed. e.g. arguments 1[0-3] attr global will execute all tests that have any of the strings 10,11,12,13,attr or global in their name (and end with .sh) OPTIONS -m runcmd command to start an MPI program. Default: $MPIRUN -n runopt option to runcmd to specify number of cores. Default: $NP_MPIRUN -p procs Run only those tests that use less up to 'procs' processes. Default: $MAXPROCS -k Do not remove logs and work dir of successful tests. -h Print this help. " } ##################### # Process arguments # ##################### # process option arguments while getopts ":m:n:p:kh" Option do case $Option in m) MPIRUN=$OPTARG;; n) NP_MPIRUN=$OPTARG;; p) MAXPROCS=$OPTARG;; k) KEEPOUTPUT=yes;; h) Usage; exit 0;; *) echo "Invalid option $Option"; Usage; exit 255;; # DEFAULT esac done shift $(($OPTIND - 1)) # get source path SRCDIR=`dirname $0` TRUNKDISTANCE=../.. if [ "${SRCDIR:0:1}" != "/" ]; then echo "WARNING: Jobs on some systems do not have access to any directory but to " echo " parallel file systems. If the tests fail because of this, run this script" echo " from a directory on the parallel file system and the script will copy the" echo " data automatically." echo " " fi # check if Fortran codes were built S=`grep BUILD_FORTRAN_TRUE $SRCDIR/$TRUNKDISTANCE/Makefile` if [ -z ${S#BUILD_FORTRAN_TRUE = } ]; then HAVE_FORTRAN=yes else echo "WARNING: Fortran binaries are not built, so test will not use them" HAVE_FORTRAN=no fi # Print info before running tests echo "Settings:" echo " Test source directory: $SRCDIR" echo " Run command: $MPIRUN" echo " Run command np option: $NP_MPIRUN" echo " Max. processes to use: $MAXPROCS" echo " Keep test output: $KEEPOUTPUT" # find and list tests to be executed TESTS= if [ ! -z "$1" ]; then while [ ! -z "$1" ]; do TESTS1=`ls $SRCDIR/tests/*$1*.sh` if [ -z "$TESTS1" ]; then echo "ERROR: Did not find any test with name \"$1\" in $SRCDIR/tests." else TESTS="$TESTS $TESTS1" fi shift 1 done if [ -z "$TESTS" ]; then exit 1 fi echo " Tests found: $TESTS" else TESTS=`ls $SRCDIR/tests/*.sh` if [ -z "$TESTS" ]; then echo "ERROR: Did not find any test in $SRCDIR/tests." exit 1 fi fi echo "" echo "Run tests" # run tests one by one for TESTSCRIPT in $TESTS; do TEST=`basename ${TESTSCRIPT%%.sh}` echo -n " Test $TEST ... " rm -rf log.$TEST work.$TEST mkdir -p work.$TEST pushd work.$TEST >/dev/null if [ "${SRCDIR:0:1}" == "/" ]; then TESTSRCDIR=$SRCDIR TRUNKDIR=$SRCDIR/$TRUNKDISTANCE else # we are one level deeper now TESTSRCDIR=../$SRCDIR TRUNKDIR=../$SRCDIR/$TRUNKDISTANCE TESTSCRIPT=../$TESTSCRIPT fi # Run the test script with setting the environment for it MPIRUN="$MPIRUN" NP_MPIRUN="$NP_MPIRUN" HAVE_FORTRAN="$HAVE_FORTRAN" SRCDIR="$TESTSRCDIR" \ TRUNKDIR="$TRUNKDIR" MAXPROCS="$MAXPROCS" \ $TESTSCRIPT &> ../log.$TEST EX=$? popd >/dev/null if [ $EX == 0 ]; then echo "OK" [ "$KEEPOUTPUT" == "no" ] && rm -rf work.$TEST log.$TEST elif [ $EX == 77 ];then echo "SKIP. Check log.$TEST for the reason" [ "$KEEPOUTPUT" == "no" ] && rm -rf work.$TEST else echo "FAILED with exit code $EX. Check log.$TEST for details and work.$TEST/ for outputs." fi done adios-1.5.0/tests/suite/HOWTO-Add-new-test0000644000175000017500000000352312251360163021320 0ustar amckinstryamckinstrySequential tests ================ They should be put into ./programs and built/run by make check. Note that MPI codes cannot run on supercomputer login nodes, even if you have a single process (i.e. adios write API must be tested in parallel). - Put your source and extra input into ./programs - Edit the ./programs/Makefile.am to build your code. Follow the instructions in Makefile.am - make check will build all codes defined in check_PROGRAMS, and runs those that are defined in TESTS in the Makefile.am Parallel tests ============== test.sh runs all .sh script found in ./tests, so you need to make your new shell script in ./tests. The script has no arguments but a few environment variables are set: MPIRUN Run command MPIRUN_NP Run commands option to set number of processes MAXPROCS Max number of processes allowed HAVE_FORTRAN yes or no. If no, do not try to use the Fortran examples... SRCDIR Test source dir where the test.sh is executed from. Your script is in $1/tests (== `dirname $0`) $1/references should store the data to which you compare the test run $1/programs should contain the binaries you use and are built with "make check" TRUNKDIR ADIOS trunk dir all sources, tests and examples are accessible from this dir Your parallel test program should be executed as $MPIRUN $MPIRUN_NP The test.sh creates a ./work.testname/ subdirectory, enters it and runs your script from there. All stdout and stderr of your script goes into ../log. Your script should exit normally (exit 0) if everything is fine, and exit 1 on error (or any non-zero). exit 77 means skipping this test (a'la automake). Print useful error logs to stdout/stderr to help find the tester what went wrong. adios-1.5.0/tests/suite/tests/0000755000175000017500000000000012251360163017402 5ustar amckinstryamckinstryadios-1.5.0/tests/suite/tests/01_scalars.sh0000755000175000017500000000635612251360163021703 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios can write and read scalars correctly # Uses codes from examples/C/scalars and examples/Fortran/scalars # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run command's option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=3 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $TRUNKDIR/examples/C/scalars/scalars_read . cp $TRUNKDIR/examples/C/scalars/scalars_write . cp $TRUNKDIR/examples/C/scalars/scalars.xml . echo "Run C scalars_write" echo $MPIRUN $NP_MPIRUN $PROCS ./scalars_write $MPIRUN $NP_MPIRUN $PROCS ./scalars_write EX=$? if [ ! -f scalars.bp ]; then echo "ERROR: C version of scalars_write failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -lav scalars.bp | grep -v endianness > c_bpls.txt diff -q c_bpls.txt $SRCDIR/reference/scalars_write_bpls.txt if [ $? != 0 ]; then echo "ERROR: C version of scalars_write produced a file different from the reference." echo "Compare \"bpls -lav $PWD/scalars.bp | grep -v endianness\" to reference $SRCDIR/reference/scalars_write_bpls.txt" exit 1 fi echo "Run C scalars_read" $MPIRUN $NP_MPIRUN $PROCS ./scalars_read > c_read.txt EX=$? if [ $? != 0 ]; then echo "ERROR: C version of scalars_read failed with exit code $EX" exit 1 fi diff -q c_read.txt $SRCDIR/reference/scalars_read_c.txt if [ $? != 0 ]; then echo "ERROR: C version of scalars_read produced an output different from the reference." echo "Compare $PWD/c_read.txt reference $SRCDIR/reference/scalars_read_c.txt" exit 1 fi if [ $HAVE_FORTRAN != yes ]; then exit 0 fi # run the Fortran tests too if available mv scalars.xml scalars_c.xml mv scalars.bp scalars_c.bp cp $TRUNKDIR/examples/Fortran/scalars/scalars_read fortran_read cp $TRUNKDIR/examples/Fortran/scalars/scalars_write fortran_write cp $TRUNKDIR/examples/Fortran/scalars/scalars.xml . echo "Run Fortran scalar_write" $MPIRUN $NP_MPIRUN $PROCS ./fortran_write EX=$? if [ ! -f scalars.bp ]; then echo "ERROR: Fortran version of scalars_write failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -lav scalars.bp | grep -v endianness > f_bpls.txt diff -q f_bpls.txt $SRCDIR/reference/scalars_write_bpls.txt if [ $? != 0 ]; then echo "ERROR: Fortran version of scalars_write produced a file different from the reference" echo "Compare \"bpls -lav scalars.bp | grep -v endianness\" to reference $SRCDIR/reference/scalars_write_bpls.txt" exit 1 fi echo "Run Fortran scalars_read" $MPIRUN $NP_MPIRUN $PROCS ./fortran_read > f_read.txt EX=$? if [ $? != 0 ]; then echo "ERROR: Fortran version of scalars_read failed with exit code $EX" exit 1 fi diff -q f_read.txt $SRCDIR/reference/scalars_read_f.txt if [ $? != 0 ]; then echo "ERROR: Fortran version of scalars_read produced an output different from the reference." echo "Compare $PWD/f_read.txt reference $SRCDIR/reference/scalars_read_f.txt" exit 1 fi adios-1.5.0/tests/suite/tests/13_write_byid.sh0000755000175000017500000000571512251360163022415 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios can write and read global arrays over time correctly # Uses codes from examples/C/global-array and examples/Fortran/global-array # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=7 READPROCS=3 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $TRUNKDIR/examples/C/global-array/no_xml_write_byid . cp $TRUNKDIR/examples/C/global-array/read_no_xml_write_byid . echo "Run C no_xml_write_byid" ls -l ./no_xml_write_byid echo $MPIRUN $NP_MPIRUN $PROCS ./no_xml_write_byid $MPIRUN $NP_MPIRUN $PROCS ./no_xml_write_byid EX=$? if [ ! -f no_xml_write_byid.bp ]; then echo "ERROR: C version of no_xml_write_byid failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -lav no_xml_write_byid.bp -d -n 10 | grep -v endianness > c_bpls.txt diff -q c_bpls.txt $SRCDIR/reference/no_xml_write_byid_bpls.txt if [ $? != 0 ]; then echo "ERROR: C version of no_xml_write_byid produced a file different from the reference." echo "Compare \"bpls -lav $PWD/no_xml_write_byid.bp -d -n 10 | grep -v endianness\" to reference $SRCDIR/reference/no_xml_write_byid_bpls.txt" exit 1 fi echo "Run C read_no_xml_write_byid" $MPIRUN $NP_MPIRUN $READPROCS ./read_no_xml_write_byid > c_read.txt EX=$? if [ $? != 0 ]; then echo "ERROR: C version of read_no_xml_write_byid exited with $EX" echo "Check $PWD/c_read.txt" exit 1 fi echo "Check output" diff -q c_read.txt $SRCDIR/reference/no_xml_write_byid_read.txt if [ $? != 0 ]; then echo "ERROR: C version of read_no_xml_write_byid produced a file different from the reference." echo "$PWD/c_read.txt to reference $SRCDIR/reference/no_xml_write_byid_read.txt" exit 1 fi if [ $HAVE_FORTRAN != yes ]; then exit 0 fi # run the Fortran tests too if available mv no_xml_write_byid.bp no_xml_write_byid_c.bp cp $TRUNKDIR/examples/Fortran/global-array/no_xml_write_byid no_xml_write_byid_f echo "Run Fortran no_xml_write_byid" $MPIRUN $NP_MPIRUN $PROCS ./no_xml_write_byid_f EX=$? if [ ! -f no_xml_write_byid.bp ]; then echo "ERROR: Fortran version of no_xml_write_byid failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -lav no_xml_write_byid.bp -d -n 10 | grep -v endianness > f_bpls.txt diff -q f_bpls.txt $SRCDIR/reference/no_xml_write_byid_f_bpls.txt if [ $? != 0 ]; then echo "ERROR: Fortran version of no_xml_write_byid produced a file different from the reference." echo "Compare \"bpls -lav $PWD/no_xml_write_byid.bp -d -n 10 | grep -v endianness\" to reference $SRCDIR/reference/no_xml_write_byid_f_bpls.txt" exit 1 fi adios-1.5.0/tests/suite/tests/08_amr_write_read.sh0000755000175000017500000000456512251360163023246 0ustar amckinstryamckinstry#!/bin/bash # # Test if staged read method functions correctly # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=32 READPROCS=4 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $SRCDIR/programs/adios_amr_write . cp $SRCDIR/programs/adios_amr_write.xml . cp $SRCDIR/programs/adios_staged_read . cp $SRCDIR/programs/adios_staged_read_v2 . for ((m=1; m <= 2 ; m++)) do echo "Run C adios_amr_write" ls -l ./adios_amr_write echo $MPIRUN $NP_MPIRUN $PROCS ./adios_amr_write $m rm -f *.bp $MPIRUN $NP_MPIRUN $PROCS ./adios_amr_write $m EX=$? ls -l ./adios_amr_write.bp if [ ! -f adios_amr_write.bp ]; then echo "ERROR: C version of adios_amr_write failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Run C adios_staged_read" ls -l ./adios_staged_read export num_aggregators=2 export chunk_size=64 for ((n=1; n <= 5 ; n++)) do echo $MPIRUN $NP_MPIRUN $READPROCS ./adios_staged_read $n $MPIRUN $NP_MPIRUN $READPROCS ./adios_staged_read $n| grep -v aggregator | grep [0-9] > 08_amr_write_read_$n.txt EX=$? echo "Check output with reference" diff -q 08_amr_write_read_$n.txt $SRCDIR/reference/amr_write_read_$n.txt if [ $? != 0 ]; then echo "ERROR: C version of adios_staged_read produced data different from the reference." exit 1 fi done echo "Run C adios_staged_read_v2" ls -l ./adios_staged_read_v2 export num_aggregators=2 export chunk_size=64 for ((n=1; n <= 5 ; n++)) do echo $MPIRUN $NP_MPIRUN $READPROCS ./adios_staged_read_v2 $n $MPIRUN $NP_MPIRUN $READPROCS ./adios_staged_read_v2 $n| grep -v aggregator | grep [0-9] > 08_amr_write_read_$n.txt EX=$? echo "Check output with reference" diff -q 08_amr_write_read_$n.txt $SRCDIR/reference/amr_write_read_$n.txt if [ $? != 0 ]; then echo "ERROR: C version of adios_staged_read_v2 produced data different from the reference." exit 1 fi done done adios-1.5.0/tests/suite/tests/04_global_array.sh0000755000175000017500000000561212251360163022706 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios can write and read global arrays over time correctly # Uses codes from examples/C/global-array and examples/Fortran/global-array # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=7 READPROCS=3 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $TRUNKDIR/examples/C/global-array/adios_global . cp $TRUNKDIR/examples/C/global-array/adios_read_global . cp $TRUNKDIR/examples/C/global-array/adios_global.xml . echo "Run C adios_global" $MPIRUN $NP_MPIRUN $PROCS ./adios_global EX=$? if [ ! -f adios_global.bp ]; then echo "ERROR: C version of adios_global failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -la adios_global.bp -d -n 10 | grep -v endianness > c_bpls.txt diff -q c_bpls.txt $SRCDIR/reference/global_array_bpls.txt if [ $? != 0 ]; then echo "ERROR: C version of adios_global produced a file different from the reference." echo "Compare \"bpls -la $PWD/adios_global.bp -d -n 10 | grep -v endianness\" to reference $SRCDIR/reference/global_array_bpls.txt" exit 1 fi echo "Run C adios_read_global" $MPIRUN $NP_MPIRUN $READPROCS ./adios_read_global | sort > c_read.txt EX=$? if [ $? != 0 ]; then echo "ERROR: C version of adios_read_global exited with $EX" echo "Check $PWD/c_read.txt" exit 1 fi echo "Check output" diff -q c_read.txt $SRCDIR/reference/global_array_read.txt if [ $? != 0 ]; then echo "ERROR: C version of adios_read_global produced a file different from the reference." echo "$PWD/c_read.txt to reference $SRCDIR/reference/global_array_read.txt" exit 1 fi if [ $HAVE_FORTRAN != yes ]; then exit 0 fi # run the Fortran tests too if available mv adios_global.xml adios_global_c.xml mv adios_global.bp adios_global_c.bp cp $TRUNKDIR/examples/Fortran/global-array/adios_global adios_global_f cp $TRUNKDIR/examples/Fortran/global-array/adios_global.xml . echo "Run Fortran adios_global_f" $MPIRUN $NP_MPIRUN $PROCS ./adios_global_f EX=$? if [ ! -f adios_global.bp ]; then echo "ERROR: Fortran version of adios_global failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -la adios_global.bp -d -n 10 | grep -v endianness > f_bpls.txt diff -q f_bpls.txt $SRCDIR/reference/global_array_bpls.txt if [ $? != 0 ]; then echo "ERROR: Fortran version of adios_global produced a file different from the reference." echo "Compare \"bpls -lav $PWD/adios_global.bp -d -n 10 | grep -v endianness\" to reference $SRCDIR/reference/global_array_bpls.txt" exit 1 fi adios-1.5.0/tests/suite/tests/06_posix_method.sh0000755000175000017500000000265712251360163022762 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios POSIX method # Uses codes from SRCDIR/programs/posix_method # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=3 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi if [ "$HAVE_FORTRAN" != "yes" ]; then echo "Fortran is not available for this ADIOS build. This tests wants to use a Fortran90 code." exit 77 fi # copy codes and inputs to . cp $SRCDIR/programs/posix_method . cp $SRCDIR/programs/posix_method.xml . echo "Run posix_method" $MPIRUN $NP_MPIRUN $PROCS ./posix_method EX=$? if [ $EX != 0 ]; then echo "ERROR: posix method failed with exit code=$EX" exit $EX fi if [ ! -f posix_method.bp ]; then echo "ERROR: posix_method failed. No BP file posix_method.bp was created." exit 1 fi if [ ! -d posix_method.bp.dir ]; then echo "ERROR: posix_method failed. No BP subfile directory posix_method.bp.dir was created." exit 1 fi for ((i=0; i<$PROCS; i++)); do if [ ! -f posix_method.bp.dir/posix_method.bp.$i ]; then echo "ERROR: posix_method failed. No BP subfile posix_method.bp.dir/posix_method.bp.$i was created." exit 1 fi done adios-1.5.0/tests/suite/tests/02_attributes.sh0000755000175000017500000000353612251360163022437 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios can write and read attributes correctly # Uses codes from examples/C/attributes # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=5 READPROCS=2 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $TRUNKDIR/examples/C/attributes/attributes_read . cp $TRUNKDIR/examples/C/attributes/attributes_write . cp $TRUNKDIR/examples/C/attributes/attributes.xml . echo "Run C attributes_write" $MPIRUN $NP_MPIRUN $PROCS ./attributes_write EX=$? if [ ! -f attributes.bp ]; then echo "ERROR: C version of attributes_write failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -lav attributes.bp | grep -v endianness > c_bpls.txt diff -q c_bpls.txt $SRCDIR/reference/attributes_bpls.txt if [ $? != 0 ]; then echo "ERROR: C version of attributes_write produced a file different from the reference." echo "Compare \"bpls -lav $PWD/attributes.bp | grep -v endianness\" to reference $SRCDIR/reference/attributes_bpls.txt" exit 1 fi echo "Run C attributes_read" $MPIRUN $NP_MPIRUN $READPROCS ./attributes_read | sort > c_read.txt EX=$? if [ $? != 0 ]; then echo "ERROR: C version of attributes_read failed with exit code $EX" exit 1 fi echo "Check output" diff -q c_read.txt $SRCDIR/reference/attributes_read.txt if [ $? != 0 ]; then echo "ERROR: C version of attributes_read produced an output different from the reference." echo "Compare $PWD/c_read.txt reference $SRCDIR/reference/attributes_read.txt" exit 1 fi adios-1.5.0/tests/suite/tests/12_selections.sh0000755000175000017500000000156412251360163022421 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios can read data with points selection # Uses ../programs/selections # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=1 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $SRCDIR/programs/selections . echo "Run selections" $MPIRUN $NP_MPIRUN $PROCS ./selections EX=$? if [ ! -f selections.bp ]; then echo "ERROR: selections failed at creating the BP file, selections.bp. Exit code=$EX" exit 1 fi if [ $EX != 0 ]; then echo "ERROR: selections failed with exit code=$EX" exit 1 fi adios-1.5.0/tests/suite/tests/05_global_array_time.sh0000755000175000017500000000577612251360163023740 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios can write and read global arrays over time correctly # Uses codes from examples/C/global-array-time and examples/Fortran/global-array-time # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=9 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $TRUNKDIR/examples/C/global-array-time/adios_globaltime . cp $TRUNKDIR/examples/C/global-array-time/adios_read_globaltime . cp $TRUNKDIR/examples/C/global-array-time/adios_globaltime.xml . echo "Run C adios_globaltime" $MPIRUN $NP_MPIRUN $PROCS ./adios_globaltime EX=$? if [ ! -f adios_globaltime.bp ]; then echo "ERROR: C version of adios_globaltime failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -la adios_globaltime.bp | grep -v endianness > c_bpls.txt diff -q c_bpls.txt $SRCDIR/reference/global_array_time_bpls.txt if [ $? != 0 ]; then echo "ERROR: C version of adios_globaltime produced a file different from the reference." echo "Compare \"bpls -la $PWD/adios_globaltime.bp | grep -v endianness\" to reference $SRCDIR/reference/global_array_time_bpls.txt" exit 1 fi echo "Run C adios_read_globaltime" $MPIRUN $NP_MPIRUN $PROCS ./adios_read_globaltime > c_read.txt EX=$? if [ $? != 0 ]; then echo "ERROR: C version of adios_read_globaltime exited with $EX" echo "Check $PWD/c_read.txt" exit 1 fi echo "Check output" diff -q c_read.txt $SRCDIR/reference/global_array_time_read.txt if [ $? != 0 ]; then echo "ERROR: C version of adios_read_globaltime produced a file different from the reference." echo "$PWD/c_read.txt to reference $SRCDIR/reference/global_array_time_read.txt" exit 1 fi if [ $HAVE_FORTRAN != yes ]; then exit 0 fi # run the Fortran tests too if available mv adios_globaltime.xml adios_globaltime_c.xml mv adios_globaltime.bp adios_globaltime_c.bp cp $TRUNKDIR/examples/Fortran/global-array-time/adios_globaltime adios_globaltime_f cp $TRUNKDIR/examples/Fortran/global-array-time/adios_globaltime.xml . echo "Run Fortran adios_globaltime_f" $MPIRUN $NP_MPIRUN $PROCS ./adios_globaltime_f EX=$? if [ ! -f adios_globaltime.bp ]; then echo "ERROR: Fortran version of adios_globaltime failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -la adios_globaltime.bp | grep -v endianness > f_bpls.txt diff -q f_bpls.txt $SRCDIR/reference/global_array_time_bpls.txt if [ $? != 0 ]; then echo "ERROR: Fortran version of adios_globaltime produced a file different from the reference." echo "Compare \"bpls -la $PWD/adios_globaltime.bp | grep -v endianness\" to reference $SRCDIR/reference/global_array_time_bpls.txt" exit 1 fi adios-1.5.0/tests/suite/tests/09_amr_write_read_2vars.sh0000755000175000017500000000342612251360163024357 0ustar amckinstryamckinstry#!/bin/bash # # Test if staged read method functions correctly # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=32 READPROCS=4 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $SRCDIR/programs/adios_amr_write_2vars . cp $SRCDIR/programs/adios_amr_write_2vars.xml . cp $SRCDIR/programs/adios_staged_read_2vars . for ((m=1; m <= 2 ; m++)) do echo "Run C adios_amr_write_2vars" ls -l ./adios_amr_write_2vars echo $MPIRUN $NP_MPIRUN $PROCS ./adios_amr_write_2vars $m rm -f *.bp $MPIRUN $NP_MPIRUN $PROCS ./adios_amr_write_2vars $m EX=$? ls -l ./adios_amr_write_2vars.bp if [ ! -f adios_amr_write_2vars.bp ]; then echo "ERROR: C version of adios_amr_write_2vars failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Run C adios_staged_read_2vars" ls -l ./adios_staged_read_2vars export num_aggregators=2 export chunk_size=64 for ((n=1; n <= 5 ; n++)) do echo $MPIRUN $NP_MPIRUN $READPROCS ./adios_staged_read_2vars $n $MPIRUN $NP_MPIRUN $READPROCS ./adios_staged_read_2vars $n| grep -v aggregator | grep [0-9] > 09_amr_write_read_$n.txt EX=$? echo "Check output with reference" diff -q 09_amr_write_read_$n.txt $SRCDIR/reference/amr_write_read_2vars_$n.txt if [ $? != 0 ]; then echo "ERROR: C version of adios_staged_read_2vars produced data different from the reference." exit 1 fi done done adios-1.5.0/tests/suite/tests/07_global_array_no_xml.sh0000755000175000017500000000604312251360163024264 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios can write and read global arrays over time correctly # Uses codes from examples/C/global-array and examples/Fortran/global-array # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=7 READPROCS=3 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $TRUNKDIR/examples/C/global-array/adios_global_no_xml . cp $TRUNKDIR/examples/C/global-array/adios_read_global_no_xml . echo "Run C adios_global_no_xml" ls -l ./adios_global_no_xml echo $MPIRUN $NP_MPIRUN $PROCS ./adios_global_no_xml $MPIRUN $NP_MPIRUN $PROCS ./adios_global_no_xml EX=$? if [ ! -f adios_global_no_xml.bp ]; then echo "ERROR: C version of adios_global_no_xml failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -lav adios_global_no_xml.bp -d -n 10 | grep -v endianness > c_bpls.txt diff -q c_bpls.txt $SRCDIR/reference/global_array_no_xml_bpls.txt if [ $? != 0 ]; then echo "ERROR: C version of adios_global_no_xml produced a file different from the reference." echo "Compare \"bpls -lav $PWD/adios_global_no_xml.bp -d -n 10 | grep -v endianness\" to reference $SRCDIR/reference/global_array_no_xml_bpls.txt" exit 1 fi echo "Run C adios_read_global_no_xml" $MPIRUN $NP_MPIRUN $READPROCS ./adios_read_global_no_xml > c_read.txt EX=$? if [ $? != 0 ]; then echo "ERROR: C version of adios_read_global_no_xml exited with $EX" echo "Check $PWD/c_read.txt" exit 1 fi echo "Check output" diff -q c_read.txt $SRCDIR/reference/global_array_no_xml_read.txt if [ $? != 0 ]; then echo "ERROR: C version of adios_read_global produced a file different from the reference." echo "$PWD/c_read.txt to reference $SRCDIR/reference/global_array_no_xml_read.txt" exit 1 fi if [ $HAVE_FORTRAN != yes ]; then exit 0 fi # run the Fortran tests too if available mv adios_global_no_xml.bp adios_global_no_xml_c.bp cp $TRUNKDIR/examples/Fortran/global-array/adios_global_no_xml adios_global_f cp $TRUNKDIR/examples/Fortran/global-array/adios_global.xml . echo "Run Fortran adios_global_f" $MPIRUN $NP_MPIRUN $PROCS ./adios_global_f EX=$? if [ ! -f adios_global_no_xml.bp ]; then echo "ERROR: Fortran version of adios_global failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -lav adios_global_no_xml.bp -d -n 10 | grep -v endianness > f_bpls.txt diff -q f_bpls.txt $SRCDIR/reference/global_array_no_xml_f_bpls.txt if [ $? != 0 ]; then echo "ERROR: Fortran version of adios_global produced a file different from the reference." echo "Compare \"bpls -lav $PWD/adios_global_no_xml.bp -d -n 10 | grep -v endianness\" to reference $SRCDIR/reference/global_array_no_xml_f_bpls.txt" exit 1 fi adios-1.5.0/tests/suite/tests/03_arrays.sh0000755000175000017500000000336212251360163021550 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios can write and read arrays correctly # Uses codes from examples/C/arrays # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=5 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $TRUNKDIR/examples/C/arrays/arrays_read . cp $TRUNKDIR/examples/C/arrays/arrays_write . cp $TRUNKDIR/examples/C/arrays/arrays.xml . echo "Run C arrays_write" $MPIRUN $NP_MPIRUN $PROCS ./arrays_write EX=$? if [ ! -f arrays.bp ]; then echo "ERROR: C version of arrays_write failed. No BP file is created. Exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls -lav arrays.bp | grep -v endianness > c_bpls.txt diff -q c_bpls.txt $SRCDIR/reference/arrays_bpls.txt if [ $? != 0 ]; then echo "ERROR: C version of arrays_write produced a file different from the reference." echo "Compare \"bpls -lav $PWD/arrays.bp | grep -v endianness\" to reference $SRCDIR/reference/arrays_bpls.txt" exit 1 fi echo "Run C arrays_read" $MPIRUN $NP_MPIRUN $PROCS ./arrays_read | sort > c_read.txt EX=$? if [ $? != 0 ]; then echo "ERROR: C version of arrays_read failed with exit code $EX" exit 1 fi echo "Check output" diff -q c_read.txt $SRCDIR/reference/arrays_read.txt if [ $? != 0 ]; then echo "ERROR: C version of arrays_read produced an output different from the reference." echo "Compare $PWD/c_read.txt reference $SRCDIR/reference/arrays_read.txt" exit 1 fi adios-1.5.0/tests/suite/tests/10_write_read.sh0000755000175000017500000000336012251360163022370 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios can write-read-write-read correctly # Uses ../programs/write_read # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=3 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $SRCDIR/programs/write_read . cp $SRCDIR/programs/write_read.xml . echo "Run write_read" $MPIRUN $NP_MPIRUN $PROCS ./write_read EX=$? if [ ! -f write_read_1.bp ]; then echo "ERROR: write_read failed at creating the 1st BP file, write_read_1.bp. Exit code=$EX" exit 1 fi if [ ! -f write_read_2.bp ]; then echo "ERROR: write_read failed at creating the 2nd BP file, write_read_2.bp. Exit code=$EX" exit 1 fi if [ $EX != 0 ]; then echo "ERROR: write_read failed with exit code=$EX" exit 1 fi echo "Check output with bpls" $TRUNKDIR/utils/bpls/bpls write_read_1.bp > c_bpls1.txt diff -q c_bpls1.txt $SRCDIR/reference/write_read_bpls.txt if [ $? != 0 ]; then echo "ERROR: C version of write_read produced a file different from the reference." echo "Compare \"bpls $PWD/write_read_1.bp\" to reference $SRCDIR/reference/write_read_bpls.txt" exit 1 fi $TRUNKDIR/utils/bpls/bpls write_read_2.bp > c_bpls2.txt diff -q c_bpls2.txt c_bpls1.txt if [ $? != 0 ]; then echo "ERROR: C version of write_read produced two different files in two steps. They should have the same list of variables" echo "Compare \"bpls $PWD/write_read_1.bp\" to \"bpls $PWD/write_read_2.bp\"" exit 1 fi adios-1.5.0/tests/suite/tests/11_write_alternate.sh0000755000175000017500000000177212251360163023442 0ustar amckinstryamckinstry#!/bin/bash # # Test if adios can write variables alternating in multiple steps # and then it can read them correctly # Uses ../programs/write_alternate # # Environment variables set by caller: # MPIRUN Run command # NP_MPIRUN Run commands option to set number of processes # MAXPROCS Max number of processes allowed # HAVE_FORTRAN yes or no # SRCDIR Test source dir (.. of this script) # TRUNKDIR ADIOS trunk dir PROCS=2 if [ $MAXPROCS -lt $PROCS ]; then echo "WARNING: Needs $PROCS processes at least" exit 77 # not failure, just skip fi # copy codes and inputs to . cp $SRCDIR/programs/write_alternate . cp $SRCDIR/programs/write_alternate.xml . echo "Run write_alternate" $MPIRUN $NP_MPIRUN $PROCS ./write_alternate EX=$? if [ ! -f write_alternate.bp ]; then echo "ERROR: write_alternate failed at creating the BP file, write_alternate.bp. Exit code=$EX" exit 1 fi if [ $EX != 0 ]; then echo "ERROR: write_alternate failed with exit code=$EX" exit 1 fi adios-1.5.0/tests/suite/HOWTO-Run0000644000175000017500000000412012251360163017622 0ustar amckinstryamckinstryRun the test after compiling adios in the trunk. I.e. after "make" 1. Build the codes necessary for the tests and run sequential tests, i.e. do a "make check" in adios trunk. 2. Run test.sh script in an interactive-job environment to run the parallel tests. Define the command for running parallel programs like mpirun -np or aprun -q -n Run the script in the job directory with full path. Usage: /`basename $0` [-m runcmd] [-n "-np"] [-p procs] [-h] [-v] [-k] [pattern [pattern2 pattern3 ...]] is used to find all the test codes, inputs and reference outputs. codes and inputs will be copied to the job directory pattern if given, only those tests are executed, that match 'tests/**.sh'; otherwise all tests are executed. e.g. arguments 1[0-3] attr global will execute all tests that have any of the strings 10,11,12,13,attr or global in their name (and end with .sh) OPTIONS -m runcmd command to start an MPI program. Default is "aprun -q" if aprun is found, otherwise "mpirun" -n runopt option to runcmd to specify number of cores. Default is "-n" for aprun, "-np" for mpirun -p procs Run only those tests that use less up to 'procs' processes. Default: 128 -k Do not remove logs and work dir of successful tests. -v Verbose mode -h Print this help. Each test will have an ./work. directory to store anything needed. The test's stdout and stderr is redirected into ./log. file. E.g. $ qsub -I -lwalltime=1:00:00 -lsize=12 $ cd /tmp/work/pnorbert/test/adios/suite $ /ccs/proj/e2e/pnorbert/ADIOS/ADIOS/trunk/tests/suite/test.sh -p 12 Settings: Test source directory: /ccs/proj/e2e/pnorbert/ADIOS/ADIOS/trunk/tests/suite Run command: aprun -q Run command np option: -n Max. processes to use: 12 Keep successful tests' output: no Run tests Test 01_scalars ... OK Test 02_attributes ... OK Test 03_arrays ... OK ... $ adios-1.5.0/tests/suite/programs/0000755000175000017500000000000012251360163020072 5ustar amckinstryamckinstryadios-1.5.0/tests/suite/programs/Makefile.am0000644000175000017500000001110312251360163022122 0ustar amckinstryamckinstry# Add your codes that you want to build at 'make check' # Do not build Fortran codes if Fortran is not supported. # Do not build a code using the write API if only the read API is available # Steps: # 1. add code name below to check_readonly_C/check_C/check_readonly_Fortran/check_Fortran targets # 2. add code name to TESTS if it is a sequential test # 3. define build rules for your code # 4. add files to CLEANFILES that should be deleted at 'make clean' # 5. add to EXTRA_DIST any non-source files that should go with the distribution check_readonly_C= if BUILD_WRITE check_C=local_array_time \ adios_amr_write \ adios_amr_write_2vars \ adios_staged_read \ adios_staged_read_v2 \ adios_staged_read_2vars \ write_read \ write_alternate \ two_groups \ many_vars \ selections \ connect_to_space_subset endif if BUILD_FORTRAN check_readonly_Fortran= if BUILD_WRITE check_Fortran=posix_method endif endif check_PROGRAMS=$(check_C) $(check_Fortran) $(check_readonly_C) $(check_readonly_Fortran) # Sequential tests to be executed by "make check" can be defined right here in TESTS # Parallel tests should be defined in ../tests/*.sh and executed by ../test.sh TESTS= INCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src ############################# # Build rules for each test # ############################# # posix_method posix_method_SOURCES=posix_method.F90 posix_method_LDADD = $(top_builddir)/src/libadiosf.a $(ADIOSLIB_LDADD) posix_method_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) posix_method.o: gwrite_posix_method.fh gwrite_posix_method.fh: posix_method.xml $(top_srcdir)/utils/gpp/gpp.py posix_method.xml local_array_time_SOURCES=local_array_time.c local_array_time_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) local_array_time_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) adios_amr_write_SOURCES=adios_amr_write.c adios_amr_write_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) adios_amr_write_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) adios_amr_write.o: adios_amr_write.c adios_amr_write_2vars_SOURCES=adios_amr_write_2vars.c adios_amr_write_2vars_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) adios_amr_write_2vars_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) adios_amr_write_2vars.o: adios_amr_write_2vars.c adios_staged_read_SOURCES=adios_staged_read.c adios_staged_read_LDADD = $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) adios_staged_read_LDFLAGS = $(AM_LDFLAGS) $(ADIOSREADLIB_LDFLAGS) adios_staged_read.o: adios_staged_read.c adios_staged_read_v2_SOURCES=adios_staged_read_v2.c adios_staged_read_v2_LDADD = $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) adios_staged_read_v2_LDFLAGS = $(AM_LDFLAGS) $(ADIOSREADLIB_LDFLAGS) adios_staged_read_v2.o: adios_staged_read_v2.c adios_staged_read_2vars_SOURCES=adios_staged_read_2vars.c adios_staged_read_2vars_LDADD = $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) adios_staged_read_2vars_LDFLAGS = $(AM_LDFLAGS) $(ADIOSREADLIB_LDFLAGS) adios_staged_read_2vars.o: adios_staged_read_2vars.c write_read_SOURCES=write_read.c write_read_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) write_read_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) write_read.o: write_read.c write_alternate_SOURCES=write_alternate.c write_alternate_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) write_alternate_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) write_alternate.o: write_alternate.c two_groups_SOURCES=two_groups.c two_groups_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) two_groups_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) two_groups.o: two_groups.c many_vars_SOURCES=many_vars.c many_vars_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) many_vars_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) many_vars.o: many_vars.c selections_SOURCES=selections.c selections_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) selections_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) selections.o: selections.c connect_to_space_subset_SOURCES=connect_to_space_subset.c connect_to_space_subset_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) connect_to_space_subset_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) connect_to_space_subset.o: connect_to_space_subset.c EXTRA_DIST = adios_amr_write.xml adios_amr_write_2vars.xml \ posix_method.xml local_array_time.xml \ write_alternate.xml write_read.xml CLEANFILES = gwrite_posix_method.fh gread_posix_method.fh CC=$(MPICC) FC=$(MPIFC) FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ adios-1.5.0/tests/suite/programs/posix_method.F900000644000175000017500000000701012251360163023052 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! !/*************************************************************/ !/* Test of writing of simple arrays in ADIOS with POSIX method */ !/* */ !/* Similar example is examples/Fortran/arrays/arrays_write.c */ !/*************************************************************/ program posix_method use adios_write_mod implicit none include 'mpif.h' character(len=30) :: filename = "posix_method.bp" integer :: i, j, ierr integer :: rank, size, comm ! ADIOS variables declarations for matching gwrite_temperature.fh integer :: adios_err integer*8 :: adios_groupsize, adios_totalsize integer*8 :: adios_handle, adios_buf_size ! variables to write out integer, parameter :: NX = 10, NY = 100 integer :: NXin, NYin real*8 :: t(NX,NY), tin(NX,NY) integer :: p(NX), pin(NX) call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, comm, ierr) call MPI_Comm_rank (comm, rank, ierr) call MPI_Comm_size (comm, size, ierr) do j = 1,NY do i = 1,NX t(i,j) = rank*NX*NY + (j-1)*NX + i-1 enddo enddo do i = 1,NX p(i) = rank*NX + i enddo call adios_init ("posix_method.xml", comm, adios_err); ! Write data out call adios_open (adios_handle, "posix_method", filename, "w", comm, adios_err); #include "gwrite_posix_method.fh" call adios_close (adios_handle, adios_err) ! Read data in call adios_open (adios_handle, "posix_method", filename, "r", comm, adios_err); ! First read in the scalars to calculate the size of the arrays adios_buf_size = 4 call adios_read (adios_handle, "NX", NXin, adios_buf_size, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "NY", NYin, adios_buf_size, adios_err) call adios_close (adios_handle, adios_err) if (NX /= NXin) then write (0, '("Error: NX=",i0," read from file != NX=",i0," written to file.")') NXin, NX call exit(1) endif if (NY /= NYin) then write (0, '("Error: NY=",i0," read from file != NY=",i0," written to file.")') NYin, NY call exit(1) endif ! Read the arrays call adios_open (adios_handle, "posix_method", filename, "r", comm, adios_err); call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) adios_buf_size = 8 * (NX) * (NY) call adios_read (adios_handle, "var_double_2Darray", tin, adios_buf_size, adios_err) adios_buf_size = 4 * (NX) call adios_read (adios_handle, "var_int_1Darray", pin, adios_buf_size, adios_err) call adios_close (adios_handle, adios_err) ! Check input against output do i = 1,NX if (p(i)-pin(i) .ge. 0.000001) then write (0,'("Error: p read from file != p written to file.")') call exit(1) endif enddo do j = 1,NY do i = 1,NX if (t(i,j)-tin(i,j) .ge. 0.000001 ) then write (0,'("Error: t read from file != t written to file.")') call exit(1) endif enddo enddo call adios_finalize (0, adios_err); call MPI_Finalize (ierr); end program adios-1.5.0/tests/suite/programs/adios_amr_write.xml0000644000175000017500000000147312251360163023771 0ustar amckinstryamckinstry stripe_count=1;stripe_size=10485760;num_aggregators=8;merging_pgs=0 adios-1.5.0/tests/suite/programs/local_array_time.c0000644000175000017500000001303612251360163023547 0ustar amckinstryamckinstry/* Simple cosine and sine 1D arrays over time from a single process. Test: can we read back the timed 2D arrays? */ /* Include other header files */ #include #include #include #include #include #include #include #include /* ADIOS include files */ //#include "mpi.h" #include "public/adios.h" /* ------------------ Global variables (for main.c only) ------------------ */ // Simulation Variables //--------------------- char basedatapath[256] ; // data output files' starting path (without varname) char baseimgpath[256] ; // image output files' starting path (without varname) char outpath1[256] ; // data output files' starting path (can be extended with subdirs, names, indexes) char outpath2[256] ; // image output files' starting path (can be extended with subdirs, names, indexes) char title[256]; // Title of the (single) plot char subtitle[256]; // subtitle of the (single) plot char xname[256]; // force to plot this as X axis string char varname [100]; // variable name char vardirpath[256]; // variable path for a variable name char txtpath[256]; // text path for a text file to be registered char datapath[256]; // data path for a data file to be registered char longvarname[256]; // Utility variable to create directories int res0 = 0; /* ------------------------------ Prototypes ------------------------------ */ // Print out raw data files (Here simple ASCII files, later BP files) static int print_data_1D(float timestep, int npoints, float *x, float *y, int output_xml); /* --------------------------------- Main --------------------------------- */ int main( int argc, char ** argv) { char filename [256]; MPI_Comm comm = MPI_COMM_WORLD; int rank, size; /* ADIOS variables declarations for matching gwrite_schema.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; float tmax = 10.0; float dt = 0.5; // run from 0.0 increasing with 'dt' up to 'tmax' int i; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_init ("local_array_time.xml", comm); strcpy(filename, "local_array_time.bp"); // Declare and Initialize essential variables int num_points = 37; float angles[num_points]; float cos_of_angles[num_points]; float sin_of_angles[num_points]; float pi; // Obtain pi once for all pi = 4.0*atan(1.0); // Initialize angles in degrees float angle_degree = 0; for (i=0; i\n"); fprintf(f, "\n", xname, yname); for (i=0; i %s %s \n", xstr, ystr); } fprintf(f, "\n"); } else if (output_xml == 0){ for (i=0; i connect_to_space_subset * where 1 <= M <= N * Output: exit code 0 = OK, != 0 on error * */ #include #include #include #include #include #include "mpi.h" #include "public/adios.h" #include "public/adios_read.h" #ifdef DMALLOC #include "dmalloc.h" #endif #define log(...) fprintf (stderr, "[rank=%3.3d, line %d]: ", wrank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); #define printE(...) fprintf (stderr, "[rank=%3.3d, line %d]: ERROR: ", wrank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); static const int NSTEPS = 5; static const char FILENAME[] = "connect.bp"; #define VALUE(rank, step) (rank * 100 + step) #define VALUE0(step) (step) /* Variables to write */ int *a1; static const int ldim1 = 7; int gdim1; int offs1; MPI_Comm wcomm = MPI_COMM_WORLD; MPI_Comm subcomm; int wrank, subrank; int wsize, subsize; int64_t m_adios_group; void alloc_vars() { int n; gdim1 = subsize*ldim1; offs1 = subrank*ldim1; n = ldim1; a1 = (int*) malloc (n * sizeof(int)); } void set_vars(int step) { int n, i; int v = VALUE(subrank, step); n = ldim1; for (i=0; i connect_to_space_subset \n" " : Number of processes\n" " : Number of processes connecting to staging server\n" " 1 <= M <= N\n"); } int write_file (int step); int main (int argc, char ** argv) { int err,i,M; int iconnect; MPI_Init (&argc, &argv); MPI_Comm_rank (wcomm, &wrank); MPI_Comm_size (wcomm, &wsize); if (argc < 2) { Usage(); return 1; } errno = 0; M = strtol (argv[1], NULL, 10); if (errno || M < 1 || M > wsize) { printE("Invalid 1st argument %s\n", argv[1]); Usage(); return 1; } iconnect = (wrank >= wsize-M); // connect to server from ranks N-M, N-M+1, ..., N MPI_Comm_split (wcomm, iconnect, wrank+M-wsize, &subcomm); MPI_Comm_rank (subcomm, &subrank); MPI_Comm_size (subcomm, &subsize); if (iconnect) { if (subsize != M) { printE ("Something wrong with communicator split: N=%d, M=%d, splitted size=%d\n", wsize, M, subsize); return 2; } log ("connect as subrank %d\n", subrank); } alloc_vars(); adios_read_init_method(ADIOS_READ_METHOD_DATASPACES, subcomm, "verbose=4"); adios_init_noxml (subcomm); adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, 1); if (iconnect) { adios_declare_group (&m_adios_group, "connect", "iter", adios_flag_yes); adios_select_method (m_adios_group, "DATASPACES", "verbose=4", ""); adios_define_var (m_adios_group, "ldim1", "", adios_integer, 0, 0, 0); adios_define_var (m_adios_group, "gdim1", "", adios_integer, 0, 0, 0); adios_define_var (m_adios_group, "offs1", "", adios_integer, 0, 0, 0); adios_define_var (m_adios_group, "a1", "", adios_integer, "ldim1", "gdim1", "offs1"); for (i=0; i selections * Output: selections.bp * */ #include #include #include #include #include #include "mpi.h" #include "public/adios.h" #include "public/adios_read.h" #ifdef DMALLOC #include "dmalloc.h" #endif //#define DEBUG_PRINTS #define log(...) fprintf (stderr, "[rank=%3.3d, line %d]: ", rank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); #define printE(...) fprintf (stderr, "[rank=%3.3d, line %d]: ERROR: ", rank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); static const int NSTEPS = 5; static const char FILENAME[] = "selections.bp"; #define VALUE1D(rank,step,i) (100*(rank)+10*(step)+i) #define VALUE2D(rank,step,i,j) (1000*(rank)+100*(step)+10*(i)+j) #define VALUE3D(rank,step,i,j,k) (10000*(rank)+1000*(step)+100*(i)+10*(j)+k) /* Variables to write */ int a0; int *a1; int *a2; int *a3; /* Variables to read */ int r0; int *r1, *r2, *r3; static const int ldim1 = 3; static const int ldim2 = 5; static const int ldim3 = 7; int gdim1, gdim2, gdim3; int offs1, offs2, offs3; MPI_Comm comm = MPI_COMM_WORLD; int rank; int size; int64_t m_adios_group; enum ADIOS_READ_METHOD read_method = ADIOS_READ_METHOD_BP; void alloc_vars() { int n; gdim1 = size*ldim1; gdim2 = ldim2; gdim3 = ldim3; offs1 = rank*ldim1; offs2 = 0; offs3 = 0; n = ldim1; a1 = (int*) malloc (n * sizeof(int)); r1 = (int*) malloc (n * sizeof(int)); n = ldim1 * ldim2; a2 = (int*) malloc (n * sizeof(int)); r2 = (int*) malloc (n * sizeof(int)); n = ldim1 * ldim2 * ldim3; a3 = (int*) malloc (n * sizeof(int)); r3 = (int*) malloc (n * sizeof(int)); } void set_vars(int step) { int i, j, k; a0 = VALUE1D(rank,step,0); for (i=0; i [w|r]\n" " : Method, 0: file, 1: staging\n" " w: do write only\n" " r: do read only\n"); } int main (int argc, char ** argv) { int err, step ; int do_write = 1; int do_read = 1; int m = 0; char write_method[16]; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); if (argc > 1) { m = strtol (argv[1], NULL, 10); if (errno) { printf("Invalid 1st argument %s\n", argv[1]); Usage(); return 1;} } if (argc > 2) { if (argv[2][0] == 'w' || argv[2][0] == 'W') { do_read = 0; } else if (argv[2][0] == 'r' || argv[2][0] == 'R') { do_write = 0; } else { printE ("Invalid command line argument %s. Allowed ones:\n" " w: do write only\n" " r: do read only\n", argv[2]); MPI_Finalize (); return 1; } } if (m==0) { read_method = ADIOS_READ_METHOD_BP; strcpy(write_method,"MPI"); } else { read_method = ADIOS_READ_METHOD_DATASPACES; strcpy(write_method,"DATASPACES"); } log ("Writing: %s method=%s\n" "Reading: %s method=%d\n", (do_write ? "yes" : "no"), write_method, (do_read ? "yes" : "no"), read_method); alloc_vars(); if (do_write) { adios_init_noxml (comm); adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, 10); } if (do_read) { err = adios_read_init_method(read_method, comm, "verbose=2"); if (err) { printE ("%s\n", adios_errmsg()); } } if (do_write) { adios_declare_group (&m_adios_group, "selections", "iter", adios_flag_yes); adios_select_method (m_adios_group, write_method, "verbose=2", ""); define_vars(); for (step=0; stepcurrent_step); log (" Check 1D variable a1...\n"); adios_schedule_read (f, sel1, "a1", 0, 1, r1); adios_perform_reads (f, 1); #ifdef DEBUG_PRINTS fprintf(stderr, "1D result: {"); for (i=0; icurrent_step,i); if (r1[i] != v) { printE ("Error: a1[%d]=%d != read=%d\n", i, v, r1[i]); //goto endread; } } log (" Check 2D variable a2...\n"); adios_schedule_read (f, sel2, "a2", 0, 1, r2); adios_perform_reads (f, 1); #ifdef DEBUG_PRINTS fprintf(stderr, "2D result :\n"); n = 0; for (i=0; icurrent_step,i,j); if (v != r2[n]) { printE ("Error: a2[%d,%d]=%d != read=%d\n", i, j, v, r2[n]); //goto endread; } n++; } } log (" Check 3D variable a3...\n"); adios_schedule_read (f, sel3, "a3", 0, 1, r3); adios_perform_reads (f, 1); #ifdef DEBUG_PRINTS fprintf(stderr, "3D selection :\n"); n=0; for (i=0; icurrent_step,i,j,k); if (v != r3[n]) { printE ("Error: a3[%d,%d,%d]=%d != read=%d\n", i, j, k, v, r3[n]); //goto endread; } n++; } } } if (n1 < NSTEPS) { adios_advance_step (f, 0, -1.0); } } endread: adios_selection_delete (sel1); adios_selection_delete (sel2); adios_selection_delete (sel3); adios_read_close(f); MPI_Barrier (comm); return err; } adios-1.5.0/tests/suite/programs/write_read.xml0000644000175000017500000002033612251360163022745 0ustar amckinstryamckinstry adios-1.5.0/tests/suite/programs/write_alternate.xml0000644000175000017500000000475712251360163024022 0ustar amckinstryamckinstry adios-1.5.0/tests/suite/programs/write_read.c0000644000175000017500000010177012251360163022371 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C test: write then read adios files * * How to run: mpirun -np write_read * Output: write_read.bp * */ #include #include #include #include #include "mpi.h" #include "public/adios.h" #include "public/adios_read.h" #ifdef DMALLOC #include "dmalloc.h" #endif #define log(...) fprintf (stderr, "[rank=%3.3d, line %d]: ", rank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); #define printE(...) fprintf (stderr, "[rank=%3.3d, line %d]: ERROR: ", rank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); typedef struct complex { float r; float i; } complex; typedef struct double_complex { double r; double i; } double_complex; /* Variables to write */ int8_t scalar_byte = -100; int16_t scalar_short = -10000; int32_t scalar_int = -1000000000; int64_t scalar_long = -1000000000000L; uint8_t scalar_ubyte = 100; uint16_t scalar_ushort = 10000; uint32_t scalar_uint = 1000000000; uint64_t scalar_ulong = 1000000000000L; float scalar_float = 3.14159265358979323846; double scalar_double = 2.7182818284590452353602874713526625L; char * scalar_string = "ADIOS example string"; complex scalar_complex; double_complex scalar_double_complex; int8_t *a1_byte, *a2_byte, *a3_byte, *a6_byte; int16_t *a1_short, *a2_short, *a3_short, *a6_short; int32_t *a1_int, *a2_int, *a3_int, *a6_int; int64_t *a1_long, *a2_long, *a3_long, *a6_long; uint8_t *a1_ubyte, *a2_ubyte, *a3_ubyte, *a6_ubyte; uint16_t *a1_ushort, *a2_ushort, *a3_ushort, *a6_ushort; uint32_t *a1_uint, *a2_uint, *a3_uint, *a6_uint; uint64_t *a1_ulong, *a2_ulong, *a3_ulong, *a6_ulong; float *a1_float, *a2_float, *a3_float, *a6_float; double *a1_double, *a2_double, *a3_double, *a6_double; complex *a1_complex, *a2_complex, *a3_complex, *a6_complex; double_complex *a1_double_complex, *a2_double_complex, *a3_double_complex, *a6_double_complex; /* Variables to read */ int8_t *r1_byte, *r2_byte, *r3_byte, *r6_byte; int16_t *r1_short, *r2_short, *r3_short, *r6_short; int32_t *r1_int, *r2_int, *r3_int, *r6_int; int64_t *r1_long, *r2_long, *r3_long, *r6_long; uint8_t *r1_ubyte, *r2_ubyte, *r3_ubyte, *r6_ubyte; uint16_t *r1_ushort, *r2_ushort, *r3_ushort, *r6_ushort; uint32_t *r1_uint, *r2_uint, *r3_uint, *r6_uint; uint64_t *r1_ulong, *r2_ulong, *r3_ulong, *r6_ulong; float *r1_float, *r2_float, *r3_float, *r6_float; double *r1_double, *r2_double, *r3_double, *r6_double; complex *r1_complex, *r2_complex, *r3_complex, *r6_complex; double_complex *r1_double_complex, *r2_double_complex, *r3_double_complex, *r6_double_complex; int ldim1 = 7; int ldim2 = 5; int ldim3 = 3; int ldim4 = 2; int ldim5 = 4; int ldim6 = 9; int gdim1, gdim2, gdim3, gdim4, gdim5, gdim6; int offs1, offs2, offs3, offs4, offs5, offs6; MPI_Comm comm = MPI_COMM_WORLD; int rank; int size; void init_vars() { int n, i; int v = rank%256; scalar_complex.r = 8.0; scalar_complex.i = 9.0; scalar_double_complex.r = 10.0; scalar_double_complex.i = 11.0; gdim1 = size*ldim1; gdim2 = ldim2; gdim3 = ldim3; gdim4 = ldim4; gdim5 = ldim5; gdim6 = ldim6; offs1 = rank*ldim1; offs2 = 0; offs3 = 0; offs4 = 0; offs5 = 0; offs6 = 0; n = ldim1; a1_byte = (int8_t*) malloc (n * sizeof(int8_t)); a1_short = (int16_t*) malloc (n * sizeof(int16_t)); a1_int = (int32_t*) malloc (n * sizeof(int32_t)); a1_long = (int64_t*) malloc (n * sizeof(int64_t)); a1_ubyte = (uint8_t*) malloc (n * sizeof(uint8_t)); a1_ushort = (uint16_t*) malloc (n * sizeof(uint16_t)); a1_uint = (uint32_t*) malloc (n * sizeof(uint32_t)); a1_ulong = (uint64_t*) malloc (n * sizeof(uint64_t)); a1_float = (float*) malloc (n * sizeof(float)); a1_double = (double*) malloc (n * sizeof(double)); a1_complex = (complex*) malloc (n * sizeof(complex)); a1_double_complex = (double_complex*) malloc (n * sizeof(double_complex)); r1_byte = (int8_t*) malloc (n * sizeof(int8_t)); r1_short = (int16_t*) malloc (n * sizeof(int16_t)); r1_int = (int32_t*) malloc (n * sizeof(int32_t)); r1_long = (int64_t*) malloc (n * sizeof(int64_t)); r1_ubyte = (uint8_t*) malloc (n * sizeof(uint8_t)); r1_ushort = (uint16_t*) malloc (n * sizeof(uint16_t)); r1_uint = (uint32_t*) malloc (n * sizeof(uint32_t)); r1_ulong = (uint64_t*) malloc (n * sizeof(uint64_t)); r1_float = (float*) malloc (n * sizeof(float)); r1_double = (double*) malloc (n * sizeof(double)); r1_complex = (complex*) malloc (n * sizeof(complex)); r1_double_complex = (double_complex*) malloc (n * sizeof(double_complex)); for (i=0; ivalue != VAR) { \ printE ("Scalar %s as read from file != as written\n", VARNAME); \ err = 102; \ goto endread; \ } \ adios_free_varinfo (vi); #define CHECK_ARRAY(A,R) \ for (i=0;ivalue)->r != scalar_complex.r || ((complex*)vi->value)->i != scalar_complex.i) { printE ("Scalar scalar_complex as read from file != as written\n"); err = 102; goto endread; } adios_free_varinfo (vi); GET_SCALAR ("/scalars/scalar_double_complex") if (((double_complex*)vi->value)->r != scalar_double_complex.r || ((double_complex*)vi->value)->i != scalar_double_complex.i) { printE ("Scalar scalar_double_complex as read from file != as written\n"); err = 102; goto endread; } adios_free_varinfo (vi); GET_SCALAR ("/scalars/scalar_string") if (strcmp((char*)vi->value, scalar_string)) { printE ("Scalar scalar_string as read from file != as written: [%s] and [%s]\n", (char*)vi->value, scalar_string); err = 102; goto endread; } adios_free_varinfo (vi); log (" 1D arrays... %s\n", fname); n = ldim1; sel = adios_selection_boundingbox (1, start, count); adios_schedule_read (f, sel, "1D/a1_byte", 0, 1, r1_byte); adios_schedule_read (f, sel, "1D/a1_short", 0, 1, r1_short); adios_schedule_read (f, sel, "1D/a1_int", 0, 1, r1_int); adios_schedule_read (f, sel, "1D/a1_long", 0, 1, r1_long); adios_schedule_read (f, sel, "1D/a1_ubyte", 0, 1, r1_ubyte); adios_schedule_read (f, sel, "1D/a1_ushort", 0, 1, r1_ushort); adios_schedule_read (f, sel, "1D/a1_uint", 0, 1, r1_uint); adios_schedule_read (f, sel, "1D/a1_ulong", 0, 1, r1_ulong); adios_schedule_read (f, sel, "1D/a1_float", 0, 1, r1_float); adios_schedule_read (f, sel, "1D/a1_double", 0, 1, r1_double); adios_schedule_read (f, sel, "1D/a1_complex", 0, 1, r1_complex); adios_schedule_read (f, sel, "1D/a1_double_complex", 0, 1, r1_double_complex); adios_perform_reads (f, 1); adios_selection_delete (sel); CHECK_ARRAY (a1_byte, r1_byte) CHECK_ARRAY (a1_short, r1_short) CHECK_ARRAY (a1_int, r1_int) CHECK_ARRAY (a1_long, r1_long) CHECK_ARRAY (a1_ubyte, r1_ubyte) CHECK_ARRAY (a1_ushort, r1_ushort) CHECK_ARRAY (a1_uint, r1_uint) CHECK_ARRAY (a1_ulong, r1_ulong) CHECK_ARRAY (a1_float, r1_float) CHECK_ARRAY (a1_double, r1_double) for (i=0;i adios_amr_write * Output: adios_amr_write.bp * ADIOS config file: adios_amr_write.xml * */ #include #include #include "mpi.h" #include "public/adios.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, pattern, npe_1, npe_2; int l1, l2, o1, o2, g1, g2; double t1, t2; MPI_Comm comm = MPI_COMM_WORLD; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); if (argc != 2) { printf ("Invalid command line arguments.\n"); exit (1); } pattern = atoi (argv[1]); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); g1 = 32; g2 = 16; if (pattern == 1) { l1 = 1; l2 = g2; } else if (pattern == 2) { /* 4x4 array */ l1 = 4; l2 = 4; } else { printf ("wrong argument.\n"); } npe_1 = g1 / l1; npe_2 = g2 / l2; o1 = (rank / npe_2) * l1; o2 = (rank % npe_2) * l2; double t[l1*l2]; int p[l1*l2]; for (i = 0; i < l1 * l2; i++) { t[i] = o1 * g2 + o2 + (i / l2) * g2 + i % l2; p[i] = 1000 + t[i]; } strcpy (filename, "adios_amr_write_2vars.bp"); adios_init ("adios_amr_write_2vars.xml", comm); adios_open (&adios_handle, "temperature", filename, "w", comm); adios_groupsize = 4 * 8\ + 8 * l1 * l2 + 4 * l1 * l2; adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "l1", &l1); adios_write (adios_handle, "l2", &l2); adios_write (adios_handle, "o1", &o1); adios_write (adios_handle, "o2", &o2); adios_write (adios_handle, "g1", &g1); adios_write (adios_handle, "g2", &g2); adios_write (adios_handle, "temperature", t); adios_write (adios_handle, "pressure", p); adios_close (adios_handle); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/tests/suite/programs/two_groups.c0000644000175000017500000001555112251360163022455 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C test: * Write two groups at alternative steps, different variables (a vs b) * Then read them all and check if they are correct. * * How to run: mpirun -np write_alternate * Output: write_alternate.bp * */ #include #include #include #include #include "mpi.h" #include "public/adios.h" #include "public/adios_read.h" #ifdef DMALLOC #include "dmalloc.h" #endif #define log(...) fprintf (stderr, "[rank=%3.3d, line %d]: ", rank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); #define printE(...) fprintf (stderr, "[rank=%3.3d, line %d]: ERROR: ", rank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); static const char FILENAME[] = "two_groups.bp"; #define VALUE(rank, step) (rank * 100 + step) #define VALUE0(step) (step) /* Variables to write */ int a0; /* Variables to read */ int ra, rb, rc; MPI_Comm comm = MPI_COMM_WORLD; int rank; int size; int write_group (int i); int read_file (); int read_by_group (); int main (int argc, char ** argv) { int err,i ; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_init ("two_groups.xml", comm); err = adios_read_init_method(ADIOS_READ_METHOD_BP, comm, "verbose=2"); if (err) { printE ("%s\n", adios_errmsg()); } for (i=0; i<2; i++) { if (!err) { a0 = i; err = write_group (i); } } if (!err) err = read_file (); if (!err) err = read_by_group (); adios_finalize (rank); MPI_Finalize (); return err; } int write_group (int step) { int64_t fh; uint64_t groupsize=0, totalsize; log ("Write group %d to %s\n", step, FILENAME); adios_open (&fh, (step==1 ? "g2" : "g1"), FILENAME, (step==0 ? "w" : "a"), comm); groupsize = sizeof(int); // a scalar only adios_group_size (fh, groupsize, &totalsize); if (step == 0) { adios_write (fh, "a0", &a0); } else if (step == 1) { adios_write (fh, "b0", &a0); } else { adios_write (fh, "c0", &a0); } adios_close (fh); MPI_Barrier (comm); return 0; } #define CHECK_VARINFO(VARNAME, NDIM, NSTEPS) \ vi = adios_inq_var (f, VARNAME); \ if (vi == NULL) { \ printE ("No such variable " VARNAME "\n"); \ err = 101; \ goto endread; \ } \ if (vi->ndim != NDIM) { \ printE ("Variable " VARNAME " has %d dimensions, but expected %d\n", vi->ndim, NDIM); \ err = 102; \ goto endread; \ } \ if (vi->nsteps != NSTEPS) { \ printE ("Variable " VARNAME " has %d steps, but expected %d\n", vi->nsteps, NSTEPS); \ err = 103; \ /*goto endread; */\ } \ adios_free_varinfo (vi); #define CHECK_ATTR(ATTRNAME, VAL) \ vi = adios_get_attr (f, ATTRNAME, atype, asize); \ if (vi == NULL) { \ printE ("No such variable " VARNAME "\n"); \ err = 101; \ goto endread; \ } \ if (vi->ndim != NDIM) { \ printE ("Variable " VARNAME " has %d dimensions, but expected %d\n", vi->ndim, NDIM); \ err = 102; \ goto endread; \ } \ if (vi->nsteps != NSTEPS) { \ printE ("Variable " VARNAME " has %d steps, but expected %d\n", vi->nsteps, NSTEPS); \ err = 103; \ /*goto endread; */\ } \ adios_free_varinfo (vi); #define CHECK_SCALAR(VARNAME, VAR, VALUE, STEP) \ if (VAR != VALUE) { \ printE (#VARNAME " step %d: wrote %d but read %d\n",STEP,VALUE,VAR);\ err = 104; \ /*goto endread;*/\ } #define CHECK_ARRAY(VARNAME,A,N,VALUE,STEP,i) \ for (i=0;i write_alternate * Output: write_alternate.bp * */ #include #include #include #include #include "mpi.h" #include "public/adios.h" #include "public/adios_read.h" #ifdef DMALLOC #include "dmalloc.h" #endif #define log(...) fprintf (stderr, "[rank=%3.3d, line %d]: ", rank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); #define printE(...) fprintf (stderr, "[rank=%3.3d, line %d]: ERROR: ", rank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); static const int NSTEPS = 5; static const char FILENAME[] = "write_alternate.bp"; #define VALUE(rank, step) (rank * 100 + step) #define VALUE0(step) (step) /* Variables to write */ int a0; int *a1; int *a2; int *a3; /* Variables to read */ int r0, rt0; int *r1, *rt1, *r2, *r3; static const int ldim1 = 7; static const int ldim2 = 5; static const int ldim3 = 3; int gdim1, gdim2, gdim3; int offs1, offs2, offs3; MPI_Comm comm = MPI_COMM_WORLD; int rank; int size; void alloc_vars() { int n; gdim1 = size*ldim1; gdim2 = ldim2; gdim3 = ldim3; offs1 = rank*ldim1; offs2 = 0; offs3 = 0; n = ldim1; a1 = (int*) malloc (n * sizeof(int)); r1 = (int*) malloc (n * sizeof(int)); rt1 = (int*) malloc (n * sizeof(int)); n = ldim1 * ldim2; a2 = (int*) malloc (n * sizeof(int)); r2 = (int*) malloc (n * sizeof(int)); n = ldim1 * ldim2 * ldim3; a3 = (int*) malloc (n * sizeof(int)); r3 = (int*) malloc (n * sizeof(int)); } void set_vars(int step) { int n, i; int v = VALUE(rank, step); a0 = v; n = ldim1; for (i=0; indim != NDIM) { \ printE ("Variable " VARNAME " has %d dimensions, but expected %d\n", vi->ndim, NDIM); \ err = 102; \ goto endread; \ } \ if (vi->nsteps != NSTEPS) { \ printE ("Variable " VARNAME " has %d steps, but expected %d\n", vi->nsteps, NSTEPS); \ err = 103; \ /*goto endread; */\ } \ adios_free_varinfo (vi); #define CHECK_SCALAR(VARNAME, VAR, VALUE, STEP) \ if (VAR != VALUE) { \ printE (#VARNAME " step %d: wrote %d but read %d\n",STEP,VALUE,VAR);\ err = 104; \ /*goto endread;*/\ } #define CHECK_ARRAY(VARNAME,A,N,VALUE,STEP,i) \ for (i=0;i= 0) n = f->current_step; else n++; //just to end the loop } endread: adios_selection_delete (sel0); adios_selection_delete (sel1); adios_selection_delete (sel2); adios_selection_delete (sel3); adios_read_close(f); MPI_Barrier (comm); return err; } adios-1.5.0/tests/suite/programs/adios_staged_read_v2.c0000644000175000017500000001031012251360163024261 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* This code is used to test staged-read method. */ #include #include #include #include #include "mpi.h" #include "public/adios_read.h" #ifdef DMALLOC #include "dmalloc.h" #endif enum pattern { PATTERN_1 = 1, PATTERN_2, PATTERN_3, PATTERN_4, PATTERN_5 }; int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j, NX, pattern, err; MPI_Comm comm = MPI_COMM_WORLD; void * data = NULL, * data1 = NULL, * data2 = NULL; uint64_t start[2], count[2], bytes_read = 0, slice_size; ADIOS_SELECTION *sel; ADIOS_FILE * f; ADIOS_VARINFO * vi; MPI_Init (&argc, &argv); if (argc != 2) { printf ("Invalid command line arguments.\n"); exit (1); } pattern = atoi (argv[1]); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); err = adios_read_init_method(ADIOS_READ_METHOD_BP_AGGREGATE, comm, "verbose=2"); f = adios_read_open_file ("adios_amr_write.bp", ADIOS_READ_METHOD_BP_AGGREGATE, comm); if (!f) { printf ("Error at opening file: %s\n", adios_errmsg()); return 1; } ADIOS_VARINFO * v = adios_inq_var (f, "temperature"); switch (pattern) { case PATTERN_1: slice_size = v->dims[0]/size; start[0] = rank * slice_size; count[0] = slice_size; if (rank == size - 1) { slice_size = slice_size + v->dims[0] % size; } start[1] = 0; count[1] = v->dims[1]; data = malloc (slice_size * v->dims[1] * sizeof (double)); break; case PATTERN_2: start[0] = 0; count[0] = v->dims[0]; slice_size = v->dims[1]/size; start[1] = slice_size * rank; if (rank == size - 1) { slice_size = slice_size + v->dims[1] % size; } count[1] = slice_size; data = malloc (slice_size * v->dims[0] * sizeof (double)); break; case PATTERN_3: start[0] = 0; count[0] = 4; slice_size = 3; start[1] = 2 + slice_size * rank; count[1] = slice_size; data = malloc (slice_size * count[0] * sizeof (double)); break; case PATTERN_4: start[0] = 0; count[0] = 32; slice_size = 3; start[1] = 2 + slice_size * rank; count[1] = slice_size; data = malloc (slice_size * count[0] * sizeof (double)); break; case PATTERN_5: start[0] = 0; count[0] = 32; slice_size = 3; start[1] = 2 + slice_size * rank; count[1] = slice_size; data = malloc (slice_size * count[0] * sizeof (double)); break; default: printf ("wrong pattern value\n"); } assert (data); sel = adios_selection_boundingbox (2, start, count); adios_schedule_read (f, sel, "temperature", 0, 1, data); adios_perform_reads (f, 1); adios_selection_delete (sel); adios_read_close(f); if (pattern != PATTERN_5) { if (rank == 0) { for (i = 0; i < count[0]; i++) { for (j = 0; j < count[1]; j++) { printf (" %7.5g", * ((double *)data + i * count[1] + j)); } printf ("\n"); } } } else { if (rank == 1) { for (i = 0; i < count[0]; i++) { for (j = 0; j < count[1]; j++) { printf (" %7.5g", * ((double *)data + i * count[1] + j)); } printf ("\n"); } } } free (data); adios_free_varinfo (v); adios_read_finalize_method (ADIOS_READ_METHOD_BP_AGGREGATE); MPI_Finalize (); return 0; } adios-1.5.0/tests/suite/programs/Makefile.in0000644000175000017500000010572012251360163022144 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ $(am__EXEEXT_3) TESTS = subdir = tests/suite/programs DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = @BUILD_WRITE_TRUE@am__EXEEXT_1 = local_array_time$(EXEEXT) \ @BUILD_WRITE_TRUE@ adios_amr_write$(EXEEXT) \ @BUILD_WRITE_TRUE@ adios_amr_write_2vars$(EXEEXT) \ @BUILD_WRITE_TRUE@ adios_staged_read$(EXEEXT) \ @BUILD_WRITE_TRUE@ adios_staged_read_v2$(EXEEXT) \ @BUILD_WRITE_TRUE@ adios_staged_read_2vars$(EXEEXT) \ @BUILD_WRITE_TRUE@ write_read$(EXEEXT) write_alternate$(EXEEXT) \ @BUILD_WRITE_TRUE@ two_groups$(EXEEXT) many_vars$(EXEEXT) \ @BUILD_WRITE_TRUE@ selections$(EXEEXT) \ @BUILD_WRITE_TRUE@ connect_to_space_subset$(EXEEXT) @BUILD_FORTRAN_TRUE@@BUILD_WRITE_TRUE@am__EXEEXT_2 = \ @BUILD_FORTRAN_TRUE@@BUILD_WRITE_TRUE@ posix_method$(EXEEXT) am__EXEEXT_3 = am_adios_amr_write_OBJECTS = adios_amr_write.$(OBJEXT) adios_amr_write_OBJECTS = $(am_adios_amr_write_OBJECTS) am__DEPENDENCIES_1 = adios_amr_write_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) adios_amr_write_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_amr_write_LDFLAGS) $(LDFLAGS) -o $@ am_adios_amr_write_2vars_OBJECTS = adios_amr_write_2vars.$(OBJEXT) adios_amr_write_2vars_OBJECTS = $(am_adios_amr_write_2vars_OBJECTS) adios_amr_write_2vars_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) adios_amr_write_2vars_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_amr_write_2vars_LDFLAGS) $(LDFLAGS) -o $@ am_adios_staged_read_OBJECTS = adios_staged_read.$(OBJEXT) adios_staged_read_OBJECTS = $(am_adios_staged_read_OBJECTS) adios_staged_read_DEPENDENCIES = $(top_builddir)/src/libadiosread.a \ $(am__DEPENDENCIES_1) adios_staged_read_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_staged_read_LDFLAGS) $(LDFLAGS) -o $@ am_adios_staged_read_2vars_OBJECTS = \ adios_staged_read_2vars.$(OBJEXT) adios_staged_read_2vars_OBJECTS = \ $(am_adios_staged_read_2vars_OBJECTS) adios_staged_read_2vars_DEPENDENCIES = \ $(top_builddir)/src/libadiosread.a $(am__DEPENDENCIES_1) adios_staged_read_2vars_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_staged_read_2vars_LDFLAGS) $(LDFLAGS) -o $@ am_adios_staged_read_v2_OBJECTS = adios_staged_read_v2.$(OBJEXT) adios_staged_read_v2_OBJECTS = $(am_adios_staged_read_v2_OBJECTS) adios_staged_read_v2_DEPENDENCIES = \ $(top_builddir)/src/libadiosread.a $(am__DEPENDENCIES_1) adios_staged_read_v2_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_staged_read_v2_LDFLAGS) $(LDFLAGS) -o $@ am_connect_to_space_subset_OBJECTS = \ connect_to_space_subset.$(OBJEXT) connect_to_space_subset_OBJECTS = \ $(am_connect_to_space_subset_OBJECTS) connect_to_space_subset_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) connect_to_space_subset_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(connect_to_space_subset_LDFLAGS) $(LDFLAGS) -o $@ am_local_array_time_OBJECTS = local_array_time.$(OBJEXT) local_array_time_OBJECTS = $(am_local_array_time_OBJECTS) local_array_time_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) local_array_time_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(local_array_time_LDFLAGS) $(LDFLAGS) -o $@ am_many_vars_OBJECTS = many_vars.$(OBJEXT) many_vars_OBJECTS = $(am_many_vars_OBJECTS) many_vars_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) many_vars_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(many_vars_LDFLAGS) $(LDFLAGS) -o $@ am_posix_method_OBJECTS = posix_method.$(OBJEXT) posix_method_OBJECTS = $(am_posix_method_OBJECTS) posix_method_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) posix_method_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(posix_method_LDFLAGS) $(LDFLAGS) -o $@ am_selections_OBJECTS = selections.$(OBJEXT) selections_OBJECTS = $(am_selections_OBJECTS) selections_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) selections_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(selections_LDFLAGS) $(LDFLAGS) -o $@ am_two_groups_OBJECTS = two_groups.$(OBJEXT) two_groups_OBJECTS = $(am_two_groups_OBJECTS) two_groups_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) two_groups_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(two_groups_LDFLAGS) $(LDFLAGS) -o $@ am_write_alternate_OBJECTS = write_alternate.$(OBJEXT) write_alternate_OBJECTS = $(am_write_alternate_OBJECTS) write_alternate_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) write_alternate_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(write_alternate_LDFLAGS) $(LDFLAGS) -o $@ am_write_read_OBJECTS = write_read.$(OBJEXT) write_read_OBJECTS = $(am_write_read_OBJECTS) write_read_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) write_read_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(write_read_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp am__depfiles_maybe = depfiles am__mv = mv -f PPFCCOMPILE = $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) LTPPFCCOMPILE = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) FCLD = $(FC) COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(adios_amr_write_SOURCES) $(adios_amr_write_2vars_SOURCES) \ $(adios_staged_read_SOURCES) \ $(adios_staged_read_2vars_SOURCES) \ $(adios_staged_read_v2_SOURCES) \ $(connect_to_space_subset_SOURCES) $(local_array_time_SOURCES) \ $(many_vars_SOURCES) $(posix_method_SOURCES) \ $(selections_SOURCES) $(two_groups_SOURCES) \ $(write_alternate_SOURCES) $(write_read_SOURCES) DIST_SOURCES = $(adios_amr_write_SOURCES) \ $(adios_amr_write_2vars_SOURCES) $(adios_staged_read_SOURCES) \ $(adios_staged_read_2vars_SOURCES) \ $(adios_staged_read_v2_SOURCES) \ $(connect_to_space_subset_SOURCES) $(local_array_time_SOURCES) \ $(many_vars_SOURCES) $(posix_method_SOURCES) \ $(selections_SOURCES) $(two_groups_SOURCES) \ $(write_alternate_SOURCES) $(write_read_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = $(MPIFC) FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Add your codes that you want to build at 'make check' # Do not build Fortran codes if Fortran is not supported. # Do not build a code using the write API if only the read API is available # Steps: # 1. add code name below to check_readonly_C/check_C/check_readonly_Fortran/check_Fortran targets # 2. add code name to TESTS if it is a sequential test # 3. define build rules for your code # 4. add files to CLEANFILES that should be deleted at 'make clean' # 5. add to EXTRA_DIST any non-source files that should go with the distribution check_readonly_C = @BUILD_WRITE_TRUE@check_C = local_array_time \ @BUILD_WRITE_TRUE@ adios_amr_write \ @BUILD_WRITE_TRUE@ adios_amr_write_2vars \ @BUILD_WRITE_TRUE@ adios_staged_read \ @BUILD_WRITE_TRUE@ adios_staged_read_v2 \ @BUILD_WRITE_TRUE@ adios_staged_read_2vars \ @BUILD_WRITE_TRUE@ write_read \ @BUILD_WRITE_TRUE@ write_alternate \ @BUILD_WRITE_TRUE@ two_groups \ @BUILD_WRITE_TRUE@ many_vars \ @BUILD_WRITE_TRUE@ selections \ @BUILD_WRITE_TRUE@ connect_to_space_subset @BUILD_FORTRAN_TRUE@check_readonly_Fortran = @BUILD_FORTRAN_TRUE@@BUILD_WRITE_TRUE@check_Fortran = posix_method INCLUDES = $(all_includes) -I$(top_builddir)/src ############################# # Build rules for each test # ############################# # posix_method posix_method_SOURCES = posix_method.F90 posix_method_LDADD = $(top_builddir)/src/libadiosf.a $(ADIOSLIB_LDADD) posix_method_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) local_array_time_SOURCES = local_array_time.c local_array_time_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) local_array_time_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) adios_amr_write_SOURCES = adios_amr_write.c adios_amr_write_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) adios_amr_write_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) adios_amr_write_2vars_SOURCES = adios_amr_write_2vars.c adios_amr_write_2vars_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) adios_amr_write_2vars_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) adios_staged_read_SOURCES = adios_staged_read.c adios_staged_read_LDADD = $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) adios_staged_read_LDFLAGS = $(AM_LDFLAGS) $(ADIOSREADLIB_LDFLAGS) adios_staged_read_v2_SOURCES = adios_staged_read_v2.c adios_staged_read_v2_LDADD = $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) adios_staged_read_v2_LDFLAGS = $(AM_LDFLAGS) $(ADIOSREADLIB_LDFLAGS) adios_staged_read_2vars_SOURCES = adios_staged_read_2vars.c adios_staged_read_2vars_LDADD = $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) adios_staged_read_2vars_LDFLAGS = $(AM_LDFLAGS) $(ADIOSREADLIB_LDFLAGS) write_read_SOURCES = write_read.c write_read_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) write_read_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) write_alternate_SOURCES = write_alternate.c write_alternate_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) write_alternate_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) two_groups_SOURCES = two_groups.c two_groups_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) two_groups_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) many_vars_SOURCES = many_vars.c many_vars_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) many_vars_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) selections_SOURCES = selections.c selections_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) selections_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) connect_to_space_subset_SOURCES = connect_to_space_subset.c connect_to_space_subset_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) connect_to_space_subset_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_LDFLAGS) EXTRA_DIST = adios_amr_write.xml adios_amr_write_2vars.xml \ posix_method.xml local_array_time.xml \ write_alternate.xml write_read.xml CLEANFILES = gwrite_posix_method.fh gread_posix_method.fh FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ all: all-am .SUFFIXES: .SUFFIXES: .F90 .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/suite/programs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/suite/programs/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list adios_amr_write$(EXEEXT): $(adios_amr_write_OBJECTS) $(adios_amr_write_DEPENDENCIES) @rm -f adios_amr_write$(EXEEXT) $(adios_amr_write_LINK) $(adios_amr_write_OBJECTS) $(adios_amr_write_LDADD) $(LIBS) adios_amr_write_2vars$(EXEEXT): $(adios_amr_write_2vars_OBJECTS) $(adios_amr_write_2vars_DEPENDENCIES) @rm -f adios_amr_write_2vars$(EXEEXT) $(adios_amr_write_2vars_LINK) $(adios_amr_write_2vars_OBJECTS) $(adios_amr_write_2vars_LDADD) $(LIBS) adios_staged_read$(EXEEXT): $(adios_staged_read_OBJECTS) $(adios_staged_read_DEPENDENCIES) @rm -f adios_staged_read$(EXEEXT) $(adios_staged_read_LINK) $(adios_staged_read_OBJECTS) $(adios_staged_read_LDADD) $(LIBS) adios_staged_read_2vars$(EXEEXT): $(adios_staged_read_2vars_OBJECTS) $(adios_staged_read_2vars_DEPENDENCIES) @rm -f adios_staged_read_2vars$(EXEEXT) $(adios_staged_read_2vars_LINK) $(adios_staged_read_2vars_OBJECTS) $(adios_staged_read_2vars_LDADD) $(LIBS) adios_staged_read_v2$(EXEEXT): $(adios_staged_read_v2_OBJECTS) $(adios_staged_read_v2_DEPENDENCIES) @rm -f adios_staged_read_v2$(EXEEXT) $(adios_staged_read_v2_LINK) $(adios_staged_read_v2_OBJECTS) $(adios_staged_read_v2_LDADD) $(LIBS) connect_to_space_subset$(EXEEXT): $(connect_to_space_subset_OBJECTS) $(connect_to_space_subset_DEPENDENCIES) @rm -f connect_to_space_subset$(EXEEXT) $(connect_to_space_subset_LINK) $(connect_to_space_subset_OBJECTS) $(connect_to_space_subset_LDADD) $(LIBS) local_array_time$(EXEEXT): $(local_array_time_OBJECTS) $(local_array_time_DEPENDENCIES) @rm -f local_array_time$(EXEEXT) $(local_array_time_LINK) $(local_array_time_OBJECTS) $(local_array_time_LDADD) $(LIBS) many_vars$(EXEEXT): $(many_vars_OBJECTS) $(many_vars_DEPENDENCIES) @rm -f many_vars$(EXEEXT) $(many_vars_LINK) $(many_vars_OBJECTS) $(many_vars_LDADD) $(LIBS) posix_method$(EXEEXT): $(posix_method_OBJECTS) $(posix_method_DEPENDENCIES) @rm -f posix_method$(EXEEXT) $(posix_method_LINK) $(posix_method_OBJECTS) $(posix_method_LDADD) $(LIBS) selections$(EXEEXT): $(selections_OBJECTS) $(selections_DEPENDENCIES) @rm -f selections$(EXEEXT) $(selections_LINK) $(selections_OBJECTS) $(selections_LDADD) $(LIBS) two_groups$(EXEEXT): $(two_groups_OBJECTS) $(two_groups_DEPENDENCIES) @rm -f two_groups$(EXEEXT) $(two_groups_LINK) $(two_groups_OBJECTS) $(two_groups_LDADD) $(LIBS) write_alternate$(EXEEXT): $(write_alternate_OBJECTS) $(write_alternate_DEPENDENCIES) @rm -f write_alternate$(EXEEXT) $(write_alternate_LINK) $(write_alternate_OBJECTS) $(write_alternate_LDADD) $(LIBS) write_read$(EXEEXT): $(write_read_OBJECTS) $(write_read_DEPENDENCIES) @rm -f write_read$(EXEEXT) $(write_read_LINK) $(write_read_OBJECTS) $(write_read_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/adios_amr_write.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/adios_amr_write_2vars.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/adios_staged_read.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/adios_staged_read_2vars.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/adios_staged_read_v2.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/connect_to_space_subset.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/local_array_time.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/many_vars.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/selections.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/two_groups.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/write_alternate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/write_read.Po@am__quote@ .F90.o: $(PPFCCOMPILE) -c -o $@ $< .F90.obj: $(PPFCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .F90.lo: $(LTPPFCCOMPILE) -c -o $@ $< .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-checkPROGRAMS clean-generic clean-libtool ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am posix_method.o: gwrite_posix_method.fh gwrite_posix_method.fh: posix_method.xml $(top_srcdir)/utils/gpp/gpp.py posix_method.xml adios_amr_write.o: adios_amr_write.c adios_amr_write_2vars.o: adios_amr_write_2vars.c adios_staged_read.o: adios_staged_read.c adios_staged_read_v2.o: adios_staged_read_v2.c adios_staged_read_2vars.o: adios_staged_read_2vars.c write_read.o: write_read.c write_alternate.o: write_alternate.c two_groups.o: two_groups.c many_vars.o: many_vars.c selections.o: selections.c connect_to_space_subset.o: connect_to_space_subset.c # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/tests/suite/programs/posix_method.xml0000644000175000017500000000074112251360163023320 0ustar amckinstryamckinstry adios-1.5.0/tests/suite/programs/many_vars.c0000644000175000017500000002746112251360163022247 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C test: * Write a huge number of variables * Then read them all and check if they are correct. * * How to run: mpirun -np many_vars * Output: many_vars.bp * */ #include #include #include #include #include #include "mpi.h" #include "public/adios.h" #include "public/adios_read.h" #ifdef DMALLOC #include "dmalloc.h" #endif #define log(...) fprintf (stderr, "[rank=%3.3d, line %d]: ", rank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); #define printE(...) fprintf (stderr, "[rank=%3.3d, line %d]: ERROR: ", rank, __LINE__); fprintf (stderr, __VA_ARGS__); fflush(stderr); int NVARS = 1; int NBLOCKS = 1; int NSTEPS = 1; static const char FILENAME[] = "many_vars.bp"; #define VALUE(rank, step, block) (step * 10000 + 10*rank + block) /* Variables to write */ int *a2; static const int ldim1 = 5; static const int ldim2 = 5; int gdim1, gdim2; int offs1, offs2; int64_t m_adios_group; /* Variables to read */ int *r2; MPI_Comm comm = MPI_COMM_WORLD; int rank; int size; char ** varnames; void alloc_vars() { int n,i; n = ldim1 * ldim2; a2 = (int*) malloc (n * sizeof(int)); r2 = (int*) malloc (n * sizeof(int)); varnames = (char**) malloc (NVARS * sizeof(char*)); for (i=0; i 0) { d *= 10; digit++; } char fmt[16]; sprintf (fmt, "v%%%d.%dd",digit,digit); printf ("ftm=[%s]\n", fmt); for (i=0; i \n" " : Number of variables to generate\n" " : Number of blocks per process to write\n" " : Number of write cycles (to same file)\n"); } void define_vars (); int write_file (int step); int read_file (); int main (int argc, char ** argv) { int err,i ; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); if (argc < 2) { Usage(); return 1; } errno = 0; i = strtol (argv[1], NULL, 10); if (errno || i < 1) { printf("Invalid 1st argument %s\n", argv[1]); Usage(); return 1;} NVARS = i; if (argc > 2) { i = strtol (argv[2], NULL, 10); if (errno || i < 1) { printf("Invalid 2nd argument %s\n", argv[2]); Usage(); return 1;} NBLOCKS = i; } if (argc > 3) { i = strtol (argv[3], NULL, 10); if (errno || i < 1) { printf("Invalid 3rd argument %s\n", argv[3]); Usage(); return 1;} NSTEPS = i; } alloc_vars(); adios_init_noxml (comm); adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, 10); err = adios_read_init_method(ADIOS_READ_METHOD_BP, comm, "verbose=2"); if (err) { printE ("%s\n", adios_errmsg()); } adios_declare_group (&m_adios_group, "multiblock", "iter", adios_flag_yes); adios_select_method (m_adios_group, "MPI", "", ""); define_vars(); set_gdim(); for (i=0; indim != NDIM) { \ printE ("Variable " VARNAME " has %d dimensions, but expected %d\n", vi->ndim, NDIM); \ err = 102; \ goto endread; \ } \ if (vi->nsteps != NSTEPS) { \ printE ("Variable " VARNAME " has %d steps, but expected %d\n", vi->nsteps, NSTEPS); \ err = 103; \ /*goto endread; */\ } \ adios_free_varinfo (vi); #define CHECK_SCALAR(VARNAME, VAR, VALUE, STEP) \ if (VAR != VALUE) { \ printE (#VARNAME " step %d: wrote %d but read %d\n",STEP,VALUE,VAR);\ err = 104; \ /*goto endread;*/\ } #define CHECK_ARRAY(VARNAME,A,N,VALUE,STEP,i) \ for (i=0;i #include #include #include #include "mpi.h" #define ADIOS_USE_READ_API_1 #include "public/adios_read.h" #ifdef DMALLOC #include "dmalloc.h" #endif enum pattern { PATTERN_1 = 1, PATTERN_2, PATTERN_3, PATTERN_4, PATTERN_5 }; int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j, NX, pattern; MPI_Comm comm = MPI_COMM_WORLD; void * data = NULL, * data1 = NULL, * data2 = NULL; uint64_t start[2], count[2], bytes_read = 0, slice_size; MPI_Init (&argc, &argv); if (argc != 2) { printf ("Invalid command line arguments.\n"); exit (1); } pattern = atoi (argv[1]); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); /* set the read method to staged read */ adios_set_read_method (ADIOS_READ_METHOD_BP_AGGREGATE); ADIOS_FILE * f = adios_fopen ("adios_amr_write.bp", comm); if (!f) { printf ("%s\n", adios_errmsg()); return -1; } ADIOS_GROUP * g = adios_gopen (f, "temperature"); if (!g) { printf ("%s\n", adios_errmsg()); return -1; } ADIOS_VARINFO * v = adios_inq_var (g, "temperature"); switch (pattern) { case PATTERN_1: slice_size = v->dims[0]/size; start[0] = rank * slice_size; count[0] = slice_size; if (rank == size - 1) { slice_size = slice_size + v->dims[0] % size; } start[1] = 0; count[1] = v->dims[1]; data = malloc (slice_size * v->dims[1] * sizeof (double)); break; case PATTERN_2: start[0] = 0; count[0] = v->dims[0]; slice_size = v->dims[1]/size; start[1] = slice_size * rank; if (rank == size - 1) { slice_size = slice_size + v->dims[1] % size; } count[1] = slice_size; data = malloc (slice_size * v->dims[0] * sizeof (double)); break; case PATTERN_3: start[0] = 0; count[0] = 4; slice_size = 3; start[1] = 2 + slice_size * rank; count[1] = slice_size; data = malloc (slice_size * count[0] * sizeof (double)); break; case PATTERN_4: start[0] = 0; count[0] = 32; slice_size = 3; start[1] = 2 + slice_size * rank; count[1] = slice_size; data = malloc (slice_size * count[0] * sizeof (double)); break; case PATTERN_5: start[0] = 0; count[0] = 32; slice_size = 3; start[1] = 2 + slice_size * rank; count[1] = slice_size; data = malloc (slice_size * count[0] * sizeof (double)); break; default: printf ("wrong pattern value\n"); } assert (data); bytes_read = adios_read_var (g, "temperature", start, count, data); adios_gclose (g); adios_fclose (f); if (pattern != PATTERN_5) { if (rank == 0) { for (i = 0; i < count[0]; i++) { for (j = 0; j < count[1]; j++) { printf (" %7.5g", * ((double *)data + i * count[1] + j)); } printf ("\n"); } } } else { if (rank == 1) { for (i = 0; i < count[0]; i++) { for (j = 0; j < count[1]; j++) { printf (" %7.5g", * ((double *)data + i * count[1] + j)); } printf ("\n"); } } } free (data); adios_free_varinfo (v); MPI_Finalize (); return 0; } adios-1.5.0/tests/suite/programs/CMakeLists.txt0000644000175000017500000000401712251360163022634 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/tests/suite) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/tests/suite/programs) include_directories(${PROJECT_BINARY_DIR}/tests/suite/programs) link_directories(${PROJECT_BINARY_DIR}/tests/suite/programs) if(BUILD_WRITE) add_executable(local_array_time local_array_time.c) target_link_libraries(local_array_time adios ${ADIOSLIB_LDADD}) add_executable(adios_amr_write adios_amr_write.c) target_link_libraries(adios_amr_write adios ${ADIOSLIB_LDADD}) add_executable(adios_amr_write_2vars adios_amr_write_2vars.c) target_link_libraries(adios_amr_write_2vars adios ${ADIOSLIB_LDADD}) add_executable(adios_staged_read adios_staged_read.c) target_link_libraries(adios_staged_read adiosread ${ADIOSREADLIB_LDADD}) add_executable(adios_staged_read_2vars adios_staged_read_2vars.c) target_link_libraries(adios_staged_read_2vars adiosread ${ADIOSREADLIB_LDADD}) add_executable(write_read write_read.c) target_link_libraries(write_read adios ${ADIOSLIB_LDADD}) add_executable(write_alternate write_alternate.c) target_link_libraries(write_alternate adios ${ADIOSLIB_LDADD}) add_executable(many_vars many_vars.c) target_link_libraries(many_vars adios ${ADIOSLIB_LDADD}) add_executable(selections selections.c) target_link_libraries(selections adios ${ADIOSLIB_LDADD}) endif(BUILD_WRITE) if(BUILD_FORTRAN) if(BUILD_WRITE) add_executable(posix_method posix_method.F90 gwrite_posix_method.fh) target_link_libraries(posix_method adiosf ${ADIOSLIB_LDADD}) include_directories(${PROJECT_BINARY_DIR}/src) add_custom_command( OUTPUT gwrite_posix_method.fh COMMAND ${PROJECT_SOURCE_DIR}/utils/gpp/gpp.py ${PROJECT_SOURCE_DIR}/tests/suite/programs/posix_method.xml DEPENDS posix_method.xml ) endif(BUILD_WRITE) endif(BUILD_FORTRAN) #install(FILES adios_amr_write_2vars.xml adios_amr_write.xml local_array_time.xml posix_method.xml write_alternate.xml write_read.xml DESTINATION ${PROJECT_BINARY_DIR}/tests/suite/programs) adios-1.5.0/tests/suite/programs/local_array_time.xml0000644000175000017500000000152712251360163024127 0ustar amckinstryamckinstry adios-1.5.0/tests/suite/programs/adios_staged_read_2vars.c0000644000175000017500000001407612251360163025004 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* This code is used to test staged-read method. */ #include #include #include #include #include "mpi.h" #define ADIOS_USE_READ_API_1 #include "public/adios_read.h" #ifdef DMALLOC #include "dmalloc.h" #endif enum pattern { PATTERN_1 = 1, PATTERN_2, PATTERN_3, PATTERN_4, PATTERN_5 }; int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j, NX, pattern; MPI_Comm comm = MPI_COMM_WORLD; void * data1 = NULL, * data2 = NULL; uint64_t start1[2], count1[2], bytes_read = 0, slice_size; uint64_t start2[2], count2[2]; MPI_Init (&argc, &argv); if (argc != 2) { printf ("Invalid command line arguments.\n"); exit (1); } pattern = atoi (argv[1]); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); /* set the read method to staged read */ adios_set_read_method (ADIOS_READ_METHOD_BP_AGGREGATE); ADIOS_FILE * f = adios_fopen ("adios_amr_write_2vars.bp", comm); if (!f) { printf ("%s\n", adios_errmsg()); return -1; } ADIOS_GROUP * g = adios_gopen (f, "temperature"); if (!g) { printf ("%s\n", adios_errmsg()); return -1; } ADIOS_VARINFO * v1 = adios_inq_var (g, "temperature"); ADIOS_VARINFO * v2 = adios_inq_var (g, "pressure"); switch (pattern) { case PATTERN_1: /* temperature */ slice_size = v1->dims[0]/size; start1[0] = rank * slice_size; count1[0] = slice_size; if (rank == size - 1) { slice_size = slice_size + v1->dims[0] % size; } start1[1] = 0; count1[1] = v1->dims[1]; /* pressure */ slice_size = v2->dims[0]/size; start2[0] = rank * slice_size; count2[0] = slice_size; if (rank == size - 1) { slice_size = slice_size + v2->dims[0] % size; } start2[1] = 0; count2[1] = v2->dims[1]; break; case PATTERN_2: /* temperature */ start1[0] = 0; count1[0] = v1->dims[0]; slice_size = v1->dims[1]/size; start1[1] = slice_size * rank; if (rank == size - 1) { slice_size = slice_size + v1->dims[1] % size; } count1[1] = slice_size; /* pressure */ start2[0] = 0; count2[0] = v2->dims[0]; slice_size = v2->dims[1]/size; start2[1] = slice_size * rank; if (rank == size - 1) { slice_size = slice_size + v2->dims[1] % size; } count2[1] = slice_size; break; case PATTERN_3: /* temperature */ start1[0] = 0; count1[0] = 4; slice_size = 3; start1[1] = 2 + slice_size * rank; count1[1] = slice_size; /* pressure */ start2[0] = 0; count2[0] = 4; slice_size = 3; start2[1] = 2 + slice_size * rank; count2[1] = slice_size; break; case PATTERN_4: /* temperature */ start1[0] = 0; count1[0] = 32; slice_size = 3; start1[1] = 2 + slice_size * rank; count1[1] = slice_size; /* pressure */ start2[0] = 0; count2[0] = 32; slice_size = 3; start2[1] = 2 + slice_size * rank; count2[1] = slice_size; break; case PATTERN_5: /* temperature */ start1[0] = 0; count1[0] = 32; slice_size = 3; start1[1] = 2 + slice_size * rank; count1[1] = slice_size; /* pressure */ start2[0] = 0; count2[0] = 32; slice_size = 3; start2[1] = 2 + slice_size * rank; count2[1] = slice_size; break; default: printf ("wrong pattern value\n"); } data1 = malloc (count1[0] * count1[1] * sizeof (double)); data2 = malloc (count2[0] * count2[1] * sizeof (int)); assert (data1); assert (data2); adios_read_var (g, "temperature", start1, count1, data1); adios_read_var (g, "pressure", start2, count2, data2); adios_gclose (g); adios_fclose (f); if (pattern != PATTERN_5) { if (rank == 0) { for (i = 0; i < count1[0]; i++) { for (j = 0; j < count1[1]; j++) { printf (" %7.5g", * ((double *)data1 + i * count1[1] + j)); } printf ("\n"); } printf ("\n"); for (i = 0; i < count2[0]; i++) { for (j = 0; j < count2[1]; j++) { printf (" %7d", * ((int *)data2 + i * count2[1] + j)); } printf ("\n"); } } } else { if (rank == 1) { for (i = 0; i < count1[0]; i++) { for (j = 0; j < count1[1]; j++) { printf (" %7.5g", * ((double *)data1 + i * count1[1] + j)); } printf ("\n"); } printf ("\n"); for (i = 0; i < count2[0]; i++) { for (j = 0; j < count2[1]; j++) { printf (" %7d", * ((int *)data2 + i * count2[1] + j)); } printf ("\n"); } } } free (data1); free (data2); adios_free_varinfo (v1); adios_free_varinfo (v2); MPI_Finalize (); return 0; } adios-1.5.0/tests/suite/programs/adios_amr_write.c0000644000175000017500000000445512251360163023416 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: write a global array from N processors using MPI_AGGREGATE. * * How to run: mpirun -np adios_amr_write * Output: adios_amr_write.bp * ADIOS config file: adios_amr_write.xml * */ #include #include #include "mpi.h" #include "public/adios.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, pattern, npe_1, npe_2; int l1, l2, o1, o2, g1, g2; double t1, t2; MPI_Comm comm = MPI_COMM_WORLD; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); if (argc != 2) { printf ("Invalid command line arguments.\n"); exit (1); } pattern = atoi (argv[1]); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); g1 = 32; g2 = 16; if (pattern == 1) { l1 = 1; l2 = g2; } else if (pattern == 2) { /* 4x4 array */ l1 = 4; l2 = 4; } else { printf ("wrong argument.\n"); } npe_1 = g1 / l1; npe_2 = g2 / l2; o1 = (rank / npe_2) * l1; o2 = (rank % npe_2) * l2; double t[l1*l2]; for (i = 0; i < l1 * l2; i++) { t[i] = o1 * g2 + o2 + (i / l2) * g2 + i % l2; } strcpy (filename, "adios_amr_write.bp"); adios_init ("adios_amr_write.xml", comm); adios_open (&adios_handle, "temperature", filename, "w", comm); adios_groupsize = 4 * 8\ + 8 * l1 * l2; adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "l1", &l1); adios_write (adios_handle, "l2", &l2); adios_write (adios_handle, "o1", &o1); adios_write (adios_handle, "o2", &o2); adios_write (adios_handle, "g1", &g1); adios_write (adios_handle, "g2", &g2); adios_write (adios_handle, "temperature", t); adios_close (adios_handle); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/tests/suite/programs/adios_amr_write_2vars.xml0000644000175000017500000000167412251360163025111 0ustar amckinstryamckinstry adios-1.5.0/tests/suite/Makefile.in0000644000175000017500000005112412251360163020310 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = tests/suite DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = programs EXTRA_DIST = HOWTO-Add-new-test \ HOWTO-Run \ cleanup.sh \ reference/* \ test.sh \ tests/* all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/suite/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/suite/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/tests/suite/reference/0000755000175000017500000000000012251360163020176 5ustar amckinstryamckinstryadios-1.5.0/tests/suite/reference/arrays_read.txt0000644000175000017500000001054212251360163023235 0ustar amckinstryamckinstryrank=0: NX=10 NY=100 rank=0: p = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] rank=0: t[5,*] = [ 5.00, 5.01, 5.02, 5.03, 5.04, 5.05, 5.06, 5.07, 5.08, 5.09, 5.10, 5.11, 5.12, 5.13, 5.14, 5.15, 5.16, 5.17, 5.18, 5.19, 5.20, 5.21, 5.22, 5.23, 5.24, 5.25, 5.26, 5.27, 5.28, 5.29, 5.30, 5.31, 5.32, 5.33, 5.34, 5.35, 5.36, 5.37, 5.38, 5.39, 5.40, 5.41, 5.42, 5.43, 5.44, 5.45, 5.46, 5.47, 5.48, 5.49, 5.50, 5.51, 5.52, 5.53, 5.54, 5.55, 5.56, 5.57, 5.58, 5.59, 5.60, 5.61, 5.62, 5.63, 5.64, 5.65, 5.66, 5.67, 5.68, 5.69, 5.70, 5.71, 5.72, 5.73, 5.74, 5.75, 5.76, 5.77, 5.78, 5.79, 5.80, 5.81, 5.82, 5.83, 5.84, 5.85, 5.86, 5.87, 5.88, 5.89, 5.90, 5.91, 5.92, 5.93, 5.94, 5.95, 5.96, 5.97, 5.98, 5.99] rank=1: NX=10 NY=100 rank=1: p = [10, 11, 12, 13, 14, 15, 16, 17, 18, 19] rank=1: t[5,*] = [ 15.00, 15.01, 15.02, 15.03, 15.04, 15.05, 15.06, 15.07, 15.08, 15.09, 15.10, 15.11, 15.12, 15.13, 15.14, 15.15, 15.16, 15.17, 15.18, 15.19, 15.20, 15.21, 15.22, 15.23, 15.24, 15.25, 15.26, 15.27, 15.28, 15.29, 15.30, 15.31, 15.32, 15.33, 15.34, 15.35, 15.36, 15.37, 15.38, 15.39, 15.40, 15.41, 15.42, 15.43, 15.44, 15.45, 15.46, 15.47, 15.48, 15.49, 15.50, 15.51, 15.52, 15.53, 15.54, 15.55, 15.56, 15.57, 15.58, 15.59, 15.60, 15.61, 15.62, 15.63, 15.64, 15.65, 15.66, 15.67, 15.68, 15.69, 15.70, 15.71, 15.72, 15.73, 15.74, 15.75, 15.76, 15.77, 15.78, 15.79, 15.80, 15.81, 15.82, 15.83, 15.84, 15.85, 15.86, 15.87, 15.88, 15.89, 15.90, 15.91, 15.92, 15.93, 15.94, 15.95, 15.96, 15.97, 15.98, 15.99] rank=2: NX=10 NY=100 rank=2: p = [20, 21, 22, 23, 24, 25, 26, 27, 28, 29] rank=2: t[5,*] = [ 25.00, 25.01, 25.02, 25.03, 25.04, 25.05, 25.06, 25.07, 25.08, 25.09, 25.10, 25.11, 25.12, 25.13, 25.14, 25.15, 25.16, 25.17, 25.18, 25.19, 25.20, 25.21, 25.22, 25.23, 25.24, 25.25, 25.26, 25.27, 25.28, 25.29, 25.30, 25.31, 25.32, 25.33, 25.34, 25.35, 25.36, 25.37, 25.38, 25.39, 25.40, 25.41, 25.42, 25.43, 25.44, 25.45, 25.46, 25.47, 25.48, 25.49, 25.50, 25.51, 25.52, 25.53, 25.54, 25.55, 25.56, 25.57, 25.58, 25.59, 25.60, 25.61, 25.62, 25.63, 25.64, 25.65, 25.66, 25.67, 25.68, 25.69, 25.70, 25.71, 25.72, 25.73, 25.74, 25.75, 25.76, 25.77, 25.78, 25.79, 25.80, 25.81, 25.82, 25.83, 25.84, 25.85, 25.86, 25.87, 25.88, 25.89, 25.90, 25.91, 25.92, 25.93, 25.94, 25.95, 25.96, 25.97, 25.98, 25.99] rank=3: NX=10 NY=100 rank=3: p = [30, 31, 32, 33, 34, 35, 36, 37, 38, 39] rank=3: t[5,*] = [ 35.00, 35.01, 35.02, 35.03, 35.04, 35.05, 35.06, 35.07, 35.08, 35.09, 35.10, 35.11, 35.12, 35.13, 35.14, 35.15, 35.16, 35.17, 35.18, 35.19, 35.20, 35.21, 35.22, 35.23, 35.24, 35.25, 35.26, 35.27, 35.28, 35.29, 35.30, 35.31, 35.32, 35.33, 35.34, 35.35, 35.36, 35.37, 35.38, 35.39, 35.40, 35.41, 35.42, 35.43, 35.44, 35.45, 35.46, 35.47, 35.48, 35.49, 35.50, 35.51, 35.52, 35.53, 35.54, 35.55, 35.56, 35.57, 35.58, 35.59, 35.60, 35.61, 35.62, 35.63, 35.64, 35.65, 35.66, 35.67, 35.68, 35.69, 35.70, 35.71, 35.72, 35.73, 35.74, 35.75, 35.76, 35.77, 35.78, 35.79, 35.80, 35.81, 35.82, 35.83, 35.84, 35.85, 35.86, 35.87, 35.88, 35.89, 35.90, 35.91, 35.92, 35.93, 35.94, 35.95, 35.96, 35.97, 35.98, 35.99] rank=4: NX=10 NY=100 rank=4: p = [40, 41, 42, 43, 44, 45, 46, 47, 48, 49] rank=4: t[5,*] = [ 45.00, 45.01, 45.02, 45.03, 45.04, 45.05, 45.06, 45.07, 45.08, 45.09, 45.10, 45.11, 45.12, 45.13, 45.14, 45.15, 45.16, 45.17, 45.18, 45.19, 45.20, 45.21, 45.22, 45.23, 45.24, 45.25, 45.26, 45.27, 45.28, 45.29, 45.30, 45.31, 45.32, 45.33, 45.34, 45.35, 45.36, 45.37, 45.38, 45.39, 45.40, 45.41, 45.42, 45.43, 45.44, 45.45, 45.46, 45.47, 45.48, 45.49, 45.50, 45.51, 45.52, 45.53, 45.54, 45.55, 45.56, 45.57, 45.58, 45.59, 45.60, 45.61, 45.62, 45.63, 45.64, 45.65, 45.66, 45.67, 45.68, 45.69, 45.70, 45.71, 45.72, 45.73, 45.74, 45.75, 45.76, 45.77, 45.78, 45.79, 45.80, 45.81, 45.82, 45.83, 45.84, 45.85, 45.86, 45.87, 45.88, 45.89, 45.90, 45.91, 45.92, 45.93, 45.94, 45.95, 45.96, 45.97, 45.98, 45.99] adios-1.5.0/tests/suite/reference/attributes_read.txt0000644000175000017500000000103012251360163024112 0ustar amckinstryamckinstryrank 0: attr: double /temperature/mean value = 4.500000e+00 rank 0: attr: integer /temperature/number of levels = 1 rank 0: attr: string /temperature/date of coding = Nov, 2009 rank 0: attr: string /temperature/description = Global array written from 'size' processes rank 1: attr: double /temperature/mean value = 4.500000e+00 rank 1: attr: integer /temperature/number of levels = 1 rank 1: attr: string /temperature/date of coding = Nov, 2009 rank 1: attr: string /temperature/description = Global array written from 'size' processes adios-1.5.0/tests/suite/reference/global_array_no_xml_f_bpls.txt0000644000175000017500000000173312251360163026302 0ustar amckinstryamckinstryFile info: of groups: 1 of variables: 4 of attributes: 0 time steps: 0 - 0 file size: 8 KB bp version: 513 statistics: Min / Max / Avg / Std_dev integer /NX scalar = 10 integer /G scalar = 140 integer /O scalar = 0 double /temperature {140} = 0 / 139 / 69.5 / 40.4135 (0) 0 1 2 3 4 5 6 7 8 9 (10) 10 11 12 13 14 15 16 17 18 19 (20) 20 21 22 23 24 25 26 27 28 29 (30) 30 31 32 33 34 35 36 37 38 39 (40) 40 41 42 43 44 45 46 47 48 49 (50) 50 51 52 53 54 55 56 57 58 59 (60) 60 61 62 63 64 65 66 67 68 69 (70) 70 71 72 73 74 75 76 77 78 79 (80) 80 81 82 83 84 85 86 87 88 89 (90) 90 91 92 93 94 95 96 97 98 99 (100) 100 101 102 103 104 105 106 107 108 109 (110) 110 111 112 113 114 115 116 117 118 119 (120) 120 121 122 123 124 125 126 127 128 129 (130) 130 131 132 133 134 135 136 137 138 139 adios-1.5.0/tests/suite/reference/global_array_no_xml_bpls.txt0000644000175000017500000003077412251360163026004 0ustar amckinstryamckinstryFile info: of groups: 1 of variables: 4 of attributes: 0 time steps: 0 - 0 file size: 25 KB bp version: 513 statistics: Min / Max / Avg / Std_dev integer /NX scalar = 100 integer /Global_bounds scalar = 2100 integer /Offsets scalar = 0 double /temperature {2100} = 0 / 2099 / 1049.5 / 606.218 (0) 0 1 2 3 4 5 6 7 8 9 (10) 10 11 12 13 14 15 16 17 18 19 (20) 20 21 22 23 24 25 26 27 28 29 (30) 30 31 32 33 34 35 36 37 38 39 (40) 40 41 42 43 44 45 46 47 48 49 (50) 50 51 52 53 54 55 56 57 58 59 (60) 60 61 62 63 64 65 66 67 68 69 (70) 70 71 72 73 74 75 76 77 78 79 (80) 80 81 82 83 84 85 86 87 88 89 (90) 90 91 92 93 94 95 96 97 98 99 (100) 100 101 102 103 104 105 106 107 108 109 (110) 110 111 112 113 114 115 116 117 118 119 (120) 120 121 122 123 124 125 126 127 128 129 (130) 130 131 132 133 134 135 136 137 138 139 (140) 140 141 142 143 144 145 146 147 148 149 (150) 150 151 152 153 154 155 156 157 158 159 (160) 160 161 162 163 164 165 166 167 168 169 (170) 170 171 172 173 174 175 176 177 178 179 (180) 180 181 182 183 184 185 186 187 188 189 (190) 190 191 192 193 194 195 196 197 198 199 (200) 200 201 202 203 204 205 206 207 208 209 (210) 210 211 212 213 214 215 216 217 218 219 (220) 220 221 222 223 224 225 226 227 228 229 (230) 230 231 232 233 234 235 236 237 238 239 (240) 240 241 242 243 244 245 246 247 248 249 (250) 250 251 252 253 254 255 256 257 258 259 (260) 260 261 262 263 264 265 266 267 268 269 (270) 270 271 272 273 274 275 276 277 278 279 (280) 280 281 282 283 284 285 286 287 288 289 (290) 290 291 292 293 294 295 296 297 298 299 (300) 300 301 302 303 304 305 306 307 308 309 (310) 310 311 312 313 314 315 316 317 318 319 (320) 320 321 322 323 324 325 326 327 328 329 (330) 330 331 332 333 334 335 336 337 338 339 (340) 340 341 342 343 344 345 346 347 348 349 (350) 350 351 352 353 354 355 356 357 358 359 (360) 360 361 362 363 364 365 366 367 368 369 (370) 370 371 372 373 374 375 376 377 378 379 (380) 380 381 382 383 384 385 386 387 388 389 (390) 390 391 392 393 394 395 396 397 398 399 (400) 400 401 402 403 404 405 406 407 408 409 (410) 410 411 412 413 414 415 416 417 418 419 (420) 420 421 422 423 424 425 426 427 428 429 (430) 430 431 432 433 434 435 436 437 438 439 (440) 440 441 442 443 444 445 446 447 448 449 (450) 450 451 452 453 454 455 456 457 458 459 (460) 460 461 462 463 464 465 466 467 468 469 (470) 470 471 472 473 474 475 476 477 478 479 (480) 480 481 482 483 484 485 486 487 488 489 (490) 490 491 492 493 494 495 496 497 498 499 (500) 500 501 502 503 504 505 506 507 508 509 (510) 510 511 512 513 514 515 516 517 518 519 (520) 520 521 522 523 524 525 526 527 528 529 (530) 530 531 532 533 534 535 536 537 538 539 (540) 540 541 542 543 544 545 546 547 548 549 (550) 550 551 552 553 554 555 556 557 558 559 (560) 560 561 562 563 564 565 566 567 568 569 (570) 570 571 572 573 574 575 576 577 578 579 (580) 580 581 582 583 584 585 586 587 588 589 (590) 590 591 592 593 594 595 596 597 598 599 (600) 600 601 602 603 604 605 606 607 608 609 (610) 610 611 612 613 614 615 616 617 618 619 (620) 620 621 622 623 624 625 626 627 628 629 (630) 630 631 632 633 634 635 636 637 638 639 (640) 640 641 642 643 644 645 646 647 648 649 (650) 650 651 652 653 654 655 656 657 658 659 (660) 660 661 662 663 664 665 666 667 668 669 (670) 670 671 672 673 674 675 676 677 678 679 (680) 680 681 682 683 684 685 686 687 688 689 (690) 690 691 692 693 694 695 696 697 698 699 (700) 700 701 702 703 704 705 706 707 708 709 (710) 710 711 712 713 714 715 716 717 718 719 (720) 720 721 722 723 724 725 726 727 728 729 (730) 730 731 732 733 734 735 736 737 738 739 (740) 740 741 742 743 744 745 746 747 748 749 (750) 750 751 752 753 754 755 756 757 758 759 (760) 760 761 762 763 764 765 766 767 768 769 (770) 770 771 772 773 774 775 776 777 778 779 (780) 780 781 782 783 784 785 786 787 788 789 (790) 790 791 792 793 794 795 796 797 798 799 (800) 800 801 802 803 804 805 806 807 808 809 (810) 810 811 812 813 814 815 816 817 818 819 (820) 820 821 822 823 824 825 826 827 828 829 (830) 830 831 832 833 834 835 836 837 838 839 (840) 840 841 842 843 844 845 846 847 848 849 (850) 850 851 852 853 854 855 856 857 858 859 (860) 860 861 862 863 864 865 866 867 868 869 (870) 870 871 872 873 874 875 876 877 878 879 (880) 880 881 882 883 884 885 886 887 888 889 (890) 890 891 892 893 894 895 896 897 898 899 (900) 900 901 902 903 904 905 906 907 908 909 (910) 910 911 912 913 914 915 916 917 918 919 (920) 920 921 922 923 924 925 926 927 928 929 (930) 930 931 932 933 934 935 936 937 938 939 (940) 940 941 942 943 944 945 946 947 948 949 (950) 950 951 952 953 954 955 956 957 958 959 (960) 960 961 962 963 964 965 966 967 968 969 (970) 970 971 972 973 974 975 976 977 978 979 (980) 980 981 982 983 984 985 986 987 988 989 (990) 990 991 992 993 994 995 996 997 998 999 (1000) 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 (1010) 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 (1020) 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 (1030) 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 (1040) 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 (1050) 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 (1060) 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 (1070) 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 (1080) 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 (1090) 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 (1100) 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 (1110) 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 (1120) 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 (1130) 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 (1140) 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 (1150) 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 (1160) 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 (1170) 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 (1180) 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 (1190) 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 (1200) 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 (1210) 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 (1220) 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 (1230) 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 (1240) 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 (1250) 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 (1260) 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 (1270) 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 (1280) 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 (1290) 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 (1300) 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 (1310) 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 (1320) 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 (1330) 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 (1340) 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 (1350) 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 (1360) 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 (1370) 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 (1380) 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 (1390) 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 (1400) 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 (1410) 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 (1420) 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 (1430) 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 (1440) 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 (1450) 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 (1460) 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 (1470) 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 (1480) 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 (1490) 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 (1500) 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 (1510) 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 (1520) 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 (1530) 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 (1540) 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 (1550) 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 (1560) 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 (1570) 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 (1580) 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 (1590) 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 (1600) 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 (1610) 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 (1620) 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 (1630) 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 (1640) 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 (1650) 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 (1660) 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 (1670) 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 (1680) 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 (1690) 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 (1700) 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 (1710) 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 (1720) 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 (1730) 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 (1740) 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 (1750) 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 (1760) 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 (1770) 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 (1780) 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 (1790) 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 (1800) 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 (1810) 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 (1820) 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 (1830) 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 (1840) 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 (1850) 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 (1860) 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 (1870) 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 (1880) 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 (1890) 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 (1900) 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 (1910) 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 (1920) 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 (1930) 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 (1940) 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 (1950) 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 (1960) 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 (1970) 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 (1980) 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 (1990) 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 (2000) 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 (2010) 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 (2020) 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 (2030) 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 (2040) 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 (2050) 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 (2060) 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 (2070) 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 (2080) 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 (2090) 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 adios-1.5.0/tests/suite/reference/arrays_bpls.txt0000644000175000017500000000063012251360163023257 0ustar amckinstryamckinstryFile info: of groups: 1 of variables: 4 of attributes: 0 time steps: 0 - 0 file size: 43 KB bp version: 513 statistics: Min / Max / Avg / Std_dev integer /NX scalar = 10 integer /NY scalar = 100 double /var_double_2Darray {10, 100} = 0 / 49.99 / 24.995 / 14.4338 integer /var_int_1Darray {10} = 0 / 49 / 24.5 / 14.4309 adios-1.5.0/tests/suite/reference/scalars_read_f.txt0000644000175000017500000000047412251360163023674 0ustar amckinstryamckinstryint*1 v1 = -4 int*2 v2 = -3 int*4 v3 = -2 int*8 v4 = -1 int*1 v5 = 1 int*2 v6 = 2 int*4 v7 = 3 int*8 v8 = 4 real*4 v9 = 5.00 real*8 v10 = 6.00 string v11 = ADIOS example complex*8 v12 = ( 8.00, 9.00) complex*16 v13 = ( 10.00, 11.00) adios-1.5.0/tests/suite/reference/amr_write_read_5.txt0000644000175000017500000000144012251360163024146 0ustar amckinstryamckinstry 5 6 7 21 22 23 37 38 39 53 54 55 69 70 71 85 86 87 101 102 103 117 118 119 133 134 135 149 150 151 165 166 167 181 182 183 197 198 199 213 214 215 229 230 231 245 246 247 261 262 263 277 278 279 293 294 295 309 310 311 325 326 327 341 342 343 357 358 359 373 374 375 389 390 391 405 406 407 421 422 423 437 438 439 453 454 455 469 470 471 485 486 487 501 502 503 adios-1.5.0/tests/suite/reference/amr_write_read_3.txt0000644000175000017500000000014412251360163024144 0ustar amckinstryamckinstry 2 3 4 18 19 20 34 35 36 50 51 52 adios-1.5.0/tests/suite/reference/amr_write_read_2vars_4.txt0000644000175000017500000000310012251360163025255 0ustar amckinstryamckinstry 2 3 4 18 19 20 34 35 36 50 51 52 66 67 68 82 83 84 98 99 100 114 115 116 130 131 132 146 147 148 162 163 164 178 179 180 194 195 196 210 211 212 226 227 228 242 243 244 258 259 260 274 275 276 290 291 292 306 307 308 322 323 324 338 339 340 354 355 356 370 371 372 386 387 388 402 403 404 418 419 420 434 435 436 450 451 452 466 467 468 482 483 484 498 499 500 1002 1003 1004 1018 1019 1020 1034 1035 1036 1050 1051 1052 1066 1067 1068 1082 1083 1084 1098 1099 1100 1114 1115 1116 1130 1131 1132 1146 1147 1148 1162 1163 1164 1178 1179 1180 1194 1195 1196 1210 1211 1212 1226 1227 1228 1242 1243 1244 1258 1259 1260 1274 1275 1276 1290 1291 1292 1306 1307 1308 1322 1323 1324 1338 1339 1340 1354 1355 1356 1370 1371 1372 1386 1387 1388 1402 1403 1404 1418 1419 1420 1434 1435 1436 1450 1451 1452 1466 1467 1468 1482 1483 1484 1498 1499 1500 adios-1.5.0/tests/suite/reference/no_xml_write_byid_f_bpls.txt0000644000175000017500000000155112251360163026003 0ustar amckinstryamckinstryFile info: of groups: 1 of variables: 1 of attributes: 0 time steps: 0 - 0 file size: 5 KB bp version: 513 statistics: Min / Max / Avg / Std_dev double /temperature {140} = 0 / 139 / 69.5 / 40.4135 (0) 0 1 2 3 4 5 6 7 8 9 (10) 10 11 12 13 14 15 16 17 18 19 (20) 20 21 22 23 24 25 26 27 28 29 (30) 30 31 32 33 34 35 36 37 38 39 (40) 40 41 42 43 44 45 46 47 48 49 (50) 50 51 52 53 54 55 56 57 58 59 (60) 60 61 62 63 64 65 66 67 68 69 (70) 70 71 72 73 74 75 76 77 78 79 (80) 80 81 82 83 84 85 86 87 88 89 (90) 90 91 92 93 94 95 96 97 98 99 (100) 100 101 102 103 104 105 106 107 108 109 (110) 110 111 112 113 114 115 116 117 118 119 (120) 120 121 122 123 124 125 126 127 128 129 (130) 130 131 132 133 134 135 136 137 138 139 adios-1.5.0/tests/suite/reference/global_array_time_bpls.txt0000644000175000017500000000103312251360163025430 0ustar amckinstryamckinstry integer /NX 13*scalar = 10 / 10 / 10 / 0 integer /NY 13*scalar = 1 / 1 / 1 / 0 integer /size 13*scalar = 9 / 9 / 9 / 0 integer /rank 13*scalar = 0 / 8 / 4 / 2.58199 double /temperature 13*{9, 10} = 100 / 1389 / 744.5 / 375.067 double /pressure 13*{9, 1} = 1000 / 13008 / 7004 / 3741.66 string /temperature/description attr = "Global array written from 'size' processes over several timesteps" adios-1.5.0/tests/suite/reference/amr_write_read_2vars_3.txt0000644000175000017500000000031012251360163025254 0ustar amckinstryamckinstry 2 3 4 18 19 20 34 35 36 50 51 52 1002 1003 1004 1018 1019 1020 1034 1035 1036 1050 1051 1052 adios-1.5.0/tests/suite/reference/scalars_write_bpls.txt0000644000175000017500000000163212251360163024623 0ustar amckinstryamckinstryFile info: of groups: 1 of variables: 13 of attributes: 0 time steps: 0 - 0 file size: 4 KB bp version: 513 statistics: Min / Max / Avg / Std_dev byte /var_byte scalar = -4 short /var_short scalar = -3 integer /var_int scalar = -2 long long /var_long scalar = -1 unsigned byte /var_ubyte scalar = 1 unsigned short /var_ushort scalar = 2 unsigned integer /var_uint scalar = 3 unsigned long long /var_ulong scalar = 4 real /var_real scalar = 5 double /var_double scalar = 6 string /var_string scalar = "ADIOS example" complex /var_complex scalar = (8,i9) double complex /var_double_complex scalar = (10,i11) adios-1.5.0/tests/suite/reference/amr_write_read_4.txt0000644000175000017500000000144012251360163024145 0ustar amckinstryamckinstry 2 3 4 18 19 20 34 35 36 50 51 52 66 67 68 82 83 84 98 99 100 114 115 116 130 131 132 146 147 148 162 163 164 178 179 180 194 195 196 210 211 212 226 227 228 242 243 244 258 259 260 274 275 276 290 291 292 306 307 308 322 323 324 338 339 340 354 355 356 370 371 372 386 387 388 402 403 404 418 419 420 434 435 436 450 451 452 466 467 468 482 483 484 498 499 500 adios-1.5.0/tests/suite/reference/write_read_bpls.txt0000644000175000017500000001162312251360163024107 0ustar amckinstryamckinstry integer /dimensions/gdim1 scalar integer /dimensions/gdim2 scalar integer /dimensions/gdim3 scalar integer /dimensions/gdim4 scalar integer /dimensions/gdim5 scalar integer /dimensions/gdim6 scalar integer /dimensions/ldim1 scalar integer /dimensions/ldim2 scalar integer /dimensions/ldim3 scalar integer /dimensions/ldim4 scalar integer /dimensions/ldim5 scalar integer /dimensions/ldim6 scalar integer /dimensions/offs1 scalar integer /dimensions/offs2 scalar integer /dimensions/offs3 scalar integer /dimensions/offs4 scalar integer /dimensions/offs5 scalar integer /dimensions/offs6 scalar byte /scalars/scalar_byte scalar short /scalars/scalar_short scalar integer /scalars/scalar_int scalar long long /scalars/scalar_long scalar unsigned byte /scalars/scalar_ubyte scalar unsigned short /scalars/scalar_ushort scalar unsigned integer /scalars/scalar_uint scalar unsigned long long /scalars/scalar_ulong scalar real /scalars/scalar_float scalar double /scalars/scalar_double scalar string /scalars/scalar_string scalar complex /scalars/scalar_complex scalar double complex /scalars/scalar_double_complex scalar byte /1D/a1_byte {21} short /1D/a1_short {21} integer /1D/a1_int {21} long long /1D/a1_long {21} unsigned byte /1D/a1_ubyte {21} unsigned short /1D/a1_ushort {21} unsigned integer /1D/a1_uint {21} unsigned long long /1D/a1_ulong {21} real /1D/a1_float {21} double /1D/a1_double {21} complex /1D/a1_complex {21} double complex /1D/a1_double_complex {21} byte /2D/a2_byte {21, 5} short /2D/a2_short {21, 5} integer /2D/a2_int {21, 5} long long /2D/a2_long {21, 5} unsigned byte /2D/a2_ubyte {21, 5} unsigned short /2D/a2_ushort {21, 5} unsigned integer /2D/a2_uint {21, 5} unsigned long long /2D/a2_ulong {21, 5} real /2D/a2_float {21, 5} double /2D/a2_double {21, 5} complex /2D/a2_complex {21, 5} double complex /2D/a2_double_complex {21, 5} byte /3D/a3_byte {21, 5, 3} short /3D/a3_short {21, 5, 3} integer /3D/a3_int {21, 5, 3} long long /3D/a3_long {21, 5, 3} unsigned byte /3D/a3_ubyte {21, 5, 3} unsigned short /3D/a3_ushort {21, 5, 3} unsigned integer /3D/a3_uint {21, 5, 3} unsigned long long /3D/a3_ulong {21, 5, 3} real /3D/a3_float {21, 5, 3} double /3D/a3_double {21, 5, 3} complex /3D/a3_complex {21, 5, 3} double complex /3D/a3_double_complex {21, 5, 3} byte /6D/a6_byte {21, 5, 3, 2, 4, 9} short /6D/a6_short {21, 5, 3, 2, 4, 9} integer /6D/a6_int {21, 5, 3, 2, 4, 9} long long /6D/a6_long {21, 5, 3, 2, 4, 9} unsigned byte /6D/a6_ubyte {21, 5, 3, 2, 4, 9} unsigned short /6D/a6_ushort {21, 5, 3, 2, 4, 9} unsigned integer /6D/a6_uint {21, 5, 3, 2, 4, 9} unsigned long long /6D/a6_ulong {21, 5, 3, 2, 4, 9} real /6D/a6_float {21, 5, 3, 2, 4, 9} double /6D/a6_double {21, 5, 3, 2, 4, 9} complex /6D/a6_complex {21, 5, 3, 2, 4, 9} double complex /6D/a6_double_complex {21, 5, 3, 2, 4, 9} adios-1.5.0/tests/suite/reference/amr_write_read_2vars_2.txt0000644000175000017500000000410012251360163025254 0ustar amckinstryamckinstry 0 1 2 3 16 17 18 19 32 33 34 35 48 49 50 51 64 65 66 67 80 81 82 83 96 97 98 99 112 113 114 115 128 129 130 131 144 145 146 147 160 161 162 163 176 177 178 179 192 193 194 195 208 209 210 211 224 225 226 227 240 241 242 243 256 257 258 259 272 273 274 275 288 289 290 291 304 305 306 307 320 321 322 323 336 337 338 339 352 353 354 355 368 369 370 371 384 385 386 387 400 401 402 403 416 417 418 419 432 433 434 435 448 449 450 451 464 465 466 467 480 481 482 483 496 497 498 499 1000 1001 1002 1003 1016 1017 1018 1019 1032 1033 1034 1035 1048 1049 1050 1051 1064 1065 1066 1067 1080 1081 1082 1083 1096 1097 1098 1099 1112 1113 1114 1115 1128 1129 1130 1131 1144 1145 1146 1147 1160 1161 1162 1163 1176 1177 1178 1179 1192 1193 1194 1195 1208 1209 1210 1211 1224 1225 1226 1227 1240 1241 1242 1243 1256 1257 1258 1259 1272 1273 1274 1275 1288 1289 1290 1291 1304 1305 1306 1307 1320 1321 1322 1323 1336 1337 1338 1339 1352 1353 1354 1355 1368 1369 1370 1371 1384 1385 1386 1387 1400 1401 1402 1403 1416 1417 1418 1419 1432 1433 1434 1435 1448 1449 1450 1451 1464 1465 1466 1467 1480 1481 1482 1483 1496 1497 1498 1499 adios-1.5.0/tests/suite/reference/scalars_read_c.txt0000644000175000017500000000044212251360163023664 0ustar amckinstryamckinstrybyte v1 = -4 short v2 = -3 integer v3 = -2 long v4 = -1 uns.byte v5 = 1 uns.short v6 = 2 uns.int v7 = 3 uns.long v8 = 4 float v9 = 5 double v10 = 6 string v11 = ADIOS example complex v12 = (8, i9) dbl-complex v13 = (10, i11) adios-1.5.0/tests/suite/reference/no_xml_write_byid_read.txt0000644000175000017500000004044512251360163025456 0ustar amckinstryamckinstry ======== Rank 0 ========== [0000] 0 1 2 3 4 5 6 7 8 9 [0010] 10 11 12 13 14 15 16 17 18 19 [0020] 20 21 22 23 24 25 26 27 28 29 [0030] 30 31 32 33 34 35 36 37 38 39 [0040] 40 41 42 43 44 45 46 47 48 49 [0050] 50 51 52 53 54 55 56 57 58 59 [0060] 60 61 62 63 64 65 66 67 68 69 [0070] 70 71 72 73 74 75 76 77 78 79 [0080] 80 81 82 83 84 85 86 87 88 89 [0090] 90 91 92 93 94 95 96 97 98 99 [0100] 100 101 102 103 104 105 106 107 108 109 [0110] 110 111 112 113 114 115 116 117 118 119 [0120] 120 121 122 123 124 125 126 127 128 129 [0130] 130 131 132 133 134 135 136 137 138 139 [0140] 140 141 142 143 144 145 146 147 148 149 [0150] 150 151 152 153 154 155 156 157 158 159 [0160] 160 161 162 163 164 165 166 167 168 169 [0170] 170 171 172 173 174 175 176 177 178 179 [0180] 180 181 182 183 184 185 186 187 188 189 [0190] 190 191 192 193 194 195 196 197 198 199 [0200] 200 201 202 203 204 205 206 207 208 209 [0210] 210 211 212 213 214 215 216 217 218 219 [0220] 220 221 222 223 224 225 226 227 228 229 [0230] 230 231 232 233 234 235 236 237 238 239 [0240] 240 241 242 243 244 245 246 247 248 249 [0250] 250 251 252 253 254 255 256 257 258 259 [0260] 260 261 262 263 264 265 266 267 268 269 [0270] 270 271 272 273 274 275 276 277 278 279 [0280] 280 281 282 283 284 285 286 287 288 289 [0290] 290 291 292 293 294 295 296 297 298 299 [0300] 300 301 302 303 304 305 306 307 308 309 [0310] 310 311 312 313 314 315 316 317 318 319 [0320] 320 321 322 323 324 325 326 327 328 329 [0330] 330 331 332 333 334 335 336 337 338 339 [0340] 340 341 342 343 344 345 346 347 348 349 [0350] 350 351 352 353 354 355 356 357 358 359 [0360] 360 361 362 363 364 365 366 367 368 369 [0370] 370 371 372 373 374 375 376 377 378 379 [0380] 380 381 382 383 384 385 386 387 388 389 [0390] 390 391 392 393 394 395 396 397 398 399 [0400] 400 401 402 403 404 405 406 407 408 409 [0410] 410 411 412 413 414 415 416 417 418 419 [0420] 420 421 422 423 424 425 426 427 428 429 [0430] 430 431 432 433 434 435 436 437 438 439 [0440] 440 441 442 443 444 445 446 447 448 449 [0450] 450 451 452 453 454 455 456 457 458 459 [0460] 460 461 462 463 464 465 466 467 468 469 [0470] 470 471 472 473 474 475 476 477 478 479 [0480] 480 481 482 483 484 485 486 487 488 489 [0490] 490 491 492 493 494 495 496 497 498 499 [0500] 500 501 502 503 504 505 506 507 508 509 [0510] 510 511 512 513 514 515 516 517 518 519 [0520] 520 521 522 523 524 525 526 527 528 529 [0530] 530 531 532 533 534 535 536 537 538 539 [0540] 540 541 542 543 544 545 546 547 548 549 [0550] 550 551 552 553 554 555 556 557 558 559 [0560] 560 561 562 563 564 565 566 567 568 569 [0570] 570 571 572 573 574 575 576 577 578 579 [0580] 580 581 582 583 584 585 586 587 588 589 [0590] 590 591 592 593 594 595 596 597 598 599 [0600] 600 601 602 603 604 605 606 607 608 609 [0610] 610 611 612 613 614 615 616 617 618 619 [0620] 620 621 622 623 624 625 626 627 628 629 [0630] 630 631 632 633 634 635 636 637 638 639 [0640] 640 641 642 643 644 645 646 647 648 649 [0650] 650 651 652 653 654 655 656 657 658 659 [0660] 660 661 662 663 664 665 666 667 668 669 [0670] 670 671 672 673 674 675 676 677 678 679 [0680] 680 681 682 683 684 685 686 687 688 689 [0690] 690 691 692 693 694 695 696 697 698 699 ======== Rank 1 ========== [0700] 700 701 702 703 704 705 706 707 708 709 [0710] 710 711 712 713 714 715 716 717 718 719 [0720] 720 721 722 723 724 725 726 727 728 729 [0730] 730 731 732 733 734 735 736 737 738 739 [0740] 740 741 742 743 744 745 746 747 748 749 [0750] 750 751 752 753 754 755 756 757 758 759 [0760] 760 761 762 763 764 765 766 767 768 769 [0770] 770 771 772 773 774 775 776 777 778 779 [0780] 780 781 782 783 784 785 786 787 788 789 [0790] 790 791 792 793 794 795 796 797 798 799 [0800] 800 801 802 803 804 805 806 807 808 809 [0810] 810 811 812 813 814 815 816 817 818 819 [0820] 820 821 822 823 824 825 826 827 828 829 [0830] 830 831 832 833 834 835 836 837 838 839 [0840] 840 841 842 843 844 845 846 847 848 849 [0850] 850 851 852 853 854 855 856 857 858 859 [0860] 860 861 862 863 864 865 866 867 868 869 [0870] 870 871 872 873 874 875 876 877 878 879 [0880] 880 881 882 883 884 885 886 887 888 889 [0890] 890 891 892 893 894 895 896 897 898 899 [0900] 900 901 902 903 904 905 906 907 908 909 [0910] 910 911 912 913 914 915 916 917 918 919 [0920] 920 921 922 923 924 925 926 927 928 929 [0930] 930 931 932 933 934 935 936 937 938 939 [0940] 940 941 942 943 944 945 946 947 948 949 [0950] 950 951 952 953 954 955 956 957 958 959 [0960] 960 961 962 963 964 965 966 967 968 969 [0970] 970 971 972 973 974 975 976 977 978 979 [0980] 980 981 982 983 984 985 986 987 988 989 [0990] 990 991 992 993 994 995 996 997 998 999 [1000] 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 [1010] 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 [1020] 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 [1030] 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 [1040] 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 [1050] 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 [1060] 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 [1070] 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 [1080] 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 [1090] 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 [1100] 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 [1110] 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 [1120] 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 [1130] 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 [1140] 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 [1150] 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 [1160] 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 [1170] 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 [1180] 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 [1190] 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 [1200] 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 [1210] 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 [1220] 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 [1230] 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 [1240] 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 [1250] 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 [1260] 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 [1270] 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 [1280] 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 [1290] 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 [1300] 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 [1310] 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 [1320] 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 [1330] 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 [1340] 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 [1350] 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 [1360] 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 [1370] 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 [1380] 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 [1390] 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 ======== Rank 2 ========== [1400] 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 [1410] 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 [1420] 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 [1430] 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 [1440] 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 [1450] 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 [1460] 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 [1470] 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 [1480] 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 [1490] 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 [1500] 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 [1510] 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 [1520] 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 [1530] 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 [1540] 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 [1550] 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 [1560] 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 [1570] 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 [1580] 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 [1590] 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 [1600] 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 [1610] 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 [1620] 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 [1630] 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 [1640] 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 [1650] 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 [1660] 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 [1670] 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 [1680] 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 [1690] 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 [1700] 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 [1710] 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 [1720] 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 [1730] 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 [1740] 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 [1750] 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 [1760] 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 [1770] 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 [1780] 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 [1790] 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 [1800] 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 [1810] 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 [1820] 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 [1830] 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 [1840] 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 [1850] 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 [1860] 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 [1870] 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 [1880] 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 [1890] 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 [1900] 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 [1910] 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 [1920] 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 [1930] 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 [1940] 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 [1950] 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 [1960] 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 [1970] 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 [1980] 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 [1990] 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 [2000] 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 [2010] 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 [2020] 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 [2030] 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 [2040] 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 [2050] 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 [2060] 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 [2070] 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 [2080] 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 [2090] 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 adios-1.5.0/tests/suite/reference/global_array_bpls.txt0000644000175000017500000000114212251360163024413 0ustar amckinstryamckinstry integer /NX scalar = 10 integer /size scalar = 7 integer /rank scalar = 0 double /temperature {7, 10} = 0 / 69 / 34.5 / 20.2052 (0,0) 0 1 2 3 4 5 6 7 8 9 (1,0) 10 11 12 13 14 15 16 17 18 19 (2,0) 20 21 22 23 24 25 26 27 28 29 (3,0) 30 31 32 33 34 35 36 37 38 39 (4,0) 40 41 42 43 44 45 46 47 48 49 (5,0) 50 51 52 53 54 55 56 57 58 59 (6,0) 60 61 62 63 64 65 66 67 68 69 string /temperature/description attr = "Global array written from 'size' processes" adios-1.5.0/tests/suite/reference/global_array_no_xml_read.txt0000644000175000017500000004044512251360163025753 0ustar amckinstryamckinstry ======== Rank 0 ========== [0000] 0 1 2 3 4 5 6 7 8 9 [0010] 10 11 12 13 14 15 16 17 18 19 [0020] 20 21 22 23 24 25 26 27 28 29 [0030] 30 31 32 33 34 35 36 37 38 39 [0040] 40 41 42 43 44 45 46 47 48 49 [0050] 50 51 52 53 54 55 56 57 58 59 [0060] 60 61 62 63 64 65 66 67 68 69 [0070] 70 71 72 73 74 75 76 77 78 79 [0080] 80 81 82 83 84 85 86 87 88 89 [0090] 90 91 92 93 94 95 96 97 98 99 [0100] 100 101 102 103 104 105 106 107 108 109 [0110] 110 111 112 113 114 115 116 117 118 119 [0120] 120 121 122 123 124 125 126 127 128 129 [0130] 130 131 132 133 134 135 136 137 138 139 [0140] 140 141 142 143 144 145 146 147 148 149 [0150] 150 151 152 153 154 155 156 157 158 159 [0160] 160 161 162 163 164 165 166 167 168 169 [0170] 170 171 172 173 174 175 176 177 178 179 [0180] 180 181 182 183 184 185 186 187 188 189 [0190] 190 191 192 193 194 195 196 197 198 199 [0200] 200 201 202 203 204 205 206 207 208 209 [0210] 210 211 212 213 214 215 216 217 218 219 [0220] 220 221 222 223 224 225 226 227 228 229 [0230] 230 231 232 233 234 235 236 237 238 239 [0240] 240 241 242 243 244 245 246 247 248 249 [0250] 250 251 252 253 254 255 256 257 258 259 [0260] 260 261 262 263 264 265 266 267 268 269 [0270] 270 271 272 273 274 275 276 277 278 279 [0280] 280 281 282 283 284 285 286 287 288 289 [0290] 290 291 292 293 294 295 296 297 298 299 [0300] 300 301 302 303 304 305 306 307 308 309 [0310] 310 311 312 313 314 315 316 317 318 319 [0320] 320 321 322 323 324 325 326 327 328 329 [0330] 330 331 332 333 334 335 336 337 338 339 [0340] 340 341 342 343 344 345 346 347 348 349 [0350] 350 351 352 353 354 355 356 357 358 359 [0360] 360 361 362 363 364 365 366 367 368 369 [0370] 370 371 372 373 374 375 376 377 378 379 [0380] 380 381 382 383 384 385 386 387 388 389 [0390] 390 391 392 393 394 395 396 397 398 399 [0400] 400 401 402 403 404 405 406 407 408 409 [0410] 410 411 412 413 414 415 416 417 418 419 [0420] 420 421 422 423 424 425 426 427 428 429 [0430] 430 431 432 433 434 435 436 437 438 439 [0440] 440 441 442 443 444 445 446 447 448 449 [0450] 450 451 452 453 454 455 456 457 458 459 [0460] 460 461 462 463 464 465 466 467 468 469 [0470] 470 471 472 473 474 475 476 477 478 479 [0480] 480 481 482 483 484 485 486 487 488 489 [0490] 490 491 492 493 494 495 496 497 498 499 [0500] 500 501 502 503 504 505 506 507 508 509 [0510] 510 511 512 513 514 515 516 517 518 519 [0520] 520 521 522 523 524 525 526 527 528 529 [0530] 530 531 532 533 534 535 536 537 538 539 [0540] 540 541 542 543 544 545 546 547 548 549 [0550] 550 551 552 553 554 555 556 557 558 559 [0560] 560 561 562 563 564 565 566 567 568 569 [0570] 570 571 572 573 574 575 576 577 578 579 [0580] 580 581 582 583 584 585 586 587 588 589 [0590] 590 591 592 593 594 595 596 597 598 599 [0600] 600 601 602 603 604 605 606 607 608 609 [0610] 610 611 612 613 614 615 616 617 618 619 [0620] 620 621 622 623 624 625 626 627 628 629 [0630] 630 631 632 633 634 635 636 637 638 639 [0640] 640 641 642 643 644 645 646 647 648 649 [0650] 650 651 652 653 654 655 656 657 658 659 [0660] 660 661 662 663 664 665 666 667 668 669 [0670] 670 671 672 673 674 675 676 677 678 679 [0680] 680 681 682 683 684 685 686 687 688 689 [0690] 690 691 692 693 694 695 696 697 698 699 ======== Rank 1 ========== [0700] 700 701 702 703 704 705 706 707 708 709 [0710] 710 711 712 713 714 715 716 717 718 719 [0720] 720 721 722 723 724 725 726 727 728 729 [0730] 730 731 732 733 734 735 736 737 738 739 [0740] 740 741 742 743 744 745 746 747 748 749 [0750] 750 751 752 753 754 755 756 757 758 759 [0760] 760 761 762 763 764 765 766 767 768 769 [0770] 770 771 772 773 774 775 776 777 778 779 [0780] 780 781 782 783 784 785 786 787 788 789 [0790] 790 791 792 793 794 795 796 797 798 799 [0800] 800 801 802 803 804 805 806 807 808 809 [0810] 810 811 812 813 814 815 816 817 818 819 [0820] 820 821 822 823 824 825 826 827 828 829 [0830] 830 831 832 833 834 835 836 837 838 839 [0840] 840 841 842 843 844 845 846 847 848 849 [0850] 850 851 852 853 854 855 856 857 858 859 [0860] 860 861 862 863 864 865 866 867 868 869 [0870] 870 871 872 873 874 875 876 877 878 879 [0880] 880 881 882 883 884 885 886 887 888 889 [0890] 890 891 892 893 894 895 896 897 898 899 [0900] 900 901 902 903 904 905 906 907 908 909 [0910] 910 911 912 913 914 915 916 917 918 919 [0920] 920 921 922 923 924 925 926 927 928 929 [0930] 930 931 932 933 934 935 936 937 938 939 [0940] 940 941 942 943 944 945 946 947 948 949 [0950] 950 951 952 953 954 955 956 957 958 959 [0960] 960 961 962 963 964 965 966 967 968 969 [0970] 970 971 972 973 974 975 976 977 978 979 [0980] 980 981 982 983 984 985 986 987 988 989 [0990] 990 991 992 993 994 995 996 997 998 999 [1000] 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 [1010] 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 [1020] 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 [1030] 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 [1040] 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 [1050] 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 [1060] 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 [1070] 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 [1080] 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 [1090] 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 [1100] 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 [1110] 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 [1120] 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 [1130] 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 [1140] 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 [1150] 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 [1160] 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 [1170] 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 [1180] 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 [1190] 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 [1200] 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 [1210] 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 [1220] 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 [1230] 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 [1240] 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 [1250] 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 [1260] 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 [1270] 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 [1280] 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 [1290] 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 [1300] 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 [1310] 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 [1320] 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 [1330] 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 [1340] 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 [1350] 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 [1360] 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 [1370] 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 [1380] 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 [1390] 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 ======== Rank 2 ========== [1400] 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 [1410] 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 [1420] 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 [1430] 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 [1440] 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 [1450] 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 [1460] 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 [1470] 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 [1480] 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 [1490] 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 [1500] 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 [1510] 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 [1520] 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 [1530] 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 [1540] 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 [1550] 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 [1560] 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 [1570] 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 [1580] 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 [1590] 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 [1600] 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 [1610] 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 [1620] 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 [1630] 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 [1640] 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 [1650] 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 [1660] 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 [1670] 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 [1680] 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 [1690] 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 [1700] 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 [1710] 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 [1720] 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 [1730] 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 [1740] 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 [1750] 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 [1760] 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 [1770] 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 [1780] 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 [1790] 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 [1800] 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 [1810] 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 [1820] 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 [1830] 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 [1840] 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 [1850] 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 [1860] 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 [1870] 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 [1880] 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 [1890] 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 [1900] 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 [1910] 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 [1920] 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 [1930] 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 [1940] 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 [1950] 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 [1960] 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 [1970] 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 [1980] 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 [1990] 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 [2000] 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 [2010] 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 [2020] 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 [2030] 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 [2040] 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 [2050] 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 [2060] 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 [2070] 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 [2080] 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 [2090] 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 adios-1.5.0/tests/suite/reference/no_xml_write_byid_bpls.txt0000644000175000017500000003060012251360163025473 0ustar amckinstryamckinstryFile info: of groups: 1 of variables: 1 of attributes: 0 time steps: 0 - 0 file size: 22 KB bp version: 513 statistics: Min / Max / Avg / Std_dev double /temperature {2100} = 0 / 2099 / 1049.5 / 606.218 (0) 0 1 2 3 4 5 6 7 8 9 (10) 10 11 12 13 14 15 16 17 18 19 (20) 20 21 22 23 24 25 26 27 28 29 (30) 30 31 32 33 34 35 36 37 38 39 (40) 40 41 42 43 44 45 46 47 48 49 (50) 50 51 52 53 54 55 56 57 58 59 (60) 60 61 62 63 64 65 66 67 68 69 (70) 70 71 72 73 74 75 76 77 78 79 (80) 80 81 82 83 84 85 86 87 88 89 (90) 90 91 92 93 94 95 96 97 98 99 (100) 100 101 102 103 104 105 106 107 108 109 (110) 110 111 112 113 114 115 116 117 118 119 (120) 120 121 122 123 124 125 126 127 128 129 (130) 130 131 132 133 134 135 136 137 138 139 (140) 140 141 142 143 144 145 146 147 148 149 (150) 150 151 152 153 154 155 156 157 158 159 (160) 160 161 162 163 164 165 166 167 168 169 (170) 170 171 172 173 174 175 176 177 178 179 (180) 180 181 182 183 184 185 186 187 188 189 (190) 190 191 192 193 194 195 196 197 198 199 (200) 200 201 202 203 204 205 206 207 208 209 (210) 210 211 212 213 214 215 216 217 218 219 (220) 220 221 222 223 224 225 226 227 228 229 (230) 230 231 232 233 234 235 236 237 238 239 (240) 240 241 242 243 244 245 246 247 248 249 (250) 250 251 252 253 254 255 256 257 258 259 (260) 260 261 262 263 264 265 266 267 268 269 (270) 270 271 272 273 274 275 276 277 278 279 (280) 280 281 282 283 284 285 286 287 288 289 (290) 290 291 292 293 294 295 296 297 298 299 (300) 300 301 302 303 304 305 306 307 308 309 (310) 310 311 312 313 314 315 316 317 318 319 (320) 320 321 322 323 324 325 326 327 328 329 (330) 330 331 332 333 334 335 336 337 338 339 (340) 340 341 342 343 344 345 346 347 348 349 (350) 350 351 352 353 354 355 356 357 358 359 (360) 360 361 362 363 364 365 366 367 368 369 (370) 370 371 372 373 374 375 376 377 378 379 (380) 380 381 382 383 384 385 386 387 388 389 (390) 390 391 392 393 394 395 396 397 398 399 (400) 400 401 402 403 404 405 406 407 408 409 (410) 410 411 412 413 414 415 416 417 418 419 (420) 420 421 422 423 424 425 426 427 428 429 (430) 430 431 432 433 434 435 436 437 438 439 (440) 440 441 442 443 444 445 446 447 448 449 (450) 450 451 452 453 454 455 456 457 458 459 (460) 460 461 462 463 464 465 466 467 468 469 (470) 470 471 472 473 474 475 476 477 478 479 (480) 480 481 482 483 484 485 486 487 488 489 (490) 490 491 492 493 494 495 496 497 498 499 (500) 500 501 502 503 504 505 506 507 508 509 (510) 510 511 512 513 514 515 516 517 518 519 (520) 520 521 522 523 524 525 526 527 528 529 (530) 530 531 532 533 534 535 536 537 538 539 (540) 540 541 542 543 544 545 546 547 548 549 (550) 550 551 552 553 554 555 556 557 558 559 (560) 560 561 562 563 564 565 566 567 568 569 (570) 570 571 572 573 574 575 576 577 578 579 (580) 580 581 582 583 584 585 586 587 588 589 (590) 590 591 592 593 594 595 596 597 598 599 (600) 600 601 602 603 604 605 606 607 608 609 (610) 610 611 612 613 614 615 616 617 618 619 (620) 620 621 622 623 624 625 626 627 628 629 (630) 630 631 632 633 634 635 636 637 638 639 (640) 640 641 642 643 644 645 646 647 648 649 (650) 650 651 652 653 654 655 656 657 658 659 (660) 660 661 662 663 664 665 666 667 668 669 (670) 670 671 672 673 674 675 676 677 678 679 (680) 680 681 682 683 684 685 686 687 688 689 (690) 690 691 692 693 694 695 696 697 698 699 (700) 700 701 702 703 704 705 706 707 708 709 (710) 710 711 712 713 714 715 716 717 718 719 (720) 720 721 722 723 724 725 726 727 728 729 (730) 730 731 732 733 734 735 736 737 738 739 (740) 740 741 742 743 744 745 746 747 748 749 (750) 750 751 752 753 754 755 756 757 758 759 (760) 760 761 762 763 764 765 766 767 768 769 (770) 770 771 772 773 774 775 776 777 778 779 (780) 780 781 782 783 784 785 786 787 788 789 (790) 790 791 792 793 794 795 796 797 798 799 (800) 800 801 802 803 804 805 806 807 808 809 (810) 810 811 812 813 814 815 816 817 818 819 (820) 820 821 822 823 824 825 826 827 828 829 (830) 830 831 832 833 834 835 836 837 838 839 (840) 840 841 842 843 844 845 846 847 848 849 (850) 850 851 852 853 854 855 856 857 858 859 (860) 860 861 862 863 864 865 866 867 868 869 (870) 870 871 872 873 874 875 876 877 878 879 (880) 880 881 882 883 884 885 886 887 888 889 (890) 890 891 892 893 894 895 896 897 898 899 (900) 900 901 902 903 904 905 906 907 908 909 (910) 910 911 912 913 914 915 916 917 918 919 (920) 920 921 922 923 924 925 926 927 928 929 (930) 930 931 932 933 934 935 936 937 938 939 (940) 940 941 942 943 944 945 946 947 948 949 (950) 950 951 952 953 954 955 956 957 958 959 (960) 960 961 962 963 964 965 966 967 968 969 (970) 970 971 972 973 974 975 976 977 978 979 (980) 980 981 982 983 984 985 986 987 988 989 (990) 990 991 992 993 994 995 996 997 998 999 (1000) 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 (1010) 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 (1020) 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 (1030) 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 (1040) 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 (1050) 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 (1060) 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 (1070) 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 (1080) 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 (1090) 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 (1100) 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 (1110) 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 (1120) 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 (1130) 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 (1140) 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 (1150) 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 (1160) 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 (1170) 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 (1180) 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 (1190) 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 (1200) 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 (1210) 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 (1220) 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 (1230) 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 (1240) 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 (1250) 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 (1260) 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 (1270) 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 (1280) 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 (1290) 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 (1300) 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 (1310) 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 (1320) 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 (1330) 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 (1340) 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 (1350) 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 (1360) 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 (1370) 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 (1380) 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 (1390) 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 (1400) 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 (1410) 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 (1420) 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 (1430) 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 (1440) 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 (1450) 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 (1460) 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 (1470) 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 (1480) 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 (1490) 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 (1500) 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 (1510) 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 (1520) 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 (1530) 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 (1540) 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 (1550) 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 (1560) 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 (1570) 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 (1580) 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 (1590) 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 (1600) 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 (1610) 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 (1620) 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 (1630) 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 (1640) 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 (1650) 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 (1660) 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 (1670) 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 (1680) 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 (1690) 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 (1700) 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 (1710) 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 (1720) 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 (1730) 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 (1740) 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 (1750) 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 (1760) 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 (1770) 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 (1780) 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 (1790) 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 (1800) 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 (1810) 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 (1820) 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 (1830) 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 (1840) 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 (1850) 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 (1860) 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 (1870) 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 (1880) 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 (1890) 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 (1900) 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 (1910) 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 (1920) 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 (1930) 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 (1940) 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 (1950) 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 (1960) 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 (1970) 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 (1980) 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 (1990) 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 (2000) 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 (2010) 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 (2020) 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 (2030) 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 (2040) 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 (2050) 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 (2060) 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 (2070) 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 (2080) 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 (2090) 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 adios-1.5.0/tests/suite/reference/amr_write_read_2vars_1.txt0000644000175000017500000000402012251360163025254 0ustar amckinstryamckinstry 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 adios-1.5.0/tests/suite/reference/global_array_time_read.txt0000644000175000017500000001752412251360163025417 0ustar amckinstryamckinstryArray size of temperature [0:9,0:10] ------------------------------------------------ rank=0: step 0 = [ [100 101 102 103 104 105 106 107 108 109 ] [110 111 112 113 114 115 116 117 118 119 ] [120 121 122 123 124 125 126 127 128 129 ] [130 131 132 133 134 135 136 137 138 139 ] [140 141 142 143 144 145 146 147 148 149 ] [150 151 152 153 154 155 156 157 158 159 ] [160 161 162 163 164 165 166 167 168 169 ] [170 171 172 173 174 175 176 177 178 179 ] [180 181 182 183 184 185 186 187 188 189 ] ] step 1 = [ [200 201 202 203 204 205 206 207 208 209 ] [210 211 212 213 214 215 216 217 218 219 ] [220 221 222 223 224 225 226 227 228 229 ] [230 231 232 233 234 235 236 237 238 239 ] [240 241 242 243 244 245 246 247 248 249 ] [250 251 252 253 254 255 256 257 258 259 ] [260 261 262 263 264 265 266 267 268 269 ] [270 271 272 273 274 275 276 277 278 279 ] [280 281 282 283 284 285 286 287 288 289 ] ] ------------------------------------------------ rank=1: step 1 = [ [200 201 202 203 204 205 206 207 208 209 ] [210 211 212 213 214 215 216 217 218 219 ] [220 221 222 223 224 225 226 227 228 229 ] [230 231 232 233 234 235 236 237 238 239 ] [240 241 242 243 244 245 246 247 248 249 ] [250 251 252 253 254 255 256 257 258 259 ] [260 261 262 263 264 265 266 267 268 269 ] [270 271 272 273 274 275 276 277 278 279 ] [280 281 282 283 284 285 286 287 288 289 ] ] step 2 = [ [300 301 302 303 304 305 306 307 308 309 ] [310 311 312 313 314 315 316 317 318 319 ] [320 321 322 323 324 325 326 327 328 329 ] [330 331 332 333 334 335 336 337 338 339 ] [340 341 342 343 344 345 346 347 348 349 ] [350 351 352 353 354 355 356 357 358 359 ] [360 361 362 363 364 365 366 367 368 369 ] [370 371 372 373 374 375 376 377 378 379 ] [380 381 382 383 384 385 386 387 388 389 ] ] ------------------------------------------------ rank=2: step 2 = [ [300 301 302 303 304 305 306 307 308 309 ] [310 311 312 313 314 315 316 317 318 319 ] [320 321 322 323 324 325 326 327 328 329 ] [330 331 332 333 334 335 336 337 338 339 ] [340 341 342 343 344 345 346 347 348 349 ] [350 351 352 353 354 355 356 357 358 359 ] [360 361 362 363 364 365 366 367 368 369 ] [370 371 372 373 374 375 376 377 378 379 ] [380 381 382 383 384 385 386 387 388 389 ] ] step 3 = [ [400 401 402 403 404 405 406 407 408 409 ] [410 411 412 413 414 415 416 417 418 419 ] [420 421 422 423 424 425 426 427 428 429 ] [430 431 432 433 434 435 436 437 438 439 ] [440 441 442 443 444 445 446 447 448 449 ] [450 451 452 453 454 455 456 457 458 459 ] [460 461 462 463 464 465 466 467 468 469 ] [470 471 472 473 474 475 476 477 478 479 ] [480 481 482 483 484 485 486 487 488 489 ] ] ------------------------------------------------ rank=3: step 3 = [ [400 401 402 403 404 405 406 407 408 409 ] [410 411 412 413 414 415 416 417 418 419 ] [420 421 422 423 424 425 426 427 428 429 ] [430 431 432 433 434 435 436 437 438 439 ] [440 441 442 443 444 445 446 447 448 449 ] [450 451 452 453 454 455 456 457 458 459 ] [460 461 462 463 464 465 466 467 468 469 ] [470 471 472 473 474 475 476 477 478 479 ] [480 481 482 483 484 485 486 487 488 489 ] ] step 4 = [ [500 501 502 503 504 505 506 507 508 509 ] [510 511 512 513 514 515 516 517 518 519 ] [520 521 522 523 524 525 526 527 528 529 ] [530 531 532 533 534 535 536 537 538 539 ] [540 541 542 543 544 545 546 547 548 549 ] [550 551 552 553 554 555 556 557 558 559 ] [560 561 562 563 564 565 566 567 568 569 ] [570 571 572 573 574 575 576 577 578 579 ] [580 581 582 583 584 585 586 587 588 589 ] ] ------------------------------------------------ rank=4: step 4 = [ [500 501 502 503 504 505 506 507 508 509 ] [510 511 512 513 514 515 516 517 518 519 ] [520 521 522 523 524 525 526 527 528 529 ] [530 531 532 533 534 535 536 537 538 539 ] [540 541 542 543 544 545 546 547 548 549 ] [550 551 552 553 554 555 556 557 558 559 ] [560 561 562 563 564 565 566 567 568 569 ] [570 571 572 573 574 575 576 577 578 579 ] [580 581 582 583 584 585 586 587 588 589 ] ] step 5 = [ [600 601 602 603 604 605 606 607 608 609 ] [610 611 612 613 614 615 616 617 618 619 ] [620 621 622 623 624 625 626 627 628 629 ] [630 631 632 633 634 635 636 637 638 639 ] [640 641 642 643 644 645 646 647 648 649 ] [650 651 652 653 654 655 656 657 658 659 ] [660 661 662 663 664 665 666 667 668 669 ] [670 671 672 673 674 675 676 677 678 679 ] [680 681 682 683 684 685 686 687 688 689 ] ] ------------------------------------------------ rank=5: step 5 = [ [600 601 602 603 604 605 606 607 608 609 ] [610 611 612 613 614 615 616 617 618 619 ] [620 621 622 623 624 625 626 627 628 629 ] [630 631 632 633 634 635 636 637 638 639 ] [640 641 642 643 644 645 646 647 648 649 ] [650 651 652 653 654 655 656 657 658 659 ] [660 661 662 663 664 665 666 667 668 669 ] [670 671 672 673 674 675 676 677 678 679 ] [680 681 682 683 684 685 686 687 688 689 ] ] step 6 = [ [700 701 702 703 704 705 706 707 708 709 ] [710 711 712 713 714 715 716 717 718 719 ] [720 721 722 723 724 725 726 727 728 729 ] [730 731 732 733 734 735 736 737 738 739 ] [740 741 742 743 744 745 746 747 748 749 ] [750 751 752 753 754 755 756 757 758 759 ] [760 761 762 763 764 765 766 767 768 769 ] [770 771 772 773 774 775 776 777 778 779 ] [780 781 782 783 784 785 786 787 788 789 ] ] ------------------------------------------------ rank=6: step 6 = [ [700 701 702 703 704 705 706 707 708 709 ] [710 711 712 713 714 715 716 717 718 719 ] [720 721 722 723 724 725 726 727 728 729 ] [730 731 732 733 734 735 736 737 738 739 ] [740 741 742 743 744 745 746 747 748 749 ] [750 751 752 753 754 755 756 757 758 759 ] [760 761 762 763 764 765 766 767 768 769 ] [770 771 772 773 774 775 776 777 778 779 ] [780 781 782 783 784 785 786 787 788 789 ] ] step 7 = [ [800 801 802 803 804 805 806 807 808 809 ] [810 811 812 813 814 815 816 817 818 819 ] [820 821 822 823 824 825 826 827 828 829 ] [830 831 832 833 834 835 836 837 838 839 ] [840 841 842 843 844 845 846 847 848 849 ] [850 851 852 853 854 855 856 857 858 859 ] [860 861 862 863 864 865 866 867 868 869 ] [870 871 872 873 874 875 876 877 878 879 ] [880 881 882 883 884 885 886 887 888 889 ] ] ------------------------------------------------ rank=7: step 7 = [ [800 801 802 803 804 805 806 807 808 809 ] [810 811 812 813 814 815 816 817 818 819 ] [820 821 822 823 824 825 826 827 828 829 ] [830 831 832 833 834 835 836 837 838 839 ] [840 841 842 843 844 845 846 847 848 849 ] [850 851 852 853 854 855 856 857 858 859 ] [860 861 862 863 864 865 866 867 868 869 ] [870 871 872 873 874 875 876 877 878 879 ] [880 881 882 883 884 885 886 887 888 889 ] ] step 8 = [ [900 901 902 903 904 905 906 907 908 909 ] [910 911 912 913 914 915 916 917 918 919 ] [920 921 922 923 924 925 926 927 928 929 ] [930 931 932 933 934 935 936 937 938 939 ] [940 941 942 943 944 945 946 947 948 949 ] [950 951 952 953 954 955 956 957 958 959 ] [960 961 962 963 964 965 966 967 968 969 ] [970 971 972 973 974 975 976 977 978 979 ] [980 981 982 983 984 985 986 987 988 989 ] ] ------------------------------------------------ rank=8: step 8 = [ [900 901 902 903 904 905 906 907 908 909 ] [910 911 912 913 914 915 916 917 918 919 ] [920 921 922 923 924 925 926 927 928 929 ] [930 931 932 933 934 935 936 937 938 939 ] [940 941 942 943 944 945 946 947 948 949 ] [950 951 952 953 954 955 956 957 958 959 ] [960 961 962 963 964 965 966 967 968 969 ] [970 971 972 973 974 975 976 977 978 979 ] [980 981 982 983 984 985 986 987 988 989 ] ] step 9 = [ [1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 ] [1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 ] [1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 ] [1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 ] [1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 ] [1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 ] [1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 ] [1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 ] [1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 ] ] adios-1.5.0/tests/suite/reference/amr_write_read_2.txt0000644000175000017500000000204012251360163024140 0ustar amckinstryamckinstry 0 1 2 3 16 17 18 19 32 33 34 35 48 49 50 51 64 65 66 67 80 81 82 83 96 97 98 99 112 113 114 115 128 129 130 131 144 145 146 147 160 161 162 163 176 177 178 179 192 193 194 195 208 209 210 211 224 225 226 227 240 241 242 243 256 257 258 259 272 273 274 275 288 289 290 291 304 305 306 307 320 321 322 323 336 337 338 339 352 353 354 355 368 369 370 371 384 385 386 387 400 401 402 403 416 417 418 419 432 433 434 435 448 449 450 451 464 465 466 467 480 481 482 483 496 497 498 499 adios-1.5.0/tests/suite/reference/amr_write_read_1.txt0000644000175000017500000000201012251360163024134 0ustar amckinstryamckinstry 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 adios-1.5.0/tests/suite/reference/amr_write_read_2vars_5.txt0000644000175000017500000000310012251360163025256 0ustar amckinstryamckinstry 5 6 7 21 22 23 37 38 39 53 54 55 69 70 71 85 86 87 101 102 103 117 118 119 133 134 135 149 150 151 165 166 167 181 182 183 197 198 199 213 214 215 229 230 231 245 246 247 261 262 263 277 278 279 293 294 295 309 310 311 325 326 327 341 342 343 357 358 359 373 374 375 389 390 391 405 406 407 421 422 423 437 438 439 453 454 455 469 470 471 485 486 487 501 502 503 1005 1006 1007 1021 1022 1023 1037 1038 1039 1053 1054 1055 1069 1070 1071 1085 1086 1087 1101 1102 1103 1117 1118 1119 1133 1134 1135 1149 1150 1151 1165 1166 1167 1181 1182 1183 1197 1198 1199 1213 1214 1215 1229 1230 1231 1245 1246 1247 1261 1262 1263 1277 1278 1279 1293 1294 1295 1309 1310 1311 1325 1326 1327 1341 1342 1343 1357 1358 1359 1373 1374 1375 1389 1390 1391 1405 1406 1407 1421 1422 1423 1437 1438 1439 1453 1454 1455 1469 1470 1471 1485 1486 1487 1501 1502 1503 adios-1.5.0/tests/suite/reference/global_array_read.txt0000644000175000017500000000113212251360163024365 0ustar amckinstryamckinstryrank 0: [0,0:2] 0 1 2 3 4 5 6 7 8 9 rank 0: [1,0:2] 10 11 12 13 14 15 16 17 18 19 rank 1: [2,0:2] 20 21 22 23 24 25 26 27 28 29 rank 1: [3,0:2] 30 31 32 33 34 35 36 37 38 39 rank 2: [4,0:3] 40 41 42 43 44 45 46 47 48 49 rank 2: [5,0:3] 50 51 52 53 54 55 56 57 58 59 rank 2: [6,0:3] 60 61 62 63 64 65 66 67 68 69 adios-1.5.0/tests/suite/reference/attributes_bpls.txt0000644000175000017500000000144612251360163024152 0ustar amckinstryamckinstryFile info: of groups: 1 of variables: 6 of attributes: 4 time steps: 0 - 0 file size: 6 KB bp version: 513 statistics: Min / Max / Avg / Std_dev integer /NX scalar = 10 integer /size scalar = 5 integer /rank scalar = 0 double /mean scalar = 4.5 string /date scalar = "Nov, 2009" double /temperature {5, 10} = 0 / 49 / 24.5 / 14.4309 integer /temperature/number of levels attr = 1 string /temperature/description attr = "Global array written from 'size' processes" double /temperature/mean value attr = 4.5 string /temperature/date of coding attr = "Nov, 2009" adios-1.5.0/tests/suite/CMakeLists.txt0000644000175000017500000000107212251360163021000 0ustar amckinstryamckinstryadd_subdirectory(programs) #install(FILES HOWTO-Add-new-test DESTINATION ${PROJECT_BINARY_DIR}/tests/suite) #install(FILES HOWTO-Run DESTINATION ${PROJECT_BINARY_DIR}/tests/suite) #install(PROGRAMS cleanup.sh DESTINATION ${PROJECT_BINARY_DIR}/tests/suite) #install(DIRECTORY reference USE_SOURCE_PERMISSIONS DESTINATION ${PROJECT_BINARY_DIR}/tests/suite PATTERN ".svn" EXCLUDE) #install(PROGRAMS test.sh DESTINATION ${PROJECT_BINARY_DIR}/tests/suite) #install(DIRECTORY tests USE_SOURCE_PERMISSIONS DESTINATION ${PROJECT_BINARY_DIR}/tests/suite PATTERN ".svn" EXCLUDE) adios-1.5.0/tests/suite/cleanup.sh0000755000175000017500000000013012251360163020220 0ustar amckinstryamckinstry#!/bin/bash # # Deletes all test logs and work dirs in . # set -v rm -rf log.* work.* adios-1.5.0/tests/Makefile.in0000644000175000017500000005106312251360163017161 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = tests DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = C bp_read suite Fortran genarray DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUITEDIR = suite @BUILD_FORTRAN_FALSE@@BUILD_WRITE_TRUE@SUBDIRS = C bp_read ${SUITEDIR} @BUILD_FORTRAN_TRUE@@BUILD_WRITE_TRUE@SUBDIRS = C Fortran genarray bp_read ${SUITEDIR} all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/tests/Fortran/0000755000175000017500000000000012251360163016522 5ustar amckinstryamckinstryadios-1.5.0/tests/Fortran/Makefile.am0000644000175000017500000000107112251360163020555 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS=adios_test_f #adios_test_f_SOURCES = adios_test_f.F90 adios_module.F90 adios_test_f_SOURCES = adios_test_f.F90 adios_test_f_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) adios_test_f_CFLAGS = $(ADIOSLIB_CFLAGS) adios_test_f_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_test_f_LDADD = $(top_builddir)/src/libadiosf.a $(ADIOSLIB_LDADD) FC=$(MPIFC) FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ EXTRA_DIST = config_fortran.xml adios-1.5.0/tests/Fortran/Makefile.in0000644000175000017500000004350512251360163020576 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = adios_test_f$(EXEEXT) subdir = tests/Fortran DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_adios_test_f_OBJECTS = adios_test_f-adios_test_f.$(OBJEXT) adios_test_f_OBJECTS = $(am_adios_test_f_OBJECTS) am__DEPENDENCIES_1 = adios_test_f_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) adios_test_f_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(adios_test_f_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = PPFCCOMPILE = $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) LTPPFCCOMPILE = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) FCLD = $(FC) SOURCES = $(adios_test_f_SOURCES) DIST_SOURCES = $(adios_test_f_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = $(MPIFC) FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies #adios_test_f_SOURCES = adios_test_f.F90 adios_module.F90 adios_test_f_SOURCES = adios_test_f.F90 adios_test_f_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) adios_test_f_CFLAGS = $(ADIOSLIB_CFLAGS) adios_test_f_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_test_f_LDADD = $(top_builddir)/src/libadiosf.a $(ADIOSLIB_LDADD) FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ EXTRA_DIST = config_fortran.xml all: all-am .SUFFIXES: .SUFFIXES: .F90 .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Fortran/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/Fortran/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list adios_test_f$(EXEEXT): $(adios_test_f_OBJECTS) $(adios_test_f_DEPENDENCIES) @rm -f adios_test_f$(EXEEXT) $(adios_test_f_LINK) $(adios_test_f_OBJECTS) $(adios_test_f_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .F90.o: $(PPFCCOMPILE) -c -o $@ $< .F90.obj: $(PPFCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .F90.lo: $(LTPPFCCOMPILE) -c -o $@ $< adios_test_f-adios_test_f.o: adios_test_f.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(adios_test_f_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o adios_test_f-adios_test_f.o `test -f 'adios_test_f.F90' || echo '$(srcdir)/'`adios_test_f.F90 adios_test_f-adios_test_f.obj: adios_test_f.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(adios_test_f_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o adios_test_f-adios_test_f.obj `if test -f 'adios_test_f.F90'; then $(CYGPATH_W) 'adios_test_f.F90'; else $(CYGPATH_W) '$(srcdir)/adios_test_f.F90'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/tests/Fortran/config_fortran.xml0000644000175000017500000000301412251360163022242 0ustar amckinstryamckinstry adios-1.5.0/tests/Fortran/CMakeLists.txt0000644000175000017500000000070512251360163021264 0ustar amckinstryamckinstryinclude_directories(${PROJECT_BINARY_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/tests/Fortran) link_directories(${PROJECT_BINARY_DIR}/tests/Fortran) add_executable(adios_test_f adios_test_f.F90) target_link_libraries(adios_test_f adiosf ${ADIOSLIB_LDADD}) set_target_properties(adios_test_f PROPERTIES COMPILE_FLAGS "${ADIOSLIB_CPPFLAGS} ${ADIOSLIB_CFLAGS}") #install(FILES config_fortran.xml DESTINATION ${PROJECT_BINARY_DIR}/tests/Fortran) adios-1.5.0/tests/Fortran/adios_test_f.F900000644000175000017500000001343312251360163021451 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! program adios_test use adios_write_mod implicit none include 'mpif.h' character (len=200) :: group character (len=200) :: filename integer :: group_comm integer :: ierr integer :: rank ! write vars integer :: small_int integer*8 :: big_int real :: small_real real*8 :: big_real integer :: z_size real :: z_array (2) ! read vars integer :: r_small_int integer*8 :: r_big_int real :: r_small_real real*8 :: r_big_real integer :: r_z_size real :: r_z_array (2) group = "restart" filename = "restart.bp" small_int = 10 big_int = 42949672 small_real = 0.3 big_real = 0.0000000000004 z_size = 2 z_array (1) = 11.1 z_array (2) = 22.2 r_z_size = 2 call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, group_comm, ierr) call MPI_Comm_rank (MPI_COMM_WORLD, rank, ierr) print '("rank=",i0," group_comm=",i0," ierr=",i0)', rank, group_comm, ierr call adios_allocate_buffer (10, ierr); call adios_init ("config_fortran.xml", group_comm, ierr) call test_write (group, filename, group_comm, small_int, big_int, small_real, big_real, z_size, z_array) call MPI_Barrier (MPI_COMM_WORLD, ierr) write (*,*) "write completed" call test_read (group, filename, group_comm, r_small_int, r_big_int, r_small_real, r_big_real, r_z_size, r_z_array) if (small_int /= r_small_int .or. big_int /= r_big_int .or. & & small_real /= r_small_real .or. big_real /= r_big_real .or.& z_size /= r_z_size) then write (*,*) 'rank ', rank, ' read did not match write' else write (*,*) 'rank ', rank, ' read matched write' endif call MPI_Barrier (MPI_COMM_WORLD, ierr) call adios_finalize (rank, ierr) call MPI_Finalize (ierr) end program adios_test subroutine test_write (group, filename, group_comm, small_int, big_int, small_real, big_real, a_size, a_array) implicit none include 'mpif.h' character (*), intent(in) :: group character (*), intent(in) :: filename integer, intent (in) :: group_comm integer, intent(in) :: small_int integer*8, intent(in) :: big_int real, intent(in) :: small_real real*8, intent(in) :: big_real integer, intent(in) :: a_size real, intent(in) :: a_array (a_size) integer :: a_size2 real :: a_array2 (a_size, 10) integer :: istep1 integer :: istep2 integer :: istep3 character(len=5) :: abcstr = 'abc' integer*8 :: handle integer*8 :: total_size integer :: err integer*8 :: size integer :: i,j a_size2 = 10 size = 900 * 1024 istep1 = 11 istep2 = 22 istep3 = 33 do j=1,10 do i=1,a_size a_array2(i,j) = 1.0*i + (j-1)*a_size end do end do size = 4 + 8 + 4 + 8 + 4 + 4 + a_size * 4 + a_size * 10 * 4 + 4 + 4 + 4 call adios_open (handle, group, filename, "w", group_comm, err) call adios_group_size (handle, size, total_size, err) call adios_write (handle, "small_int", small_int, err) call adios_write (handle, "big_int", big_int, err) call adios_write (handle, "small_real", small_real, err) call adios_write (handle, "big_real", big_real, err) call adios_write (handle, "ze0size", a_size, err) call adios_write (handle, "ze1size", a_size2, err) call adios_write (handle, "zelectron0", a_array, err) call adios_write (handle, "zelectron1", a_array2, err) call adios_write (handle, "istep1", istep1, err) call adios_write (handle, "istep2", istep2, err) call adios_write (handle, "istep3", istep3, err) ! When writing out a string type variable, we need to add a char(0) ! ADIOS expects here a C string !call adios_write (handle, "str", trim("abc")//char(0), err) call adios_write (handle, "str_var", abcstr, err) call adios_write (handle, "str_const", "abc", err) call adios_write (handle, "str_arr", abcstr, err) call adios_close (handle, err) end subroutine test_write subroutine test_read (group, filename, group_comm, small_int, big_int, small_real, big_real, a_size, a_array) implicit none include 'mpif.h' character (*), intent(in) :: group character (*), intent(in) :: filename integer, intent (in) :: group_comm integer, intent(out) :: small_int integer*8, intent(out) :: big_int real, intent(out) :: small_real real*8, intent(out) :: big_real integer, intent(inout) :: a_size real, intent(out) :: a_array (a_size) integer*8 :: group_size = 0 integer*8 :: total_size integer :: err integer :: istep1 integer :: istep2 integer :: istep3 integer*8 :: handle integer*8 :: buffer_size character (len=40) :: str str = '1234567890123456789012345678901234567890' istep1 = 11 istep2 = 22 istep3 = 33 call adios_open (handle, group, filename, "r", group_comm, err) call adios_group_size (handle, group_size, total_size, err) buffer_size = 4 call adios_read (handle, "small_int", small_int, buffer_size, err) buffer_size = 8 call adios_read (handle, "big_int", big_int, buffer_size, err) buffer_size = 4 call adios_read (handle, "small_real", small_real, buffer_size, err) buffer_size = 8 call adios_read (handle, "big_real", big_real, buffer_size, err) buffer_size = 4 call adios_read (handle, "ze0size", a_size, buffer_size, err) buffer_size = 4 * a_size call adios_read (handle, "zelectron0", a_array, buffer_size, err) !call adios_read (handle, "str", str, err) call adios_close (handle, err) !write (*,*) "read str: ", str end subroutine test_read adios-1.5.0/tests/CMakeLists.txt0000644000175000017500000000175512251360163017657 0ustar amckinstryamckinstryset(SUITEDIR suite) if(BUILD_WRITE) if(BUILD_FORTRAN) add_subdirectory(C) add_subdirectory(Fortran) add_subdirectory(genarray) add_subdirectory(bp_read) add_subdirectory(${SUITEDIR}) else(BUILD_FORTRAN) add_subdirectory(C) add_subdirectory(bp_read) add_subdirectory(${SUITEDIR}) endif(BUILD_FORTRAN) endif(BUILD_WRITE) #find_library(ADIOS_LIB adios ${PROJECT_BINARY_DIR}/src) #if(${ADIOS_LIB}-NOTFOUND) # message(STATUS "cannot find adios.a in ${PROJECT_BINARY_DIR}/tests makefile") #endif(${ADIOS_LIB}-NOTFOUND) #if(BUILD_FORTRAN) # find_library(ADIOSREAD_LIB NAMES adiosreadf PATHS ${PROJECT_BINARY_DIR}/src) # find_library(ADIOSREAD_V1_LIB NAMES adiosreadf_v1 PATHS ${PROJECT_BINARY_DIR}/src) #else(BUILD_FORTRAN) # find_library(ADIOSREAD_LIB adiosread ${PROJECT_BINARY_DIR}/src) # if(${ADIOSREAD_LIB}-NOTFOUND) # message(STATUS "cannot find adiosread.a in ${PROJECT_BINARY_DIR}/tests makefile") # endif(${ADIOSREAD_LIB}-NOTFOUND) #endif(BUILD_FORTRAN) adios-1.5.0/tests/bp_read/0000755000175000017500000000000012251360163016503 5ustar amckinstryamckinstryadios-1.5.0/tests/bp_read/Makefile.am0000644000175000017500000000316012251360163020537 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies if BUILD_FORTRAN noinst_PROGRAMS=genbp bp_read_f bp_read_f_v1 bp_read_c else noinst_PROGRAMS=genbp bp_read_c endif # read_coords read_phi read_parts_global read_gena read_gena_pncd read_pixie_all genbp_SOURCES = genbp.c genbp_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) genbp_CFLAGS = $(ADIOSLIB_CFLAGS) genbp_LDADD = $(top_builddir)/src/libadios.a $(top_builddir)/src/libadiosread.a $(ADIOSLIB_LDADD) genbp_LDFLAGS = $(ADIOSLIB_LDFLAGS) if BUILD_FORTRAN bp_read_f_SOURCES = bp_read_f.F90 bp_read_f_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) bp_read_f_CFLAGS = $(ADIOSLIB_CFLAGS) bp_read_f_LDADD = $(top_builddir)/src/libadiosreadf.a $(ADIOSREADLIB_LDADD) bp_read_f_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) bp_read_f_v1_SOURCES = bp_read_f_v1.F90 bp_read_f_v1_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) bp_read_f_v1_CFLAGS = $(ADIOSLIB_CFLAGS) bp_read_f_v1_LDADD = $(top_builddir)/src/libadiosreadf_v1.a $(ADIOSREADLIB_LDADD) bp_read_f_v1_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) endif bp_read_c_SOURCES = bp_read_c.c bp_read_c_CPPFLAGS = -DADIOS_USE_READ_API_1 $(ADIOSLIB_CPPFLAGS) bp_read_c_CFLAGS = $(ADIOSLIB_CFLAGS) bp_read_c_LDADD = $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) bp_read_c_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) FC=$(MPIFC) CC=$(MPICC) FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ if BUILD_FORTRAN CLEANFILES = *.o bp_read_c bp_read_f genbp read_coords read_phi read_parts_global else CLEANFILES = *.o bp_read_c genbp read_coords read_phi read_parts_global endif adios-1.5.0/tests/bp_read/genbp.c0000644000175000017500000000607612251360163017753 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include #include #include #include #include // mpi #include "mpi.h" #include "adios.h" int main (int argc, char ** argv) { char * type_name = "testbp"; char * filename = "testbp_c.bp"; int64_t io_handle; // io handle MPI_Comm comm = MPI_COMM_WORLD; int rank; int dim1 = 10; // dimension 1 int dim2 = 7; int dim3 = 6; int dim4 = 3; int dim5 = 5; int i,j,k,l,m; // loop counters for dims int time_start = 27; // arbitrary number to put into bp file int int_1D[dim1]; int int_2D[dim1][dim2]; int int_3D[dim1][dim2][dim3]; int int_4D[dim1][dim2][dim3][dim4]; int int_5D[dim1][dim2][dim3][dim4][dim5]; int node = 0; uint64_t total; int vi, vj, vk, vt, vl; for (i = 0; i < dim1; i++) { int_1D[i] = i; vi = i*dim2; // 2D arrays for (j = 0; j < dim2; j++) { int_2D[i][j] = vi + j; vj = (vi + j)*dim3; // 3D array for (k = 0; k < dim3; k++) { int_3D[i][j][k] = vj + k; vk = (vj+k)*dim4; // 4D array for (l = 0; l < dim4; l++) { int_4D[i][j][k][l] = vk + l; // 5D array vl = (vk+l)*dim5; for (m = 0; m < dim5; m++) { int_5D[i][j][k][l][m] = vl + m; } } } } } MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); if (!adios_init ("testbp_c.xml", comm)) return -1; adios_open (&io_handle, type_name, filename, "w", comm); adios_group_size (io_handle, 32 // 4 integers + 4 * dim1 // int_1D + 4 * dim1 * dim2 // int_2D + 4 * dim1 * dim2 * dim3 // int_3D + 4 * dim1 * dim2 * dim3 * dim4 // int_4D + 4 * dim1 * dim2 * dim3 * dim4 * dim5// int_4D ,&total ); adios_write (io_handle, "dim1", &dim1); adios_write (io_handle, "dim2", &dim2); adios_write (io_handle, "dim3", &dim3); adios_write (io_handle, "dim4", &dim4); adios_write (io_handle, "dim5", &dim5); adios_write (io_handle, "int_1D", int_1D); adios_write (io_handle, "int_2D", int_2D); adios_write (io_handle, "int_3D", int_3D); adios_write (io_handle, "int_4D", int_4D); adios_write (io_handle, "int_5D", int_5D); adios_write (io_handle, "time_start", &time_start); adios_close (io_handle); printf ("rank: %d write completed\n", rank); MPI_Barrier (MPI_COMM_WORLD); adios_finalize (node); MPI_Finalize (); return 0; } adios-1.5.0/tests/bp_read/README0000644000175000017500000000015712251360163017366 0ustar amckinstryamckinstrytest.py python routines used to test the correctness of bp read APIs for both C and Fortran routines adios-1.5.0/tests/bp_read/bp_read_f_v1.F900000644000175000017500000001420012251360163021267 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! program read_bp_f implicit none include "mpif.h" integer :: gcnt, vcnt, acnt, tstart, ntsteps, tstop, vrank, vtype, timedim, ierr integer :: comm,i,j,k,l,m integer*8 :: read_bytes integer*8 :: fh, gh integer*8, dimension(10) :: dims, start, readsize integer, dimension(1000) :: var, vartrue !character, dimension(:), allocatable :: varchar !integer, dimension(:), allocatable :: varint !real*8, dimension(:), allocatable :: vardouble character(100000) :: varchar integer, dimension(100000) :: varint real*8, dimension(10000000) :: vardouble integer :: totalsize character (len=100), dimension(5000) :: vnamelist character (len=100), dimension(5000) :: anamelist character (len=100), dimension(5000) :: gnamelist integer :: ilom,ihip,jlom,jhip,klom,khip,nx integer, dimension(3) :: vstart, readcount integer,dimension(48) :: bconds ! all boundary conditions as one array character(20) :: vname integer :: one, rank, nproc integer :: timestep, lasttimestep real*8,dimension(102,66,3) :: b1 character(256) :: path call MPI_Init (ierr) comm = MPI_COMM_WORLD call mpi_comm_rank(comm, rank, ierr) call mpi_comm_size(comm, nproc, ierr) call processArgs(path) call adios_set_read_method (0, ierr); varchar = ' ' call adios_fopen (fh, path, comm, gcnt, ierr) call adios_inq_file (fh,vcnt,acnt,tstart,ntsteps,gnamelist,ierr) tstop = ntsteps+ntsteps-1 write (*,'("Number of timesteps : ",i0," starting from ",i0)') ntsteps, tstart write (*,'("Number of groups : ",i0)') gcnt do i=1,gcnt write (*,"(i5, a, a)") i,") ", trim(gnamelist(i)) enddo call adios_gopen (fh, gh, gnamelist(1), vcnt, acnt, ierr) call adios_inq_group(gh, vnamelist, anamelist, timestep, lasttimestep, ierr) write (*,'("Number of variables in group ",a,": ",i0)') trim(gnamelist(1)), vcnt do i=1,vcnt write (*,"(i5, a, a)") i,") ", trim(vnamelist(i)) enddo write (*,'("Number of attributes in group ",a,": ",i0)') trim(gnamelist(1)), acnt do i=1,acnt write (*,"(i5, a, a)") i,") ", trim(anamelist(i)) enddo ! vtype ! 0 byte ! 1 short ! 2 integer ! 4 long ! 5 real ! 6 double ! 7 long double ! 9 string ! 10 complex ! 11 double_complex ! 50 unsigned_byte ! 51 unsigned_short ! 52 unsigned_integer ! 54 unsigned_long !write (*,*) "name ", " ndim ", " dims" write (*,*)"-----------------------------" !do i=1,vcnt ! call adios_inq_var (gh, vnamelist(i), vtype, vrank, dims, timedim, ierr) ! start(1:10)=0 ! readsize(1:10)=1 ! totalsize=1 ! do j=1,vrank ! readsize(j) = dims(j) ! totalsize=totalsize*dims(j) ! enddo ! write (*,'(a," ndims=",i0," type=",i0," size=",i0)') trim(vnamelist(i)),vrank,vtype,totalsize ! if (vtype == 0) then ! !if(allocated(varchar)) deallocate(varchar) ! !allocate(varchar(totalsize)) ! !varchar(1)="!" ! call adios_read_var (gh, vnamelist(i), start, readsize, varchar, read_bytes) ! else if (vtype == 2) then ! !write (*,*) " totalsize = ", totalsize ! !if (totalsize == 1) totalsize = 10 ! !if(allocated(varint)) then ! ! write (*,*) " dealloc varint" ! ! deallocate(varint) ! !endif ! !write (*,*) " alloc varint, size = ", totalsize ! !allocate(varint(totalsize)) ! !write (*,*) " totalsize = ", totalsize ! !varint(:)=5 ! !print *, varint(1:10) ! call adios_read_var (gh, vnamelist(i), start, readsize, varint, read_bytes) ! print *, varint(1) ! else if (vtype == 6) then ! !if(allocated(vardouble)) deallocate(vardouble) ! !allocate(vardouble(totalsize)) ! call adios_read_var (gh, vnamelist(i), start, readsize, vardouble, read_bytes) ! else ! write (*,'(a16,": Only integer or double type is handled here")') trim(vnamelist(i)) ! endif ! if (vrank == 0) then ! if (vtype == 0) then ! write(*,'(" = ",a)') varchar(1:1) ! else if (vtype == 2) then ! write(*,'(" = ",i0)') varint(1) ! else if (vtype == 6) then ! write(*,'(" = ",d20.10)') vardouble(1) ! endif ! else ! !write (*,*)"-----------------------------" ! !write (*,'(a30,t32," dimensions = [",i0,$)') vnamelist(i), dims(1) ! write (*,'(" dimensions = [",i0,$)') dims(1) ! do j=2,vrank ! write (*,'(",",i0,$)') dims(j) ! enddo ! if (vtype == 0) then ! write (*,'("] = ",a)') varchar ! else ! write (*,'("]")') ! endif ! endif !enddo start(1) = 0 start(2) = rank readsize(1) = 10 readsize(2) = 1 call adios_read_var (gh, "temperature", start, readsize, vardouble, read_bytes) call adios_gclose(gh, ierr) call adios_fclose(fh, ierr) do i=1,4 write (*,*) vardouble(i) enddo call MPI_Finalize (ierr) end program !!*************************** subroutine usage() write (*,*) "Usage: bp_read_f path]" write (*,*) " path: name of bp file" end subroutine usage !!*************************** subroutine processArgs(path) implicit none character(len=256), intent(out) :: path #ifndef __GFORTRAN__ #ifndef __GNUC__ interface integer function iargc() end function iargc end interface #endif #endif integer :: numargs !! process arguments numargs = iargc() !print *,"Number of arguments:",numargs if ( numargs < 1 ) then call usage() call exit(1) endif call getarg(1, path) end subroutine processArgs adios-1.5.0/tests/bp_read/Makefile.in0000644000175000017500000005617112251360163020562 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @BUILD_FORTRAN_FALSE@noinst_PROGRAMS = genbp$(EXEEXT) \ @BUILD_FORTRAN_FALSE@ bp_read_c$(EXEEXT) @BUILD_FORTRAN_TRUE@noinst_PROGRAMS = genbp$(EXEEXT) \ @BUILD_FORTRAN_TRUE@ bp_read_f$(EXEEXT) bp_read_f_v1$(EXEEXT) \ @BUILD_FORTRAN_TRUE@ bp_read_c$(EXEEXT) subdir = tests/bp_read DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_bp_read_c_OBJECTS = bp_read_c-bp_read_c.$(OBJEXT) bp_read_c_OBJECTS = $(am_bp_read_c_OBJECTS) am__DEPENDENCIES_1 = bp_read_c_DEPENDENCIES = $(top_builddir)/src/libadiosread.a \ $(am__DEPENDENCIES_1) bp_read_c_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(bp_read_c_CFLAGS) \ $(CFLAGS) $(bp_read_c_LDFLAGS) $(LDFLAGS) -o $@ am__bp_read_f_SOURCES_DIST = bp_read_f.F90 @BUILD_FORTRAN_TRUE@am_bp_read_f_OBJECTS = \ @BUILD_FORTRAN_TRUE@ bp_read_f-bp_read_f.$(OBJEXT) bp_read_f_OBJECTS = $(am_bp_read_f_OBJECTS) @BUILD_FORTRAN_TRUE@bp_read_f_DEPENDENCIES = \ @BUILD_FORTRAN_TRUE@ $(top_builddir)/src/libadiosreadf.a \ @BUILD_FORTRAN_TRUE@ $(am__DEPENDENCIES_1) bp_read_f_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(bp_read_f_LDFLAGS) $(LDFLAGS) -o $@ am__bp_read_f_v1_SOURCES_DIST = bp_read_f_v1.F90 @BUILD_FORTRAN_TRUE@am_bp_read_f_v1_OBJECTS = \ @BUILD_FORTRAN_TRUE@ bp_read_f_v1-bp_read_f_v1.$(OBJEXT) bp_read_f_v1_OBJECTS = $(am_bp_read_f_v1_OBJECTS) @BUILD_FORTRAN_TRUE@bp_read_f_v1_DEPENDENCIES = \ @BUILD_FORTRAN_TRUE@ $(top_builddir)/src/libadiosreadf_v1.a \ @BUILD_FORTRAN_TRUE@ $(am__DEPENDENCIES_1) bp_read_f_v1_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(bp_read_f_v1_LDFLAGS) $(LDFLAGS) -o $@ am_genbp_OBJECTS = genbp-genbp.$(OBJEXT) genbp_OBJECTS = $(am_genbp_OBJECTS) genbp_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(top_builddir)/src/libadiosread.a $(am__DEPENDENCIES_1) genbp_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(genbp_CFLAGS) $(CFLAGS) $(genbp_LDFLAGS) \ $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = PPFCCOMPILE = $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) LTPPFCCOMPILE = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) FCLD = $(FC) COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(bp_read_c_SOURCES) $(bp_read_f_SOURCES) \ $(bp_read_f_v1_SOURCES) $(genbp_SOURCES) DIST_SOURCES = $(bp_read_c_SOURCES) $(am__bp_read_f_SOURCES_DIST) \ $(am__bp_read_f_v1_SOURCES_DIST) $(genbp_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = $(MPIFC) FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies # read_coords read_phi read_parts_global read_gena read_gena_pncd read_pixie_all genbp_SOURCES = genbp.c genbp_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) genbp_CFLAGS = $(ADIOSLIB_CFLAGS) genbp_LDADD = $(top_builddir)/src/libadios.a $(top_builddir)/src/libadiosread.a $(ADIOSLIB_LDADD) genbp_LDFLAGS = $(ADIOSLIB_LDFLAGS) @BUILD_FORTRAN_TRUE@bp_read_f_SOURCES = bp_read_f.F90 @BUILD_FORTRAN_TRUE@bp_read_f_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) @BUILD_FORTRAN_TRUE@bp_read_f_CFLAGS = $(ADIOSLIB_CFLAGS) @BUILD_FORTRAN_TRUE@bp_read_f_LDADD = $(top_builddir)/src/libadiosreadf.a $(ADIOSREADLIB_LDADD) @BUILD_FORTRAN_TRUE@bp_read_f_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) @BUILD_FORTRAN_TRUE@bp_read_f_v1_SOURCES = bp_read_f_v1.F90 @BUILD_FORTRAN_TRUE@bp_read_f_v1_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) @BUILD_FORTRAN_TRUE@bp_read_f_v1_CFLAGS = $(ADIOSLIB_CFLAGS) @BUILD_FORTRAN_TRUE@bp_read_f_v1_LDADD = $(top_builddir)/src/libadiosreadf_v1.a $(ADIOSREADLIB_LDADD) @BUILD_FORTRAN_TRUE@bp_read_f_v1_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) bp_read_c_SOURCES = bp_read_c.c bp_read_c_CPPFLAGS = -DADIOS_USE_READ_API_1 $(ADIOSLIB_CPPFLAGS) bp_read_c_CFLAGS = $(ADIOSLIB_CFLAGS) bp_read_c_LDADD = $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) bp_read_c_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ @BUILD_FORTRAN_FALSE@CLEANFILES = *.o bp_read_c genbp read_coords read_phi read_parts_global @BUILD_FORTRAN_TRUE@CLEANFILES = *.o bp_read_c bp_read_f genbp read_coords read_phi read_parts_global all: all-am .SUFFIXES: .SUFFIXES: .F90 .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/bp_read/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/bp_read/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list bp_read_c$(EXEEXT): $(bp_read_c_OBJECTS) $(bp_read_c_DEPENDENCIES) @rm -f bp_read_c$(EXEEXT) $(bp_read_c_LINK) $(bp_read_c_OBJECTS) $(bp_read_c_LDADD) $(LIBS) bp_read_f$(EXEEXT): $(bp_read_f_OBJECTS) $(bp_read_f_DEPENDENCIES) @rm -f bp_read_f$(EXEEXT) $(bp_read_f_LINK) $(bp_read_f_OBJECTS) $(bp_read_f_LDADD) $(LIBS) bp_read_f_v1$(EXEEXT): $(bp_read_f_v1_OBJECTS) $(bp_read_f_v1_DEPENDENCIES) @rm -f bp_read_f_v1$(EXEEXT) $(bp_read_f_v1_LINK) $(bp_read_f_v1_OBJECTS) $(bp_read_f_v1_LDADD) $(LIBS) genbp$(EXEEXT): $(genbp_OBJECTS) $(genbp_DEPENDENCIES) @rm -f genbp$(EXEEXT) $(genbp_LINK) $(genbp_OBJECTS) $(genbp_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .F90.o: $(PPFCCOMPILE) -c -o $@ $< .F90.obj: $(PPFCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .F90.lo: $(LTPPFCCOMPILE) -c -o $@ $< bp_read_f-bp_read_f.o: bp_read_f.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bp_read_f_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o bp_read_f-bp_read_f.o `test -f 'bp_read_f.F90' || echo '$(srcdir)/'`bp_read_f.F90 bp_read_f-bp_read_f.obj: bp_read_f.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bp_read_f_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o bp_read_f-bp_read_f.obj `if test -f 'bp_read_f.F90'; then $(CYGPATH_W) 'bp_read_f.F90'; else $(CYGPATH_W) '$(srcdir)/bp_read_f.F90'; fi` bp_read_f_v1-bp_read_f_v1.o: bp_read_f_v1.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bp_read_f_v1_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o bp_read_f_v1-bp_read_f_v1.o `test -f 'bp_read_f_v1.F90' || echo '$(srcdir)/'`bp_read_f_v1.F90 bp_read_f_v1-bp_read_f_v1.obj: bp_read_f_v1.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bp_read_f_v1_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o bp_read_f_v1-bp_read_f_v1.obj `if test -f 'bp_read_f_v1.F90'; then $(CYGPATH_W) 'bp_read_f_v1.F90'; else $(CYGPATH_W) '$(srcdir)/bp_read_f_v1.F90'; fi` .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< bp_read_c-bp_read_c.o: bp_read_c.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bp_read_c_CPPFLAGS) $(CPPFLAGS) $(bp_read_c_CFLAGS) $(CFLAGS) -c -o bp_read_c-bp_read_c.o `test -f 'bp_read_c.c' || echo '$(srcdir)/'`bp_read_c.c bp_read_c-bp_read_c.obj: bp_read_c.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bp_read_c_CPPFLAGS) $(CPPFLAGS) $(bp_read_c_CFLAGS) $(CFLAGS) -c -o bp_read_c-bp_read_c.obj `if test -f 'bp_read_c.c'; then $(CYGPATH_W) 'bp_read_c.c'; else $(CYGPATH_W) '$(srcdir)/bp_read_c.c'; fi` genbp-genbp.o: genbp.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(genbp_CPPFLAGS) $(CPPFLAGS) $(genbp_CFLAGS) $(CFLAGS) -c -o genbp-genbp.o `test -f 'genbp.c' || echo '$(srcdir)/'`genbp.c genbp-genbp.obj: genbp.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(genbp_CPPFLAGS) $(CPPFLAGS) $(genbp_CFLAGS) $(CFLAGS) -c -o genbp-genbp.obj `if test -f 'genbp.c'; then $(CYGPATH_W) 'genbp.c'; else $(CYGPATH_W) '$(srcdir)/genbp.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/tests/bp_read/CMakeLists.txt0000644000175000017500000000277512251360163021256 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/tests/bp_read) include_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_BINARY_DIR}/src) link_directories(${PROJECT_BINARY_DIR}/tests/bp_read) set(genbp_CPPFLAGS "${ADIOSLIB_CPPFLAGS}") set(genbp_CFLAGS "${ADIOSLIB_CFLAGS}") set(bp_read_c_CPPFLAGS "-DADIOS_USE_READ_API_1 ${ADIOSLIB_CPPFLAGS}") set(bp_read_c_CFLAGS "${ADIOSLIB_CFLAGS}") add_executable(genbp genbp.c) target_link_libraries(genbp adios adiosread ${ADIOSLIB_LDADD}) set_target_properties(genbp PROPERTIES COMPILE_FLAGS "${genbp_CPPFLAGS} ${genbp_CFLAGS}") add_executable(bp_read_c bp_read_c.c) target_link_libraries(bp_read_c adiosread ${ADIOSREADLIB_LDADD}) set_target_properties(bp_read_c PROPERTIES COMPILE_FLAGS "${bp_read_c_CPPFLAGS} ${bp_read_c_CFLAGS}") if(BUILD_FORTRAN) add_executable(bp_read_f bp_read_f.F90) target_link_libraries(bp_read_f adiosreadf ${ADIOSREADLIB_LDADD}) set(bp_read_f_CPPFLAGS "${ADIOSLIB_CPPFLAGS}") set(bp_read_f_CFLAGS "${ADIOSLIB_CFLAGS}") set_target_properties(bp_read_f PROPERTIES COMPILE_FLAGS "${bp_read_f_CPPFLAGS} ${bp_read_f_CFLAGS}") add_executable(bp_read_f_v1 bp_read_f_v1.F90) target_link_libraries(bp_read_f_v1 adiosreadf_v1 ${ADIOSREADLIB_LDADD}) set(bp_read_f_v1_CPPFLAGS "${ADIOSLIB_CPPFLAGS}") set(bp_read_f_v1_CFLAGS "${ADIOSLIB_CFLAGS}") set_target_properties(bp_read_f_v1 PROPERTIES COMPILE_FLAGS "${bp_read_f_v1_CPPFLAGS} ${bp_read_f_v1_CFLAGS}") endif(BUILD_FORTRAN) adios-1.5.0/tests/bp_read/bp_read_f.F900000644000175000017500000001272212251360163020670 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! program read_bp_f use adios_read_mod implicit none include "mpif.h" integer :: gcnt, vcnt, acnt, tfirst, tlast ! file info integer :: vsteps, vrank, vtype ! variable info integer :: ierr integer :: comm,nproc,rank integer :: i,j,k,l,m integer*8 :: fh integer*8 :: sel integer*8, dimension(10) :: dims, start, readsize integer :: an_int real*4 :: a_real real*8 :: a_double complex*8 :: a_complex character(len=1024) :: a_string !character, dimension(:), allocatable :: varchar !integer, dimension(:), allocatable :: varint !real*8, dimension(:), allocatable :: vardouble character(100000) :: varchar integer, dimension(100000) :: varint real*8, dimension(10000000) :: vardouble integer :: totalsize character (len=128), dimension(:), allocatable :: vnamelist character (len=128), dimension(:), allocatable :: anamelist character (len=128), dimension(:), allocatable :: gnamelist character(256) :: path call MPI_Init (ierr) comm = MPI_COMM_WORLD call mpi_comm_rank(comm, rank, ierr) call mpi_comm_size(comm, nproc, ierr) call processArgs(path) call adios_read_init_method (ADIOS_READ_METHOD_BP, comm, "verbose=4", ierr); call adios_read_open_file (fh, path, 0, comm, ierr) if (ierr .ne. 0) then call exit(1) endif varchar = ' ' call adios_inq_file (fh,vcnt,acnt,tfirst,tlast,ierr) allocate (vnamelist(vcnt)) allocate (anamelist(acnt)) call adios_inq_varnames (fh, vnamelist, ierr) call adios_inq_attrnames (fh, anamelist, ierr) write (*,'("Number of variables : ",i0)') vcnt do i=1,vcnt write (*,"(i5, a, a)") i,") ", trim(vnamelist(i)) enddo write (*,'("Number of attributes : ",i0)') acnt do i=1,acnt write (*,"(i5, a, a)") i,") ", trim(anamelist(i)) enddo write (*,'("Timesteps : ",i0," - ",i0)') tfirst, tlast ! Not required, but get the list of groupnames and print here call adios_inq_ngroups (fh, gcnt, ierr) allocate (gnamelist(gcnt)) call adios_inq_groupnames (fh, gnamelist, ierr) write (*,'("Number of groups : ",i0)') gcnt do i=1,gcnt write (*,"(i5, a, a)") i,") ", trim(gnamelist(i)) enddo deallocate (gnamelist) ! vtype ! 0 byte ! 1 short ! 2 integer ! 4 long ! 5 real ! 6 double ! 7 long double ! 9 string ! 10 complex ! 11 double_complex ! 50 unsigned_byte ! 51 unsigned_short ! 52 unsigned_integer ! 54 unsigned_long !write (*,*) "name ", " ndim ", " dims" write (*,*)"-------- VARIABLE INFO ---------" do i=1,vcnt call adios_inq_var (fh, vnamelist(i), vtype, vsteps, vrank, dims, ierr) if (vrank == 0) then !! scalar variable sel = 0 write (*,'(a," scalar: type=",i0," steps=",i0,$)') trim(vnamelist(i)), vtype, vrank if (vtype == adios_integer) then !call adios_get_scalar (fh, vnamelist(i), an_int, ierr) call adios_schedule_read (fh, sel, vnamelist(i), 0, 1, an_int, ierr) call adios_perform_reads (fh, ierr) write(*,'(" = ",i0)') an_int else if (vtype == adios_real) then call adios_get_scalar (fh, vnamelist(i), a_real, ierr) write(*,'(" = ",d20.10)') a_real else if (vtype == adios_double) then call adios_get_scalar (fh, vnamelist(i), a_double, ierr) write(*,'(" = ",d20.10)') a_double else if (vtype == adios_string) then call adios_get_scalar (fh, vnamelist(i), a_string, ierr) write(*,'(" = ",a)') trim(a_string) else if (vtype == adios_complex) then call adios_get_scalar (fh, vnamelist(i), a_complex, ierr) write(*,'(" = (",d20.10,",",d20.10,")")') a_complex else write (*,*) " This type is not handled here" endif else !! array variable start(1:10)=0 readsize(1:10)=1 totalsize=1 write (*,'(a," type=",i0," ndims=",i0,"{",$)') trim(vnamelist(i)),vrank,vtype do j=1,vrank readsize(j) = dims(j) totalsize=totalsize*dims(j) write(*,'(" ",i0,$)') dims(j) enddo write(*,'("}")') endif enddo call adios_read_close(fh, ierr) deallocate (vnamelist) deallocate (anamelist) call MPI_Finalize (ierr) end program !!*************************** subroutine usage() write (*,*) "Usage: bp_read_f path]" write (*,*) " path: name of bp file" end subroutine usage !!*************************** subroutine processArgs(path) implicit none character(len=256), intent(out) :: path #ifndef __GFORTRAN__ #ifndef __GNUC__ interface integer function iargc() end function iargc end interface #endif #endif integer :: numargs !! process arguments numargs = iargc() !print *,"Number of arguments:",numargs if ( numargs < 1 ) then call usage() call exit(1) endif call getarg(1, path) end subroutine processArgs adios-1.5.0/tests/bp_read/bp_read_c.c0000644000175000017500000001262412251360163020552 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include #include #include #include "mpi.h" #include "adios_read.h" #define PRINTDIMS(ndim, dims, ivar) if (ndim==0) \ printf("\tscalar\n"); \ else { \ printf("\t%dD variable: [%lld", ndim, dims[0]); \ for (ivar=1; ivartype); printf("%s:\n\thas timesteps: %s\n\ttype: %s\n", "int_1D", (vi->timedim > -1 ? "yes" : "no"), type_str); PRINTDIMS(vi->ndim, vi->dims, i) size[0] = 1; start[0] = 0; adios_read_var (gp, "int_1D", start, size, &nvar); printf("\tfirst element value: %d\n",(nvar)); free(vi); /* variable int_2D */ vi = adios_inq_var (gp, "int_2D"); if (vi == NULL) { int retval = adios_errno; fprintf(stderr, "Error: %s\n", adios_errmsg()); adios_fclose(fp); adios_gclose(gp); exit(retval); } type_str = adios_type_to_string (vi->type); printf("%s:\n\thas timesteps: %s\n\ttype: %s\n", "int_2D", (vi->timedim > -1 ? "yes" : "no"), type_str); PRINTDIMS(vi->ndim, vi->dims, i) start[0]=0; start[1]=0; size[0]=10; size[1]=2; var = malloc (sizeof(int) * size[0]*size[1]); // time step should be no less than zero // vnamelist[14] is not written at time step 0 // so the function returns as error adios_read_var (gp, "int_2D", start, size, var); printf("\tslice (%d:%d, %d:%d) = ", start[0], start[0]+size[0]-1, start[1], start[1]+size[1]-1); k=0; for (j=0;jtype); printf("%s:\n\thas timesteps: %s\n\ttype: %s\n", "int_3D", (vi->timedim > -1 ? "yes" : "no"), type_str); PRINTDIMS(vi->ndim, vi->dims, i) start[0]=0; start[1]=0; start[2]=0; size[0]=2; size[1]=5; size[2]=3; var = malloc ( sizeof(int) * size[0]*size[1]*size[2]); adios_read_var (gp, "int_3D", start, size, var); printf("\t[%d:%d, %d:%d, %d:%d]", start[0], start[0]+size[0]-1, start[1], start[1]+size[1]-1, start[2], start[2]+size[2]-1 ); k=0; for (nvar=0;nvar& genarray2D.out adios-1.5.0/tests/genarray/job.ewok0000755000175000017500000000047412251360163020370 0ustar amckinstryamckinstry#PBS -N genarray #PBS -A STF006 #PBS -V #PBS -l nodes=32:ppn=2 #PBS -l walltime=0:15:00 #PBS -j eo NPX=4 NPY=4 NPZ=4 NDX=100 NDY=100 NDZ=100 cd $PBS_O_WORKDIR let "NPROC=NPX*NPY*NPZ" FN="g_${NPX}x${NPY}x${NPZ}_${NDX}x${NDY}x${NDZ}.bp" mpirun -n $NPROC ./genarray $FN $NPX $NPY $NPZ $NDX $NDY $NDZ >& genarray.out adios-1.5.0/tests/genarray/genarray.xml0000644000175000017500000000474312251360163021261 0ustar amckinstryamckinstry adios-1.5.0/tests/genarray/genarray2D.F900000644000175000017500000002251512251360163021202 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! ! ! GENARRAY ! ! Write an ADIOS BP file from many processor for test purposes. ! ! nx * ny processes write a 2D array, where each process writes an ! ndx * ndy piece with filling with some values as integer (4 bytes) value ! ! Block written from rank R: ! R*ndx ... R*ndx ! R*ndx+1 ... R*ndx+1 ! ... ... ! R*ndx+ndy-1 R*ndx+ndy-1 ! ! E.g 2x2 processes writing 2x2 blocks: ! 0 0 | 2 2 0 1 | 2 3 ! 1 1 | 3 3 4 5 | 6 7 ! ----+---- or -----+---- ! 4 4 | 6 6 8 9 | 10 11 ! 5 5 | 7 7 12 13| 14 15 ! ! (c) Oak Ridge National Laboratory, 2009 ! Author: Norbert Podhorszki ! module genarray2D_comm ! arguments character(len=256) :: outputfile, inputfile integer :: npx, npy ! # of processors in x-y direction integer :: ndx, ndy ! size of array per processor integer :: timesteps ! number of timesteps to write logical :: common_size ! .true. if common local sizes are given as argument ! .false. if we have to read sizes from a file integer :: gndx, gndy ! size of the global array integer :: posx, posy ! position index in the array integer :: offx, offy ! offsets of local array in the global array integer, dimension(:,:), allocatable :: int_xy ! MPI variables integer :: group_comm integer :: rank, nproc integer :: ierr ! ADIOS variables character (len=200) :: group character (len=200) :: filename !character (len=6) :: nprocstr integer*8 :: handle, total_size, group_size, adios_totalsize integer :: err real*8 :: start_time, end_time, total_time,gbs,sz real*8 :: cache_start_time, cache_end_time, cache_total_time end module genarray2D_comm program genarray use genarray2D_comm use adios_write_mod implicit none include 'mpif.h' call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, group_comm, ierr) call MPI_Comm_rank (MPI_COMM_WORLD, rank, ierr) call MPI_Comm_size (group_comm, nproc , ierr) call adios_init ("genarray.xml", group_comm, ierr) !call MPI_Barrier (group_comm, ierr) call processArgs() if (rank == 0) then print *,"Output file: "//trim(outputfile) print '(" Process number : ",i0," x ",i0)', npx,npy if (common_size) then print '(" Array size per process: ",i0," x ",i0)', ndx,ndy else print *," Array sizes per processes taken from file: "//trim(inputfile) endif if (nproc .ne. npx*npy) then print '(" Error: Number of processors ",i0,"does not match ndx*ndy=",i0)', nproc, npx*npy call exit(1) endif endif !write (*,*) 'rank ', rank, "init completed" !write (nprocstr,'(i0)') nproc call determineLocalSize() call determineGlobalSize() call determineOffsets() call generateLocalArray() call MPI_BARRIER(MPI_COMM_WORLD,err) start_time = MPI_WTIME() call writeArray() call MPI_BARRIER(MPI_COMM_WORLD,err) end_time = MPI_WTIME() total_time = end_time - start_time sz = adios_totalsize * nproc/1024.d0/1024.d0/1024.d0 !size in GB gbs = sz/total_time !if (rank==0) write(6,*) total_time if (rank==0) write(6,'(a10,d12.2,2x,d12.2,2x,d12.3)') outputfile,sz,total_time,gbs ! Terminate call MPI_Barrier (MPI_COMM_WORLD, ierr) call adios_finalize (rank, ierr) call MPI_Finalize (ierr) end program genarray !!*************************** subroutine determineLocalSize() use genarray2D_comm implicit none if (common_size) then ! we are done since we know them from argument else ! have to read from file print *, "To be implemented: read sizes from file 1" call exit(2) endif end subroutine determineLocalSize !!*************************** subroutine determineGlobalSize() use genarray2D_comm implicit none if (common_size) then gndx = npx * ndx gndy = npy * ndy else ! have to read from file print *, "To be implemented: read sizes from file 2" call exit(2) endif end subroutine determineGlobalSize !!*************************** subroutine determineOffsets() use genarray2D_comm implicit none if (common_size) then posx = mod(rank, npx) ! 1st dim easy: 0, npx, 2npx... are in the same X position posy = rank/npx ! 2nd dim: npx processes belong into one dim offx = posx * ndx offy = posy * ndy ! print '("rank=",i0," pos: ",i0,",",i0," offset: ",i0,",",i0)', & ! rank, posx, posy, offx, offy else ! have to read from file print *, "To be implemented: read sizes from file 2" call exit(2) endif end subroutine determineOffsets !!*************************** subroutine generateLocalArray() use genarray2D_comm implicit none integer :: i,j,k, startv allocate( int_xy(1:ndx, 1:ndy) ) do j=1,ndy startv = (offy+j-1)*gndx + offx do i=1,ndx !int_xy(i,j) = startv+i-1 !int_xy(i,j) = rank*ndx+j-1 int_xy(i,j) = rank enddo enddo end subroutine generateLocalArray !!*************************** subroutine writeArray() use genarray2D_comm use adios_write_mod implicit none integer :: tstep character(2) :: mode = "w" include 'mpif.h' ! Write out data using ADIOS group = "genarray" ! calculate how much we write from this processor group_size = 4 * 9 + & ! X,Y, nproc, all size_ and offs_ integers 4 * ndx * ndy + & ! int_xy 4 * ndx * ndy ! int_xyt adios_totalsize = group_size do tstep=1,timesteps if (tstep > 1) mode = "a" !print '("rank=",i0," group=",A," file=",A," group_size=",i0)', rank, trim(group), & ! trim(outputfile), group_size call MPI_BARRIER(MPI_COMM_WORLD,ierr) cache_start_time = MPI_WTIME() call adios_open (handle, group, outputfile, mode, group_comm, err) call adios_group_size (handle, group_size, total_size, err) !print '("rank=",i0," total_size=",i0," err=",i0)', rank, total_size, err ! write dimensions and nproc call adios_write (handle, "X", gndx, err) call adios_write (handle, "Y", gndy, err) call adios_write (handle, "npx", npx, err) call adios_write (handle, "npy", npy, err) call adios_write (handle, "nproc", nproc, err) call adios_write (handle, "size_x", ndx, err) call adios_write (handle, "size_y", ndy, err) call adios_write (handle, "offs_x", offx, err) call adios_write (handle, "offs_y", offy, err) if (tstep == 1) then call adios_write (handle, "int_xy", int_xy, err) endif call adios_write (handle, "int_xyt", int_xy, err) call MPI_BARRIER(MPI_COMM_WORLD,ierr) cache_end_time = MPI_WTIME() cache_total_time = cache_end_time - cache_start_time sz = adios_totalsize * nproc/1024.d0/1024.d0/1024.d0 !size in GB gbs = sz/cache_total_time !if (rank==0) write(6,*) total_time if (rank==0) print '("Writing to cache: ",a10,d12.2,2x,d12.2,2x,d12.3)', outputfile,sz,cache_total_time,gbs ! start streaming from buffer to disk call adios_close (handle, err) ! print '("rank=",i0,": write completed")', rank enddo end subroutine writeArray !!*************************** subroutine usage() print *, "Usage: genarray output N M [nx ny | infile] timesteps" print *, "output: name of output file" print *, "N: number of processes in X dimension" print *, "M: number of processes in Y dimension" print *, "nx: local array size in X dimension per processor" print *, "ny: local array size in Y dimension per processor" print *, "infile: file that describes nx ny for each processor" print *, "timesteps: number of time steps to write" end subroutine usage !!*************************** subroutine processArgs() use genarray2D_comm #ifndef __GFORTRAN__ #ifndef __GNUC__ interface integer function iargc() end function iargc end interface #endif #endif character(len=256) :: npx_str, npy_str, ndx_str, ndy_str, time_str integer :: numargs !! process arguments numargs = iargc() !print *,"Number of arguments:",numargs if ( numargs < 5 ) then call usage() call exit(1) endif call getarg(1, outputfile) call getarg(2, npx_str) call getarg(3, npy_str) read (npx_str,'(i5)') npx read (npy_str,'(i5)') npy if ( numargs == 5 ) then call getarg(4, inputfile) call getarg(5, time_str) read (timesteps,'(i6)') time_str ndx = 0 ndy = 0 common_size = .false. else if (numargs == 6) then call getarg(4, ndx_str) call getarg(5, ndy_str) call getarg(6, time_str) read (ndx_str,'(i6)') ndx read (ndy_str,'(i6)') ndy read (time_str,'(i6)') timesteps inputfile=char(0) common_size = .true. else call usage() call exit(1) endif end subroutine processArgs adios-1.5.0/tests/genarray/Makefile.in0000644000175000017500000005406712251360163021000 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = genarray$(EXEEXT) genarray2D$(EXEEXT) \ copyarray$(EXEEXT) copyarray2D$(EXEEXT) subdir = tests/genarray DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_copyarray_OBJECTS = copyarray-copyarray.$(OBJEXT) copyarray_OBJECTS = $(am_copyarray_OBJECTS) am__DEPENDENCIES_1 = copyarray_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) copyarray_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(copyarray_LDFLAGS) $(LDFLAGS) -o $@ am_copyarray2D_OBJECTS = copyarray2D-copyarray2D.$(OBJEXT) copyarray2D_OBJECTS = $(am_copyarray2D_OBJECTS) copyarray2D_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) copyarray2D_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(copyarray2D_LDFLAGS) $(LDFLAGS) -o $@ am_genarray_OBJECTS = genarray-genarray.$(OBJEXT) genarray_OBJECTS = $(am_genarray_OBJECTS) genarray_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) genarray_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(genarray_LDFLAGS) $(LDFLAGS) -o $@ am_genarray2D_OBJECTS = genarray2D-genarray2D.$(OBJEXT) genarray2D_OBJECTS = $(am_genarray2D_OBJECTS) genarray2D_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) genarray2D_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(genarray2D_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = PPFCCOMPILE = $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) LTPPFCCOMPILE = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) FCLD = $(FC) SOURCES = $(copyarray_SOURCES) $(copyarray2D_SOURCES) \ $(genarray_SOURCES) $(genarray2D_SOURCES) DIST_SOURCES = $(copyarray_SOURCES) $(copyarray2D_SOURCES) \ $(genarray_SOURCES) $(genarray2D_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = $(MPIFC) FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies genarray_SOURCES = genarray.F90 genarray_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) genarray_CFLAGS = $(ADIOSLIB_CFLAGS) genarray_LDADD = $(top_builddir)/src/libadiosf.a $(ADIOSLIB_LDADD) genarray_LDFLAGS = $(ADIOSLIB_LDFLAGS) genarray2D_SOURCES = genarray2D.F90 genarray2D_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) genarray2D_CFLAGS = $(ADIOSLIB_CFLAGS) genarray2D_LDADD = $(top_builddir)/src/libadiosf.a $(ADIOSLIB_LDADD) genarray2D_LDFLAGS = $(ADIOSLIB_LDFLAGS) copyarray_SOURCES = copyarray.F90 copyarray_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) copyarray_CFLAGS = $(ADIOSLIB_CFLAGS) copyarray_LDADD = $(top_builddir)/src/libadiosf.a $(ADIOSLIB_LDADD) copyarray_LDFLAGS = $(ADIOSLIB_LDFLAGS) copyarray2D_SOURCES = copyarray2D.F90 copyarray2D_CPPFLAGS = $(ADIOSLIB_CPPFLAGS) copyarray2D_CFLAGS = $(ADIOSLIB_CFLAGS) copyarray2D_LDADD = $(top_builddir)/src/libadiosf.a $(ADIOSLIB_LDADD) copyarray2D_LDFLAGS = $(ADIOSLIB_LDFLAGS) FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ CLEANFILES = genarray_comm.mod genarray2d_comm.mod gwrite_genarray.fh gread_genarray.fh EXTRA_DIST = genarray.xml genarray3d.xml job.ewok job2D.ewok all: all-am .SUFFIXES: .SUFFIXES: .F90 .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/genarray/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/genarray/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list copyarray$(EXEEXT): $(copyarray_OBJECTS) $(copyarray_DEPENDENCIES) @rm -f copyarray$(EXEEXT) $(copyarray_LINK) $(copyarray_OBJECTS) $(copyarray_LDADD) $(LIBS) copyarray2D$(EXEEXT): $(copyarray2D_OBJECTS) $(copyarray2D_DEPENDENCIES) @rm -f copyarray2D$(EXEEXT) $(copyarray2D_LINK) $(copyarray2D_OBJECTS) $(copyarray2D_LDADD) $(LIBS) genarray$(EXEEXT): $(genarray_OBJECTS) $(genarray_DEPENDENCIES) @rm -f genarray$(EXEEXT) $(genarray_LINK) $(genarray_OBJECTS) $(genarray_LDADD) $(LIBS) genarray2D$(EXEEXT): $(genarray2D_OBJECTS) $(genarray2D_DEPENDENCIES) @rm -f genarray2D$(EXEEXT) $(genarray2D_LINK) $(genarray2D_OBJECTS) $(genarray2D_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .F90.o: $(PPFCCOMPILE) -c -o $@ $< .F90.obj: $(PPFCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .F90.lo: $(LTPPFCCOMPILE) -c -o $@ $< copyarray-copyarray.o: copyarray.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(copyarray_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o copyarray-copyarray.o `test -f 'copyarray.F90' || echo '$(srcdir)/'`copyarray.F90 copyarray-copyarray.obj: copyarray.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(copyarray_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o copyarray-copyarray.obj `if test -f 'copyarray.F90'; then $(CYGPATH_W) 'copyarray.F90'; else $(CYGPATH_W) '$(srcdir)/copyarray.F90'; fi` copyarray2D-copyarray2D.o: copyarray2D.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(copyarray2D_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o copyarray2D-copyarray2D.o `test -f 'copyarray2D.F90' || echo '$(srcdir)/'`copyarray2D.F90 copyarray2D-copyarray2D.obj: copyarray2D.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(copyarray2D_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o copyarray2D-copyarray2D.obj `if test -f 'copyarray2D.F90'; then $(CYGPATH_W) 'copyarray2D.F90'; else $(CYGPATH_W) '$(srcdir)/copyarray2D.F90'; fi` genarray-genarray.o: genarray.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(genarray_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o genarray-genarray.o `test -f 'genarray.F90' || echo '$(srcdir)/'`genarray.F90 genarray-genarray.obj: genarray.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(genarray_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o genarray-genarray.obj `if test -f 'genarray.F90'; then $(CYGPATH_W) 'genarray.F90'; else $(CYGPATH_W) '$(srcdir)/genarray.F90'; fi` genarray2D-genarray2D.o: genarray2D.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(genarray2D_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o genarray2D-genarray2D.o `test -f 'genarray2D.F90' || echo '$(srcdir)/'`genarray2D.F90 genarray2D-genarray2D.obj: genarray2D.F90 $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(genarray2D_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) -c -o genarray2D-genarray2D.obj `if test -f 'genarray2D.F90'; then $(CYGPATH_W) 'genarray2D.F90'; else $(CYGPATH_W) '$(srcdir)/genarray2D.F90'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am genarray.F90: gwrite_genarray.fh copyarray.F90: gwrite_genarray.fh gread_genarray.fh gwrite_genarray.fh: genarray3d.xml rm -f gwrite_genarray.fh gread_genarray.fh $(top_builddir)/utils/gpp/gpp.py genarray3d.xml gread_genarray.fh: genarray3d.xml rm -f gwrite_genarray.fh gread_genarray.fh $(top_builddir)/utils/gpp/gpp.py genarray3d.xml # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/tests/genarray/genarray3d.xml0000644000175000017500000000554012251360163021504 0ustar amckinstryamckinstry adios-1.5.0/tests/genarray/CMakeLists.txt0000644000175000017500000000322412251360163021460 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_BINARY_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/tests/genarray) include_directories(${PROJECT_BINARY_DIR}/tests/genarray) link_directories(${PROJECT_BINARY_DIR}/tests/genarray) add_executable(genarray genarray.F90 gwrite_genarray.fh) target_link_libraries(genarray adiosf ${ADIOSLIB_LDADD}) set_target_properties(genarray PROPERTIES COMPILE_FLAGS "${ADIOSLIB_CPPFLAGS} ${ADIOSLIB_CFLAGS}") add_executable(genarray2D genarray2D.F90) target_link_libraries(genarray2D adiosf ${ADIOSLIB_LDADD}) set_target_properties(genarray2D PROPERTIES COMPILE_FLAGS "${ADIOSLIB_CPPFLAGS} ${ADIOSLIB_CFLAGS}") add_executable(copyarray copyarray.F90 gread_genarray.fh) target_link_libraries(copyarray adiosf ${ADIOSLIB_LDADD}) set_target_properties(copyarray PROPERTIES COMPILE_FLAGS "${ADIOSLIB_CPPFLAGS} ${ADIOSLIB_CFLAGS}") add_executable(copyarray2D copyarray2D.F90) target_link_libraries(copyarray2D adiosf ${ADIOSLIB_LDADD}) set_target_properties(copyarray2D PROPERTIES COMPILE_FLAGS "${ADIOSLIB_CPPFLAGS} ${ADIOSLIB_CFLAGS}") #install(FILES genarray.xml genarray3d.xml job.ewok job2D.ewok DESTINATION ${PROJECT_BINARY_DIR}/tests/genarray) add_custom_command( OUTPUT gwrite_genarray.fh COMMAND rm -f gwrite_genarray.fh gread_genarray.fh COMMAND ${PROJECT_SOURCE_DIR}/utils/gpp/gpp.py ${PROJECT_SOURCE_DIR}/tests/genarray/genarray3d.xml DEPENDS genarray3d.xml ) add_custom_command( OUTPUT gread_genarray.fh COMMAND rm -f gwrite_genarray.fh gread_genarray.fh COMMAND ${PROJECT_SOURCE_DIR}/utils/gpp/gpp.py ${PROJECT_SOURCE_DIR}/tests/genarray/genarray3d.xml DEPENDS genarray3d.xml ) adios-1.5.0/tests/genarray/genarray.F900000644000175000017500000002014212251360163021006 0ustar amckinstryamckinstry ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! ! ! GENARRAY ! ! Write an ADIOS BP file from many processor for test purposes. ! ! nx * ny * nz processes write a 3D array, where each process writes an ! ndx * ndy * ndz piece with filling with its rank as integer (4 bytes) value ! ! ! (c) Oak Ridge National Laboratory, 2009 ! Author: Norbert Podhorszki ! module genarray_comm ! arguments character(len=256) :: outputfile, inputfile integer :: npx, npy, npz ! # of processors in x-y-z direction integer :: ndx, ndy, ndz ! size of array per processor integer :: timesteps ! number of timesteps to write integer :: sleeptime ! time to sleep between time steps logical :: common_size ! .true. if common local sizes are given as argument ! .false. if we have to read sizes from a file integer :: gndx, gndy, gndz ! size of the global array integer :: offx,offy,offz ! offsets of local array in the global array real*8, dimension(:,:,:), allocatable :: double_xyz ! MPI variables integer :: group_comm integer :: rank, nproc integer :: ierr ! ADIOS variables character (len=200) :: group character (len=200) :: filename !character (len=6) :: nprocstr integer*8 :: handle, total_size, group_size, adios_totalsize real*8 :: start_time, end_time, total_time,gbs,sz real*8 :: io_start_time, io_end_time, io_total_time end module genarray_comm program genarray use genarray_comm use adios_write_mod implicit none include 'mpif.h' call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, group_comm, ierr) call MPI_Comm_rank (MPI_COMM_WORLD, rank, ierr) call MPI_Comm_size (group_comm, nproc , ierr) call adios_init ("genarray3d.xml", group_comm, ierr) !call MPI_Barrier (group_comm, ierr) call processArgs() if (rank == 0) then print *,"Output file(s): "//trim(outputfile)//"..bp" print '(" Process number : ",i0," x ",i0," x ",i0)', npx,npy,npz if (common_size) then print '(" Array size per process: ",i0," x ",i0," x ",i0)', ndx,ndy,ndz else print *," Array sizes per processes taken from file: "//trim(inputfile) endif if (nproc .ne. npx*npy*npz) then print '(" Error: Number of processors ",i0,"does not match ndx*ndy*ndz=",i0)', nproc, npx*npy*npz call exit(1) endif endif !write (*,*) 'rank ', rank, "init completed" !write (nprocstr,'(i0)') nproc call determineLocalSize() call determineGlobalSize() call determineOffsets() call generateLocalArray() call writeArray() ! Terminate call MPI_Barrier (MPI_COMM_WORLD, ierr) call adios_finalize (rank, ierr) call MPI_Finalize (ierr) end program genarray !!*************************** subroutine determineLocalSize() use genarray_comm implicit none if (common_size) then ! we are done since we know them from argument else ! have to read from file print *, "To be implemented: read sizes from file 1" call exit(2) endif end subroutine determineLocalSize !!*************************** subroutine determineGlobalSize() use genarray_comm implicit none if (common_size) then gndx = npx * ndx gndy = npy * ndy gndz = npz * ndz else ! have to read from file print *, "To be implemented: read sizes from file 2" call exit(2) endif end subroutine determineGlobalSize !!*************************** subroutine determineOffsets() use genarray_comm implicit none integer :: posx, posy, posz ! position index in the array if (common_size) then posx = mod(rank, npx) ! 1st dim easy: 0, npx, 2npx... are in the same X position posy = mod(rank/npx, npy) ! 2nd dim: (0, npx-1) have the same dim (so divide with npx first) posz = rank/(npx*npy) ! 3rd dim: npx*npy processes belong into one dim offx = posx * ndx offy = posy * ndy offz = posz * ndz else ! have to read from file print *, "To be implemented: read sizes from file 3" call exit(2) endif end subroutine determineOffsets !!*************************** subroutine generateLocalArray() use genarray_comm implicit none integer :: i,j,k allocate( double_xyz(1:ndx, 1:ndy, 1:ndz) ) do k=1,ndz do j=1,ndy do i=1,ndx double_xyz(i,j,k) = 1.0d0*rank enddo enddo enddo end subroutine generateLocalArray !!*************************** subroutine writeArray() use genarray_comm use adios_write_mod implicit none integer*8 adios_handle, adios_groupsize integer adios_err integer :: tstep character(2) :: mode = "w" character(len=256) :: outfilename include 'mpif.h' if (rank==0) print '("Writing: "," filename ",14x,"size(GB)",4x,"io_time(sec)",6x,"GB/s")' do tstep=1,timesteps !if (tstep > 1) mode = "a" double_xyz = tstep + double_xyz call MPI_BARRIER(MPI_COMM_WORLD,ierr) io_start_time = MPI_WTIME() group = "genarray" write (outfilename,'(a,".",i3.3,".bp")') trim(outputfile),tstep call adios_open (adios_handle, group, outfilename, mode, group_comm, adios_err) #include "gwrite_genarray.fh" call adios_close (adios_handle, adios_err) call MPI_BARRIER(MPI_COMM_WORLD,ierr) io_end_time = MPI_WTIME() io_total_time = io_end_time - io_start_time sz = adios_totalsize * nproc/1024.d0/1024.d0/1024.d0 !size in GB gbs = sz/io_total_time if (rank==0) print '("Writing: ",a20,d12.2,2x,d12.2,2x,d12.3)', outfilename,sz,io_total_time,gbs if (tstep 1) mode = "a" !print '("rank=",i0," group=",A," file=",A," group_size=",i0)', rank, trim(group), & ! trim(outputfile), group_size call MPI_BARRIER(MPI_COMM_WORLD,ierr) cache_start_time = MPI_WTIME() call adios_open (handle, group, outputfile, mode, group_comm, err) call adios_group_size (handle, group_size, total_size, err) !print '("rank=",i0," total_size=",i0," err=",i0)', rank, total_size, err ! write dimensions and nproc call adios_write (handle, "X", gndx, err) call adios_write (handle, "Y", gndy, err) call adios_write (handle, "npx", npx, err) call adios_write (handle, "npy", npy, err) call adios_write (handle, "nproc", nproc, err) call adios_write (handle, "size_x", ndx, err) call adios_write (handle, "size_y", ndy, err) call adios_write (handle, "offs_x", offx, err) call adios_write (handle, "offs_y", offy, err) if (tstep == 1) then call adios_write (handle, "int_xy", int_xy, err) endif call adios_write (handle, "int_xyt", int_xy, err) call MPI_BARRIER(MPI_COMM_WORLD,ierr) cache_end_time = MPI_WTIME() cache_total_time = cache_end_time - cache_start_time sz = adios_totalsize * nproc/1024.d0/1024.d0/1024.d0 !size in GB gbs = sz/cache_total_time !if (rank==0) write(6,*) total_time if (rank==0) print '("Writing: ",a10,d12.2,2x,d12.2,2x,d12.3)', outputfile,sz,cache_total_time,gbs ! start streaming from buffer to disk call adios_close (handle, err) ! print '("rank=",i0,": write completed")', rank enddo end subroutine writeArray !!*************************** subroutine usage() print *, "Usage: genarray input output N M [nx ny | infile] timesteps" print *, "input: name of input file" print *, "output: name of output file" print *, "N: number of processes in X dimension" print *, "M: number of processes in Y dimension" print *, "nx: local array size in X dimension per processor" print *, "ny: local array size in Y dimension per processor" print *, "timesteps: number of time steps to write" end subroutine usage !!*************************** subroutine processArgs() use genarray2D_comm #ifndef __GFORTRAN__ #ifndef __GNUC__ interface integer function iargc() end function iargc end interface #endif #endif character(len=256) :: npx_str, npy_str, ndx_str, ndy_str, time_str integer :: numargs !! process arguments numargs = iargc() !print *,"Number of arguments:",numargs if ( numargs < 7 ) then call usage() call exit(1) endif call getarg(1, inputfile) call getarg(2, outputfile) call getarg(3, npx_str) call getarg(4, npy_str) call getarg(5, ndx_str) call getarg(6, ndy_str) call getarg(7, time_str) read (npx_str,'(i5)') npx read (npy_str,'(i5)') npy read (ndx_str,'(i6)') ndx read (ndy_str,'(i6)') ndy read (time_str,'(i6)') timesteps common_size = .true. end subroutine processArgs adios-1.5.0/tests/genarray/copyarray.F900000644000175000017500000002172312251360163021215 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! ! ! COPYARRAY ! ! Write an ADIOS BP file from many processor for test purposes. ! ! nx * ny * nz processes write a 3D array, where each process writes an ! ndx * ndy * ndz piece with filling with its rank as integer (4 bytes) value ! ! ! (c) Oak Ridge National Laboratory, 2009 ! Author: Norbert Podhorszki ! module genarray_comm ! arguments character(len=256) :: outputfile, inputfile integer :: npx, npy, npz ! # of processors in x-y-z direction integer :: ndx, ndy, ndz ! size of array per processor logical :: common_size ! .true. if common local sizes are given as argument ! .false. if we have to read sizes from a file integer :: gndx, gndy, gndz ! size of the global array integer :: offx,offy,offz ! offsets of local array in the global array real*8, dimension(:,:,:), allocatable :: double_xyz ! MPI variables integer :: group_comm integer :: rank, nproc integer :: ierr ! ADIOS variables character (len=200) :: group character (len=200) :: filename !character (len=6) :: nprocstr integer*8 :: handle, total_size, group_size, adios_totalsize, adios_buf_size integer :: err real*8 :: start_time, end_time, total_time,gbs,sz real*8 :: cache_start_time, cache_end_time, cache_total_time end module genarray_comm program genarray use genarray_comm use adios_write_mod implicit none include 'mpif.h' call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, group_comm, ierr) call MPI_Comm_rank (MPI_COMM_WORLD, rank, ierr) call MPI_Comm_size (group_comm, nproc , ierr) call adios_init ("genarray3d.xml", group_comm, ierr) !call MPI_Barrier (group_comm, ierr) call processArgs() if (rank == 0) then print *,"Input file: "//trim(inputfile) print *,"Output file: "//trim(outputfile) print '(" Process number : ",i0," x ",i0," x ",i0)', npx,npy,npz if (common_size) then print '(" Array size per process: ",i0," x ",i0," x ",i0)', ndx,ndy,ndz else print *," Array sizes per processes taken from file: "//trim(inputfile) endif if (nproc .ne. npx*npy*npz) then print '(" Error: Number of processors ",i0,"does not match ndx*ndy*ndz=",i0)', nproc, npx*npy*npz call exit(1) endif endif !write (*,*) 'rank ', rank, "init completed" !write (nprocstr,'(i0)') nproc call determineLocalSize() call determineGlobalSize() call determineOffsets() call generateLocalArray() call MPI_BARRIER(MPI_COMM_WORLD,err) start_time = MPI_WTIME() call readArray() call MPI_BARRIER(MPI_COMM_WORLD,err) end_time = MPI_WTIME() total_time = end_time - start_time sz = adios_totalsize * nproc/1024.d0/1024.d0/1024.d0 !size in GB gbs = sz/total_time !if (rank==0) write(6,*) total_time if (rank==0) write(6,'(a10,d12.2,2x,d12.2,2x,d12.3)') outputfile,sz,total_time,gbs call MPI_BARRIER(MPI_COMM_WORLD,err) start_time = MPI_WTIME() call writeArray() call MPI_BARRIER(MPI_COMM_WORLD,err) end_time = MPI_WTIME() total_time = end_time - start_time sz = adios_totalsize * nproc/1024.d0/1024.d0/1024.d0 !size in GB gbs = sz/total_time !if (rank==0) write(6,*) total_time if (rank==0) write(6,'(a10,d12.2,2x,d12.2,2x,d12.3)') outputfile,sz,total_time,gbs ! Terminate call MPI_Barrier (MPI_COMM_WORLD, ierr) call adios_finalize (rank, ierr) call MPI_Finalize (ierr) end program genarray !!*************************** subroutine determineLocalSize() use genarray_comm implicit none if (common_size) then ! we are done since we know them from argument else ! have to read from file print *, "To be implemented: read sizes from file 1" call exit(2) endif end subroutine determineLocalSize !!*************************** subroutine determineGlobalSize() use genarray_comm implicit none if (common_size) then gndx = npx * ndx gndy = npy * ndy gndz = npz * ndz else ! have to read from file print *, "To be implemented: read sizes from file 2" call exit(2) endif end subroutine determineGlobalSize !!*************************** subroutine determineOffsets() use genarray_comm implicit none integer :: posx, posy, posz ! position index in the array if (common_size) then posx = mod(rank, npx) ! 1st dim easy: 0, npx, 2npx... are in the same X position posy = mod(rank/npx, npy) ! 2nd dim: (0, npx-1) have the same dim (so divide with npx first) posz = rank/(npx*npy) ! 3rd dim: npx*npy processes belong into one dim offx = posx * ndx offy = posy * ndy offz = posz * ndz else ! have to read from file print *, "To be implemented: read sizes from file 3" call exit(2) endif end subroutine determineOffsets !!*************************** subroutine generateLocalArray() use genarray_comm implicit none integer :: i,j,k allocate( double_xyz(1:ndx, 1:ndy, 1:ndz) ) ! do k=1,ndz ! do j=1,ndy ! do i=1,ndx ! double_xyz(i,j,k) = 1.0d0*rank ! enddo ! enddo ! enddo end subroutine generateLocalArray !!*************************** subroutine readArray() use genarray_comm use adios_write_mod use adios_read_mod implicit none integer*8 adios_handle, adios_groupsize integer adios_err integer*8 fp, s include 'mpif.h' call MPI_BARRIER(MPI_COMM_WORLD,adios_err) cache_start_time = MPI_WTIME() group = "genarray" ! TODO: Fix this to use the new read API call adios_open (adios_handle, group, inputfile, "r", group_comm, adios_err) #include "gread_genarray.fh" call MPI_BARRIER(MPI_COMM_WORLD,adios_err) cache_end_time = MPI_WTIME() cache_total_time = cache_end_time - cache_start_time sz = adios_totalsize * nproc/1024.d0/1024.d0/1024.d0 !size in GB gbs = sz/cache_total_time !if (rank==0) write(6,*) total_time if (rank==0) print '("Reading: ",a10,d12.2,2x,d12.2,2x,d12.3)', inputfile,sz,cache_total_time,gbs call adios_close (adios_handle, adios_err) end subroutine readArray !!*************************** subroutine writeArray() use genarray_comm use adios_write_mod implicit none integer*8 adios_handle, adios_groupsize integer adios_err include 'mpif.h' call MPI_BARRIER(MPI_COMM_WORLD,adios_err) cache_start_time = MPI_WTIME() group = "genarray" call adios_open (adios_handle, group, outputfile, "w", group_comm, adios_err) #include "gwrite_genarray.fh" call MPI_BARRIER(MPI_COMM_WORLD,adios_err) cache_end_time = MPI_WTIME() cache_total_time = cache_end_time - cache_start_time sz = adios_totalsize * nproc/1024.d0/1024.d0/1024.d0 !size in GB gbs = sz/cache_total_time !if (rank==0) write(6,*) total_time if (rank==0) print '("Writing: ",a10,d12.2,2x,d12.2,2x,d12.3)', outputfile,sz,cache_total_time,gbs call adios_start_calculation(adios_err) call adios_end_iteration(adios_err) call adios_stop_calculation(adios_err) call adios_close (adios_handle, adios_err) end subroutine writeArray !!*************************** subroutine usage() print *, "Usage: genarray input output N M K nx ny nz" print *, "infile: name of input file (file to be copied)" print *, "output: name of output file" print *, "N: number of processes in X dimension" print *, "M: number of processes in Y dimension" print *, "K: number of processes in Z dimension" print *, "nx: local array size in X dimension per processor" print *, "ny: local array size in Y dimension per processor" print *, "nz: local array size in Z dimension per processor" end subroutine usage !!*************************** subroutine processArgs() use genarray_comm #ifndef __GFORTRAN__ #ifndef __GNUC__ interface integer function iargc() end function iargc end interface #endif #endif character(len=256) :: npx_str, npy_str, npz_str, ndx_str, ndy_str, ndz_str integer :: numargs !! process arguments numargs = iargc() !print *,"Number of arguments:",numargs if ( numargs < 8 ) then call usage() call exit(1) endif call getarg(1, inputfile) call getarg(2, outputfile) call getarg(3, npx_str) call getarg(4, npy_str) call getarg(5, npz_str) call getarg(6, ndx_str) call getarg(7, ndy_str) call getarg(8, ndz_str) read (npx_str,'(i5)') npx read (npy_str,'(i5)') npy read (npz_str,'(i5)') npz read (ndx_str,'(i6)') ndx read (ndy_str,'(i6)') ndy read (ndz_str,'(i6)') ndz common_size = .true. end subroutine processArgs adios-1.5.0/README0000644000175000017500000000063112251360163014625 0ustar amckinstryamckinstryADIOS 1.3 Release ----------------- Please look at the examples/ directory for the example codes on how to use ADIOS. If you need more detailed information, please, read the User's manual. Please read COPYING for the copyright. This release contains only a limited set of transport methods for different I/O uses. There are more methods, actively researched ones, available. Contact us to get them. adios-1.5.0/AUTHORS0000644000175000017500000000022712251360163015016 0ustar amckinstryamckinstry Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. Copyright (c) 2008 - 2009. Georgia Institute of Technology. All rights reserved. adios-1.5.0/configure.ac0000644000175000017500000007302512251360163016242 0ustar amckinstryamckinstry AC_INIT(configure.ac) AC_CONFIG_AUX_DIR(config) AC_CONFIG_MACRO_DIR(config) AC_REVISION($Revision$) AC_CONFIG_HEADERS(config.h) AM_INIT_AUTOMAKE(adios,1.5.0) AM_MAINTAINER_MODE([enable]) AC_LANG(C) AC_C_STRINGIZE dnl generates HAVE_STRINGIZE AC_PROG_CC AM_PROG_CC_C_O AC_PROG_CXX AC_LANG(C) ACX_MPI([], [AC_MSG_ERROR([couldn't find mpi library for C])]) AC_LANG(C++) ACX_MPI([], [AC_MSG_ERROR([couldn't find mpi library for C++])]) AC_ARG_ENABLE(fortran, [AS_HELP_STRING([--disable-fortran],[disable Fortran test programs in ADIOS.])]) AM_CONDITIONAL([BUILD_FORTRAN], [test "x$enable_fortran" != "xno"]) if test "x$enable_fortran" != "xno"; then AC_PROG_FC AC_PROG_FC_C_O AC_FC_WRAPPERS F77=$FC dnl AC_PROG_F77 dnl AC_PROG_F77_C_O AC_LANG(Fortran) ACX_MPI([], [AC_MSG_ERROR([couldn't find mpi library for Fortran])]) fi AC_LANG(C) dnl Generate libtool script and then do a nasty thing. dnl PGI compiler (behind MPICC) does not like --rpath. dnl The only way I found to avoid the problem is to remove the chance of using it dnl inside the libtool script. Similar to what HDF5 configure does. dnl see: http://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/configure.in dnl look the snippet after LT_INIT there. AC_PROG_LIBTOOL #LT_INIT([disable-shared]) dnl echo 'fixing hardcode_libdir_flag_spec in' $ofile dnl ed - $ofile < /dev/null dnl g/^wl=".*"/s//wl="-Wl,"/ dnl w dnl q dnl EOF dnl g/^hardcode_libdir_flag_spec=".*"/s//hardcode_libdir_flag_spec=""/ dnl g/^hardcode_libdir_flag_spec_ld=".*"/s//hardcode_libdir_flag_spec_ld=""/ AC_SEARCH_LIBS([nanosleep], [rt]) AC_CHECK_FUNCS([nanosleep strncpy strerror gettimeofday]) AC_PROG_MXML dnl AC_PROG_GENGETOPT AC_DCMF AC_INFINIBAND AC_PORTALS AC_CRAY_PMI AC_CRAY_UGNI AC_HDF5 AC_PHDF5 AC_NETCDF AC_NC4PAR AC_NSSI AC_PROG_DATASPACES AC_PROG_DIMES AC_DMALLOC AC_LUSTRE AC_DATATAP AC_FLEXPATH AC_LANG(C) AC_ARG_ENABLE(research-transports, [AS_HELP_STRING([--enable-research-transports], [Enable building the various research transports. Default is not to build these as they are not part of the base distribution.])]) AM_CONDITIONAL([RESEARCH_TRANSPORTS], [test "x$enable_research_transports" == "xyes"]) AC_LANG(C) AC_ARG_ENABLE(skel-timing, [AS_HELP_STRING([--enable-skel-timing], [Include the skel timing mechanism. By default this is not included])]) AM_CONDITIONAL([SKEL_TIMING], [test "x$enable_skel_timing" == "xyes"]) if test "x$enable_skel_timing" == "xyes"; then AC_DEFINE(SKEL_TIMING, 1, [Skel timing is enabled]) AC_SUBST(SKEL_HAVE_ADIOS_TIMING,True) dnl The macro AM_SUBST_NOTMAKE does not work on Hopper with automake 10.1 dnl AM_SUBST_NOTMAKE(SKEL_HAVE_ADIOS_TIMING,true) else AC_SUBST(SKEL_HAVE_ADIOS_TIMING,False) dnl AM_SUBST_NOTMAKE(SKEL_HAVE_ADIOS_TIMING,false) fi AC_SUBST(SKEL_TIMING) AC_LANG(C) AM_CONDITIONAL([HAVE_DATATAP], [test x$datatap != xdisable]) AC_ARG_ENABLE(write, [AS_HELP_STRING([--disable-write],[disable building the write methods in ADIOS.])]) AM_CONDITIONAL([BUILD_WRITE], [test "x$enable_write" != "xno"]) dnl CC="$MPICC" dnl CXX="$MPICXX" dnl FC="$MPIFC" LIBS="$MPILIBS" AM_CONDITIONAL(USE_PARALLEL_COMPILER,false) if test -z "${MACRODEFFLAG}"; then MACRODEFFLAG="-D" fi AC_SUBST(MACRODEFFLAG) dnl Use PHDF5 for bp2h5 if no sequential HDF5 was found if test -z "${HAVE_PHDF5_TRUE}" -a -z "${HAVE_HDF5_FALSE}"; then HDF5_CPPFLAGS="${PHDF5_CPPFLAGS}" HDF5_CFLAGS="${PHDF5_CFLAGS}" HDF5_LDFLAGS="${PHDF5_LDFLAGS}" HDF5_LIBS="${PHDF5_LIBS}" AM_CONDITIONAL(HAVE_HDF5,true) AC_DEFINE(HAVE_HDF5,1,[Define if you have HDF5.]) AM_CONDITIONAL(USE_PARALLEL_COMPILER,true) AC_MSG_NOTICE([Use PHDF5 for sequential HDF5 tools]) fi dnl Use NC4PAR for bp2ncd if no sequential NETCDF was found if test -z "${HAVE_NC4PAR_TRUE}" -a -z "${HAVE_NETCDF_FALSE}"; then NETCDF_CPPFLAGS="${NC4PAR_CPPFLAGS}" NETCDF_CFLAGS="${NC4PAR_CFLAGS}" NETCDF_LDFLAGS="${NC4PAR_LDFLAGS}" NETCDF_LIBS="${NC4PAR_LIBS}" AM_CONDITIONAL(HAVE_NETCDF,true) AC_DEFINE(HAVE_NETCDF,1,[Define if you have NETCDF.]) AM_CONDITIONAL(USE_PARALLEL_COMPILER,true) AC_MSG_NOTICE([Use NC4PAR for sequential NETCDF tools]) fi dnl Generate flags for adios lib creation which depends on the packages we found dnl ADIOSLIB_* for compiling libadios.a and libadiosf.a, and linking codes with those dnl ADIOSLIB_SEQ_* for compiling libadios_nompi.a and libadiosf_nompi.a with dummy MPI dnl ADIOSLIB_INT_* for codes using libadios_internal_nompi.a (like bp2ncd, bp2h5, bpdump etc) dnl ADIOSREADLIB_* for codes using libadiosread.a, libadiosreadf.a dnl ADIOSREADLIB_SEQ_* for codes using libadiosread_nompi.a dnl adios_config will contain flags for users' code linking based on these flags dnl EXTRA flags are used for compiling adios stuff, which need not go into adios_config for user codes ADIOSLIB_EXTRA_CPPFLAGS="${MACRODEFFLAG}_FILE_OFFSET_BITS=64 ${MACRODEFFLAG}_LARGEFILE_SOURCE ${MACRODEFFLAG}_LARGEFILE64_SOURCE ${MACRODEFFLAG}_GNU_SOURCE" ADIOSLIB_CPPFLAGS="${MXML_CPPFLAGS}" ADIOSLIB_CFLAGS= ADIOSLIB_LDFLAGS="${MXML_LDFLAGS}" ADIOSLIB_LDADD="-lm ${MXML_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${MACRODEFFLAG}_NOMPI ${MXML_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS= ADIOSLIB_SEQ_LDFLAGS="${MXML_LDFLAGS}" ADIOSLIB_SEQ_LDADD="-lm ${MXML_LIBS}" ADIOSLIB_INT_CPPFLAGS="${MACRODEFFLAG}_NOMPI ${MXML_CPPFLAGS}" ADIOSLIB_INT_CFLAGS= ADIOSLIB_INT_LDFLAGS="${MXML_LDFLAGS}" ADIOSLIB_INT_LDADD="-lm ${MXML_LIBS}" ADIOSREADLIB_CPPFLAGS= ADIOSREADLIB_CFLAGS= ADIOSREADLIB_LDFLAGS= ADIOSREADLIB_LDADD="-lm" ADIOSREADLIB_SEQ_CPPFLAGS="${MACRODEFFLAG}_NOMPI" ADIOSREADLIB_SEQ_CFLAGS= ADIOSREADLIB_SEQ_LDFLAGS= ADIOSREADLIB_SEQ_LDADD="-lm" if test "x${datatap}" != "xdisable"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${DT_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${DT_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${DT_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${DT_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${DT_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${DT_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${DT_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${DT_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${DT_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${DT_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${DT_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${DT_LIBS}" fi if test -z "${HAVE_DATASPACES_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${DATASPACES_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${DATASPACES_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${DATASPACES_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${DATASPACES_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${DATASPACES_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${DATASPACES_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${DATASPACES_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${DATASPACES_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${DATASPACES_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${DATASPACES_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${DATASPACES_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${DATASPACES_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${DATASPACES_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${DATASPACES_LIBS}" fi if test -z "${HAVE_DIMES_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${DIMES_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${DIMES_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${DIMES_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${DIMES_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${DIMES_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${DIMES_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${DIMES_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${DIMES_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${DIMES_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${DIMES_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${DIMES_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${DIMES_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${DIMES_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${DIMES_LIBS}" fi if test -z "${HAVE_NSSI_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${NSSI_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${NSSI_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${NSSI_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${NSSI_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${NSSI_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${NSSI_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${NSSI_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${NSSI_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${MXML_CPPFLAGS} ${NSSI_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${MXML_CPPFLAGS} ${NSSI_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${MXML_LDFLAGS} ${NSSI_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${MXML_LIBS} ${NSSI_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${MXML_CPPFLAGS} ${NSSI_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${MXML_CPPFLAGS} ${NSSI_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${MXML_LDFLAGS} ${NSSI_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${MXML_LIBS} ${NSSI_LIBS}" fi if test -z "${HAVE_FLEXPATH_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${FP_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${FP_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${FP_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${FP_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${FP_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${FP_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${FP_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${FP_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${FP_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${FP_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${FP_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${FP_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${FP_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${FP_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${FP_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${FP_LIBS}" fi if test -z "${HAVE_NC4PAR_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${NC4PAR_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${NC4PAR_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${NC4PAR_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${NC4PAR_LIBS}" fi if test -z "${HAVE_PHDF5_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${PHDF5_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${PHDF5_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${PHDF5_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${PHDF5_LIBS}" fi if test -z "${HAVE_PORTALS_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${PORTALS_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${PORTALS_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${PORTALS_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${PORTALS_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${PORTALS_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${PORTALS_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${PORTALS_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${PORTALS_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${PORTALS_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${PORTALS_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${PORTALS_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${PORTALS_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${PORTALS_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${PORTALS_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${PORTALS_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${PORTALS_LIBS}" fi if test -z "${HAVE_INFINIBAND_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${INFINIBAND_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${INFINIBAND_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${INFINIBAND_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${INFINIBAND_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${INFINIBAND_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${INFINIBAND_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${INFINIBAND_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${INFINIBAND_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${INFINIBAND_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${INFINIBAND_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${INFINIBAND_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${INFINIBAND_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${INFINIBAND_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${INFINIBAND_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${INFINIBAND_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${INFINIBAND_LIBS}" fi if test -z "${HAVE_CRAY_PMI_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${CRAY_PMI_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${CRAY_PMI_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${CRAY_PMI_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${CRAY_PMI_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${CRAY_PMI_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${CRAY_PMI_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${CRAY_PMI_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${CRAY_PMI_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${CRAY_PMI_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${CRAY_PMI_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${CRAY_PMI_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${CRAY_PMI_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${CRAY_PMI_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${CRAY_PMI_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${CRAY_PMI_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${CRAY_PMI_LIBS}" fi if test -z "${HAVE_CRAY_UGNI_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${CRAY_UGNI_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${CRAY_UGNI_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${CRAY_UGNI_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${CRAY_UGNI_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${CRAY_UGNI_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${CRAY_UGNI_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${CRAY_UGNI_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${CRAY_UGNI_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${CRAY_UGNI_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${CRAY_UGNI_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${CRAY_UGNI_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${CRAY_UGNI_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${CRAY_UGNI_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${CRAY_UGNI_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${CRAY_UGNI_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${CRAY_UGNI_LIBS}" fi if test -z "${HAVE_DCMF_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${DCMF_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${DCMF_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${DCMF_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${DCMF_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${DCMF_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${DCMF_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${DCMF_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${DCMF_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${DCMF_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${DCMF_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${DCMF_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${DCMF_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${DCMF_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${DCMF_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${DCMF_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${DCMF_LIBS}" fi if test -z "${HAVE_NETCDF_TRUE}"; then ADIOSLIB_INT_CPPFLAGS="${ADIOSLIB_INT_CPPFLAGS} ${NETCDF_CPPFLAGS}" ADIOSLIB_INT_CFLAGS="${ADIOSLIB_INT_CFLAGS} ${NETCDF_CFLAGS}" ADIOSLIB_INT_LDFLAGS="${ADIOSLIB_INT_LDFLAGS} ${NETCDF_LDFLAGS}" ADIOSLIB_INT_LDADD="${ADIOSLIB_INT_LDADD} ${NETCDF_LIBS}" fi if test -z "${HAVE_HDF5_TRUE}"; then ADIOSLIB_INT_CPPFLAGS="${ADIOSLIB_INT_CPPFLAGS} ${HDF5_CPPFLAGS}" ADIOSLIB_INT_CFLAGS="${ADIOSLIB_INT_CFLAGS} ${HDF5_CFLAGS}" ADIOSLIB_INT_LDFLAGS="${ADIOSLIB_INT_LDFLAGS} ${HDF5_LDFLAGS}" ADIOSLIB_INT_LDADD="${ADIOSLIB_INT_LDADD} ${HDF5_LIBS}" fi if test -z "${HAVE_DMALLOC_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${MACRODEFFLAG}DMALLOC ${DMALLOC_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${DMALLOC_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${DMALLOC_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${DMALLOC_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${DMALLOC_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${DMALLOC_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${DMALLOC_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${DMALLOC_LIBS}" ADIOSLIB_INT_CPPFLAGS="${ADIOSLIB_INT_CPPFLAGS} ${DMALLOC_CPPFLAGS}" ADIOSLIB_INT_CFLAGS="${ADIOSLIB_INT_CFLAGS} ${DMALLOC_CFLAGS}" ADIOSLIB_INT_LDFLAGS="${ADIOSLIB_INT_LDFLAGS} ${DMALLOC_LDFLAGS}" ADIOSLIB_INT_LDADD="${ADIOSLIB_INT_LDADD} ${DMALLOC_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${DMALLOC_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${DMALLOC_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${DMALLOC_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${DMALLOC_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${DMALLOC_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${DMALLOC_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${DMALLOC_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${DMALLOC_LIBS}" fi if test -z "${HAVE_LUSTRE_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${LUSTRE_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${LUSTRE_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${LUSTRE_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${LUSTRE_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${LUSTRE_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${LUSTRE_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${LUSTRE_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${LUSTRE_LIBS}" fi AC_SUBST(ADIOSLIB_CPPFLAGS) AC_SUBST(ADIOSLIB_CFLAGS) AC_SUBST(ADIOSLIB_LDFLAGS) AC_SUBST(ADIOSLIB_LDADD) AC_SUBST(ADIOSLIB_SEQ_CPPFLAGS) AC_SUBST(ADIOSLIB_SEQ_CFLAGS) AC_SUBST(ADIOSLIB_SEQ_LDFLAGS) AC_SUBST(ADIOSLIB_SEQ_LDADD) AC_SUBST(ADIOSLIB_INT_CPPFLAGS) AC_SUBST(ADIOSLIB_INT_CFLAGS) AC_SUBST(ADIOSLIB_INT_LDFLAGS) AC_SUBST(ADIOSLIB_INT_LDADD) AC_SUBST(ADIOSREADLIB_CPPFLAGS) AC_SUBST(ADIOSREADLIB_CFLAGS) AC_SUBST(ADIOSREADLIB_LDFLAGS) AC_SUBST(ADIOSREADLIB_LDADD) AC_SUBST(ADIOSREADLIB_SEQ_CPPFLAGS) AC_SUBST(ADIOSREADLIB_SEQ_CFLAGS) AC_SUBST(ADIOSREADLIB_SEQ_LDFLAGS) AC_SUBST(ADIOSREADLIB_SEQ_LDADD) AC_SUBST(ADIOSLIB_EXTRA_CPPFLAGS) if test -z "${USE_PARALLEL_COMPILER_TRUE}"; then AC_DEFINE(USE_PARALLEL_COMPILER, 1, [Need to use MPI compiler for sequential utils]) echo "#### Defined USE_PARALLEL_COMPILER to = [${USE_PARALLEL_COMPILER}]" fi dnl Generate major/minor/micro version numbers VERSION_MAJOR=[`echo ${VERSION} | sed -e "s/\..*//"`] AC_DEFINE_UNQUOTED(VERSION_MAJOR, ${VERSION_MAJOR}, [Major version number]) VERSION_MINOR=[`echo ${VERSION} | sed -e "s/[0-9]*\.\([0-9]*\).*/\1/"`] AC_DEFINE_UNQUOTED(VERSION_MINOR, ${VERSION_MINOR}, [Minor version number]) VERSION_MICRO=[`echo ${VERSION} | sed -e "s/[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/"`] dnl if micro not defined, here it equals to VERSION; do a minus VERSION_MICRO=`echo ${VERSION_MICRO} | sed -e "s/${VERSION}//"` if test -z "${VERSION_MICRO}"; then VERSION_MICRO=0 fi AC_DEFINE_UNQUOTED(VERSION_MICRO, ${VERSION_MICRO}, [Micro version number]) # Get the version of the source we are configuring here # Just to print it out at the end of configure # see also Makefile.am:install-data-hook if type svnversion &>/dev/null; then SVNVERSION=`svnversion` else SVNVERSION="unknown" fi AC_DEFINE_UNQUOTED(VERSION_SVNREV, "${SVNVERSION}", [svn revision number]) AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile tests/C/Makefile tests/Fortran/Makefile tests/genarray/Makefile tests/bp_read/Makefile tests/suite/Makefile tests/suite/programs/Makefile utils/Makefile utils/skel/Makefile utils/skel/etc/Makefile utils/skel/src/Makefile utils/skel/lib/skel_have_adios_timing.py utils/adios_lint/Makefile utils/gpp/Makefile utils/bpdump/Makefile utils/bp2h5/Makefile utils/bp2ncd/Makefile utils/bp2ascii/Makefile utils/bpsplit/Makefile utils/bpls/Makefile utils/bp2bp/Makefile examples/Makefile examples/C/Makefile examples/C/scalars/Makefile examples/C/arrays/Makefile examples/C/flexpath_arrays/Makefile examples/C/flexpath_arrays/process_select/Makefile examples/C/flexpath_arrays/global_range_select/Makefile examples/C/attributes/Makefile examples/C/manual/Makefile examples/C/global-array/Makefile examples/C/global-array-time/Makefile examples/C/stat/Makefile examples/C/read_all/Makefile examples/C/schema/Makefile examples/Fortran/Makefile examples/Fortran/scalars/Makefile examples/Fortran/arrays/Makefile examples/Fortran/global-array/Makefile examples/Fortran/global-array-time/Makefile adios_config.flags ]) AC_OUTPUT echo echo "*********************************" echo $PACKAGE configured as follows: echo "*********************************" echo echo " - General Compile FLAGS"; echo " - CC = $CC"; echo " - CXX = $CXX"; echo " - FC = $FC"; echo " - CPPFLAGS = $CPPFLAGS"; echo " - CFLAGS = $CFLAGS"; echo " - CXXFLAGS = $CXXFLAGS"; echo " - FCFLAGS = $FCFLAGS"; echo " - LDLAGS = $LDFLAGS"; echo " - LIBS = $LIBS"; echo echo " - MPICC = $MPICC"; echo " - MPICXX = $MPICXX"; echo " - MPIFC = $MPIFC"; echo " - MPILIBS = $MPILIBS"; echo if test "x$enable_research_transports" == "xyes"; then echo " - Research Transports Included"; else echo " - No research transport methods"; fi if test "x$enable_skel_timing" == "xyes"; then echo " - Skel Timing Mechanism Enabled"; else echo " - Skel Timing Mechanism Disabled"; fi if test -z "${HAVE_MXML_TRUE}"; then echo " - MXML"; echo " - MXML_CFLAGS = $MXML_CFLAGS"; echo " - MXML_CPPFLAGS = $MXML_CPPFLAGS"; echo " - MXML_LDFLAGS = $MXML_LDFLAGS"; echo " - MXML_LIBS = $MXML_LIBS"; echo else echo " - No MXML" fi if test -z "${HAVE_LUSTRE_TRUE}"; then echo " - LUSTRE"; echo " - LUSTRE_CFLAGS = $LUSTRE_CFLAGS"; echo " - LUSTRE_CPPFLAGS = $LUSTRE_CPPFLAGS"; echo " - LUSTRE_LDFLAGS = $LUSTRE_LDFLAGS"; echo " - LUSTRE_LIBS = $LUSTRE_LIBS"; echo else echo " - No LUSTRE" fi echo " - Networking library for staging methods:"; if test -z "${HAVE_PORTALS_TRUE}"; then echo " - PORTALS"; echo " - PORTALS_CFLAGS = $PORTALS_CFLAGS"; echo " - PORTALS_CPPFLAGS = $PORTALS_CPPFLAGS"; echo " - PORTALS_LDFLAGS = $PORTALS_LDFLAGS"; echo " - PORTALS_LIBS = $PORTALS_LIBS"; echo #else # echo " - No Portals" #fi elif test -z "${HAVE_INFINIBAND_TRUE}"; then echo " - INFINIBAND"; echo " - INFINIBAND_CFLAGS = $INFINIBAND_CFLAGS"; echo " - INFINIBAND_CPPFLAGS = $INFINIBAND_CPPFLAGS"; echo " - INFINIBAND_LDFLAGS = $INFINIBAND_LDFLAGS"; echo " - INFINIBAND_LIBS = $INFINIBAND_LIBS"; echo #else # echo " - No InfiniBand" #fi elif test -z "${HAVE_CRAY_PMI_TRUE}" -a -z "${HAVE_CRAY_UGNI_TRUE}"; then echo " - CRAY uGNI with PMI"; echo " - CFLAGS = $CRAY_PMI_CFLAGS $CRAY_UGNI_CFLAGS"; echo " - CPPFLAGS = $CRAY_PMI_CPPFLAGS $CRAY_UGNI_CPPFLAGS"; echo " - LDFLAGS = $CRAY_PMI_LDFLAGS $CRAY_UGNI_LDFLAGS"; echo " - LIBS = $CRAY_PMI_LIBS $CRAY_UGNI_LIBS"; echo #else # echo " - No Cray uGNI" elif test -z "${HAVE_DCMF_TRUE}"; then echo " - IBM DCMF"; echo " - DCMF_CFLAGS = $DCMF_CFLAGS"; echo " - DCMF_CPPFLAGS = $DCMF_CPPFLAGS"; echo " - DCMF_LDFLAGS = $DCMF_LDFLAGS"; echo " - DCMF_LIBS = $DCMF_LIBS"; echo else echo " - No supported networking library found" fi dnl if test -z "${HAVE_GENGETOPT_TRUE}"; then dnl echo " - GENGETOPT"; dnl echo " - GENGETOPT_CFLAGS = $GENGETOPT_CFLAGS"; dnl echo " - GENGETOPT_CPPFLAGS = $GENGETOPT_CPPFLAGS"; dnl echo " - GENGETOPT_LDFLAGS = $GENGETOPT_LDFLAGS"; dnl echo " - GENGETOPT_LIBS = $GENGETOPT_LIBS"; dnl echo dnl else dnl echo " - No Gengetopt" dnl fi if test "x${datatap}" != "xdisable"; then echo " - DataTap with interconnect: $datatap"; echo " - DT_CFLAGS = $DT_CFLAGS"; echo " - DT_CPPFLAGS = $DT_CPPFLAGS"; echo " - DT_LDFLAGS = $DT_LDFLAGS"; echo " - DT_LIBS = $DT_LIBS"; echo else echo " - No DataTap transport to build DATATAP transport method"; fi if test -z "${HAVE_DATASPACES_TRUE}"; then echo " - DATASPACES transport method"; echo " - DATASPACES_CFLAGS = $DATASPACES_CFLAGS"; echo " - DATASPACES_CPPFLAGS = $DATASPACES_CPPFLAGS"; echo " - DATASPACES_LDFLAGS = $DATASPACES_LDFLAGS"; echo " - DATASPACES_LIBS = $DATASPACES_LIBS"; echo else echo " - No DATASPACES to build DATASPACES transport method" fi if test -z "${HAVE_DIMES_TRUE}"; then echo " - DIMES transport method"; echo " - DIMES_CFLAGS = $DIMES_CFLAGS"; echo " - DIMES_CPPFLAGS = $DIMES_CPPFLAGS"; echo " - DIMES_LDFLAGS = $DIMES_LDFLAGS"; echo " - DIMES_LIBS = $DIMES_LIBS"; echo else echo " - No DIMES to build DIMES transport method" fi if test -z "${HAVE_PHDF5_TRUE}"; then echo " - PHDF5"; echo " - PHDF5_CFLAGS = $PHDF5_CFLAGS"; echo " - PHDF5_CPPFLAGS = $PHDF5_CPPFLAGS"; echo " - PHDF5_LDFLAGS = $PHDF5_LDFLAGS"; echo " - PHDF5_LIBS = $PHDF5_LIBS"; echo else echo " - No PHDF5 to build PHDF5 transport method" fi if test -z "${HAVE_HDF5_TRUE}"; then echo " - HDF5"; echo " - HDF5_CFLAGS = $HDF5_CFLAGS"; echo " - HDF5_CPPFLAGS = $HDF5_CPPFLAGS"; echo " - HDF5_LDFLAGS = $HDF5_LDFLAGS"; echo " - HDF5_LIBS = $HDF5_LIBS"; echo else echo " - No HDF5" fi if test -z "${HAVE_NC4PAR_TRUE}"; then echo " - NetCDF 4 Parallel"; echo " - NC4PAR_CFLAGS = $NC4PAR_CFLAGS"; echo " - NC4PAR_CPPFLAGS = $NC4PAR_CPPFLAGS"; echo " - NC4PAR_LDFLAGS = $NC4PAR_LDFLAGS"; echo " - NC4PAR_LIBS = $NC4PAR_LIBS"; echo else echo " - No NETCDF 4 Parallel to build NC4 transport method" fi if test -z "${HAVE_NETCDF_TRUE}"; then echo " - NetCDF"; echo " - NETCDF_CFLAGS = $NETCDF_CFLAGS"; echo " - NETCDF_CPPFLAGS = $NETCDF_CPPFLAGS"; echo " - NETCDF_LDFLAGS = $NETCDF_LDFLAGS"; echo " - NETCDF_LIBS = $NETCDF_LIBS"; echo else echo " - No NETCDF" fi if test -z "${HAVE_NSSI_TRUE}"; then echo " - NSSI"; echo " - NSSI_CFLAGS = $NSSI_CFLAGS"; echo " - NSSI_CPPFLAGS = $NSSI_CPPFLAGS"; echo " - NSSI_LDFLAGS = $NSSI_LDFLAGS"; echo " - NSSI_LIBS = $NSSI_LIBS"; echo else echo " - No NSSI to build NSSI transport method" fi if test -z "${HAVE_FLEXPATH_TRUE}"; then echo " - FLEXPATH"; echo " - FP_CFLAGS = $FP_CFLAGS"; echo " - FP_CPPFLAGS = $FP_CPPFLAGS"; echo " - FP_LDFLAGS = $FP_LDFLAGS"; echo " - FP_LIBS = $FP_LIBS"; echo else echo " - No FLEXPATH to build FLEXPATH transport method" fi echo " - SVN version = ${SVNVERSION}" echo " - Install path = ${prefix}" adios-1.5.0/config.h.cmake0000644000175000017500000001657212251360163016455 0ustar amckinstryamckinstry/* config.h Generated by cmake with CMakelists.txt. from config.h.cmake */ #cmakedefine BUILD_WITH_CMAKE ${BUILD_WITH_CMAKE} /* Define to dummy `main' function (if any) required to link to the Fortran libraries. */ #cmakedefine FC_DUMMY_MAIN 1 /* Define if F77 and FC dummy `main' functions are identical. */ #cmakedefine FC_DUMMY_MAIN_EQ_F77 1 /* Define to a macro mangling the given C identifier (in lower and upper case), which must not contain underscores, for linking with Fortran. */ #cmakedefine FC_FUNC ${FC_FUNC} /* As FC_FUNC, but for C identifiers containing underscores. */ #cmakedefine FC_FUNC_ ${FC_FUNC_} /* Define to 1 if your Fortran compiler doesn't accept -c and -o together. */ #cmakedefine FC_NO_MINUS_C_MINUS_O 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_ATTRIBUTES_H 1 /* Define to 1 if you have the `clock_gettime' function. */ #cmakedefine HAVE_CLOCK_GETTIME 1 /* Define if you have CRAY_PMI. */ #cmakedefine HAVE_CRAY_PMI 1 /* Define if you have Cray Portals. */ #cmakedefine HAVE_CRAY_PORTALS 1 /* Define if you have CRAY_UGNI. */ #cmakedefine HAVE_CRAY_UGNI 1 /* Define if you have the DATASPACES. */ #cmakedefine HAVE_DATASPACES 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_DATASPACES_H 1 /* Define if you have the DCMF. */ #undef HAVE_DCMF /* Define to 1 if you have the header file. */ #undef HAVE_DCMF_H /* Define if you have the DIMES. */ #cmakedefine HAVE_DIMES 1 /* Define to 1 if you have the header file. */ #undef HAVE_DIMES_INTERFACE_H /* Define to 1 if you have the header file. */ #cmakedefine HAVE_DLFCN_H 1 /* Define if you have DMALLOC. */ #cmakedefine HAVE_DMALLOC 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_DMALLOC_H 1 /* Define to 1 if you have the `fdatasync' function. */ #cmakedefine HAVE_FDATASYNC 1 /* Define to 1 if you have the `gettimeofday' function. */ #cmakedefine HAVE_GETTIMEOFDAY 1 /* Define if you have HDF5. */ #cmakedefine HAVE_HDF5 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_HDF5_H 1 /* Define to 1 if you have . */ #cmakedefine HAVE_IBVERBS_H 1 #cmakedefine HAVE_IBVERBS 1 /* Define if you have the Infiniband. */ #cmakedefine HAVE_INFINIBAND 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_INTTYPES_H 1 /* Define to 1 if you have the `rt' library (-lrt). */ #cmakedefine HAVE_LIBRT 1 /* Define if you have LUSTRE. */ #cmakedefine HAVE_LUSTRE 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_MEMORY_H 1 /* Define if you have the MPI library. */ #cmakedefine HAVE_MPI 1 /* Define if you have the MXML. */ #cmakedefine HAVE_MXML 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_MXML_H 1 /* Define to 1 if you have the `nanosleep' function. */ #cmakedefine HAVE_NANOSLEEP 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_NC4PAR_H 1 /* Define if you have NC4PAR. */ #cmakedefine HAVE_NC4PAR 1 /* Define if you have NETCDF. */ #cmakedefine HAVE_NETCDF 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_NETCDF_H 1 /* Define if you have NSSI. */ #cmakedefine HAVE_NSSI 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_P3NAL_UTCP_H 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_P3RT_P3RT_H 1 /* Define if you have the Pablo. */ #cmakedefine HAVE_PABLO 1 /* Define if you have PHDF5. */ #cmakedefine HAVE_PHDF5 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_PHDF5_H 1 /* Define if you have the Portals. */ #cmakedefine HAVE_PORTALS 1 #cmakedefine HAVE_PTLINIT 1 /* Define to 1 if you have . */ #cmakedefine HAVE_PORTALS3_H 1 /* Define to 1 if you have . */ #cmakedefine HAVE_PORTALS_PORTALS3_H 1 /* Define if you have POSIX threads libraries and header files. */ #cmakedefine HAVE_PTHREAD 1 /* Define to 1 if you have the `pthread_yield' function. */ #cmakedefine HAVE_PTHREAD_YIELD 1 /* Define to 1 if you have the `PtlACEntry' function. */ #cmakedefine HAVE_PTLACENTRY 1 /* Define to 1 if you have the `PtlErrorStr' function. */ #cmakedefine HAVE_PTLERRORSTR 1 /* Define to 1 if you have the `PtlEventKindStr' function. */ #cmakedefine HAVE_PTLEVENTKINDSTR 1 /* Define to 1 if you have the `PtlGetJid' function. */ #cmakedefine HAVE_PTLGETJID 1 /* Define to 1 if you have the `PtlNIFailStr' function. */ #cmakedefine HAVE_PTLNIFAILSTR 1 /* Define to 1 if the system has the type `ptl_eq_handler_t'. */ #cmakedefine HAVE_PTL_EQ_HANDLER_T 1 /* Define if you have PTL_NOACK_REQ. */ #cmakedefine HAVE_PTL_NOACK_REQ 1 /* Define if you have PTL_NO_ACK_REQ. */ #cmakedefine HAVE_PTL_NO_ACK_REQ 1 /* Define to 1 if the system has the type `ptl_time_t'. */ #cmakedefine HAVE_PTL_TIME_T 1 /* Define to 1 if you have the `sched_yield' function. */ #cmakedefine HAVE_SCHED_YIELD 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_STDLIB_H 1 /* Define to 1 if you have the `strerror' function. */ #cmakedefine HAVE_STRERROR 1 /* Define to 1 if cpp supports the ANSI stringizing operator. */ #cmakedefine HAVE_STRINGIZE 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_STRING_H 1 /* to 1 if you have the `strncpy' function. */ #cmakedefine HAVE_STRNCPY 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ #cmakedefine HAVE_UNISTD_H 1 /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Datatap is disabled */ #cmakedefine NO_DATATAP 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ #cmakedefine NO_MINUS_C_MINUS_O 1 /* Name of package */ #cmakedefine PACKAGE ${PACKAGE} /* Define to the address where bug reports for this package should be sent. */ #cmakedefine PACKAGE_BUGREPORT ${PACKAGE_BUGREPORT} /* Define to the full name of this package. */ #cmakedefine PACKAGE_NAME ${PACKAGE_NAME} /* Define to the full name and version of this package. */ #cmakedefine PACKAGE_STRING ${PACKAGE_STRING} /* Define to the one symbol short name of this package. */ #cmakedefine PACKAGE_TARNAME ${PACKAGE_TARNAME} /* Define to the version of this package. */ #cmakedefine PACKAGE_VERSION ${PACKAGE_VERSION} /* Define to the necessary symbol if this constant uses a non-standard name on your system. */ #cmakedefine PTHREAD_CREATE_JOINABLE ${PTHREAD_CREATE_JOINABLE} /* Skel timing is enabled */ #cmakedefine SKEL_TIMING 1 /* Define to 1 if you have the ANSI C header files. */ #cmakedefine STDC_HEADERS 1 /* Need to use MPI compiler for sequential utils */ #cmakedefine USE_PARALLEL_COMPILER 1 /* Version number of package */ #cmakedefine VERSION "${VERSION}" /* Major version number */ #define VERSION_MAJOR ${VERSION_MAJOR} /* Micro version number */ #define VERSION_MICRO ${VERSION_MICRO} /* Minor version number */ #define VERSION_MINOR ${VERSION_MINOR} /* svn revision number */ #cmakedefine VERSION_SVNREV ${VERSION_SVNREV} adios-1.5.0/configure0000755000175000017500000437203212251360163015667 0ustar amckinstryamckinstry#! /bin/sh # From configure.ac Revision. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.63. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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=: # Pre-4.2 versions of Zsh do 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 as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } 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.) 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 $as_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. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # 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 || $as_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=: # Pre-4.2 versions of Zsh do 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=: # Pre-4.2 versions of Zsh do 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 bug-autoconf@gnu.org about your system, echo including any error possibly output before this message. echo This can help us improve future autoconf versions. echo Configuration will now proceed without shell functions. } 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" || { $as_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 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then 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 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'" # 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=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="configure.ac" # 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='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS ADIOSLIB_EXTRA_CPPFLAGS ADIOSREADLIB_SEQ_LDADD ADIOSREADLIB_SEQ_LDFLAGS ADIOSREADLIB_SEQ_CFLAGS ADIOSREADLIB_SEQ_CPPFLAGS ADIOSREADLIB_LDADD ADIOSREADLIB_LDFLAGS ADIOSREADLIB_CFLAGS ADIOSREADLIB_CPPFLAGS ADIOSLIB_INT_LDADD ADIOSLIB_INT_LDFLAGS ADIOSLIB_INT_CFLAGS ADIOSLIB_INT_CPPFLAGS ADIOSLIB_SEQ_LDADD ADIOSLIB_SEQ_LDFLAGS ADIOSLIB_SEQ_CFLAGS ADIOSLIB_SEQ_CPPFLAGS ADIOSLIB_LDADD ADIOSLIB_LDFLAGS ADIOSLIB_CFLAGS ADIOSLIB_CPPFLAGS MACRODEFFLAG USE_PARALLEL_COMPILER_FALSE USE_PARALLEL_COMPILER_TRUE BUILD_WRITE_FALSE BUILD_WRITE_TRUE HAVE_DATATAP_FALSE HAVE_DATATAP_TRUE SKEL_TIMING SKEL_HAVE_ADIOS_TIMING SKEL_TIMING_FALSE SKEL_TIMING_TRUE RESEARCH_TRANSPORTS_FALSE RESEARCH_TRANSPORTS_TRUE HAVE_FLEXPATH_FALSE HAVE_FLEXPATH_TRUE FP_LDFLAGS FP_CPPFLAGS FP_LIBS DT_LDFLAGS DT_CPPFLAGS DT_LIBS PATHPROG CSH LUSTRE_CPPFLAGS LUSTRE_LDFLAGS LUSTRE_LIBS HAVE_LUSTRE_FALSE HAVE_LUSTRE_TRUE DMALLOC_CPPFLAGS DMALLOC_LDFLAGS DMALLOC_LIBS HAVE_DMALLOC_FALSE HAVE_DMALLOC_TRUE DIMES_CPPFLAGS DIMES_LDFLAGS DIMES_LIBS HAVE_DIMES_FALSE HAVE_DIMES_TRUE DATASPACES_CPPFLAGS DATASPACES_LDFLAGS DATASPACES_LIBS HAVE_DATASPACES_FALSE HAVE_DATASPACES_TRUE NSSI_BUILDDIR NSSI_SRCDIR NSSI_LDFLAGS NSSI_CPPFLAGS NSSI_CFLAGS NSSI_SERVER_LIBS NSSI_LIBS HAVE_NSSI_FALSE HAVE_NSSI_TRUE PABLO_CPPFLAGS PABLO_LDFLAGS PABLO_LIBS HAVE_PABLO_FALSE HAVE_PABLO_TRUE NC4PAR_CPPFLAGS NC4PAR_LDFLAGS NC4PAR_LIBS HAVE_NC4PAR_FALSE HAVE_NC4PAR_TRUE NETCDF_CPPFLAGS NETCDF_LDFLAGS NETCDF_LIBS HAVE_NETCDF_FALSE HAVE_NETCDF_TRUE PHDF5_CPPFLAGS PHDF5_LDFLAGS PHDF5_LIBS HAVE_PHDF5_FALSE HAVE_PHDF5_TRUE HDF5_CPPFLAGS HDF5_LDFLAGS HDF5_LIBS HAVE_HDF5_FALSE HAVE_HDF5_TRUE CRAY_UGNI_CPPFLAGS CRAY_UGNI_LDFLAGS CRAY_UGNI_LIBS HAVE_CRAY_UGNI_FALSE HAVE_CRAY_UGNI_TRUE CRAY_PMI_CPPFLAGS CRAY_PMI_LDFLAGS CRAY_PMI_LIBS HAVE_CRAY_PMI_FALSE HAVE_CRAY_PMI_TRUE PORTALS_RT_HEADER PORTALS_NAL_HEADER PORTALS_HEADER PORTALS_LIBS PORTALS_LDFLAGS PORTALS_CFLAGS PORTALS_CPPFLAGS NEED_DARWIN_SINGLE_MODULE_FALSE NEED_DARWIN_SINGLE_MODULE_TRUE HAVE_PORTALS_FALSE HAVE_PORTALS_TRUE INFINIBAND_LIBS INFINIBAND_LDFLAGS INFINIBAND_CFLAGS INFINIBAND_CPPFLAGS HAVE_INFINIBAND_FALSE HAVE_INFINIBAND_TRUE DCMF_LIBS DCMF_LDFLAGS DCMF_CPPFLAGS DCMF_CFLAGS HAVE_DCMF_FALSE HAVE_DCMF_TRUE MXML_CPPFLAGS MXML_LDFLAGS MXML_LIBS PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC HAVE_MXML_FALSE HAVE_MXML_TRUE CXXCPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL lt_ECHO RANLIB AR OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP SED host_os host_vendor host_cpu host build_os build_vendor build_cpu build LIBTOOL MPIFC FCLIBS ac_ct_FC FCFLAGS FC BUILD_FORTRAN_FALSE BUILD_FORTRAN_TRUE MPICXX MPILIBS MPICC HAVE_MPI_FALSE HAVE_MPI_TRUE am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX EGREP GREP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_maintainer_mode enable_dependency_tracking with_mpi enable_fortran enable_shared enable_static with_pic enable_fast_install with_gnu_ld enable_libtool_lock with_mxml with_dcmf with_infiniband with_portals with_cray_pmi with_cray_pmi_incdir with_cray_pmi_libdir with_cray_pmi_libs with_cray_ugni with_cray_ugni_incdir with_cray_ugni_libdir with_cray_ugni_libs with_hdf5 with_hdf5_incdir with_hdf5_libdir with_hdf5_libs with_phdf5 with_phdf5_incdir with_phdf5_libdir with_phdf5_libs with_netcdf with_netcdf_incdir with_netcdf_libdir with_netcdf_libs with_nc4par with_nc4par_incdir with_nc4par_libdir with_nc4par_libs with_pablo with_nssi with_dataspaces with_dataspaces_incdir with_dataspaces_libdir with_dimes with_dimes_incdir with_dimes_libdir with_dmalloc with_lustre with_datatap with_installed with_local with_ibpbio with_ffs with_gen_thread with_ptlpbio with_flexpath with_evpath with_atl with_dill with_cercs_env enable_research_transports enable_skel_timing enable_write ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC MPICC MPICXX FC FCFLAGS MPIFC CXXCPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # 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}' 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_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=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_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$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_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=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 ;; -*) { $as_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 && { $as_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. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_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'` { $as_echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 { (exit 1); exit 1; }; } ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. 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 # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { $as_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 $as_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 .` || { $as_echo "$as_me: error: working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { $as_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 -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | 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 .." { $as_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" || { $as_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 this package 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/PACKAGE] --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 cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-maintainer-mode disable make rules and dependencies not useful (and sometimes confusing) to the casual installer --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-fortran disable Fortran test programs in ADIOS. --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-research-transports Enable building the various research transports. Default is not to build these as they are not part of the base distribution. --enable-skel-timing Include the skel timing mechanism. By default this is not included --disable-write disable building the write methods in ADIOS. Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-mpi= --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] --with-mxml=DIR Location of Mini-XML library --with-dcmf=DIR Location of IBM DCMF --with-infiniband=DIR Location of Infiniband --with-portals=DIR Location of Portals (yes/no/path_to_portals) --with-cray-pmi= --with-cray-pmi-incdir= --with-cray-pmi-libdir= --with-cray-pmi-libs=, e.g. -lpmi --with-cray-ugni= --with-cray-ugni-incdir= --with-cray-ugni-libdir= --with-cray-ugni-libs=, e.g. -lugni --with-hdf5= --with-hdf5-incdir= --with-hdf5-libdir= --with-hdf5-libs=, e.g. -lhdf5 -lhdf5_hl -lz> --with-phdf5= --with-phdf5-incdir= --with-phdf5-libdir= --with-phdf5-libs=, e.g. -lhdf5 -lhdf5_hl -lz> --with-netcdf= --with-netcdf-incdir= --with-netcdf-libdir= --with-netcdf-libs=, e.g. -lnetcdf> --with-nc4par= --with-nc4par-incdir= --with-nc4par-libdir= --with-nc4par-libs=, e.g. -lnetcdf> --with-pablo=DIR Location of Pablo library --with-nssi=DIR Location of NSSI --with-dataspaces=DIR Build the DATASPACES transport method. Point to the DATASPACES installation. --with-dataspaces-incdir= --with-dataspaces-libdir= --with-dimes=DIR Build the DIMES transport method. Point to the DIMES installation. --with-dimes-incdir= --with-dimes-libdir= --with-dmalloc=DIR Location of dmalloc library --with-lustre=DIR Location of lustre library --with-datatap=DIR Location of DataTap --with-installed Don't use local copies of CERCS packages --with-local Use only local copies of CERCS packages --with-ibpbio=DIR Where to find ibpbio package --with-ffs=DIR Where to find ffs package --with-gen_thread=DIR Where to find gen_thread package --with-ptlpbio=DIR Where to find ptlpbio package --with-flexpath=DIR Location of FlexPath --with-evpath=DIR Where to find evpath package --with-atl=DIR Where to find atl package --with-dill=DIR Where to find dill package --with-cercs_env=DIR Where to find cercs_env package 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 MPICC MPI C compiler command MPICXX MPI C++ compiler command FC Fortran compiler command FCFLAGS Fortran compiler flags MPIFC MPI Fortran compiler command CXXCPP C++ preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _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" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && 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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_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 $as_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 configure generated by GNU Autoconf 2.63 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 $as_me, which was generated by GNU Autoconf 2.63. 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=. $as_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=`$as_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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) $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=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_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=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_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 && $as_echo "$as_me: caught signal $ac_signal" $as_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 an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then ac_site_file1=$CONFIG_SITE elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test -r "$ac_site_file"; then { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 $as_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 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 $as_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,) { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 $as_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 # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_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 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 $as_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 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 $as_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. ac_config_headers="$ac_config_headers config.h" am__api_version='1.11' # 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. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then $as_echo_n "(cached) " >&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 rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir 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 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 $as_echo "$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' { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} { (exit 1); exit 1; }; };; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} { (exit 1); exit 1; }; };; esac # 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". { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 $as_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 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 $as_echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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 $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # 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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then $as_echo_n "(cached) " >&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" $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 STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then $as_echo_n "(cached) " >&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" $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_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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" { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AWK+set}" = set; then $as_echo_n "(cached) " >&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" $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 AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:$LINENO: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_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 $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 $as_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=adios VERSION=1.5.0 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # 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"} # 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"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' { $as_echo "$as_me:$LINENO: checking whether to disable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=yes fi { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 $as_echo "$_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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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" $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 CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&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" $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_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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" $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 CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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" $as_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 { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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" $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 CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&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" $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_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 $as_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. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_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.out.dSYM 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. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_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 | *.dSYM | *.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 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } if test -z "$ac_file"; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 $as_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. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_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 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } rm -f -r a.out a.out.dSYM 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. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_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 | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if test "${ac_cv_objext+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_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 | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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) { $as_echo "$as_me:$LINENO: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:$LINENO: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$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= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&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 am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac 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 # 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. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; 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 ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj 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 $am__obj 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 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&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 $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 $as_echo "$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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 $as_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 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if test "${ac_cv_path_GREP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then 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 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_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 if test -z "$ac_cv_path_GREP"; then { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:$LINENO: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if test "${ac_cv_path_EGREP+set}" = set; then $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then 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 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_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 if test -z "$ac_cv_path_EGREP"; then { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 $as_echo "$as_me: error: no acceptable egrep 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 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5 $as_echo_n "checking for preprocessor stringizing operator... " >&6; } if test "${ac_cv_c_stringize+set}" = set; then $as_echo_n "(cached) " >&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 x(y) #y char *s = x(teststring); _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "#teststring" >/dev/null 2>&1; then ac_cv_c_stringize=no else ac_cv_c_stringize=yes fi rm -f conftest* fi { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5 $as_echo "$ac_cv_c_stringize" >&6; } if test $ac_cv_c_stringize = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_STRINGIZE 1 _ACEOF 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 -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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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" $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 CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&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" $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_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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" $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 CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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" $as_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 { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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" $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 CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&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" $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_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 $as_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. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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) { $as_echo "$as_me:$LINENO: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:$LINENO: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$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= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&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 am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac 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 # 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. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; 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 ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj 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 $am__obj 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 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$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 if test "x$CC" != xcc; then { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } else { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } fi set dummy $CC; ac_cc=`$as_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 $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_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 { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != 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=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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CXX+set}" = set; then $as_echo_n "(cached) " >&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" $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 CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:$LINENO: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then $as_echo_n "(cached) " >&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" $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_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$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= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&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 am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac 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 # 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. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; 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 ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj 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 $am__obj 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 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$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=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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 true; then HAVE_MPI_TRUE= HAVE_MPI_FALSE='#' else HAVE_MPI_TRUE='#' HAVE_MPI_FALSE= fi # Check whether --with-mpi was given. if test "${with_mpi+set}" = set; then withval=$with_mpi; MPI_DIR=$withval fi for ac_prog in mpicc hcc mpxlc_r mpxlc mpcc cmpicc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_MPICC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$MPICC"; then ac_cv_prog_MPICC="$MPICC" # 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_MPICC="$ac_prog" $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 MPICC=$ac_cv_prog_MPICC if test -n "$MPICC"; then { $as_echo "$as_me:$LINENO: result: $MPICC" >&5 $as_echo "$MPICC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$MPICC" && break done test -n "$MPICC" || MPICC="$CC" acx_mpi_save_CC="$CC" CC="$MPICC" if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init" >&5 $as_echo_n "checking for MPI_Init... " >&6; } if test "${ac_cv_func_MPI_Init+set}" = set; then $as_echo_n "(cached) " >&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 MPI_Init to an innocuous variant, in case declares MPI_Init. For example, HP-UX 11i declares gettimeofday. */ #define MPI_Init innocuous_MPI_Init /* System header to define __stub macros and hopefully few prototypes, which can conflict with char MPI_Init (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef MPI_Init /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char MPI_Init (); /* 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_MPI_Init || defined __stub___MPI_Init choke me #endif int main () { return MPI_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_MPI_Init=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_MPI_Init=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_MPI_Init" >&5 $as_echo "$ac_cv_func_MPI_Init" >&6; } if test "x$ac_cv_func_MPI_Init" = x""yes; then MPILIBS=" " fi fi if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; } if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpi $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char MPI_Init (); int main () { return MPI_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_mpi_MPI_Init=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_mpi_MPI_Init=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then MPILIBS="-lmpi" fi fi if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; } if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpich $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char MPI_Init (); int main () { return MPI_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_mpich_MPI_Init=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_mpich_MPI_Init=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then MPILIBS="-lmpich" fi fi if test x != x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for mpi.h" >&5 $as_echo_n "checking for mpi.h... " >&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 () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 MPILIBS="" { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi CC="$acx_mpi_save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x = x"$MPILIBS"; then { { $as_echo "$as_me:$LINENO: error: couldn't find mpi library for C" >&5 $as_echo "$as_me: error: couldn't find mpi library for C" >&2;} { (exit 1); exit 1; }; } : else cat >>confdefs.h <<\_ACEOF #define HAVE_MPI 1 _ACEOF : 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 if true; then HAVE_MPI_TRUE= HAVE_MPI_FALSE='#' else HAVE_MPI_TRUE='#' HAVE_MPI_FALSE= fi # Check whether --with-mpi was given. if test "${with_mpi+set}" = set; then withval=$with_mpi; MPI_DIR=$withval fi for ac_prog in mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_MPICXX+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$MPICXX"; then ac_cv_prog_MPICXX="$MPICXX" # 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_MPICXX="$ac_prog" $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 MPICXX=$ac_cv_prog_MPICXX if test -n "$MPICXX"; then { $as_echo "$as_me:$LINENO: result: $MPICXX" >&5 $as_echo "$MPICXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$MPICXX" && break done test -n "$MPICXX" || MPICXX="$CXX" acx_mpi_save_CXX="$CXX" CXX="$MPICXX" if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init" >&5 $as_echo_n "checking for MPI_Init... " >&6; } if test "${ac_cv_func_MPI_Init+set}" = set; then $as_echo_n "(cached) " >&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 MPI_Init to an innocuous variant, in case declares MPI_Init. For example, HP-UX 11i declares gettimeofday. */ #define MPI_Init innocuous_MPI_Init /* System header to define __stub macros and hopefully few prototypes, which can conflict with char MPI_Init (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef MPI_Init /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char MPI_Init (); /* 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_MPI_Init || defined __stub___MPI_Init choke me #endif int main () { return MPI_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_MPI_Init=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_MPI_Init=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_MPI_Init" >&5 $as_echo "$ac_cv_func_MPI_Init" >&6; } if test "x$ac_cv_func_MPI_Init" = x""yes; then MPILIBS=" " fi fi if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; } if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpi $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char MPI_Init (); int main () { return MPI_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_mpi_MPI_Init=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_mpi_MPI_Init=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then MPILIBS="-lmpi" fi fi if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; } if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpich $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char MPI_Init (); int main () { return MPI_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_mpich_MPI_Init=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_mpich_MPI_Init=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then MPILIBS="-lmpich" fi fi if test x != x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for mpi.h" >&5 $as_echo_n "checking for mpi.h... " >&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 () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 MPILIBS="" { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi CXX="$acx_mpi_save_CXX" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x = x"$MPILIBS"; then { { $as_echo "$as_me:$LINENO: error: couldn't find mpi library for C++" >&5 $as_echo "$as_me: error: couldn't find mpi library for C++" >&2;} { (exit 1); exit 1; }; } : else cat >>confdefs.h <<\_ACEOF #define HAVE_MPI 1 _ACEOF : fi # Check whether --enable-fortran was given. if test "${enable_fortran+set}" = set; then enableval=$enable_fortran; fi if test "x$enable_fortran" != "xno"; then BUILD_FORTRAN_TRUE= BUILD_FORTRAN_FALSE='#' else BUILD_FORTRAN_TRUE='#' BUILD_FORTRAN_FALSE= fi if test "x$enable_fortran" != "xno"; 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 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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_FC+set}" = set; then $as_echo_n "(cached) " >&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" $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 FC=$ac_cv_prog_FC if test -n "$FC"; then { $as_echo "$as_me:$LINENO: result: $FC" >&5 $as_echo "$FC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_FC+set}" = set; then $as_echo_n "(cached) " >&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" $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_FC=$ac_cv_prog_ac_ct_FC if test -n "$ac_ct_FC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 $as_echo "$ac_ct_FC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac FC=$ac_ct_FC fi fi # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_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 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } if test "${ac_cv_fc_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 $as_echo "$ac_cv_fc_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FCFLAGS+set} ac_save_FFLAGS=$FCFLAGS FCFLAGS= { $as_echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 $as_echo_n "checking whether $FC accepts -g... " >&6; } if test "${ac_cv_prog_fc_g+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 $as_echo "$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=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 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 { $as_echo "$as_me:$LINENO: checking whether $FC understands -c and -o together" >&5 $as_echo_n "checking whether $FC understands -c and -o together... " >&6; } if test "${ac_cv_prog_fc_c_o+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF # We test twice because some compilers refuse to overwrite an existing # `.o' file with `-o', although they will create one. ac_try='$FC $FCFLAGS -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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then ac_cv_prog_fc_c_o=yes else ac_cv_prog_fc_c_o=no fi rm -f conftest* fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_c_o" >&5 $as_echo "$ac_cv_prog_fc_c_o" >&6; } if test $ac_cv_prog_fc_c_o = no; then cat >>confdefs.h <<\_ACEOF #define FC_NO_MINUS_C_MINUS_O 1 _ACEOF 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 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 { $as_echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; } if test "${ac_cv_prog_fc_v+set}" = set; then $as_echo_n "(cached) " >&6 else 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF # Compile and link our simple test program by passing a flag (argument # 1 to this macro) to the Fortran compiler in order to get # "verbose" output that we can then parse for the Fortran linker # flags. ac_save_FFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS $ac_verb" eval "set x $ac_link" shift $as_echo "$as_me:$LINENO: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` $as_echo "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FFLAGS rm -rf conftest* # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where # /foo, /bar, and /baz are search directories for the Fortran linker. # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ac_fc_v_output="`echo $ac_fc_v_output | grep 'LPATH is:' | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" # FIXME: we keep getting bitten by quoted arguments; a more general fix # that detects unbalanced quotes in FLIBS should be implemented # and (ugh) tested at some point. case $ac_fc_v_output in # If we are using xlf then replace all the commas with spaces. *xlfentry*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; # Portland Group compiler has singly- or doubly-quoted -cmdline argument # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". *-cmdline\ * | *-ignore\ * | *-def\ *) ac_fc_v_output=`echo $ac_fc_v_output | sed "\ s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; # If we are using Cray Fortran then delete quotes. *cft90*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; esac # look for -l* and *.a constructs in the output for ac_arg in $ac_fc_v_output; do case $ac_arg in [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) ac_cv_prog_fc_v=$ac_verb break 2 ;; esac done done if test -z "$ac_cv_prog_fc_v"; then { $as_echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: WARNING: compilation failed" >&5 $as_echo "$as_me: WARNING: compilation failed" >&2;} fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5 $as_echo "$ac_cv_prog_fc_v" >&6; } { $as_echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5 $as_echo_n "checking for Fortran libraries of $FC... " >&6; } if test "${ac_cv_fc_libs+set}" = set; then $as_echo_n "(cached) " >&6 else if test "x$FCLIBS" != "x"; then ac_cv_fc_libs="$FCLIBS" # Let the user override the test. else cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF # Compile and link our simple test program by passing a flag (argument # 1 to this macro) to the Fortran compiler in order to get # "verbose" output that we can then parse for the Fortran linker # flags. ac_save_FFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" eval "set x $ac_link" shift $as_echo "$as_me:$LINENO: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` $as_echo "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FFLAGS rm -rf conftest* # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where # /foo, /bar, and /baz are search directories for the Fortran linker. # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ac_fc_v_output="`echo $ac_fc_v_output | grep 'LPATH is:' | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" # FIXME: we keep getting bitten by quoted arguments; a more general fix # that detects unbalanced quotes in FLIBS should be implemented # and (ugh) tested at some point. case $ac_fc_v_output in # If we are using xlf then replace all the commas with spaces. *xlfentry*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; # Portland Group compiler has singly- or doubly-quoted -cmdline argument # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". *-cmdline\ * | *-ignore\ * | *-def\ *) ac_fc_v_output=`echo $ac_fc_v_output | sed "\ s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; # If we are using Cray Fortran then delete quotes. *cft90*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; esac ac_cv_fc_libs= # Save positional arguments (if any) ac_save_positional="$@" set X $ac_fc_v_output while test $# != 1; do shift ac_arg=$1 case $ac_arg in [\\/]*.a | ?:[\\/]*.a) ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; -bI:*) ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_arg; do ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" done else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi fi ;; # Ignore these flags. -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*) ;; -lkernel32) test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; -[LRuYz]) # These flags, when seen by themselves, take an argument. # We remove the space between option and argument and re-iterate # unless we find an empty arg or a new option (starting with -) case $2 in "" | -*);; *) ac_arg="$ac_arg$2" shift; shift set X $ac_arg "$@" ;; esac ;; -YP,*) for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_j" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_arg="$ac_arg $ac_j" ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" fi done ;; -[lLR]*) ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; # Ignore everything else. esac done # restore positional arguments set X $ac_save_positional; shift # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, # then we insist that the "run path" must be an absolute path (i.e. it # must begin with a "/"). case `(uname -sr) 2>/dev/null` in "SunOS 5"*) ac_ld_run_path=`$as_echo "$ac_fc_v_output" | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` test "x$ac_ld_run_path" != x && if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_ld_run_path; do ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" done else ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" fi ;; esac fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5 $as_echo "$ac_cv_fc_libs" >&6; } FCLIBS="$ac_cv_fc_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 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 { $as_echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; } if test "${ac_cv_fc_dummy_main+set}" = set; then $as_echo_n "(cached) " >&6 else ac_fc_dm_save_LIBS=$LIBS LIBS="$LIBS $FCLIBS" ac_fortran_dm_var=FC_DUMMY_MAIN ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # First, try linking without a dummy main: cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_fortran_dummy_main=none else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_fortran_dummy_main=unknown fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test $ac_cv_fortran_dummy_main = unknown; then for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #define $ac_fortran_dm_var $ac_func #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_fortran_dummy_main=$ac_func; break else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext done 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_cv_fc_dummy_main=$ac_cv_fortran_dummy_main rm -rf conftest* LIBS=$ac_fc_dm_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_dummy_main" >&5 $as_echo "$ac_cv_fc_dummy_main" >&6; } FC_DUMMY_MAIN=$ac_cv_fc_dummy_main if test "$FC_DUMMY_MAIN" != unknown; then if test $FC_DUMMY_MAIN != none; then cat >>confdefs.h <<_ACEOF #define FC_DUMMY_MAIN $FC_DUMMY_MAIN _ACEOF if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then cat >>confdefs.h <<\_ACEOF #define FC_DUMMY_MAIN_EQ_F77 1 _ACEOF fi fi else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails See \`config.log' for more details." >&5 $as_echo "$as_me: error: linking to Fortran libraries from C fails See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } 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 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 { $as_echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 $as_echo_n "checking for Fortran name-mangling scheme... " >&6; } if test "${ac_cv_fc_mangling+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF subroutine foobar() return end subroutine foo_bar() return 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 mv conftest.$ac_objext cfortran_test.$ac_objext ac_save_LIBS=$LIBS LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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_success=no for ac_foobar in foobar FOOBAR; do for ac_underscore in "" "_"; do ac_func="$ac_foobar$ac_underscore" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because 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 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_success=yes; break 2 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext done done 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 "$ac_success" = "yes"; then case $ac_foobar in foobar) ac_case=lower ac_foo_bar=foo_bar ;; FOOBAR) ac_case=upper ac_foo_bar=FOO_BAR ;; 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 ac_success_extra=no for ac_extra in "" "_"; do ac_func="$ac_foo_bar$ac_underscore$ac_extra" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because 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 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_success_extra=yes; break else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext done 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 "$ac_success_extra" = "yes"; then ac_cv_fc_mangling="$ac_case case" if test -z "$ac_underscore"; then ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore" else ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore" fi if test -z "$ac_extra"; then ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore" else ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore" fi else ac_cv_fc_mangling="unknown" fi else ac_cv_fc_mangling="unknown" fi LIBS=$ac_save_LIBS rm -rf conftest* rm -f cfortran_test* else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compile a simple Fortran program See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compile a simple Fortran program See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5 $as_echo "$ac_cv_fc_mangling" >&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 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 case $ac_cv_fc_mangling in "lower case, no underscore, no extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) name _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) name _ACEOF ;; "lower case, no underscore, extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) name _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) name ## _ _ACEOF ;; "lower case, underscore, no extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) name ## _ _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) name ## _ _ACEOF ;; "lower case, underscore, extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) name ## _ _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) name ## __ _ACEOF ;; "upper case, no underscore, no extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) NAME _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) NAME _ACEOF ;; "upper case, no underscore, extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) NAME _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) NAME ## _ _ACEOF ;; "upper case, underscore, no extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) NAME ## _ _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) NAME ## _ _ACEOF ;; "upper case, underscore, extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) NAME ## _ _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) NAME ## __ _ACEOF ;; *) { $as_echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} ;; esac 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 F77=$FC 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 true; then HAVE_MPI_TRUE= HAVE_MPI_FALSE='#' else HAVE_MPI_TRUE='#' HAVE_MPI_FALSE= fi # Check whether --with-mpi was given. if test "${with_mpi+set}" = set; then withval=$with_mpi; MPI_DIR=$withval fi for ac_prog in mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_MPIFC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$MPIFC"; then ac_cv_prog_MPIFC="$MPIFC" # 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_MPIFC="$ac_prog" $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 MPIFC=$ac_cv_prog_MPIFC if test -n "$MPIFC"; then { $as_echo "$as_me:$LINENO: result: $MPIFC" >&5 $as_echo "$MPIFC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$MPIFC" && break done test -n "$MPIFC" || MPIFC="$FC" acx_mpi_save_FC="$FC" FC="$MPIFC" if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init" >&5 $as_echo_n "checking for MPI_Init... " >&6; } cat >conftest.$ac_ext <<_ACEOF program main call MPI_Init 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then MPILIBS=" " { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init in -lfmpi" >&5 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; } if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfmpi $LIBS" cat >conftest.$ac_ext <<_ACEOF program main call MPI_Init 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_fmpi_MPI_Init=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_fmpi_MPI_Init=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fmpi_MPI_Init" >&5 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; } if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then MPILIBS="-lfmpi" fi fi if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init in -lmpichf90" >&5 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; } if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpichf90 $LIBS" cat >conftest.$ac_ext <<_ACEOF program main call MPI_Init 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_mpichf90_MPI_Init=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_mpichf90_MPI_Init=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpichf90_MPI_Init" >&5 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; } if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then MPILIBS="-lmpichf90" fi fi if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; } if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpi $LIBS" cat >conftest.$ac_ext <<_ACEOF program main call MPI_Init 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_mpi_MPI_Init=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_mpi_MPI_Init=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then MPILIBS="-lmpi" fi fi if test x = x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; } if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpich $LIBS" cat >conftest.$ac_ext <<_ACEOF program main call MPI_Init 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_mpich_MPI_Init=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_mpich_MPI_Init=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then MPILIBS="-lmpich" fi fi if test x != x"$MPILIBS"; then { $as_echo "$as_me:$LINENO: checking for mpif.h" >&5 $as_echo_n "checking for mpif.h... " >&6; } cat >conftest.$ac_ext <<_ACEOF program main include 'mpif.h' 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 MPILIBS="" { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi FC="$acx_mpi_save_FC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x = x"$MPILIBS"; then { { $as_echo "$as_me:$LINENO: error: couldn't find mpi library for Fortran" >&5 $as_echo "$as_me: error: couldn't find mpi library for Fortran" >&2;} { (exit 1); exit 1; }; } : else cat >>confdefs.h <<\_ACEOF #define HAVE_MPI 1 _ACEOF : 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 case `pwd` in *\ * | *\ *) { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.2.6b' macro_revision='1.3017' ltmain="$ac_aux_dir/ltmain.sh" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { $as_echo "$as_me:$LINENO: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if test "${ac_cv_build+set}" = set; then $as_echo_n "(cached) " >&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 && { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 $as_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` || { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 $as_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 { $as_echo "$as_me:$LINENO: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if test "${ac_cv_host+set}" = set; then $as_echo_n "(cached) " >&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` || { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 $as_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 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if test "${ac_cv_path_SED+set}" = set; then $as_echo_n "(cached) " >&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" 2>/dev/null | sed 99q >conftest.sed $as_unset ac_script || ac_script= if test -z "$SED"; then 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 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_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 if test -z "$ac_cv_path_SED"; then { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if test "${ac_cv_path_FGREP+set}" = set; then $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then 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 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_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 if test -z "$ac_cv_path_FGREP"; then { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 $as_echo "$as_me: error: no acceptable fgrep 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 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" 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. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&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 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if test "${lt_cv_path_LD+set}" = set; then $as_echo_n "(cached) " >&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 $as_echo "$LD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test "${lt_cv_path_NM+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_DUMPBIN+set}" = set; then $as_echo_n "(cached) " >&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" $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 DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then $as_echo_n "(cached) " >&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" $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_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if test "${lt_cv_nm_interface+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:8760: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:8763: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:8766: 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 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:$LINENO: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&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 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OBJDUMP+set}" = set; then $as_echo_n "(cached) " >&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" $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 OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then $as_echo_n "(cached) " >&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" $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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then $as_echo_n "(cached) " >&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" $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 AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:$LINENO: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then $as_echo_n "(cached) " >&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" $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_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then $as_echo_n "(cached) " >&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" $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 STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then $as_echo_n "(cached) " >&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" $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_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then $as_echo_n "(cached) " >&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" $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 RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then $as_echo_n "(cached) " >&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" $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_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then $as_echo_n "(cached) " >&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=$? $as_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=$? $as_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=$? $as_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 { $as_echo "$as_me:$LINENO: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "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=$? $as_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 9971 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_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=$? $as_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" { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then $as_echo_n "(cached) " >&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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_cv_cc_needs_belf=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -rf conftest.dSYM 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 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$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=$? $as_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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_DSYMUTIL+set}" = set; then $as_echo_n "(cached) " >&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" $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 DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then $as_echo_n "(cached) " >&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" $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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_NMEDIT+set}" = set; then $as_echo_n "(cached) " >&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" $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 NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then $as_echo_n "(cached) " >&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" $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_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_LIPO+set}" = set; then $as_echo_n "(cached) " >&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" $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 LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then $as_echo_n "(cached) " >&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" $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_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OTOOL+set}" = set; then $as_echo_n "(cached) " >&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" $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 OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then $as_echo_n "(cached) " >&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" $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_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OTOOL64+set}" = set; then $as_echo_n "(cached) " >&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" $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 OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then $as_echo_n "(cached) " >&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" $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_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if test "${lt_cv_apple_cc_single_mod+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if test "${lt_cv_ld_exported_symbols_list+set}" = set; then $as_echo_n "(cached) " >&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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_cv_ld_exported_symbols_list=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_ld_exported_symbols_list=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then $as_echo_n "(cached) " >&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 #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # 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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_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 $as_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 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_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 $as_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 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CXX+set}" = set; then $as_echo_n "(cached) " >&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" $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 CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:$LINENO: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then $as_echo_n "(cached) " >&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" $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_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&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 FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then $as_echo_n "(cached) " >&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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$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= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&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 am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac 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 # 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. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; 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 ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj 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 $am__obj 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 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 $as_echo "$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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} _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=${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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_FC+set}" = set; then $as_echo_n "(cached) " >&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" $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 FC=$ac_cv_prog_FC if test -n "$FC"; then { $as_echo "$as_me:$LINENO: result: $FC" >&5 $as_echo "$FC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_FC+set}" = set; then $as_echo_n "(cached) " >&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" $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_FC=$ac_cv_prog_ac_ct_FC if test -n "$ac_ct_FC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 $as_echo "$ac_ct_FC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac FC=$ac_ct_FC fi fi # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_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 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } if test "${ac_cv_fc_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 $as_echo "$ac_cv_fc_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FCFLAGS+set} ac_save_FFLAGS=$FCFLAGS FCFLAGS= { $as_echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 $as_echo_n "checking whether $FC accepts -g... " >&6; } if test "${ac_cv_prog_fc_g+set}" = set; then $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 $as_echo "$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=no enable_win32_dll=no # 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=yes fi # 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 { $as_echo "$as_me:$LINENO: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if test "${lt_cv_objdir+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:$LINENO: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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* if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then $as_echo_n "(cached) " >&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:12648: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:12652: \$? = $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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$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= { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&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\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # 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='' ;; 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 -DPIC" ;; esac { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 $as_echo "$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test "${lt_cv_prog_compiler_pic_works+set}" = set; then $as_echo_n "(cached) " >&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 -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:12987: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:12991: \$? = $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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$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\" { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then $as_echo_n "(cached) " >&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:13092: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:13096: \$? = $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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then $as_echo_n "(cached) " >&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:13147: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:13151: \$? = $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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&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 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_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 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 $as_echo "$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. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&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=$? $as_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=$? $as_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* { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 $as_echo "$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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 # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # 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="$sys_lib_dlsearch_path_spec $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 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&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 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then $as_echo_n "(cached) " >&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 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dl_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""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 ;; *) { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 $as_echo_n "checking for shl_load... " >&6; } if test "${ac_cv_func_shl_load+set}" = set; then $as_echo_n "(cached) " >&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 #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_shl_load=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 $as_echo "$ac_cv_func_shl_load" >&6; } if test "x$ac_cv_func_shl_load" = x""yes; then lt_cv_dlopen="shl_load" else { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then $as_echo_n "(cached) " >&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 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dld_shl_load=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = x""yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 $as_echo_n "checking for dlopen... " >&6; } if test "${ac_cv_func_dlopen+set}" = set; then $as_echo_n "(cached) " >&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 #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 $as_echo "$ac_cv_func_dlopen" >&6; } if test "x$ac_cv_func_dlopen" = x""yes; then lt_cv_dlopen="dlopen" else { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then $as_echo_n "(cached) " >&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 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dl_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then $as_echo_n "(cached) " >&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 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_svld_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = x""yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then $as_echo_n "(cached) " >&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 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dld_dld_link=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = x""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" { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if test "${lt_cv_dlopen_self+set}" = set; then $as_echo_n "(cached) " >&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 16030 "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=$? $as_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 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 $as_echo "$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\" { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then $as_echo_n "(cached) " >&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 16126 "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=$? $as_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 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$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= { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&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" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&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 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 $as_echo "$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. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&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 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if test "${lt_cv_path_LD+set}" = set; then $as_echo_n "(cached) " >&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 $as_echo "$LD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 $as_echo "$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=$? $as_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= { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&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 -DPIC" ;; esac { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then $as_echo_n "(cached) " >&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 -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:18162: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:18166: \$? = $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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$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\" { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then $as_echo_n "(cached) " >&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:18261: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:18265: \$? = $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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then $as_echo_n "(cached) " >&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:18313: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:18317: \$? = $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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&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 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_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 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&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]_.*' { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 $as_echo "$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. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&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=$? $as_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=$? $as_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* { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 $as_echo "$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&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. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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 # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # 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="$sys_lib_dlsearch_path_spec $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 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&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 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 $as_echo "$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=${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 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&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 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 $as_echo "$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=$? $as_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= { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&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\ C*) # Sun C 5.9 lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' lt_prog_compiler_wl_FC='-Wl,' ;; *Sun\ F*) # 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='' ;; 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" ;; esac { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5 $as_echo "$lt_prog_compiler_pic_FC" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_FC"; then { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then $as_echo_n "(cached) " >&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" # 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:19865: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:19869: \$? = $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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_FC" >&5 $as_echo "$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\" { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_FC" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then $as_echo_n "(cached) " >&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:19964: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:19968: \$? = $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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then $as_echo_n "(cached) " >&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:20016: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:20020: \$? = $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 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&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 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_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 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5 $as_echo "$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. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&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=$? $as_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=$? $as_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* { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5 $as_echo "$archive_cmds_need_lc_FC" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM 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 # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # 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="$sys_lib_dlsearch_path_spec $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 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&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 { $as_echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5 $as_echo "$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: #LT_INIT([disable-shared]) { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 $as_echo_n "checking for library containing nanosleep... " >&6; } if test "${ac_cv_search_nanosleep+set}" = set; then $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char nanosleep (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return nanosleep (); ; return 0; } _ACEOF for ac_lib in '' rt; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_search_nanosleep=$ac_res else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_nanosleep+set}" = set; then break fi done if test "${ac_cv_search_nanosleep+set}" = set; then : else ac_cv_search_nanosleep=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 $as_echo "$ac_cv_search_nanosleep" >&6; } ac_res=$ac_cv_search_nanosleep if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi for ac_func in nanosleep strncpy strerror gettimeofday do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&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 #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu acx_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on True64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_join (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return pthread_join (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then acx_pthread_ok=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 $as_echo "$acx_pthread_ok" >&6; } if test x"$acx_pthread_ok" = xno; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items starting with a "-" are # C compiler flags, and other items are library names, except for "none" # which indicates that we try without any flags at all. #acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt" acx_pthread_flags="pthreads none -Kthread -kthread lthread pthread -pthread -pthreads -mthreads pthread --thread-safe -mt" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) # -pthreads: Solaris/gcc # -mthreads: Mingw32/gcc, Lynx/gcc # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads too; # also defines -D_REENTRANT) # pthread: Linux, etcetera # --thread-safe: KAI C++ case "${host_cpu}-${host_os}" in *solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (We need to link with -pthread or # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather # a function called by this macro, so we could check for that, but # who knows whether they'll stub that too in a future libc.) So, # we'll just look for -pthreads and -lpthread first: acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" ;; esac if test x"$acx_pthread_ok" = xno; then for flag in $acx_pthread_flags; do case $flag in none) { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 $as_echo_n "checking whether pthreads work without any flags... " >&6; } ;; -*) { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 $as_echo_n "checking whether pthreads work with $flag... " >&6; } PTHREAD_CFLAGS="$flag" ;; *) { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } PTHREAD_LIBS="-l$flag" ;; esac save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include void *start(void *arg){return NULL;} #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { pthread_attr_t attr; pthread_t th; pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(NULL, NULL); pthread_create(&th,&attr,start,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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then acx_pthread_ok=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 $as_echo "$acx_pthread_ok" >&6; } if test "x$acx_pthread_ok" = xyes; then break; fi PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Various other checks: if test "x$acx_pthread_ok" = xyes; then save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Detect AIX lossage: threads are created detached by default # and the JOINABLE attribute has a nonstandard name (UNDETACHED). { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 $as_echo_n "checking for joinable pthread attribute... " >&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 FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int attr; attr=PTHREAD_CREATE_JOINABLE; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ok=PTHREAD_CREATE_JOINABLE else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ok=unknown fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test x"$ok" = xunknown; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int attr; attr=PTHREAD_CREATE_UNDETACHED; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ok=PTHREAD_CREATE_UNDETACHED else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ok=unknown fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then cat >>confdefs.h <<\_ACEOF #define PTHREAD_CREATE_JOINABLE $ok _ACEOF fi { $as_echo "$as_me:$LINENO: result: ${ok}" >&5 $as_echo "${ok}" >&6; } if test x"$ok" = xunknown; then { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;} fi { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } flag=no case "${host_cpu}-${host_os}" in *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; esac { $as_echo "$as_me:$LINENO: result: ${flag}" >&5 $as_echo "${flag}" >&6; } if test "x$flag" != xno; then PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" # More AIX lossage: must compile with cc_r # Extract the first word of "cc_r", so it can be a program name with args. set dummy cc_r; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$PTHREAD_CC"; then ac_cv_prog_PTHREAD_CC="$PTHREAD_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_PTHREAD_CC="cc_r" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" fi fi PTHREAD_CC=$ac_cv_prog_PTHREAD_CC if test -n "$PTHREAD_CC"; then { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 $as_echo "$PTHREAD_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi else PTHREAD_CC="$CC" fi if test x"$acx_pthread_ok" = xyes; then cat >>confdefs.h <<\_ACEOF #define HAVE_PTHREAD 1 _ACEOF fi # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_pthread_ok" = xyes; then cat >>confdefs.h <<\_ACEOF #define HAVE_PTHREAD 1 _ACEOF : else acx_pthread_ok=no 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 true; then HAVE_MXML_TRUE= HAVE_MXML_FALSE='#' else HAVE_MXML_TRUE='#' HAVE_MXML_FALSE= fi # Check whether --with-mxml was given. if test "${with_mxml+set}" = set; then withval=$with_mxml; MXML_LDFLAGS="-L$withval/lib"; MXML_CPPFLAGS="-I$withval/include"; fi save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS -lmxml" if test -n "$MXML_LDFLAGS"; then LDFLAGS="$LDFLAGS $MXML_LDFLAGS" elif test -n "$MXML_LIB"; then LDFLAGS="$LDFLAGS $MXML_LIB" MXML_LDFLAGS="$MXML_LIB" fi if test -n "$MXML_CPPFLAGS"; then CPPFLAGS="$CPPFLAGS $MXML_CPPFLAGS" elif test -n "$MXML_INC"; then CPPFLAGS="$CPPFLAGS $MXML_INC" MXML_CPPFLAGS="$MXML_INC" fi if test -z "${HAVE_MXML_TRUE}"; then for ac_header in mxml.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else if false; then HAVE_MXML_TRUE= HAVE_MXML_FALSE='#' else HAVE_MXML_TRUE='#' HAVE_MXML_FALSE= fi fi done fi if test -z "${HAVE_MXML_TRUE}"; then # Check for the Mini-XML library and headers { $as_echo "$as_me:$LINENO: checking if mxml code can be linked" >&5 $as_echo_n "checking if mxml code can be linked... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "mxml.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { mxml_node_t * n; char *buffer; char *value; n = mxmlLoadString (0, buffer, MXML_TEXT_CALLBACK); mxmlWalkNext (n, n, MXML_DESCEND); value = mxmlElementGetAttr (n, "value"); mxmlRelease (n); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then MXML_LIBS="-lmxml" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_MXML_TRUE= HAVE_MXML_FALSE='#' else HAVE_MXML_TRUE='#' HAVE_MXML_FALSE= fi { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "${HAVE_MXML_FALSE}"; then # Check for the Mini-XML library and headers LDFLAGS="$LDFLAGS $PTHREAD_LDFLAGS $PTHREAD_LIBS" { $as_echo "$as_me:$LINENO: checking if mxml code can be linked using pthreads" >&5 $as_echo_n "checking if mxml code can be linked using pthreads... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "mxml.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { mxml_node_t * n; char *buffer; char *value; n = mxmlLoadString (0, buffer, MXML_TEXT_CALLBACK); mxmlWalkNext (n, n, MXML_DESCEND); value = mxmlElementGetAttr (n, "value"); mxmlRelease (n); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then MXML_LDFLAGS="$MXML_LDFLAGS $PTHREAD_LDFLAGS" MXML_LIBS="-lmxml $PTHREAD_LIBS" if true; then HAVE_MXML_TRUE= HAVE_MXML_FALSE='#' else HAVE_MXML_TRUE='#' HAVE_MXML_FALSE= fi { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_MXML_TRUE= HAVE_MXML_FALSE='#' else HAVE_MXML_TRUE='#' HAVE_MXML_FALSE= fi { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_MXML_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_MXML 1 _ACEOF : else : fi ac_dcmf_lib_ok=no DCMF_CFLAGS="" DCMF_CPPFLAGS="" DCMF_LDFLAGS="" DCMF_LIBS="" { $as_echo "$as_me:$LINENO: === checking for IBM DCMF ===" >&5 $as_echo "$as_me: === checking for IBM DCMF ===" >&6;} if true; then HAVE_DCMF_TRUE= HAVE_DCMF_FALSE='#' else HAVE_DCMF_TRUE='#' HAVE_DCMF_FALSE= fi # Check whether --with-dcmf was given. if test "${with_dcmf+set}" = set; then withval=$with_dcmf; DCMF_CPPFLAGS="-I$withval/arch/include -I$withval/comm/include"; DCMF_LDFLAGS="-L$withval/comm/lib -L$withval/runtime/SPI"; DCMF_LIBS="-ldcmf.cnk -ldcmfcoll.cnk -lpthread -lrt -lSPI.cna"; fi save_CPPFLAGS="$CPPFLAGS" save_LDFLAGS="$LDFLAGS" save_LIBS="$LIBS" CPPFLAGS="$CPPFLAGS $DCMF_CPPFLAGS" LDFLAGS="$LDFLAGS $DCMF_LDFLAGS" LIBS="$LIBS $DCMF_LIBS" if test -z "${HAVE_DCMF_TRUE}"; then for ac_header in dcmf.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else if false; then HAVE_DCMF_TRUE= HAVE_DCMF_FALSE='#' else HAVE_DCMF_TRUE='#' HAVE_DCMF_FALSE= fi fi done fi if test -z "${HAVE_DCMF_TRUE}"; then { $as_echo "$as_me:$LINENO: checking if dcmf code can be linked" >&5 $as_echo_n "checking if dcmf code can be linked... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "dcmf.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { unsigned ret; ret = DCMF_Messager_initialize(); ret = DCMF_Messager_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then DCMF_LIBS="-ldcmf.cnk -ldcmfcoll.cnk -lpthread -lrt -lSPI.cna" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_DCMF_TRUE= HAVE_DCMF_FALSE='#' else HAVE_DCMF_TRUE='#' HAVE_DCMF_FALSE= fi { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" if test -z "${HAVE_DCMF_TRUE}"; then ac_dcmf_lib_ok=yes cat >>confdefs.h <<\_ACEOF #define HAVE_DCMF 1 _ACEOF : else : 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_infiniband_hdr_ok=no ac_infiniband_lib_ok=no ac_with_infiniband=no INFINIBAND_CFLAGS="" INFINIBAND_CPPFLAGS="" INFINIBAND_LDFLAGS="" INFINIBAND_LIBS="" # Check whether --with-infiniband was given. if test "${with_infiniband+set}" = set; then withval=$with_infiniband; ac_with_infiniband=yes; fi if test x"$withval" = xno; then ac_with_infiniband=no; elif test x"$withval" = xyes -o x"$withval" = x; then INFINIBAND_CPPFLAGS=""; INFINIBAND_LDFLAGS=""; ac_with_infiniband=yes; else INFINIBAND_CPPFLAGS="-I$withval/include"; INFINIBAND_LDFLAGS="-L$withval/lib64 -L$withval/lib"; ac_with_infiniband=yes; fi if test x$ac_with_infiniband = xyes; then HAVE_INFINIBAND_TRUE= HAVE_INFINIBAND_FALSE='#' else HAVE_INFINIBAND_TRUE='#' HAVE_INFINIBAND_FALSE= fi if test x"$ac_with_infiniband" = xyes; then save_CPPFLAGS=$CPPFLAGS; save_LDFLAGS=$LDFLAGS; CPPFLAGS="$CPPFLAGS $INFINIBAND_CPPFLAGS" LDFLAGS="$LDFLAGS $INFINIBAND_LDFLAGS" if test x"$ac_infiniband_hdr_ok" = xno; then if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then { $as_echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 $as_echo_n "checking for infiniband/verbs.h... " >&6; } if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then $as_echo_n "(cached) " >&6 fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 $as_echo "$ac_cv_header_infiniband_verbs_h" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5 $as_echo_n "checking infiniband/verbs.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5 $as_echo_n "checking infiniband/verbs.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 $as_echo_n "checking for infiniband/verbs.h... " >&6; } if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_header_infiniband_verbs_h=$ac_header_preproc fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 $as_echo "$ac_cv_header_infiniband_verbs_h" >&6; } fi if test "x$ac_cv_header_infiniband_verbs_h" = x""yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_IBVERBS_H 1 _ACEOF ac_infiniband_hdr_ok=yes; INFINIBAND_CFLAGS="$INFINIBAND_CFLAGS $EXTRA_CFLAGS"; INFINIBAND_CPPFLAGS="$INFINIBAND_CPPFLAGS $EXTRA_CFLAGS" else ac_infiniband_hdr_ok=no fi fi if test x"$ac_infiniband_hdr_ok" = xno; then CPPFLAGS=$save_CPPFLAGS fi if test x"$ac_infiniband_lib_ok" = xno -a x$ac_infiniband_hdr_ok = xyes; then save_LIBS=$LIBS; LIBS="" { $as_echo "$as_me:$LINENO: checking for library containing ibv_alloc_pd" >&5 $as_echo_n "checking for library containing ibv_alloc_pd... " >&6; } if test "${ac_cv_search_ibv_alloc_pd+set}" = set; then $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because 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_alloc_pd (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return ibv_alloc_pd (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $save_LIBS $PTHREAD_LDFLAGS $PTHREAD_LIBS $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_search_ibv_alloc_pd=$ac_res else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_ibv_alloc_pd+set}" = set; then break fi done if test "${ac_cv_search_ibv_alloc_pd+set}" = set; then : else ac_cv_search_ibv_alloc_pd=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ibv_alloc_pd" >&5 $as_echo "$ac_cv_search_ibv_alloc_pd" >&6; } ac_res=$ac_cv_search_ibv_alloc_pd if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_infiniband_lib_ok=yes else ac_infiniband_lib_ok=no fi if test -n $LIBS; then INFINIBAND_LIBS="$INFINIBAND_LIBS $LIBS"; fi LIBS=$save_LIBS; fi if test x"$ac_infiniband_hdr_ok" = xno -o x$ac_infiniband_lib_ok = xno; then if false; then HAVE_INFINIBAND_TRUE= HAVE_INFINIBAND_FALSE='#' else HAVE_INFINIBAND_TRUE='#' HAVE_INFINIBAND_FALSE= fi INFINIBAND_CFLAGS="" INFINIBAND_CPPFLAGS="" INFINIBAND_LDFLAGS="" INFINIBAND_LIBS="" ac_with_infiniband=no else if true; then HAVE_INFINIBAND_TRUE= HAVE_INFINIBAND_FALSE='#' else HAVE_INFINIBAND_TRUE='#' HAVE_INFINIBAND_FALSE= fi fi CPPFLAGS=$save_CPPFLAGS; LDFLAGS=$save_LDFLAGS; # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$ac_infiniband_lib_ok" = xyes; then cat >>confdefs.h <<\_ACEOF #define HAVE_INFINIBAND 1 _ACEOF : else : 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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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_portals_hdr_ok=no ac_portals_lib_ok=no ac_with_portals=no if true; then HAVE_PORTALS_TRUE= HAVE_PORTALS_FALSE='#' else HAVE_PORTALS_TRUE='#' HAVE_PORTALS_FALSE= fi if false; then NEED_DARWIN_SINGLE_MODULE_TRUE= NEED_DARWIN_SINGLE_MODULE_FALSE='#' else NEED_DARWIN_SINGLE_MODULE_TRUE='#' NEED_DARWIN_SINGLE_MODULE_FALSE= fi PORTALS_CFLAGS="" PORTALS_CPPFLAGS="" PORTALS_LDFLAGS="" PORTALS_LIBS="" # Check whether --with-portals was given. if test "${with_portals+set}" = set; then withval=$with_portals; ac_with_portals=yes; fi if test x"$withval" = xno; then if false; then HAVE_PORTALS_TRUE= HAVE_PORTALS_FALSE='#' else HAVE_PORTALS_TRUE='#' HAVE_PORTALS_FALSE= fi ac_with_portals=no; elif test x"$withval" = xyes -o x"$withval" = x; then PORTALS_LDFLAGS=""; PORTALS_CPPFLAGS=""; ac_with_portals=yes; else PORTALS_LDFLAGS="-L$withval/lib"; PORTALS_CPPFLAGS="-I$withval/include"; ac_with_portals=yes; fi if test x"$ac_with_portals" = xyes; then save_CPPFLAGS=$CPPFLAGS; CPPFLAGS="$CPPFLAGS $PORTALS_CPPFLAGS" LDFLAGS="$LDFLAGS $PORTALS_LDFLAGS" if test x"$ac_portals_hdr_ok" = xno; then if test "${ac_cv_header_portals3_h+set}" = set; then { $as_echo "$as_me:$LINENO: checking for portals3.h" >&5 $as_echo_n "checking for portals3.h... " >&6; } if test "${ac_cv_header_portals3_h+set}" = set; then $as_echo_n "(cached) " >&6 fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_portals3_h" >&5 $as_echo "$ac_cv_header_portals3_h" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking portals3.h usability" >&5 $as_echo_n "checking portals3.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking portals3.h presence" >&5 $as_echo_n "checking portals3.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: portals3.h: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: portals3.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals3.h: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: portals3.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: portals3.h: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: portals3.h: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals3.h: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: portals3.h: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals3.h: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: portals3.h: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals3.h: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: portals3.h: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals3.h: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: portals3.h: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals3.h: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: portals3.h: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for portals3.h" >&5 $as_echo_n "checking for portals3.h... " >&6; } if test "${ac_cv_header_portals3_h+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_header_portals3_h=$ac_header_preproc fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_portals3_h" >&5 $as_echo "$ac_cv_header_portals3_h" >&6; } fi if test "x$ac_cv_header_portals3_h" = x""yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_PORTALS3_H 1 _ACEOF ac_portals_hdr_ok=yes; PORTALS_CFLAGS="$PORTALS_CFLAGS $EXTRA_CFLAGS"; PORTALS_CPPFLAGS="$PORTALS_CPPFLAGS $EXTRA_CFLAGS" else ac_portals_hdr_ok=no fi fi if test x"$ac_portals_hdr_ok" = xno; then if test "${ac_cv_header_portals_portals3_h+set}" = set; then { $as_echo "$as_me:$LINENO: checking for portals/portals3.h" >&5 $as_echo_n "checking for portals/portals3.h... " >&6; } if test "${ac_cv_header_portals_portals3_h+set}" = set; then $as_echo_n "(cached) " >&6 fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_portals_portals3_h" >&5 $as_echo "$ac_cv_header_portals_portals3_h" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking portals/portals3.h usability" >&5 $as_echo_n "checking portals/portals3.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking portals/portals3.h presence" >&5 $as_echo_n "checking portals/portals3.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: portals/portals3.h: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: portals/portals3.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals/portals3.h: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: portals/portals3.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: portals/portals3.h: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: portals/portals3.h: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals/portals3.h: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: portals/portals3.h: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals/portals3.h: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: portals/portals3.h: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals/portals3.h: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: portals/portals3.h: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals/portals3.h: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: portals/portals3.h: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: portals/portals3.h: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: portals/portals3.h: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for portals/portals3.h" >&5 $as_echo_n "checking for portals/portals3.h... " >&6; } if test "${ac_cv_header_portals_portals3_h+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_header_portals_portals3_h=$ac_header_preproc fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_portals_portals3_h" >&5 $as_echo "$ac_cv_header_portals_portals3_h" >&6; } fi if test "x$ac_cv_header_portals_portals3_h" = x""yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_PORTALS_PORTALS3_H 1 _ACEOF ac_portals_hdr_ok=yes; PORTALS_CFLAGS="$PORTALS_CFLAGS $EXTRA_CFLAGS"; PORTALS_CPPFLAGS="$PORTALS_CPPFLAGS $EXTRA_CFLAGS" else ac_portals_hdr_ok=no fi fi for ac_header in p3nal_utcp.h p3rt/p3rt.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_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 $as_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 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test x"$ac_portals_hdr_ok" = xno; then CPPFLAGS=$save_CPPFLAGS fi if test x"$ac_portals_lib_ok" = xno -a x$ac_portals_hdr_ok = xyes; then save_LIBS=$LIBS; LIBS="" { $as_echo "$as_me:$LINENO: checking for library containing PtlInit" >&5 $as_echo_n "checking for library containing PtlInit... " >&6; } if test "${ac_cv_search_PtlInit+set}" = set; then $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char PtlInit (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return PtlInit (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $save_LIBS $PTHREAD_LDFLAGS $PTHREAD_LIBS $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_search_PtlInit=$ac_res else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_PtlInit+set}" = set; then break fi done if test "${ac_cv_search_PtlInit+set}" = set; then : else ac_cv_search_PtlInit=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_search_PtlInit" >&5 $as_echo "$ac_cv_search_PtlInit" >&6; } ac_res=$ac_cv_search_PtlInit if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_portals_lib_ok=yes else ac_portals_lib_ok=no fi if test -n $LIBS; then PORTALS_LIBS=$LIBS; fi LIBS=$save_LIBS; fi if test x"$ac_portals_lib_ok" = xno -a x$ac_portals_hdr_ok = xyes; then save_LIBS=$LIBS; save_LDFLAGS=$LDFLAGS; save_CFLAGS=$CFLAGS; extra_LIBS="-lp3api -lp3lib -lp3rt -lp3utcp" LDFLAGS="$LDFLAGS $PORTALS_LDFLAGS" LIBS="$LIBS $extra_LIBS $PTHREAD_LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" { $as_echo "$as_me:$LINENO: checking if portals links with $LDFLAGS $LIBS" >&5 $as_echo_n "checking if portals links with $LDFLAGS $LIBS... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char PtlInit (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return PtlInit (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then PORTALS_LIBS=$extra_LIBS; ac_portals_lib_ok=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_portals_lib_ok=no; { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$save_LIBS; LDFLAGS=$save_LDFLAGS; CDFLAGS=$save_CFLAGS; fi if test x"$ac_portals_lib_ok" = xyes; then ac_portals_flags="none ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}" ac_portals_lib_ok=no for flag in $ac_portals_flags; do case $flag in none) { $as_echo "$as_me:$LINENO: checking whether portals works without any additional flags" >&5 $as_echo_n "checking whether portals works without any additional flags... " >&6; } ;; -l*) { $as_echo "$as_me:$LINENO: checking whether portals works with library $flag" >&5 $as_echo_n "checking whether portals works with library $flag... " >&6; } EXTRA_LIBS="$flag" ;; -*) { $as_echo "$as_me:$LINENO: checking whether portals works with library -l$flag" >&5 $as_echo_n "checking whether portals works with library -l$flag... " >&6; } EXTRA_LIBS="$flag" ;; esac save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" save_CPPFLAGS="$CPPFLAGS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $PORTALS_LIBS $EXTRA_LIBS" CFLAGS="$CFLAGS $PORTALS_CFLAGS $EXTRA_CFLAGS" CPPFLAGS="$CPPFLAGS $PORTALS_CPPFLAGS" LDFLAGS="$LDFLAGS $PORTALS_LDFLAGS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char PtlInit (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return PtlInit (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then PORTALS_CFLAGS="$PORTALS_CFLAGS $EXTRA_CFLAGS"; PORTALS_CPPFLAGS="$PORTALS_CPPFLAGS $EXTRA_CPPFLAGS"; PORTALS_LIBS="$PORTALS_LIBS $EXTRA_LIBS"; ac_portals_lib_ok=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_portals_lib_ok=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_portals_lib_ok" >&5 $as_echo "$ac_portals_lib_ok" >&6; } if test "x$ac_portals_lib_ok" = xyes; then PORTALS_LIBS="$PORTALS_LIBS $EXTRA_LIBS"; PORTALS_CFLAGS="$PORTALS_CFLAGS $EXTRA_CFLAGS"; PORTALS_CPPFLAGS="$PORTALS_CPPFLAGS $EXTRA_CFLAGS"; if test `uname -s` = "Darwin"; then if true; then NEED_DARWIN_SINGLE_MODULE_TRUE= NEED_DARWIN_SINGLE_MODULE_FALSE='#' else NEED_DARWIN_SINGLE_MODULE_TRUE='#' NEED_DARWIN_SINGLE_MODULE_FALSE= fi fi fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" done fi if test x"$ac_portals_hdr_ok" = xno -o x$ac_portals_lib_ok = xno; then if false; then HAVE_PORTALS_TRUE= HAVE_PORTALS_FALSE='#' else HAVE_PORTALS_TRUE='#' HAVE_PORTALS_FALSE= fi PORTALS_CFLAGS="" PORTALS_CPPFLAGS="" PORTALS_LDFLAGS="" PORTALS_LIBS="" else ac_portals_lib_ok=yes; if true; then HAVE_PORTALS_TRUE= HAVE_PORTALS_FALSE='#' else HAVE_PORTALS_TRUE='#' HAVE_PORTALS_FALSE= fi fi if test x"$ac_portals_lib_ok" = xyes; then save_CFLAGS=$CFLAGS save_CPPFLAGS=$CPPFLAGS save_LDFLAGS=$LDFLAGS save_LIBS=$LIBS CFLAGS="$CFLAGS $PORTALS_CFLAGS" CPPFLAGS="$CPPFLAGS $PORTALS_CPPFLAGS" LDFLAGS="$LDFLAGS $PORTALS_LDFLAGS" LIBS="$LIBS $PORTALS_LIBS" { $as_echo "$as_me:$LINENO: checking whether portals uses PTL_NO_ACK_REQ" >&5 $as_echo_n "checking whether portals uses PTL_NO_ACK_REQ... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_H) #include #else #error Cound not find include file #endif #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int a = PTL_NO_ACK_REQ; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then # Success cat >>confdefs.h <<\_ACEOF #define HAVE_PTL_NO_ACK_REQ 1 _ACEOF { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:$LINENO: checking whether portals uses PTL_NOACK_REQ" >&5 $as_echo_n "checking whether portals uses PTL_NOACK_REQ... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_H) #include #else #error Cound not find include file #endif #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int a = PTL_NOACK_REQ; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then # Success cat >>confdefs.h <<\_ACEOF #define HAVE_PTL_NOACK_REQ 1 _ACEOF { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:$LINENO: checking for ptl_time_t" >&5 $as_echo_n "checking for ptl_time_t... " >&6; } if test "${ac_cv_type_ptl_time_t+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_type_ptl_time_t=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_H) #include #endif #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { if (sizeof (ptl_time_t)) 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_H) #include #endif #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { if (sizeof ((ptl_time_t))) 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_ptl_time_t=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptl_time_t" >&5 $as_echo "$ac_cv_type_ptl_time_t" >&6; } if test "x$ac_cv_type_ptl_time_t" = x""yes; then cat >>confdefs.h <<_ACEOF #define HAVE_PTL_TIME_T 1 _ACEOF fi { $as_echo "$as_me:$LINENO: checking for ptl_eq_handler_t" >&5 $as_echo_n "checking for ptl_eq_handler_t... " >&6; } if test "${ac_cv_type_ptl_eq_handler_t+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_type_ptl_eq_handler_t=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_H) #include #endif #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { if (sizeof (ptl_eq_handler_t)) 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_H) #include #endif #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { if (sizeof ((ptl_eq_handler_t))) 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_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 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_ptl_eq_handler_t=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptl_eq_handler_t" >&5 $as_echo "$ac_cv_type_ptl_eq_handler_t" >&6; } if test "x$ac_cv_type_ptl_eq_handler_t" = x""yes; then cat >>confdefs.h <<_ACEOF #define HAVE_PTL_EQ_HANDLER_T 1 _ACEOF fi for ac_func in PtlErrorStr \ PtlNIFailStr \ PtlEventKindStr \ PtlGetJid \ PtlACEntry do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&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 #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done CFLAGS=$save_CFLAGS CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS fi # This is a big hack. This is fragile. Try to determine if we are # using Cray Portals. Cray Portals generates more data movement # events than Schutt (standard) Portals. This requires a memory # descriptor threshold adjustment. Cannot be determined at runtime. # # This test relies on a priori knowledge of specific types and # functions that are (un)defined. If this list changes, this # test will quickly crumble. # if test x"$ac_cv_func_PtlErrorStr" = xno -a \ x"$ac_cv_type_ptl_eq_handler_t" = xyes -a \ x"$ac_cv_func_PtlNIFailStr" = xno -a \ x"$ac_cv_func_PtlEventKindStr" = xno -a \ x"$ac_cv_func_PtlGetJid" = xyes -a \ x"$ac_cv_func_PtlACEntry" = xyes; then cat >>confdefs.h <<\_ACEOF #define HAVE_CRAY_PORTALS 1 _ACEOF fi # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$ac_portals_lib_ok" = xyes; then cat >>confdefs.h <<\_ACEOF #define HAVE_PORTALS 1 _ACEOF : else : 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 ac_cray_pmi_lib_ok=no { $as_echo "$as_me:$LINENO: === checking for CRAY PMI ===" >&5 $as_echo "$as_me: === checking for CRAY PMI ===" >&6;} if true; then HAVE_CRAY_PMI_TRUE= HAVE_CRAY_PMI_FALSE='#' else HAVE_CRAY_PMI_TRUE='#' HAVE_CRAY_PMI_FALSE= fi # Check whether --with-cray-pmi was given. if test "${with_cray_pmi+set}" = set; then withval=$with_cray_pmi; CRAY_PMI_DIR=$withval else with_cray_pmi=no fi # Check whether --with-cray-pmi-incdir was given. if test "${with_cray_pmi_incdir+set}" = set; then withval=$with_cray_pmi_incdir; CRAY_PMI_INCDIR=$withval with_cray_pmi=detailed fi # Check whether --with-cray-pmi-libdir was given. if test "${with_cray_pmi_libdir+set}" = set; then withval=$with_cray_pmi_libdir; CRAY_PMI_LIBDIR=$withval with_cray_pmi=detailed fi # Check whether --with-cray-pmi-libs was given. if test "${with_cray_pmi_libs+set}" = set; then withval=$with_cray_pmi_libs; CRAY_PMI_LIBS=$withval with_cray_pmi=detailed fi if test "x$with_cray_pmi" == "xno"; then if false; then HAVE_CRAY_PMI_TRUE= HAVE_CRAY_PMI_FALSE='#' else HAVE_CRAY_PMI_TRUE='#' HAVE_CRAY_PMI_FALSE= fi else if test -z "${CRAY_PMI_INCDIR}"; then if test -n "${CRAY_PMI_DIR}"; then CRAY_PMI_INCDIR="${CRAY_PMI_DIR}/include"; fi fi if test -z "${CRAY_PMI_LIBDIR}"; then if test -n "${CRAY_PMI_DIR}"; then if test -d "${CRAY_PMI_DIR}/lib64"; then CRAY_PMI_LIBDIR="${CRAY_PMI_DIR}/lib64"; else CRAY_PMI_LIBDIR="${CRAY_PMI_DIR}/lib"; fi fi fi CRAY_PMI_CPPFLAGS="-I${CRAY_PMI_INCDIR}" CRAY_PMI_LDFLAGS="-L${CRAY_PMI_LIBDIR}" if test -z "${CRAY_PMI_LIBS}"; then CRAY_PMI_LIBS="-lpmi" fi save_CC="$CC" save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $CRAY_PMI_LIBS" LDFLAGS="$LDFLAGS $CRAY_PMI_LDFLAGS" CPPFLAGS="$CPPFLAGS $CRAY_PMI_CPPFLAGS" CC="$MPICC" if test -z "${HAVE_CRAY_PMI_TRUE}"; then { $as_echo "$as_me:$LINENO: checking for Cray's pmi.h" >&5 $as_echo_n "checking for Cray's pmi.h... " >&6; } if test -f ${CRAY_PMI_INCDIR}/pmi.h; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else if false; then HAVE_CRAY_PMI_TRUE= HAVE_CRAY_PMI_FALSE='#' else HAVE_CRAY_PMI_TRUE='#' HAVE_CRAY_PMI_FALSE= fi { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: --with-cray-pmi was given, but test for ${CRAY_PMI_INCDIR}/pmi.h failed See \`config.log' for more details." >&5 $as_echo "$as_me: error: --with-cray-pmi was given, but test for ${CRAY_PMI_INCDIR}/pmi.h failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi fi if test -z "${HAVE_CRAY_PMI_TRUE}"; then { $as_echo "$as_me:$LINENO: checking if pmi code can be compiled" >&5 $as_echo_n "checking if pmi code can be compiled... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "pmi.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int size; int rank; PMI_Get_size(&size); PMI_Get_rank(&rank); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } ac_cray_pmi_lib_ok=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } if test "x$with_cray_pmi" != xcheck; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: --with-cray-pmi was given, but compile test failed See \`config.log' for more details." >&5 $as_echo "$as_me: error: --with-cray-pmi was given, but compile test failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi if false; then HAVE_CRAY_PMI_TRUE= HAVE_CRAY_PMI_FALSE='#' else HAVE_CRAY_PMI_TRUE='#' HAVE_CRAY_PMI_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" CC="$save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_CRAY_PMI_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_CRAY_PMI 1 _ACEOF : else : fi fi ac_cray_ugni_lib_ok=no { $as_echo "$as_me:$LINENO: === checking for CRAY UGNI ===" >&5 $as_echo "$as_me: === checking for CRAY UGNI ===" >&6;} if true; then HAVE_CRAY_UGNI_TRUE= HAVE_CRAY_UGNI_FALSE='#' else HAVE_CRAY_UGNI_TRUE='#' HAVE_CRAY_UGNI_FALSE= fi # Check whether --with-cray-ugni was given. if test "${with_cray_ugni+set}" = set; then withval=$with_cray_ugni; CRAY_UGNI_DIR=$withval else with_cray_ugni=no fi # Check whether --with-cray-ugni-incdir was given. if test "${with_cray_ugni_incdir+set}" = set; then withval=$with_cray_ugni_incdir; CRAY_UGNI_INCDIR=$withval with_cray_ugni=detailed fi # Check whether --with-cray-ugni-libdir was given. if test "${with_cray_ugni_libdir+set}" = set; then withval=$with_cray_ugni_libdir; CRAY_UGNI_LIBDIR=$withval with_cray_ugni=detailed fi # Check whether --with-cray-ugni-libs was given. if test "${with_cray_ugni_libs+set}" = set; then withval=$with_cray_ugni_libs; CRAY_UGNI_LIBS=$withval with_cray_ugni=detailed fi if test "x$with_cray_ugni" == "xno"; then if false; then HAVE_CRAY_UGNI_TRUE= HAVE_CRAY_UGNI_FALSE='#' else HAVE_CRAY_UGNI_TRUE='#' HAVE_CRAY_UGNI_FALSE= fi else if test -z "${CRAY_UGNI_INCDIR}"; then if test -n "${CRAY_UGNI_DIR}"; then CRAY_UGNI_INCDIR="${CRAY_UGNI_DIR}/include"; fi fi if test -z "${CRAY_UGNI_LIBDIR}"; then if test -n "${CRAY_UGNI_DIR}"; then if test -d "${CRAY_UGNI_DIR}/lib64"; then CRAY_UGNI_LIBDIR="${CRAY_UGNI_DIR}/lib64"; else CRAY_UGNI_LIBDIR="${CRAY_UGNI_DIR}/lib"; fi fi fi CRAY_UGNI_CPPFLAGS="-I${CRAY_UGNI_INCDIR}" CRAY_UGNI_LDFLAGS="-L${CRAY_UGNI_LIBDIR}" if test -z "${CRAY_UGNI_LIBS}"; then CRAY_UGNI_LIBS="-lugni" fi save_CC="$CC" save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $CRAY_UGNI_LIBS" LDFLAGS="$LDFLAGS $CRAY_UGNI_LDFLAGS" CPPFLAGS="$CPPFLAGS $CRAY_UGNI_CPPFLAGS" CC="$MPICC" if test -z "${HAVE_CRAY_UGNI_TRUE}"; then { $as_echo "$as_me:$LINENO: checking for Cray's ugni.h" >&5 $as_echo_n "checking for Cray's ugni.h... " >&6; } if test -f ${CRAY_UGNI_INCDIR}/gni_pub.h; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else if false; then HAVE_CRAY_UGNI_TRUE= HAVE_CRAY_UGNI_FALSE='#' else HAVE_CRAY_UGNI_TRUE='#' HAVE_CRAY_UGNI_FALSE= fi { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: --with-cray-ugni was given, but test for ${CRAY_UGNI_INCDIR}/gni_pub.h failed See \`config.log' for more details." >&5 $as_echo "$as_me: error: --with-cray-ugni was given, but test for ${CRAY_UGNI_INCDIR}/gni_pub.h failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi fi if test -z "${HAVE_CRAY_UGNI_TRUE}"; then { $as_echo "$as_me:$LINENO: checking if ugni code can be compiled" >&5 $as_echo_n "checking if ugni code can be compiled... " >&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 "gni_pub.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { uint32_t inst_id; uint8_t ptag; uint32_t cookie; uint32_t modes; gni_cdm_handle_t * cdm_hndl; gni_return_t status; status = GNI_CdmCreate(inst_id, ptag, cookie, modes, cdm_hndl); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } ac_cray_ugni_lib_ok=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } if test "x$with_cray_ugni" != xcheck; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: --with-cray-ugni was given, but compile test failed See \`config.log' for more details." >&5 $as_echo "$as_me: error: --with-cray-ugni was given, but compile test failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi if false; then HAVE_CRAY_UGNI_TRUE= HAVE_CRAY_UGNI_FALSE='#' else HAVE_CRAY_UGNI_TRUE='#' HAVE_CRAY_UGNI_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" CC="$save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_CRAY_UGNI_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_CRAY_UGNI 1 _ACEOF : else : fi fi { $as_echo "$as_me:$LINENO: === checking for HDF5 ===" >&5 $as_echo "$as_me: === checking for HDF5 ===" >&6;} if true; then HAVE_HDF5_TRUE= HAVE_HDF5_FALSE='#' else HAVE_HDF5_TRUE='#' HAVE_HDF5_FALSE= fi # Check whether --with-hdf5 was given. if test "${with_hdf5+set}" = set; then withval=$with_hdf5; HDF5_DIR=$withval else with_hdf5=no fi # Check whether --with-hdf5-incdir was given. if test "${with_hdf5_incdir+set}" = set; then withval=$with_hdf5_incdir; HDF5_INCDIR=$withval with_hdf5=detailed fi # Check whether --with-hdf5-libdir was given. if test "${with_hdf5_libdir+set}" = set; then withval=$with_hdf5_libdir; HDF5_LIBDIR=$withval with_hdf5=detailed fi # Check whether --with-hdf5-libs was given. if test "${with_hdf5_libs+set}" = set; then withval=$with_hdf5_libs; HDF5_LIBS=$withval with_hdf5=detailed fi if test "x$with_hdf5" == "xno"; then if false; then HAVE_HDF5_TRUE= HAVE_HDF5_FALSE='#' else HAVE_HDF5_TRUE='#' HAVE_HDF5_FALSE= fi else if test -z "${HDF5_INCDIR}"; then if test -n "${HDF5_DIR}"; then HDF5_INCDIR="${HDF5_DIR}/include"; fi fi if test -z "${HDF5_LIBDIR}"; then if test -n "${HDF5_DIR}"; then HDF5_LIBDIR="${HDF5_DIR}/lib"; fi fi HDF5_CPPFLAGS="-I${HDF5_INCDIR}" HDF5_LDFLAGS="-L${HDF5_LIBDIR}" if test -z "${HDF5_LIBS}"; then HDF5_LIBS="-lhdf5_hl -lhdf5 -lz" fi save_CC="$CC" save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $HDF5_LIBS" LDFLAGS="$LDFLAGS $HDF5_LDFLAGS" CPPFLAGS="$CPPFLAGS $HDF5_CPPFLAGS" CC="$MPICC" if test -z "${HAVE_HDF5_TRUE}"; then { $as_echo "$as_me:$LINENO: checking for hdf5.h" >&5 $as_echo_n "checking for hdf5.h... " >&6; } if test -f ${HDF5_INCDIR}/hdf5.h; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else if false; then HAVE_HDF5_TRUE= HAVE_HDF5_FALSE='#' else HAVE_HDF5_TRUE='#' HAVE_HDF5_FALSE= fi { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: --with-hdf5 was given, but test for ${HDF5_INCDIR}/hdf5.h failed See \`config.log' for more details." >&5 $as_echo "$as_me: error: --with-hdf5 was given, but test for ${HDF5_INCDIR}/hdf5.h failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi fi if test -z "${HAVE_HDF5_TRUE}"; then { $as_echo "$as_me:$LINENO: checking if hdf5 code can be compiled" >&5 $as_echo_n "checking if hdf5 code can be compiled... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "hdf5.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { hid_t file_id; herr_t status; file_id = H5Fcreate("a.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); status = H5Fclose(file_id); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } if test "x$with_hdf5" != xcheck; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: --with-hdf5 was given, but compile test failed See \`config.log' for more details." >&5 $as_echo "$as_me: error: --with-hdf5 was given, but compile test failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi if false; then HAVE_HDF5_TRUE= HAVE_HDF5_FALSE='#' else HAVE_HDF5_TRUE='#' HAVE_HDF5_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" CC="$save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_HDF5_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_HDF5 1 _ACEOF : else : fi fi { $as_echo "$as_me:$LINENO: === checking for Parallel HDF5 ===" >&5 $as_echo "$as_me: === checking for Parallel HDF5 ===" >&6;} if true; then HAVE_PHDF5_TRUE= HAVE_PHDF5_FALSE='#' else HAVE_PHDF5_TRUE='#' HAVE_PHDF5_FALSE= fi # Check whether --with-phdf5 was given. if test "${with_phdf5+set}" = set; then withval=$with_phdf5; PHDF5_DIR=$withval else with_phdf5=check fi # Check whether --with-phdf5-incdir was given. if test "${with_phdf5_incdir+set}" = set; then withval=$with_phdf5_incdir; PHDF5_INCDIR=$withval with_phdf5=detailed fi # Check whether --with-phdf5-libdir was given. if test "${with_phdf5_libdir+set}" = set; then withval=$with_phdf5_libdir; PHDF5_LIBDIR=$withval with_phdf5=detailed fi # Check whether --with-phdf5-libs was given. if test "${with_phdf5_libs+set}" = set; then withval=$with_phdf5_libs; PHDF5_LIBS=$withval with_phdf5=detailed fi if test "x$with_phdf5" == "xno"; then if false; then HAVE_PHDF5_TRUE= HAVE_PHDF5_FALSE='#' else HAVE_PHDF5_TRUE='#' HAVE_PHDF5_FALSE= fi else ac_use_cray_hdf5=no if test -z "${PHDF5_INCDIR}"; then if test -n "${CRAY_HDF5_DIR}"; then PHDF5_INCDIR=""; ac_use_cray_hdf5=yes elif test -n "${PHDF5_DIR}"; then PHDF5_INCDIR="${PHDF5_DIR}/include"; else ac_phdf5_ok=no fi fi if test -z "${PHDF5_LIBDIR}"; then if test -n "${CRAY_HDF5_DIR}"; then PHDF5_LIBDIR=""; ac_use_cray_hdf5=yes elif test -n "${PHDF5_DIR}"; then PHDF5_LIBDIR="${PHDF5_DIR}/lib"; else ac_phdf5_ok=no fi fi if test -n "${PHDF5_INCDIR}"; then PHDF5_CPPFLAGS="-I${PHDF5_INCDIR}" else ac_use_cray_hdf5=no fi if test -n "${PHDF5_LIBDIR}"; then PHDF5_LDFLAGS="-L${PHDF5_LIBDIR}" else ac_use_cray_hdf5=no fi if test -z "${PHDF5_LIBS}"; then if test "${ac_use_cray_hdf5}" != "yes"; then PHDF5_LIBS="-lhdf5_hl -lhdf5 -lz" else { $as_echo "$as_me:$LINENO: Environment CRAY_HDF5_DIR defined, so we use Cray's settings" >&5 $as_echo "$as_me: Environment CRAY_HDF5_DIR defined, so we use Cray's settings" >&6;} fi fi save_CC="$CC" save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $PHDF5_LIBS" LDFLAGS="$LDFLAGS $PHDF5_LDFLAGS" CPPFLAGS="$CPPFLAGS $PHDF5_CPPFLAGS" CC="$MPICC" if test -z "${HAVE_PHDF5_TRUE}"; then for ac_header in hdf5.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else if false; then HAVE_PHDF5_TRUE= HAVE_PHDF5_FALSE='#' else HAVE_PHDF5_TRUE='#' HAVE_PHDF5_FALSE= fi fi done fi if test -z "${HAVE_PHDF5_TRUE}"; then { $as_echo "$as_me:$LINENO: checking if phdf5 code can be compiled" >&5 $as_echo_n "checking if phdf5 code can be compiled... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "hdf5.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { hid_t file_id; herr_t status; #ifdef H5_HAVE_PARALLEL file_id = H5Fcreate("a.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); status = H5Fclose(file_id); #else /* This must deliberately fail */ file_id = THE_HDF5_INSTALLATION_FOUND_IS_NOT_PARALLEL_HDF5 #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } if false; then HAVE_PHDF5_TRUE= HAVE_PHDF5_FALSE='#' else HAVE_PHDF5_TRUE='#' HAVE_PHDF5_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" CC="$save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_PHDF5_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_PHDF5 1 _ACEOF : else : fi fi { $as_echo "$as_me:$LINENO: === checking for NetCDF ===" >&5 $as_echo "$as_me: === checking for NetCDF ===" >&6;} if true; then HAVE_NETCDF_TRUE= HAVE_NETCDF_FALSE='#' else HAVE_NETCDF_TRUE='#' HAVE_NETCDF_FALSE= fi # Check whether --with-netcdf was given. if test "${with_netcdf+set}" = set; then withval=$with_netcdf; NETCDF_DIR=$withval else with_netcdf=check fi if test "x$with_netcdf" == "xno"; then if false; then HAVE_NETCDF_TRUE= HAVE_NETCDF_FALSE='#' else HAVE_NETCDF_TRUE='#' HAVE_NETCDF_FALSE= fi else ac_use_cray_netcdf=no # Check whether --with-netcdf-incdir was given. if test "${with_netcdf_incdir+set}" = set; then withval=$with_netcdf_incdir; NETCDF_INCDIR=$withval with_netcdf=detailed fi # Check whether --with-netcdf-libdir was given. if test "${with_netcdf_libdir+set}" = set; then withval=$with_netcdf_libdir; NETCDF_LIBDIR=$withval with_netcdf=detailed fi # Check whether --with-netcdf-libs was given. if test "${with_netcdf_libs+set}" = set; then withval=$with_netcdf_libs; NETCDF_LIBS=$withval with_netcdf=detailed fi if test -z "${NETCDF_INCDIR}"; then if test -n "${NETCDF_DIR}"; then NETCDF_INCDIR="${NETCDF_DIR}/include"; elif test -n "${CRAY_NETCDF_DIR}"; then NETCDF_INCDIR=""; ac_use_cray_netcdf=yes elif test -n "${NETCDF}" -a -d "${NETCDF}"; then NETCDF_INCDIR="${NETCDF}/include" fi fi if test -z "${NETCDF_LIBDIR}"; then if test -n "${NETCDF_DIR}"; then NETCDF_LIBDIR="${NETCDF_DIR}/lib"; elif test -n "${CRAY_NETCDF_DIR}"; then NETCDF_LIBDIR=""; ac_use_cray_netcdf=yes elif test -n "${NETCDF}" -a -d "${NETCDF}"; then NETCDF_LIBDIR="${NETCDF}/lib" fi fi if test -n "${NETCDF_INCDIR}"; then NETCDF_CPPFLAGS="-I${NETCDF_INCDIR}" else ac_netcdf_ok=no fi if test -n "${NETCDF_LIBDIR}"; then NETCDF_LDFLAGS="-L${NETCDF_LIBDIR}" else ac_netcdf_ok=no fi if test -z "${NETCDF_LIBS}"; then if test "${ac_use_cray_netcdf}" != "yes"; then NETCDF_LIBS="-lnetcdf" fi fi save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $NETCDF_LDFLAGS" LDFLAGS="$LDFLAGS $NETCDF_LDFLAGS" CPPFLAGS="$CPPFLAGS $NETCDF_CPPFLAGS" if test -z "${HAVE_NETCDF_TRUE}"; then for ac_header in netcdf.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else if test "x$with_netcdf" != xcheck; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: --with-netcdf was given, but test for netcdf.h failed See \`config.log' for more details." >&5 $as_echo "$as_me: error: --with-netcdf was given, but test for netcdf.h failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi if false; then HAVE_NETCDF_TRUE= HAVE_NETCDF_FALSE='#' else HAVE_NETCDF_TRUE='#' HAVE_NETCDF_FALSE= fi fi done fi if test -z "${HAVE_NETCDF_TRUE}"; then { $as_echo "$as_me:$LINENO: checking if netcdf code can be compiled" >&5 $as_echo_n "checking if netcdf code can be compiled... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "netcdf.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int ncid; nc_create("a.nc", NC_CLOBBER, &ncid); nc_close(ncid); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } if test "x$with_netcdf" != xcheck; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: --with-netcdf was given, but compile test failed See \`config.log' for more details." >&5 $as_echo "$as_me: error: --with-netcdf was given, but compile test failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi if false; then HAVE_NETCDF_TRUE= HAVE_NETCDF_FALSE='#' else HAVE_NETCDF_TRUE='#' HAVE_NETCDF_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_NETCDF_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_NETCDF 1 _ACEOF : else : fi fi { $as_echo "$as_me:$LINENO: === checking NetCDF 4 Parallel ===" >&5 $as_echo "$as_me: === checking NetCDF 4 Parallel ===" >&6;} if true; then HAVE_NC4PAR_TRUE= HAVE_NC4PAR_FALSE='#' else HAVE_NC4PAR_TRUE='#' HAVE_NC4PAR_FALSE= fi # Check whether --with-nc4par was given. if test "${with_nc4par+set}" = set; then withval=$with_nc4par; NC4PAR_DIR=$withval else with_nc4par=check fi if test "x$with_nc4par" == "xno"; then if false; then HAVE_NC4PAR_TRUE= HAVE_NC4PAR_FALSE='#' else HAVE_NC4PAR_TRUE='#' HAVE_NC4PAR_FALSE= fi else ac_use_cray_netcdf=no # Check whether --with-nc4par-incdir was given. if test "${with_nc4par_incdir+set}" = set; then withval=$with_nc4par_incdir; NC4PAR_INCDIR=$withval with_nc4par=detailed fi # Check whether --with-nc4par-libdir was given. if test "${with_nc4par_libdir+set}" = set; then withval=$with_nc4par_libdir; NC4PAR_LIBDIR=$withval with_nc4par=detailed fi # Check whether --with-nc4par-libs was given. if test "${with_nc4par_libs+set}" = set; then withval=$with_nc4par_libs; NC4PAR_LIBS=$withval with_nc4par=detailed fi if test -z "${NC4PAR_INCDIR}"; then if test -n "${NC4PAR_DIR}"; then NC4PAR_INCDIR="${NC4PAR_DIR}/include"; elif test -n "${CRAY_NETCDF_DIR}"; then NC4PAR_INCDIR=""; ac_use_cray_netcdf=yes elif test -n "${NETCDF_DIR}"; then NC4PAR_INCDIR="${NETCDF_DIR}/include"; fi fi if test -z "${NC4PAR_LIBDIR}"; then if test -n "${NC4PAR_DIR}"; then NC4PAR_LIBDIR="${NC4PAR_DIR}/lib"; elif test -n "${CRAY_NETCDF_DIR}"; then NC4PAR_LIBDIR=""; ac_use_cray_netcdf=yes elif test -n "${NETCDF_DIR}"; then NC4PAR_LIBDIR="${NETCDF_DIR}/lib" fi fi if test -n "${NC4PAR_INCDIR}"; then NC4PAR_CPPFLAGS="-I${NC4PAR_INCDIR}" else ac_nc4par=no fi if test -n "${NC4PAR_LIBDIR}"; then NC4PAR_LDFLAGS="-L${NC4PAR_LIBDIR}" else ac_nc4par=no fi if test -z "${NC4PAR_LIBS}"; then if test "${ac_use_cray_netcdf}" != "yes"; then NC4PAR_LIBS="-lnetcdf" fi fi save_CC="$CC" save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $NC4PAR_LIBS" LDFLAGS="$LDFLAGS $NC4PAR_LDFLAGS" CPPFLAGS="$CPPFLAGS $NC4PAR_CPPFLAGS" CC="$MPICC" if test -z "${HAVE_NC4PAR_TRUE}"; then for ac_header in netcdf.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else if test "x$with_nc4par" != xcheck; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: --with-nc4par was given, but test for netcdf.h failed See \`config.log' for more details." >&5 $as_echo "$as_me: error: --with-nc4par was given, but test for netcdf.h failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi if false; then HAVE_NC4PAR_TRUE= HAVE_NC4PAR_FALSE='#' else HAVE_NC4PAR_TRUE='#' HAVE_NC4PAR_FALSE= fi fi done fi if test -z "${HAVE_NC4PAR_TRUE}"; then { $as_echo "$as_me:$LINENO: checking if nc4 parallel code can be compiled" >&5 $as_echo_n "checking if nc4 parallel code can be compiled... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "mpi.h" #include "netcdf.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int ncid; MPI_Info info; MPI_Comm comm; nc_create_par("a.nc", NC_NOCLOBBER|NC_MPIIO|NC_NETCDF4, comm, info, ncid); nc_close(ncid); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } if test "x$with_nc4par" != xcheck; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: --with-nc4par was given, but compile test failed See \`config.log' for more details." >&5 $as_echo "$as_me: error: --with-nc4par was given, but compile test failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi if false; then HAVE_NC4PAR_TRUE= HAVE_NC4PAR_FALSE='#' else HAVE_NC4PAR_TRUE='#' HAVE_NC4PAR_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" CC="$save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_NC4PAR_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_NC4PAR 1 _ACEOF : else : fi fi if true; then HAVE_PABLO_TRUE= HAVE_PABLO_FALSE='#' else HAVE_PABLO_TRUE='#' HAVE_PABLO_FALSE= fi # Check whether --with-pablo was given. if test "${with_pablo+set}" = set; then withval=$with_pablo; PABLO_LDFLAGS="-L$withval/lib"; PABLO_CPPFLAGS="-I$withval/include"; fi save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS -lPablo" LDFLAGS="$LDFLAGS $PABLO_LDFLAGS" CPPFLAGS="$CPPFLAGS $PABLO_CPPFLAGS" if test -z "${HAVE_PABLO_TRUE}"; then for ac_header in Attributes.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else if false; then HAVE_PABLO_TRUE= HAVE_PABLO_FALSE='#' else HAVE_PABLO_TRUE='#' HAVE_PABLO_FALSE= fi fi done fi # Check for the Pablo library and headers for SDDF cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { Attributes attr;attr.clearEntries(); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then PABLO_LIBS="-lPablo" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_PABLO_TRUE= HAVE_PABLO_FALSE='#' else HAVE_PABLO_TRUE='#' HAVE_PABLO_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_PABLO_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_PABLO 1 _ACEOF : else : 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 ac_nssi_ok=yes ac_nssi_path="." if false; then HAVE_NSSI_TRUE= HAVE_NSSI_FALSE='#' else HAVE_NSSI_TRUE='#' HAVE_NSSI_FALSE= fi NSSI_SRCDIR="" NSSI_BUILDDIR="" NSSI_CPPFLAGS="" NSSI_LDFLAGS="" NSSI_LIBS="-lnssi_client -lnssi_support" NSSI_SERVER_LIBS="-lnssi_server -lnssi_support" # Check whether --with-nssi was given. if test "${with_nssi+set}" = set; then withval=$with_nssi; NSSI_LDFLAGS="-L$withval/lib"; NSSI_CPPFLAGS="-I$withval/include"; ac_nssi_path=$withval fi if test x"$ac_nssi_ok" = xyes; then save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="${CPPFLAGS} ${NSSI_CPPFLAGS}" if test "${ac_cv_header_nssi_client_h+set}" = set; then { $as_echo "$as_me:$LINENO: checking for nssi_client.h" >&5 $as_echo_n "checking for nssi_client.h... " >&6; } if test "${ac_cv_header_nssi_client_h+set}" = set; then $as_echo_n "(cached) " >&6 fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_nssi_client_h" >&5 $as_echo "$ac_cv_header_nssi_client_h" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking nssi_client.h usability" >&5 $as_echo_n "checking nssi_client.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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_header_compiler=yes else $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking nssi_client.h presence" >&5 $as_echo_n "checking nssi_client.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 ac_header_preproc=yes else $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: nssi_client.h: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: nssi_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: nssi_client.h: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: nssi_client.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: nssi_client.h: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: nssi_client.h: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: nssi_client.h: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: nssi_client.h: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: nssi_client.h: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: nssi_client.h: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: nssi_client.h: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: nssi_client.h: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: nssi_client.h: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: nssi_client.h: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: nssi_client.h: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: nssi_client.h: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for nssi_client.h" >&5 $as_echo_n "checking for nssi_client.h... " >&6; } if test "${ac_cv_header_nssi_client_h+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_header_nssi_client_h=$ac_header_preproc fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_nssi_client_h" >&5 $as_echo "$ac_cv_header_nssi_client_h" >&6; } fi if test "x$ac_cv_header_nssi_client_h" = x""yes; then : else ac_nssi_ok=no fi CPPFLAGS="$save_CPPFLAGS" fi if test x"$ac_nssi_ok" = xyes; then { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 $as_echo_n "checking for clock_gettime in -lrt... " >&6; } if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char clock_gettime (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return clock_gettime (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_rt_clock_gettime=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_rt_clock_gettime=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBRT 1 _ACEOF LIBS="-lrt $LIBS" fi for ac_func in clock_gettime gettimeofday fdatasync pthread_yield sched_yield do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&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 #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ac_nssi_ok=no ac_nssi_flags="none" if test x"$ac_with_portals" = xyes; then ac_nssi_flags="$ac_nssi_flags all_portals portals_plus_libcpp portals_plus_pablo" fi if test x"$ac_with_infiniband" = xyes; then ac_nssi_flags="$ac_nssi_flags infiniband" fi for flag in $ac_nssi_flags; do case $flag in none) { $as_echo "$as_me:$LINENO: checking whether nssi works without any additional flags" >&5 $as_echo_n "checking whether nssi works without any additional flags... " >&6; } ;; -l*) { $as_echo "$as_me:$LINENO: checking whether nssi works with library $flag" >&5 $as_echo_n "checking whether nssi works with library $flag... " >&6; } EXTRA_LIBS="$flag" ;; -*) { $as_echo "$as_me:$LINENO: checking whether nssi works with $flag" >&5 $as_echo_n "checking whether nssi works with $flag... " >&6; } EXTRA_LIBS="$flag" ;; all_portals) { $as_echo "$as_me:$LINENO: checking whether nssi works with ${PORTALS_LIBS}" >&5 $as_echo_n "checking whether nssi works with ${PORTALS_LIBS}... " >&6; } EXTRA_LIBS="${PORTALS_LIBS}" ;; portals_plus_libcpp) { $as_echo "$as_me:$LINENO: checking whether nssi works with ${PORTALS_LIBS}" >&5 $as_echo_n "checking whether nssi works with ${PORTALS_LIBS}... " >&6; } EXTRA_LIBS="${PORTALS_LIBS}" ;; portals_plus_pablo) { $as_echo "$as_me:$LINENO: checking whether nssi works with ${PORTALS_LIBS} ${PABLO_LIBS}" >&5 $as_echo_n "checking whether nssi works with ${PORTALS_LIBS} ${PABLO_LIBS}... " >&6; } EXTRA_LIBS="${PORTALS_LIBS} ${PABLO_LIBS}" ;; infiniband) { $as_echo "$as_me:$LINENO: checking whether nssi works with ${INFINIBAND_LIBS}" >&5 $as_echo_n "checking whether nssi works with ${INFINIBAND_LIBS}... " >&6; } EXTRA_LIBS="${INFINIBAND_LIBS}" ;; esac save_LDFLAGS="$LDFLAGS" save_LIBS="$LIBS" save_CPPFLAGS="$CPPFLAGS" save_CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS $NSSI_LDFLAGS" LIBS="$LIBS $NSSI_LIBS $EXTRA_LIBS" CPPFLAGS="$CPPFLAGS $NSSI_CPPFLAGS" CFLAGS="$CFLAGS $NSSI_CFLAGS $EXTRA_FLAGS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "nssi_client.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { nssi_remote_pid server_id; uint64_t timeout; nssi_service svc; nssi_get_service(server_id, timeout, &svc); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_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 && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_nssi_ok=yes; else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_nssi_ok=no; fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" CPPFLAGS="$save_CPPFLAGS" { $as_echo "$as_me:$LINENO: result: $ac_nssi_ok" >&5 $as_echo "$ac_nssi_ok" >&6; } if test "x$ac_nssi_ok" = xyes; then NSSI_LIBS="$NSSI_LIBS $EXTRA_LIBS"; NSSI_SERVER_LIBS="$NSSI_SERVER_LIBS $EXTRA_LIBS" NSSI_CFLAGS="$NSSI_CFLAGS $EXTRA_CFLAGS"; break; fi EXTRA_LIBS="" EXTRA_CFLAGS="" done fi if test x$ac_nssi_ok = xyes; then HAVE_NSSI_TRUE= HAVE_NSSI_FALSE='#' else HAVE_NSSI_TRUE='#' HAVE_NSSI_FALSE= 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 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$ac_nssi_ok" = xyes; then cat >>confdefs.h <<\_ACEOF #define HAVE_NSSI 1 _ACEOF : else : fi if true; then HAVE_DATASPACES_TRUE= HAVE_DATASPACES_FALSE='#' else HAVE_DATASPACES_TRUE='#' HAVE_DATASPACES_FALSE= fi # Check whether --with-dataspaces was given. if test "${with_dataspaces+set}" = set; then withval=$with_dataspaces; DATASPACES_LDFLAGS="-L$withval/lib"; DATASPACES_CPPFLAGS="-I$withval/include"; else with_dataspaces=check fi if test "x$with_dataspaces" == "xno"; then if false; then HAVE_DATASPACES_TRUE= HAVE_DATASPACES_FALSE='#' else HAVE_DATASPACES_TRUE='#' HAVE_DATASPACES_FALSE= fi else # Check whether --with-dataspaces-incdir was given. if test "${with_dataspaces_incdir+set}" = set; then withval=$with_dataspaces_incdir; DATASPACES_INCDIR=$withval with_dataspaces=detailed fi # Check whether --with-dataspaces-libdir was given. if test "${with_dataspaces_libdir+set}" = set; then withval=$with_dataspaces_libdir; DATASPACES_LIBDIR=$withval with_dataspaces=detailed fi if test -n "${DATASPACES_DIR}" -a -z "${DATASPACES_INCDIR}"; then DATASPACES_INCDIR="${DATASPACES_DIR}/include"; elif test -n "${DATASPACES}" -a -d "${DATASPACES}"; then DATASPACES_INCDIR="${DATASPACES}/include" fi if test -n "${DATASPACES_DIR}" -a -z "${DATASPACES_LIBDIR}"; then DATASPACES_LIBDIR="${DATASPACES_DIR}/lib"; elif test -n "${DATASPACES}" -a -d "${DATASPACES}"; then DATASPACES_LIBDIR="${DATASPACES}/lib" fi if test -n "${DATASPACES_INCDIR}"; then DATASPACES_CPPFLAGS="-I${DATASPACES_INCDIR}" else ac_dataspaces_ok=no fi if test -n "${DATASPACES_LIBDIR}"; then DATASPACES_LDFLAGS="-L${DATASPACES_LIBDIR}" else ac_dataspaces_ok=no fi save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" if test "x${ac_infiniband_lib_ok}" == "xyes"; then LIBS="$LIBS -ldspaces -ldscommon -ldart" elif test "x${ac_portals_lib_ok}" == "xyes"; then LIBS="$LIBS -ldart2 -lspaces" elif test "x${ac_dmcf_lib_ok}" == "xyes"; then LIBS="$LIBS -ldspaces -ldscommon -ldart" else LIBS="$LIBS -ldspaces -ldscommon -ldart" fi LDFLAGS="$LDFLAGS $DATASPACES_LDFLAGS" CPPFLAGS="$CPPFLAGS $DATASPACES_CPPFLAGS" if test -z "${HAVE_DATASPACES_TRUE}"; then for ac_header in dataspaces.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else if false; then HAVE_DATASPACES_TRUE= HAVE_DATASPACES_FALSE='#' else HAVE_DATASPACES_TRUE='#' HAVE_DATASPACES_FALSE= fi fi done fi if test -z "${HAVE_DATASPACES_TRUE}"; then # Check for the DataSpaces library and headers if test "x${ac_portals_lib_ok}" == "xyes"; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "dataspaces.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int err; err = dspaces_init(1,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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then DATASPACES_LIBS="-ldart2 -lspaces" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_DATASPACES_TRUE= HAVE_DATASPACES_FALSE='#' else HAVE_DATASPACES_TRUE='#' HAVE_DATASPACES_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext elif test "x${ac_infiniband_lib_ok}" == "xyes"; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "dataspaces.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int err; err = dspaces_init(1,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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then DATASPACES_LIBS="-ldspaces -ldscommon -ldart -lrdmacm" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_DATASPACES_TRUE= HAVE_DATASPACES_FALSE='#' else HAVE_DATASPACES_TRUE='#' HAVE_DATASPACES_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext elif test -z "${HAVE_CRAY_PMI_TRUE}" -a -z "${HAVE_CRAY_UGNI_TRUE}"; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "dataspaces.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int err; err = dspaces_init(1,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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then DATASPACES_LIBS="-ldspaces -ldscommon -ldart" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_DATASPACES_TRUE= HAVE_DATASPACES_FALSE='#' else HAVE_DATASPACES_TRUE='#' HAVE_DATASPACES_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext elif test "x${ac_dcmf_lib_ok}" == "xyes"; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "dataspaces.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int err; err = dspaces_init(1,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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then DATASPACES_LIBS="-ldspaces -ldscommon -ldart" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_DATASPACES_TRUE= HAVE_DATASPACES_FALSE='#' else HAVE_DATASPACES_TRUE='#' HAVE_DATASPACES_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else if false; then HAVE_DATASPACES_TRUE= HAVE_DATASPACES_FALSE='#' else HAVE_DATASPACES_TRUE='#' HAVE_DATASPACES_FALSE= fi fi fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_DATASPACES_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_DATASPACES 1 _ACEOF : else : fi fi if true; then HAVE_DIMES_TRUE= HAVE_DIMES_FALSE='#' else HAVE_DIMES_TRUE='#' HAVE_DIMES_FALSE= fi # Check whether --with-dimes was given. if test "${with_dimes+set}" = set; then withval=$with_dimes; DIMES_LDFLAGS="-L$withval/lib"; DIMES_CPPFLAGS="-I$withval/include"; else with_dimes=check fi if test "x$with_dimes" == "xno"; then if false; then HAVE_DIMES_TRUE= HAVE_DIMES_FALSE='#' else HAVE_DIMES_TRUE='#' HAVE_DIMES_FALSE= fi else # Check whether --with-dimes-incdir was given. if test "${with_dimes_incdir+set}" = set; then withval=$with_dimes_incdir; DIMES_INCDIR=$withval with_dimes=detailed fi # Check whether --with-dimes-libdir was given. if test "${with_dimes_libdir+set}" = set; then withval=$with_dimes_libdir; DIMES_LIBDIR=$withval with_dimes=detailed fi if test -n "${DIMES_DIR}" -a -z "${DIMES_INCDIR}"; then DIMES_INCDIR="${DIMES_DIR}/include"; elif test -n "${DIMES}" -a -d "${DIMES}"; then DIMES_INCDIR="${DIMES}/include" fi if test -n "${DIMES_DIR}" -a -z "${DIMES_LIBDIR}"; then DIMES_LIBDIR="${DIMES_DIR}/lib"; elif test -n "${DIMES}" -a -d "${DIMES}"; then DIMES_LIBDIR="${DIMES}/lib" fi if test -n "${DIMES_INCDIR}"; then DIMES_CPPFLAGS="-I${DIMES_INCDIR}" else ac_dimes_ok=no fi if test -n "${DIMES_LIBDIR}"; then DIMES_LDFLAGS="-L${DIMES_LIBDIR}" else ac_dimes_ok=no fi save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" if test "x${ac_infiniband_lib_ok}" == "xyes"; then echo "DIMES currently NOT supported for Infiniband!" if false; then HAVE_DIMES_TRUE= HAVE_DIMES_FALSE='#' else HAVE_DIMES_TRUE='#' HAVE_DIMES_FALSE= fi elif test "x${ac_portals_lib_ok}" == "xyes"; then echo "DIMES currently NOT supported for Cray Portals!" if false; then HAVE_DIMES_TRUE= HAVE_DIMES_FALSE='#' else HAVE_DIMES_TRUE='#' HAVE_DIMES_FALSE= fi elif test "x${ac_dcmf_lib_ok}" == "xyes"; then LIBS="$LIBS -ldspaces -ldscommon -ldart" else LIBS="$LIBS -ldspaces -ldscommon -ldart" fi LDFLAGS="$LDFLAGS $DIMES_LDFLAGS" CPPFLAGS="$CPPFLAGS $DIMES_CPPFLAGS" if test -z "${HAVE_DIMES_TRUE}"; then for ac_header in dimes_interface.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else if false; then HAVE_DIMES_TRUE= HAVE_DIMES_FALSE='#' else HAVE_DIMES_TRUE='#' HAVE_DIMES_FALSE= fi fi done fi if test -z "${HAVE_DIMES_TRUE}"; then # Check for the DataSpaces/DIMES library and headers if test -z "${HAVE_CRAY_PMI_TRUE}" -a -z "${HAVE_CRAY_UGNI_TRUE}"; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "dimes_interface.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int err; dimes_set_storage_type(1); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then DIMES_LIBS="-ldspaces -ldscommon -ldart" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_DIMES_TRUE= HAVE_DIMES_FALSE='#' else HAVE_DIMES_TRUE='#' HAVE_DIMES_FALSE= fi fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext elif test "x${ac_dcmf_lib_ok}" == "xyes"; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "dimes_interface.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int err; dimes_set_storage_type(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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then DIMES_LIBS="-ldspaces -ldscommon -ldart" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_DIMES_TRUE= HAVE_DIMES_FALSE='#' else HAVE_DIMES_TRUE='#' HAVE_DIMES_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else if false; then HAVE_DIMES_TRUE= HAVE_DIMES_FALSE='#' else HAVE_DIMES_TRUE='#' HAVE_DIMES_FALSE= fi fi fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_DIMES_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_DIMES 1 _ACEOF : else : fi fi if true; then HAVE_DMALLOC_TRUE= HAVE_DMALLOC_FALSE='#' else HAVE_DMALLOC_TRUE='#' HAVE_DMALLOC_FALSE= fi # Check whether --with-dmalloc was given. if test "${with_dmalloc+set}" = set; then withval=$with_dmalloc; DMALLOC_LDFLAGS="-L$withval/lib"; DMALLOC_CPPFLAGS="-I$withval/include"; else with_dmalloc=no fi if test "x$with_dmalloc" == "xno"; then if false; then HAVE_DMALLOC_TRUE= HAVE_DMALLOC_FALSE='#' else HAVE_DMALLOC_TRUE='#' HAVE_DMALLOC_FALSE= fi else save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS -ldmalloc" LDFLAGS="$LDFLAGS $DMALLOC_LDFLAGS" CPPFLAGS="$CPPFLAGS $DMALLOC_CPPFLAGS" if test -z "${HAVE_DMALLOC_TRUE}"; then for ac_header in dmalloc.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else if false; then HAVE_DMALLOC_TRUE= HAVE_DMALLOC_FALSE='#' else HAVE_DMALLOC_TRUE='#' HAVE_DMALLOC_FALSE= fi fi done fi # Check for the dmalloc library and headers cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "dmalloc.h" #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { char * s; s=malloc(sizeof(char)*10); free(s); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then DMALLOC_LIBS="-ldmallocth" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 if false; then HAVE_DMALLOC_TRUE= HAVE_DMALLOC_FALSE='#' else HAVE_DMALLOC_TRUE='#' HAVE_DMALLOC_FALSE= fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_DMALLOC_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_DMALLOC 1 _ACEOF : else : fi fi { $as_echo "$as_me:$LINENO: === checking for Lustre ===" >&5 $as_echo "$as_me: === checking for Lustre ===" >&6;} if true; then HAVE_LUSTRE_TRUE= HAVE_LUSTRE_FALSE='#' else HAVE_LUSTRE_TRUE='#' HAVE_LUSTRE_FALSE= fi # Check whether --with-lustre was given. if test "${with_lustre+set}" = set; then withval=$with_lustre; LUSTRE_LDFLAGS="-L$withval/lib"; LUSTRE_LIBS="-llustreapi"; LUSTRE_CPPFLAGS="-I$withval/include"; else with_lustre=no fi if test "x$with_lustre" == "xno"; then if false; then HAVE_LUSTRE_TRUE= HAVE_LUSTRE_FALSE='#' else HAVE_LUSTRE_TRUE='#' HAVE_LUSTRE_FALSE= fi else save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS -llustreapi" LDFLAGS="$LDFLAGS $LUSTRE_LDFLAGS" CPPFLAGS="$CPPFLAGS $LUSTRE_CPPFLAGS" # Check for the lustre library and headers LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_LUSTRE_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define HAVE_LUSTRE 1 _ACEOF : else : fi fi # Check whether --with-installed was given. if test "${with_installed+set}" = set; then withval=$with_installed; with_installed_specified=1 fi # Check whether --with-local was given. if test "${with_local+set}" = set; then withval=$with_local; with_local_specified=1 fi # Extract the first word of "csh", so it can be a program name with args. set dummy csh; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_CSH+set}" = set; then $as_echo_n "(cached) " >&6 else case $CSH in [\\/]* | ?:[\\/]*) ac_cv_path_CSH="$CSH" # 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_CSH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi CSH=$ac_cv_path_CSH if test -n "$CSH"; then { $as_echo "$as_me:$LINENO: result: $CSH" >&5 $as_echo "$CSH" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test "$cross_compiling" = yes ; then cpu=$host_cpu vendor=$host_vendot os=$host_os else cpu= vendor= os= fi if test -x $CHAOS_HOMEDIR/bin/cercs_arch; then cercs_cv_archive=`$CHAOS_HOMEDIR/bin/cercs_arch "$cpu" "$vendor" "$os"` else cercs_cv_archive=${cercs_cv_archive-`cercs_arch 2>/dev/null`} || cercs_cv_archive="" fi # Extract the first word of "cygpath", so it can be a program name with args. set dummy cygpath; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_PATHPROG+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$PATHPROG"; then ac_cv_prog_PATHPROG="$PATHPROG" # 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_PATHPROG="cygpath -w" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_PATHPROG" && ac_cv_prog_PATHPROG="echo" fi fi PATHPROG=$ac_cv_prog_PATHPROG if test -n "$PATHPROG"; then { $as_echo "$as_me:$LINENO: result: $PATHPROG" >&5 $as_echo "$PATHPROG" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi DT_SRCDIR="" DT_CPPFLAGS="" DT_LDFLAGS="" DT_LIBS="" datatap=disable temptest=enable datatap_dir="" # Check whether --with-datatap was given. if test "${with_datatap+set}" = set; then withval=$with_datatap; ac_with_datatap=$withval else with_datatap=no fi if test "x$with_datatap" = "xno"; then cat >>confdefs.h <<\_ACEOF #define NO_DATATAP 1 _ACEOF datatap=disable temptest=disable elif test x"$with_datatap" = xyes -o x"$with_datatap" = xcheck; then cat >>confdefs.h <<\_ACEOF #define NO_DATATAP 0 _ACEOF if test x"$ac_with_infiniband" = xyes; then if test -z "$with_local_specified"; then # Check whether --with-ibpbio was given. if test "${with_ibpbio+set}" = set; then withval=$with_ibpbio; fi if test -n "$with_ibpbio"; then unset cercs_cv_ibpbio_include_arg unset cercs_cv_ibpbio_link_arg if test `echo $with_ibpbio | sed 's/\(.\).*/\1/g'` != "/"; then with_ibpbio=`pwd`/$with_ibpbio fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ibpbio package" >&5 $as_echo_n "checking needed include args for ibpbio package... " >&6; } if test "${cercs_cv_ibpbio_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./thin_ib.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ibpbio"; then if test `echo $with_ibpbio | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ibpbio" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ibpbio fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/thin_ib.h $datatap_dir/lib/thin_ib.h $datatap_dir/include/thin_ib.h $search_list $EXPANDED/thin_ib.h $EXPANDED/include/thin_ib.h $EXPANDED/share/thin_ib.h $EXPANDED/$cercs_cv_archive/thin_ib.h $EXPANDED/$cercs_cv_archive/include/thin_ib.h $EXPANDED/ibpbio/thin_ib.h $EXPANDED/ibpbio/$cercs_cv_archive/thin_ib.h $EXPANDED/ibpbio/include/thin_ib.h $EXPANDED/ibpbio/include/$cercs_cv_archive/thin_ib.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ibpbio/thin_ib.h `pwd`/../include/thin_ib.h `pwd`/../share/thin_ib.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ibpbio/thin_ib.h $HOME/$cercs_cv_archive/include/thin_ib.h $HOME/include/thin_ib.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ibpbio/include/thin_ib.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/thin_ib.h $CHAOS_HOMEDIR/ibpbio/$cercs_cv_archive/include/thin_ib.h $CHAOS_HOMEDIR/ibpbio/include/thin_ib.h $CHAOS_HOMEDIR/include/thin_ib.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/thin_ib.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/thin_ib.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/thin_ib.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/thin_ib.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/thin_ib.h" done fi search_list="$datatap_dir/thin_ib.h $datatap_dir/lib/thin_ib.h $datatap_dir/include/thin_ib.h $search_list /usr/include/thin_ib.h /usr/local/include/thin_ib.h /opt/ibpbio/include/thin_ib.h /opt/misc/include/thin_ib.h /opt/misc/include/$cercs_cv_archive/thin_ib.h" tmp_search_results="" echo "configure:29327: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:29331: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/thin_ib.h"; then cercs_cv_ibpbio_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.thin_ib.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ibpbio_include_arg" >&5 $as_echo "$cercs_cv_ibpbio_include_arg" >&6; } if test -n "$cercs_cv_ibpbio_include_arg"; then arg="$cercs_cv_ibpbio_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ibpbio"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ibpbio package" >&5 $as_echo_n "checking needed link args for ibpbio package... " >&6; } if test "${cercs_cv_ibpbio_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libibclient.la" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ibpbio"; then if test `echo $with_ibpbio | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ibpbio" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ibpbio fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libibclient.la $datatap_dir/lib/libibclient.la $datatap_dir/include/libibclient.la $search_list $EXPANDED/libibclient.la $EXPANDED/lib/libibclient.la $EXPANDED/share/libibclient.la $EXPANDED/$cercs_cv_archive/libibclient.la $EXPANDED/$cercs_cv_archive/lib/libibclient.la $EXPANDED/ibpbio/libibclient.la $EXPANDED/ibpbio/$cercs_cv_archive/libibclient.la $EXPANDED/ibpbio/lib/libibclient.la $EXPANDED/ibpbio/lib/$cercs_cv_archive/libibclient.la" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ibpbio/libibclient.la `pwd`/../lib/libibclient.la `pwd`/../share/libibclient.la" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ibpbio/libibclient.la $HOME/$cercs_cv_archive/lib/libibclient.la $HOME/lib/libibclient.la" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ibpbio/lib/libibclient.la $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libibclient.la $CHAOS_HOMEDIR/ibpbio/$cercs_cv_archive/lib/libibclient.la $CHAOS_HOMEDIR/ibpbio/lib/libibclient.la $CHAOS_HOMEDIR/lib/libibclient.la" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libibclient.la $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libibclient.la $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libibclient.la $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libibclient.la $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libibclient.la" done fi search_list="$datatap_dir/libibclient.la $datatap_dir/lib/libibclient.la $datatap_dir/include/libibclient.la $search_list /usr/lib/libibclient.la /usr/local/lib/libibclient.la /opt/ibpbio/lib/libibclient.la /opt/misc/lib/libibclient.la /opt/misc/lib/$cercs_cv_archive/libibclient.la" tmp_search_results="" echo "configure:29419: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:29423: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libibclient.la"; then cercs_cv_ibpbio_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libibclient.la//g"` else cercs_cv_ibpbio_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ibpbio_link_dir" >&5 $as_echo "$cercs_cv_ibpbio_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ibpbio_link_arg=`echo $cercs_cv_ibpbio_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ibpbio_link_arg"; then arg=$cercs_cv_ibpbio_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libibclient.la | sed 's/\..*//'` if test ! -r $cercs_cv_ibpbio_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ibpbio_link_arg "`echo $cercs_cv_ibpbio_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ibpbio"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-ibpbio was given. if test "${with_ibpbio+set}" = set; then withval=$with_ibpbio; fi if test -n "$with_ibpbio"; then unset cercs_cv_ibpbio_include_arg unset cercs_cv_ibpbio_link_arg if test `echo $with_ibpbio | sed 's/\(.\).*/\1/g'` != "/"; then with_ibpbio=`pwd`/$with_ibpbio fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ibpbio package" >&5 $as_echo_n "checking needed include args for ibpbio package... " >&6; } if test "${cercs_cv_ibpbio_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ibpbio $PWD/../../ibpbio $PWD/../../../ibpbio" tmp_search_results="" echo "configure:29492: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:29496: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/thin_ib.h"; then cercs_cv_ibpbio_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.thin_ib.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ibpbio_include_arg" >&5 $as_echo "$cercs_cv_ibpbio_include_arg" >&6; } if test -n "$cercs_cv_ibpbio_include_arg"; then arg="$cercs_cv_ibpbio_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ibpbio"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ibpbio package" >&5 $as_echo_n "checking needed link args for ibpbio package... " >&6; } if test "${cercs_cv_ibpbio_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ibpbio $PWD/../../ibpbio $PWD/../../../ibpbio" tmp_search_results="" echo "configure:29534: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:29538: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libibclient.la"; then cercs_cv_ibpbio_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libibclient.la//g"` else cercs_cv_ibpbio_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ibpbio_link_dir" >&5 $as_echo "$cercs_cv_ibpbio_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ibpbio_link_arg=`echo $cercs_cv_ibpbio_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ibpbio_link_arg"; then arg=$cercs_cv_ibpbio_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libibclient.la | sed 's/\..*//'` if test ! -r $cercs_cv_ibpbio_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ibpbio_link_arg "`echo $cercs_cv_ibpbio_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ibpbio"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -z "$with_local_specified"; then # Check whether --with-ffs was given. if test "${with_ffs+set}" = set; then withval=$with_ffs; fi if test -n "$with_ffs"; then unset cercs_cv_ffs_include_arg unset cercs_cv_ffs_link_arg if test `echo $with_ffs | sed 's/\(.\).*/\1/g'` != "/"; then with_ffs=`pwd`/$with_ffs fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ffs package" >&5 $as_echo_n "checking needed include args for ffs package... " >&6; } if test "${cercs_cv_ffs_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./ffs.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ffs"; then if test `echo $with_ffs | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ffs" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ffs fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/ffs.h $datatap_dir/lib/ffs.h $datatap_dir/include/ffs.h $search_list $EXPANDED/ffs.h $EXPANDED/include/ffs.h $EXPANDED/share/ffs.h $EXPANDED/$cercs_cv_archive/ffs.h $EXPANDED/$cercs_cv_archive/include/ffs.h $EXPANDED/ffs/ffs.h $EXPANDED/ffs/$cercs_cv_archive/ffs.h $EXPANDED/ffs/include/ffs.h $EXPANDED/ffs/include/$cercs_cv_archive/ffs.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ffs/ffs.h `pwd`/../include/ffs.h `pwd`/../share/ffs.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ffs/ffs.h $HOME/$cercs_cv_archive/include/ffs.h $HOME/include/ffs.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ffs/include/ffs.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/ffs.h $CHAOS_HOMEDIR/ffs/$cercs_cv_archive/include/ffs.h $CHAOS_HOMEDIR/ffs/include/ffs.h $CHAOS_HOMEDIR/include/ffs.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/ffs.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/ffs.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/ffs.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/ffs.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/ffs.h" done fi search_list="$datatap_dir/ffs.h $datatap_dir/lib/ffs.h $datatap_dir/include/ffs.h $search_list /usr/include/ffs.h /usr/local/include/ffs.h /opt/ffs/include/ffs.h /opt/misc/include/ffs.h /opt/misc/include/$cercs_cv_archive/ffs.h" tmp_search_results="" echo "configure:29662: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:29666: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/ffs.h"; then cercs_cv_ffs_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.ffs.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_include_arg" >&5 $as_echo "$cercs_cv_ffs_include_arg" >&6; } if test -n "$cercs_cv_ffs_include_arg"; then arg="$cercs_cv_ffs_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ffs"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ffs package" >&5 $as_echo_n "checking needed link args for ffs package... " >&6; } if test "${cercs_cv_ffs_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libffs.la" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ffs"; then if test `echo $with_ffs | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ffs" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ffs fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libffs.la $datatap_dir/lib/libffs.la $datatap_dir/include/libffs.la $search_list $EXPANDED/libffs.la $EXPANDED/lib/libffs.la $EXPANDED/share/libffs.la $EXPANDED/$cercs_cv_archive/libffs.la $EXPANDED/$cercs_cv_archive/lib/libffs.la $EXPANDED/ffs/libffs.la $EXPANDED/ffs/$cercs_cv_archive/libffs.la $EXPANDED/ffs/lib/libffs.la $EXPANDED/ffs/lib/$cercs_cv_archive/libffs.la" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ffs/libffs.la `pwd`/../lib/libffs.la `pwd`/../share/libffs.la" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ffs/libffs.la $HOME/$cercs_cv_archive/lib/libffs.la $HOME/lib/libffs.la" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ffs/lib/libffs.la $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libffs.la $CHAOS_HOMEDIR/ffs/$cercs_cv_archive/lib/libffs.la $CHAOS_HOMEDIR/ffs/lib/libffs.la $CHAOS_HOMEDIR/lib/libffs.la" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libffs.la $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libffs.la $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libffs.la $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libffs.la $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libffs.la" done fi search_list="$datatap_dir/libffs.la $datatap_dir/lib/libffs.la $datatap_dir/include/libffs.la $search_list /usr/lib/libffs.la /usr/local/lib/libffs.la /opt/ffs/lib/libffs.la /opt/misc/lib/libffs.la /opt/misc/lib/$cercs_cv_archive/libffs.la" tmp_search_results="" echo "configure:29754: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:29758: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libffs.la"; then cercs_cv_ffs_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libffs.la//g"` else cercs_cv_ffs_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_link_dir" >&5 $as_echo "$cercs_cv_ffs_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ffs_link_arg=`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ffs_link_arg"; then arg=$cercs_cv_ffs_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libffs.la | sed 's/\..*//'` if test ! -r $cercs_cv_ffs_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ffs_link_arg "`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ffs"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-ffs was given. if test "${with_ffs+set}" = set; then withval=$with_ffs; fi if test -n "$with_ffs"; then unset cercs_cv_ffs_include_arg unset cercs_cv_ffs_link_arg if test `echo $with_ffs | sed 's/\(.\).*/\1/g'` != "/"; then with_ffs=`pwd`/$with_ffs fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ffs package" >&5 $as_echo_n "checking needed include args for ffs package... " >&6; } if test "${cercs_cv_ffs_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ffs $PWD/../../ffs $PWD/../../../ffs" tmp_search_results="" echo "configure:29827: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:29831: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/ffs.h"; then cercs_cv_ffs_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.ffs.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_include_arg" >&5 $as_echo "$cercs_cv_ffs_include_arg" >&6; } if test -n "$cercs_cv_ffs_include_arg"; then arg="$cercs_cv_ffs_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ffs"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ffs package" >&5 $as_echo_n "checking needed link args for ffs package... " >&6; } if test "${cercs_cv_ffs_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ffs $PWD/../../ffs $PWD/../../../ffs" tmp_search_results="" echo "configure:29869: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:29873: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libffs.la"; then cercs_cv_ffs_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libffs.la//g"` else cercs_cv_ffs_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_link_dir" >&5 $as_echo "$cercs_cv_ffs_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ffs_link_arg=`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ffs_link_arg"; then arg=$cercs_cv_ffs_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libffs.la | sed 's/\..*//'` if test ! -r $cercs_cv_ffs_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ffs_link_arg "`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ffs"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -z "$with_local_specified"; then # Check whether --with-gen_thread was given. if test "${with_gen_thread+set}" = set; then withval=$with_gen_thread; fi if test -n "$with_gen_thread"; then unset cercs_cv_gen_thread_include_arg unset cercs_cv_gen_thread_link_arg if test `echo $with_gen_thread | sed 's/\(.\).*/\1/g'` != "/"; then with_gen_thread=`pwd`/$with_gen_thread fi fi { $as_echo "$as_me:$LINENO: checking needed include args for gen_thread package" >&5 $as_echo_n "checking needed include args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./gen_thread.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_gen_thread"; then if test `echo $with_gen_thread | cut -c1` = "~"; then EXPANDED=`echo "echo $with_gen_thread" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_gen_thread fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/gen_thread.h $datatap_dir/lib/gen_thread.h $datatap_dir/include/gen_thread.h $search_list $EXPANDED/gen_thread.h $EXPANDED/include/gen_thread.h $EXPANDED/share/gen_thread.h $EXPANDED/$cercs_cv_archive/gen_thread.h $EXPANDED/$cercs_cv_archive/include/gen_thread.h $EXPANDED/gen_thread/gen_thread.h $EXPANDED/gen_thread/$cercs_cv_archive/gen_thread.h $EXPANDED/gen_thread/include/gen_thread.h $EXPANDED/gen_thread/include/$cercs_cv_archive/gen_thread.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../gen_thread/gen_thread.h `pwd`/../include/gen_thread.h `pwd`/../share/gen_thread.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/gen_thread/gen_thread.h $HOME/$cercs_cv_archive/include/gen_thread.h $HOME/include/gen_thread.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/gen_thread/include/gen_thread.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/gen_thread.h $CHAOS_HOMEDIR/gen_thread/$cercs_cv_archive/include/gen_thread.h $CHAOS_HOMEDIR/gen_thread/include/gen_thread.h $CHAOS_HOMEDIR/include/gen_thread.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/gen_thread.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/gen_thread.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/gen_thread.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/gen_thread.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/gen_thread.h" done fi search_list="$datatap_dir/gen_thread.h $datatap_dir/lib/gen_thread.h $datatap_dir/include/gen_thread.h $search_list /usr/include/gen_thread.h /usr/local/include/gen_thread.h /opt/gen_thread/include/gen_thread.h /opt/misc/include/gen_thread.h /opt/misc/include/$cercs_cv_archive/gen_thread.h" tmp_search_results="" echo "configure:29997: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30001: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/gen_thread.h"; then cercs_cv_gen_thread_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.gen_thread.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_include_arg" >&5 $as_echo "$cercs_cv_gen_thread_include_arg" >&6; } if test -n "$cercs_cv_gen_thread_include_arg"; then arg="$cercs_cv_gen_thread_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "gen_thread"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for gen_thread package" >&5 $as_echo_n "checking needed link args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libgen_thread.la" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_gen_thread"; then if test `echo $with_gen_thread | cut -c1` = "~"; then EXPANDED=`echo "echo $with_gen_thread" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_gen_thread fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libgen_thread.la $datatap_dir/lib/libgen_thread.la $datatap_dir/include/libgen_thread.la $search_list $EXPANDED/libgen_thread.la $EXPANDED/lib/libgen_thread.la $EXPANDED/share/libgen_thread.la $EXPANDED/$cercs_cv_archive/libgen_thread.la $EXPANDED/$cercs_cv_archive/lib/libgen_thread.la $EXPANDED/gen_thread/libgen_thread.la $EXPANDED/gen_thread/$cercs_cv_archive/libgen_thread.la $EXPANDED/gen_thread/lib/libgen_thread.la $EXPANDED/gen_thread/lib/$cercs_cv_archive/libgen_thread.la" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../gen_thread/libgen_thread.la `pwd`/../lib/libgen_thread.la `pwd`/../share/libgen_thread.la" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/gen_thread/libgen_thread.la $HOME/$cercs_cv_archive/lib/libgen_thread.la $HOME/lib/libgen_thread.la" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/gen_thread/lib/libgen_thread.la $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libgen_thread.la $CHAOS_HOMEDIR/gen_thread/$cercs_cv_archive/lib/libgen_thread.la $CHAOS_HOMEDIR/gen_thread/lib/libgen_thread.la $CHAOS_HOMEDIR/lib/libgen_thread.la" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libgen_thread.la $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libgen_thread.la $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libgen_thread.la $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libgen_thread.la $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libgen_thread.la" done fi search_list="$datatap_dir/libgen_thread.la $datatap_dir/lib/libgen_thread.la $datatap_dir/include/libgen_thread.la $search_list /usr/lib/libgen_thread.la /usr/local/lib/libgen_thread.la /opt/gen_thread/lib/libgen_thread.la /opt/misc/lib/libgen_thread.la /opt/misc/lib/$cercs_cv_archive/libgen_thread.la" tmp_search_results="" echo "configure:30089: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30093: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libgen_thread.la"; then cercs_cv_gen_thread_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libgen_thread.la//g"` else cercs_cv_gen_thread_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_link_dir" >&5 $as_echo "$cercs_cv_gen_thread_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_gen_thread_link_arg=`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_gen_thread_link_arg"; then arg=$cercs_cv_gen_thread_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libgen_thread.la | sed 's/\..*//'` if test ! -r $cercs_cv_gen_thread_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_gen_thread_link_arg "`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "gen_thread"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-gen_thread was given. if test "${with_gen_thread+set}" = set; then withval=$with_gen_thread; fi if test -n "$with_gen_thread"; then unset cercs_cv_gen_thread_include_arg unset cercs_cv_gen_thread_link_arg if test `echo $with_gen_thread | sed 's/\(.\).*/\1/g'` != "/"; then with_gen_thread=`pwd`/$with_gen_thread fi fi { $as_echo "$as_me:$LINENO: checking needed include args for gen_thread package" >&5 $as_echo_n "checking needed include args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../gen_thread $PWD/../../gen_thread $PWD/../../../gen_thread" tmp_search_results="" echo "configure:30162: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30166: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/gen_thread.h"; then cercs_cv_gen_thread_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.gen_thread.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_include_arg" >&5 $as_echo "$cercs_cv_gen_thread_include_arg" >&6; } if test -n "$cercs_cv_gen_thread_include_arg"; then arg="$cercs_cv_gen_thread_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "gen_thread"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for gen_thread package" >&5 $as_echo_n "checking needed link args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../gen_thread $PWD/../../gen_thread $PWD/../../../gen_thread" tmp_search_results="" echo "configure:30204: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30208: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libgen_thread.la"; then cercs_cv_gen_thread_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libgen_thread.la//g"` else cercs_cv_gen_thread_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_link_dir" >&5 $as_echo "$cercs_cv_gen_thread_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_gen_thread_link_arg=`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_gen_thread_link_arg"; then arg=$cercs_cv_gen_thread_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libgen_thread.la | sed 's/\..*//'` if test ! -r $cercs_cv_gen_thread_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_gen_thread_link_arg "`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "gen_thread"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -n "$cercs_cv_ibpbio_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ibpbio_link_dir" DT_LIBS="$DT_LIBS -libclient" datatap=ibverbs else temptest=disable fi if test -n "$cercs_cv_ffs_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ffs_link_dir" DT_LIBS="$DT_LIBS -lgen_thread" datatap=ibverbs else temptest=disable fi if test -n "$cercs_cv_gen_thread_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_gen_thread_link_dir" DT_LIBS="$DT_LIBS -lgen_thread" datatap=ibverbs else temptest=disable fi elif test x"$ac_with_portals" = xyes; then if test -z "$with_local_specified"; then # Check whether --with-ptlpbio was given. if test "${with_ptlpbio+set}" = set; then withval=$with_ptlpbio; fi if test -n "$with_ptlpbio"; then unset cercs_cv_ptlpbio_include_arg unset cercs_cv_ptlpbio_link_arg if test `echo $with_ptlpbio | sed 's/\(.\).*/\1/g'` != "/"; then with_ptlpbio=`pwd`/$with_ptlpbio fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ptlpbio package" >&5 $as_echo_n "checking needed include args for ptlpbio package... " >&6; } if test "${cercs_cv_ptlpbio_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./thin_portal.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ptlpbio"; then if test `echo $with_ptlpbio | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ptlpbio" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ptlpbio fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/thin_portal.h $datatap_dir/lib/thin_portal.h $datatap_dir/include/thin_portal.h $search_list $EXPANDED/thin_portal.h $EXPANDED/include/thin_portal.h $EXPANDED/share/thin_portal.h $EXPANDED/$cercs_cv_archive/thin_portal.h $EXPANDED/$cercs_cv_archive/include/thin_portal.h $EXPANDED/ptlpbio/thin_portal.h $EXPANDED/ptlpbio/$cercs_cv_archive/thin_portal.h $EXPANDED/ptlpbio/include/thin_portal.h $EXPANDED/ptlpbio/include/$cercs_cv_archive/thin_portal.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ptlpbio/thin_portal.h `pwd`/../include/thin_portal.h `pwd`/../share/thin_portal.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ptlpbio/thin_portal.h $HOME/$cercs_cv_archive/include/thin_portal.h $HOME/include/thin_portal.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ptlpbio/include/thin_portal.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/thin_portal.h $CHAOS_HOMEDIR/ptlpbio/$cercs_cv_archive/include/thin_portal.h $CHAOS_HOMEDIR/ptlpbio/include/thin_portal.h $CHAOS_HOMEDIR/include/thin_portal.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/thin_portal.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/thin_portal.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/thin_portal.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/thin_portal.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/thin_portal.h" done fi search_list="$datatap_dir/thin_portal.h $datatap_dir/lib/thin_portal.h $datatap_dir/include/thin_portal.h $search_list /usr/include/thin_portal.h /usr/local/include/thin_portal.h /opt/ptlpbio/include/thin_portal.h /opt/misc/include/thin_portal.h /opt/misc/include/$cercs_cv_archive/thin_portal.h" tmp_search_results="" echo "configure:30355: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30359: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/thin_portal.h"; then cercs_cv_ptlpbio_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.thin_portal.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ptlpbio_include_arg" >&5 $as_echo "$cercs_cv_ptlpbio_include_arg" >&6; } if test -n "$cercs_cv_ptlpbio_include_arg"; then arg="$cercs_cv_ptlpbio_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ptlpbio"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ptlpbio package" >&5 $as_echo_n "checking needed link args for ptlpbio package... " >&6; } if test "${cercs_cv_ptlpbio_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libptlclient.a" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ptlpbio"; then if test `echo $with_ptlpbio | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ptlpbio" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ptlpbio fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libptlclient.a $datatap_dir/lib/libptlclient.a $datatap_dir/include/libptlclient.a $search_list $EXPANDED/libptlclient.a $EXPANDED/lib/libptlclient.a $EXPANDED/share/libptlclient.a $EXPANDED/$cercs_cv_archive/libptlclient.a $EXPANDED/$cercs_cv_archive/lib/libptlclient.a $EXPANDED/ptlpbio/libptlclient.a $EXPANDED/ptlpbio/$cercs_cv_archive/libptlclient.a $EXPANDED/ptlpbio/lib/libptlclient.a $EXPANDED/ptlpbio/lib/$cercs_cv_archive/libptlclient.a" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ptlpbio/libptlclient.a `pwd`/../lib/libptlclient.a `pwd`/../share/libptlclient.a" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ptlpbio/libptlclient.a $HOME/$cercs_cv_archive/lib/libptlclient.a $HOME/lib/libptlclient.a" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ptlpbio/lib/libptlclient.a $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libptlclient.a $CHAOS_HOMEDIR/ptlpbio/$cercs_cv_archive/lib/libptlclient.a $CHAOS_HOMEDIR/ptlpbio/lib/libptlclient.a $CHAOS_HOMEDIR/lib/libptlclient.a" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libptlclient.a $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libptlclient.a $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libptlclient.a $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libptlclient.a $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libptlclient.a" done fi search_list="$datatap_dir/libptlclient.a $datatap_dir/lib/libptlclient.a $datatap_dir/include/libptlclient.a $search_list /usr/lib/libptlclient.a /usr/local/lib/libptlclient.a /opt/ptlpbio/lib/libptlclient.a /opt/misc/lib/libptlclient.a /opt/misc/lib/$cercs_cv_archive/libptlclient.a" tmp_search_results="" echo "configure:30447: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30451: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libptlclient.a"; then cercs_cv_ptlpbio_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libptlclient.a//g"` else cercs_cv_ptlpbio_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ptlpbio_link_dir" >&5 $as_echo "$cercs_cv_ptlpbio_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ptlpbio_link_arg=`echo $cercs_cv_ptlpbio_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ptlpbio_link_arg"; then arg=$cercs_cv_ptlpbio_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libptlclient.a | sed 's/\..*//'` if test ! -r $cercs_cv_ptlpbio_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ptlpbio_link_arg "`echo $cercs_cv_ptlpbio_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ptlpbio"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-ptlpbio was given. if test "${with_ptlpbio+set}" = set; then withval=$with_ptlpbio; fi if test -n "$with_ptlpbio"; then unset cercs_cv_ptlpbio_include_arg unset cercs_cv_ptlpbio_link_arg if test `echo $with_ptlpbio | sed 's/\(.\).*/\1/g'` != "/"; then with_ptlpbio=`pwd`/$with_ptlpbio fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ptlpbio package" >&5 $as_echo_n "checking needed include args for ptlpbio package... " >&6; } if test "${cercs_cv_ptlpbio_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ptlpbio $PWD/../../ptlpbio $PWD/../../../ptlpbio" tmp_search_results="" echo "configure:30520: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30524: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/thin_portal.h"; then cercs_cv_ptlpbio_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.thin_portal.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ptlpbio_include_arg" >&5 $as_echo "$cercs_cv_ptlpbio_include_arg" >&6; } if test -n "$cercs_cv_ptlpbio_include_arg"; then arg="$cercs_cv_ptlpbio_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ptlpbio"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ptlpbio package" >&5 $as_echo_n "checking needed link args for ptlpbio package... " >&6; } if test "${cercs_cv_ptlpbio_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ptlpbio $PWD/../../ptlpbio $PWD/../../../ptlpbio" tmp_search_results="" echo "configure:30562: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30566: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libptlclient.a"; then cercs_cv_ptlpbio_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libptlclient.a//g"` else cercs_cv_ptlpbio_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ptlpbio_link_dir" >&5 $as_echo "$cercs_cv_ptlpbio_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ptlpbio_link_arg=`echo $cercs_cv_ptlpbio_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ptlpbio_link_arg"; then arg=$cercs_cv_ptlpbio_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libptlclient.a | sed 's/\..*//'` if test ! -r $cercs_cv_ptlpbio_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ptlpbio_link_arg "`echo $cercs_cv_ptlpbio_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ptlpbio"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -n "$cercs_cv_ptlpbio_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ptlpbio_link_dir" DT_LIBS="$DT_LIBS -lptlclient -lptlserver -lbench -ldl" datatap=portals else temptest=disable fi else echo "Neither portals nor infiniband found. Disabling datatap" cat >>confdefs.h <<\_ACEOF #define NO_DATATAP 1 _ACEOF datatap=disable temptest=disable fi else { $as_echo "$as_me:$LINENO: Datatap with custom library path: $withval" >&5 $as_echo "$as_me: Datatap with custom library path: $withval" >&6;} datatap_dir=$withval cat >>confdefs.h <<\_ACEOF #define NO_DATATAP 0 _ACEOF if test x"$ac_with_infiniband" = xyes; then if test -z "$with_local_specified"; then # Check whether --with-ibpbio was given. if test "${with_ibpbio+set}" = set; then withval=$with_ibpbio; fi if test -n "$with_ibpbio"; then unset cercs_cv_ibpbio_include_arg unset cercs_cv_ibpbio_link_arg if test `echo $with_ibpbio | sed 's/\(.\).*/\1/g'` != "/"; then with_ibpbio=`pwd`/$with_ibpbio fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ibpbio package" >&5 $as_echo_n "checking needed include args for ibpbio package... " >&6; } if test "${cercs_cv_ibpbio_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./thin_ib.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ibpbio"; then if test `echo $with_ibpbio | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ibpbio" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ibpbio fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/thin_ib.h $datatap_dir/lib/thin_ib.h $datatap_dir/include/thin_ib.h $search_list $EXPANDED/thin_ib.h $EXPANDED/include/thin_ib.h $EXPANDED/share/thin_ib.h $EXPANDED/$cercs_cv_archive/thin_ib.h $EXPANDED/$cercs_cv_archive/include/thin_ib.h $EXPANDED/ibpbio/thin_ib.h $EXPANDED/ibpbio/$cercs_cv_archive/thin_ib.h $EXPANDED/ibpbio/include/thin_ib.h $EXPANDED/ibpbio/include/$cercs_cv_archive/thin_ib.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ibpbio/thin_ib.h `pwd`/../include/thin_ib.h `pwd`/../share/thin_ib.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ibpbio/thin_ib.h $HOME/$cercs_cv_archive/include/thin_ib.h $HOME/include/thin_ib.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ibpbio/include/thin_ib.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/thin_ib.h $CHAOS_HOMEDIR/ibpbio/$cercs_cv_archive/include/thin_ib.h $CHAOS_HOMEDIR/ibpbio/include/thin_ib.h $CHAOS_HOMEDIR/include/thin_ib.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/thin_ib.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/thin_ib.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/thin_ib.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/thin_ib.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/thin_ib.h" done fi search_list="$datatap_dir/thin_ib.h $datatap_dir/lib/thin_ib.h $datatap_dir/include/thin_ib.h $search_list /usr/include/thin_ib.h /usr/local/include/thin_ib.h /opt/ibpbio/include/thin_ib.h /opt/misc/include/thin_ib.h /opt/misc/include/$cercs_cv_archive/thin_ib.h" tmp_search_results="" echo "configure:30722: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30726: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/thin_ib.h"; then cercs_cv_ibpbio_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.thin_ib.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ibpbio_include_arg" >&5 $as_echo "$cercs_cv_ibpbio_include_arg" >&6; } if test -n "$cercs_cv_ibpbio_include_arg"; then arg="$cercs_cv_ibpbio_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ibpbio"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ibpbio package" >&5 $as_echo_n "checking needed link args for ibpbio package... " >&6; } if test "${cercs_cv_ibpbio_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libibclient.la" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ibpbio"; then if test `echo $with_ibpbio | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ibpbio" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ibpbio fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libibclient.la $datatap_dir/lib/libibclient.la $datatap_dir/include/libibclient.la $search_list $EXPANDED/libibclient.la $EXPANDED/lib/libibclient.la $EXPANDED/share/libibclient.la $EXPANDED/$cercs_cv_archive/libibclient.la $EXPANDED/$cercs_cv_archive/lib/libibclient.la $EXPANDED/ibpbio/libibclient.la $EXPANDED/ibpbio/$cercs_cv_archive/libibclient.la $EXPANDED/ibpbio/lib/libibclient.la $EXPANDED/ibpbio/lib/$cercs_cv_archive/libibclient.la" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ibpbio/libibclient.la `pwd`/../lib/libibclient.la `pwd`/../share/libibclient.la" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ibpbio/libibclient.la $HOME/$cercs_cv_archive/lib/libibclient.la $HOME/lib/libibclient.la" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ibpbio/lib/libibclient.la $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libibclient.la $CHAOS_HOMEDIR/ibpbio/$cercs_cv_archive/lib/libibclient.la $CHAOS_HOMEDIR/ibpbio/lib/libibclient.la $CHAOS_HOMEDIR/lib/libibclient.la" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libibclient.la $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libibclient.la $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libibclient.la $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libibclient.la $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libibclient.la" done fi search_list="$datatap_dir/libibclient.la $datatap_dir/lib/libibclient.la $datatap_dir/include/libibclient.la $search_list /usr/lib/libibclient.la /usr/local/lib/libibclient.la /opt/ibpbio/lib/libibclient.la /opt/misc/lib/libibclient.la /opt/misc/lib/$cercs_cv_archive/libibclient.la" tmp_search_results="" echo "configure:30814: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30818: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libibclient.la"; then cercs_cv_ibpbio_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libibclient.la//g"` else cercs_cv_ibpbio_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ibpbio_link_dir" >&5 $as_echo "$cercs_cv_ibpbio_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ibpbio_link_arg=`echo $cercs_cv_ibpbio_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ibpbio_link_arg"; then arg=$cercs_cv_ibpbio_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libibclient.la | sed 's/\..*//'` if test ! -r $cercs_cv_ibpbio_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ibpbio_link_arg "`echo $cercs_cv_ibpbio_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ibpbio"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-ibpbio was given. if test "${with_ibpbio+set}" = set; then withval=$with_ibpbio; fi if test -n "$with_ibpbio"; then unset cercs_cv_ibpbio_include_arg unset cercs_cv_ibpbio_link_arg if test `echo $with_ibpbio | sed 's/\(.\).*/\1/g'` != "/"; then with_ibpbio=`pwd`/$with_ibpbio fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ibpbio package" >&5 $as_echo_n "checking needed include args for ibpbio package... " >&6; } if test "${cercs_cv_ibpbio_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ibpbio $PWD/../../ibpbio $PWD/../../../ibpbio" tmp_search_results="" echo "configure:30887: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30891: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/thin_ib.h"; then cercs_cv_ibpbio_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.thin_ib.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ibpbio_include_arg" >&5 $as_echo "$cercs_cv_ibpbio_include_arg" >&6; } if test -n "$cercs_cv_ibpbio_include_arg"; then arg="$cercs_cv_ibpbio_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ibpbio"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ibpbio package" >&5 $as_echo_n "checking needed link args for ibpbio package... " >&6; } if test "${cercs_cv_ibpbio_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ibpbio $PWD/../../ibpbio $PWD/../../../ibpbio" tmp_search_results="" echo "configure:30929: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:30933: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libibclient.la"; then cercs_cv_ibpbio_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libibclient.la//g"` else cercs_cv_ibpbio_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ibpbio_link_dir" >&5 $as_echo "$cercs_cv_ibpbio_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ibpbio_link_arg=`echo $cercs_cv_ibpbio_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ibpbio_link_arg"; then arg=$cercs_cv_ibpbio_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libibclient.la | sed 's/\..*//'` if test ! -r $cercs_cv_ibpbio_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ibpbio_link_arg "`echo $cercs_cv_ibpbio_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ibpbio"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -z "$with_local_specified"; then # Check whether --with-ffs was given. if test "${with_ffs+set}" = set; then withval=$with_ffs; fi if test -n "$with_ffs"; then unset cercs_cv_ffs_include_arg unset cercs_cv_ffs_link_arg if test `echo $with_ffs | sed 's/\(.\).*/\1/g'` != "/"; then with_ffs=`pwd`/$with_ffs fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ffs package" >&5 $as_echo_n "checking needed include args for ffs package... " >&6; } if test "${cercs_cv_ffs_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./ffs.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ffs"; then if test `echo $with_ffs | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ffs" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ffs fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/ffs.h $datatap_dir/lib/ffs.h $datatap_dir/include/ffs.h $search_list $EXPANDED/ffs.h $EXPANDED/include/ffs.h $EXPANDED/share/ffs.h $EXPANDED/$cercs_cv_archive/ffs.h $EXPANDED/$cercs_cv_archive/include/ffs.h $EXPANDED/ffs/ffs.h $EXPANDED/ffs/$cercs_cv_archive/ffs.h $EXPANDED/ffs/include/ffs.h $EXPANDED/ffs/include/$cercs_cv_archive/ffs.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ffs/ffs.h `pwd`/../include/ffs.h `pwd`/../share/ffs.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ffs/ffs.h $HOME/$cercs_cv_archive/include/ffs.h $HOME/include/ffs.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ffs/include/ffs.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/ffs.h $CHAOS_HOMEDIR/ffs/$cercs_cv_archive/include/ffs.h $CHAOS_HOMEDIR/ffs/include/ffs.h $CHAOS_HOMEDIR/include/ffs.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/ffs.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/ffs.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/ffs.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/ffs.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/ffs.h" done fi search_list="$datatap_dir/ffs.h $datatap_dir/lib/ffs.h $datatap_dir/include/ffs.h $search_list /usr/include/ffs.h /usr/local/include/ffs.h /opt/ffs/include/ffs.h /opt/misc/include/ffs.h /opt/misc/include/$cercs_cv_archive/ffs.h" tmp_search_results="" echo "configure:31057: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31061: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/ffs.h"; then cercs_cv_ffs_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.ffs.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_include_arg" >&5 $as_echo "$cercs_cv_ffs_include_arg" >&6; } if test -n "$cercs_cv_ffs_include_arg"; then arg="$cercs_cv_ffs_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ffs"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ffs package" >&5 $as_echo_n "checking needed link args for ffs package... " >&6; } if test "${cercs_cv_ffs_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libffs.la" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ffs"; then if test `echo $with_ffs | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ffs" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ffs fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libffs.la $datatap_dir/lib/libffs.la $datatap_dir/include/libffs.la $search_list $EXPANDED/libffs.la $EXPANDED/lib/libffs.la $EXPANDED/share/libffs.la $EXPANDED/$cercs_cv_archive/libffs.la $EXPANDED/$cercs_cv_archive/lib/libffs.la $EXPANDED/ffs/libffs.la $EXPANDED/ffs/$cercs_cv_archive/libffs.la $EXPANDED/ffs/lib/libffs.la $EXPANDED/ffs/lib/$cercs_cv_archive/libffs.la" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ffs/libffs.la `pwd`/../lib/libffs.la `pwd`/../share/libffs.la" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ffs/libffs.la $HOME/$cercs_cv_archive/lib/libffs.la $HOME/lib/libffs.la" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ffs/lib/libffs.la $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libffs.la $CHAOS_HOMEDIR/ffs/$cercs_cv_archive/lib/libffs.la $CHAOS_HOMEDIR/ffs/lib/libffs.la $CHAOS_HOMEDIR/lib/libffs.la" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libffs.la $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libffs.la $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libffs.la $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libffs.la $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libffs.la" done fi search_list="$datatap_dir/libffs.la $datatap_dir/lib/libffs.la $datatap_dir/include/libffs.la $search_list /usr/lib/libffs.la /usr/local/lib/libffs.la /opt/ffs/lib/libffs.la /opt/misc/lib/libffs.la /opt/misc/lib/$cercs_cv_archive/libffs.la" tmp_search_results="" echo "configure:31149: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31153: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libffs.la"; then cercs_cv_ffs_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libffs.la//g"` else cercs_cv_ffs_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_link_dir" >&5 $as_echo "$cercs_cv_ffs_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ffs_link_arg=`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ffs_link_arg"; then arg=$cercs_cv_ffs_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libffs.la | sed 's/\..*//'` if test ! -r $cercs_cv_ffs_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ffs_link_arg "`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ffs"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-ffs was given. if test "${with_ffs+set}" = set; then withval=$with_ffs; fi if test -n "$with_ffs"; then unset cercs_cv_ffs_include_arg unset cercs_cv_ffs_link_arg if test `echo $with_ffs | sed 's/\(.\).*/\1/g'` != "/"; then with_ffs=`pwd`/$with_ffs fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ffs package" >&5 $as_echo_n "checking needed include args for ffs package... " >&6; } if test "${cercs_cv_ffs_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ffs $PWD/../../ffs $PWD/../../../ffs" tmp_search_results="" echo "configure:31222: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31226: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/ffs.h"; then cercs_cv_ffs_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.ffs.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_include_arg" >&5 $as_echo "$cercs_cv_ffs_include_arg" >&6; } if test -n "$cercs_cv_ffs_include_arg"; then arg="$cercs_cv_ffs_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ffs"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ffs package" >&5 $as_echo_n "checking needed link args for ffs package... " >&6; } if test "${cercs_cv_ffs_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ffs $PWD/../../ffs $PWD/../../../ffs" tmp_search_results="" echo "configure:31264: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31268: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libffs.la"; then cercs_cv_ffs_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libffs.la//g"` else cercs_cv_ffs_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_link_dir" >&5 $as_echo "$cercs_cv_ffs_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ffs_link_arg=`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ffs_link_arg"; then arg=$cercs_cv_ffs_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libffs.la | sed 's/\..*//'` if test ! -r $cercs_cv_ffs_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ffs_link_arg "`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ffs"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -z "$with_local_specified"; then # Check whether --with-gen_thread was given. if test "${with_gen_thread+set}" = set; then withval=$with_gen_thread; fi if test -n "$with_gen_thread"; then unset cercs_cv_gen_thread_include_arg unset cercs_cv_gen_thread_link_arg if test `echo $with_gen_thread | sed 's/\(.\).*/\1/g'` != "/"; then with_gen_thread=`pwd`/$with_gen_thread fi fi { $as_echo "$as_me:$LINENO: checking needed include args for gen_thread package" >&5 $as_echo_n "checking needed include args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./gen_thread.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_gen_thread"; then if test `echo $with_gen_thread | cut -c1` = "~"; then EXPANDED=`echo "echo $with_gen_thread" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_gen_thread fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/gen_thread.h $datatap_dir/lib/gen_thread.h $datatap_dir/include/gen_thread.h $search_list $EXPANDED/gen_thread.h $EXPANDED/include/gen_thread.h $EXPANDED/share/gen_thread.h $EXPANDED/$cercs_cv_archive/gen_thread.h $EXPANDED/$cercs_cv_archive/include/gen_thread.h $EXPANDED/gen_thread/gen_thread.h $EXPANDED/gen_thread/$cercs_cv_archive/gen_thread.h $EXPANDED/gen_thread/include/gen_thread.h $EXPANDED/gen_thread/include/$cercs_cv_archive/gen_thread.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../gen_thread/gen_thread.h `pwd`/../include/gen_thread.h `pwd`/../share/gen_thread.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/gen_thread/gen_thread.h $HOME/$cercs_cv_archive/include/gen_thread.h $HOME/include/gen_thread.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/gen_thread/include/gen_thread.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/gen_thread.h $CHAOS_HOMEDIR/gen_thread/$cercs_cv_archive/include/gen_thread.h $CHAOS_HOMEDIR/gen_thread/include/gen_thread.h $CHAOS_HOMEDIR/include/gen_thread.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/gen_thread.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/gen_thread.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/gen_thread.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/gen_thread.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/gen_thread.h" done fi search_list="$datatap_dir/gen_thread.h $datatap_dir/lib/gen_thread.h $datatap_dir/include/gen_thread.h $search_list /usr/include/gen_thread.h /usr/local/include/gen_thread.h /opt/gen_thread/include/gen_thread.h /opt/misc/include/gen_thread.h /opt/misc/include/$cercs_cv_archive/gen_thread.h" tmp_search_results="" echo "configure:31392: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31396: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/gen_thread.h"; then cercs_cv_gen_thread_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.gen_thread.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_include_arg" >&5 $as_echo "$cercs_cv_gen_thread_include_arg" >&6; } if test -n "$cercs_cv_gen_thread_include_arg"; then arg="$cercs_cv_gen_thread_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "gen_thread"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for gen_thread package" >&5 $as_echo_n "checking needed link args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libgen_thread.la" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_gen_thread"; then if test `echo $with_gen_thread | cut -c1` = "~"; then EXPANDED=`echo "echo $with_gen_thread" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_gen_thread fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libgen_thread.la $datatap_dir/lib/libgen_thread.la $datatap_dir/include/libgen_thread.la $search_list $EXPANDED/libgen_thread.la $EXPANDED/lib/libgen_thread.la $EXPANDED/share/libgen_thread.la $EXPANDED/$cercs_cv_archive/libgen_thread.la $EXPANDED/$cercs_cv_archive/lib/libgen_thread.la $EXPANDED/gen_thread/libgen_thread.la $EXPANDED/gen_thread/$cercs_cv_archive/libgen_thread.la $EXPANDED/gen_thread/lib/libgen_thread.la $EXPANDED/gen_thread/lib/$cercs_cv_archive/libgen_thread.la" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../gen_thread/libgen_thread.la `pwd`/../lib/libgen_thread.la `pwd`/../share/libgen_thread.la" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/gen_thread/libgen_thread.la $HOME/$cercs_cv_archive/lib/libgen_thread.la $HOME/lib/libgen_thread.la" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/gen_thread/lib/libgen_thread.la $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libgen_thread.la $CHAOS_HOMEDIR/gen_thread/$cercs_cv_archive/lib/libgen_thread.la $CHAOS_HOMEDIR/gen_thread/lib/libgen_thread.la $CHAOS_HOMEDIR/lib/libgen_thread.la" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libgen_thread.la $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libgen_thread.la $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libgen_thread.la $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libgen_thread.la $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libgen_thread.la" done fi search_list="$datatap_dir/libgen_thread.la $datatap_dir/lib/libgen_thread.la $datatap_dir/include/libgen_thread.la $search_list /usr/lib/libgen_thread.la /usr/local/lib/libgen_thread.la /opt/gen_thread/lib/libgen_thread.la /opt/misc/lib/libgen_thread.la /opt/misc/lib/$cercs_cv_archive/libgen_thread.la" tmp_search_results="" echo "configure:31484: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31488: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libgen_thread.la"; then cercs_cv_gen_thread_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libgen_thread.la//g"` else cercs_cv_gen_thread_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_link_dir" >&5 $as_echo "$cercs_cv_gen_thread_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_gen_thread_link_arg=`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_gen_thread_link_arg"; then arg=$cercs_cv_gen_thread_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libgen_thread.la | sed 's/\..*//'` if test ! -r $cercs_cv_gen_thread_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_gen_thread_link_arg "`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "gen_thread"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-gen_thread was given. if test "${with_gen_thread+set}" = set; then withval=$with_gen_thread; fi if test -n "$with_gen_thread"; then unset cercs_cv_gen_thread_include_arg unset cercs_cv_gen_thread_link_arg if test `echo $with_gen_thread | sed 's/\(.\).*/\1/g'` != "/"; then with_gen_thread=`pwd`/$with_gen_thread fi fi { $as_echo "$as_me:$LINENO: checking needed include args for gen_thread package" >&5 $as_echo_n "checking needed include args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../gen_thread $PWD/../../gen_thread $PWD/../../../gen_thread" tmp_search_results="" echo "configure:31557: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31561: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/gen_thread.h"; then cercs_cv_gen_thread_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.gen_thread.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_include_arg" >&5 $as_echo "$cercs_cv_gen_thread_include_arg" >&6; } if test -n "$cercs_cv_gen_thread_include_arg"; then arg="$cercs_cv_gen_thread_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "gen_thread"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for gen_thread package" >&5 $as_echo_n "checking needed link args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../gen_thread $PWD/../../gen_thread $PWD/../../../gen_thread" tmp_search_results="" echo "configure:31599: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31603: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libgen_thread.la"; then cercs_cv_gen_thread_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libgen_thread.la//g"` else cercs_cv_gen_thread_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_link_dir" >&5 $as_echo "$cercs_cv_gen_thread_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_gen_thread_link_arg=`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_gen_thread_link_arg"; then arg=$cercs_cv_gen_thread_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libgen_thread.la | sed 's/\..*//'` if test ! -r $cercs_cv_gen_thread_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_gen_thread_link_arg "`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "gen_thread"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -n "$cercs_cv_ibpbio_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ibpbio_link_dir" DT_LIBS="$DT_LIBS -libclient" datatap=ibverbs else temptest=disable fi if test -n "$cercs_cv_ffs_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ffs_link_dir" DT_LIBS="$DT_LIBS -lgen_thread" datatap=ibverbs else temptest=disable fi if test -n "$cercs_cv_gen_thread_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_gen_thread_link_dir" DT_LIBS="$DT_LIBS -lgen_thread" datatap=ibverbs else temptest=disable fi elif test x"$ac_with_portals" = xyes; then if test -z "$with_local_specified"; then # Check whether --with-ptlpbio was given. if test "${with_ptlpbio+set}" = set; then withval=$with_ptlpbio; fi if test -n "$with_ptlpbio"; then unset cercs_cv_ptlpbio_include_arg unset cercs_cv_ptlpbio_link_arg if test `echo $with_ptlpbio | sed 's/\(.\).*/\1/g'` != "/"; then with_ptlpbio=`pwd`/$with_ptlpbio fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ptlpbio package" >&5 $as_echo_n "checking needed include args for ptlpbio package... " >&6; } if test "${cercs_cv_ptlpbio_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./thin_portal.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ptlpbio"; then if test `echo $with_ptlpbio | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ptlpbio" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ptlpbio fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/thin_portal.h $datatap_dir/lib/thin_portal.h $datatap_dir/include/thin_portal.h $search_list $EXPANDED/thin_portal.h $EXPANDED/include/thin_portal.h $EXPANDED/share/thin_portal.h $EXPANDED/$cercs_cv_archive/thin_portal.h $EXPANDED/$cercs_cv_archive/include/thin_portal.h $EXPANDED/ptlpbio/thin_portal.h $EXPANDED/ptlpbio/$cercs_cv_archive/thin_portal.h $EXPANDED/ptlpbio/include/thin_portal.h $EXPANDED/ptlpbio/include/$cercs_cv_archive/thin_portal.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ptlpbio/thin_portal.h `pwd`/../include/thin_portal.h `pwd`/../share/thin_portal.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ptlpbio/thin_portal.h $HOME/$cercs_cv_archive/include/thin_portal.h $HOME/include/thin_portal.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ptlpbio/include/thin_portal.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/thin_portal.h $CHAOS_HOMEDIR/ptlpbio/$cercs_cv_archive/include/thin_portal.h $CHAOS_HOMEDIR/ptlpbio/include/thin_portal.h $CHAOS_HOMEDIR/include/thin_portal.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/thin_portal.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/thin_portal.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/thin_portal.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/thin_portal.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/thin_portal.h" done fi search_list="$datatap_dir/thin_portal.h $datatap_dir/lib/thin_portal.h $datatap_dir/include/thin_portal.h $search_list /usr/include/thin_portal.h /usr/local/include/thin_portal.h /opt/ptlpbio/include/thin_portal.h /opt/misc/include/thin_portal.h /opt/misc/include/$cercs_cv_archive/thin_portal.h" tmp_search_results="" echo "configure:31750: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31754: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/thin_portal.h"; then cercs_cv_ptlpbio_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.thin_portal.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ptlpbio_include_arg" >&5 $as_echo "$cercs_cv_ptlpbio_include_arg" >&6; } if test -n "$cercs_cv_ptlpbio_include_arg"; then arg="$cercs_cv_ptlpbio_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ptlpbio"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ptlpbio package" >&5 $as_echo_n "checking needed link args for ptlpbio package... " >&6; } if test "${cercs_cv_ptlpbio_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libptlclient.a" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ptlpbio"; then if test `echo $with_ptlpbio | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ptlpbio" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ptlpbio fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libptlclient.a $datatap_dir/lib/libptlclient.a $datatap_dir/include/libptlclient.a $search_list $EXPANDED/libptlclient.a $EXPANDED/lib/libptlclient.a $EXPANDED/share/libptlclient.a $EXPANDED/$cercs_cv_archive/libptlclient.a $EXPANDED/$cercs_cv_archive/lib/libptlclient.a $EXPANDED/ptlpbio/libptlclient.a $EXPANDED/ptlpbio/$cercs_cv_archive/libptlclient.a $EXPANDED/ptlpbio/lib/libptlclient.a $EXPANDED/ptlpbio/lib/$cercs_cv_archive/libptlclient.a" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ptlpbio/libptlclient.a `pwd`/../lib/libptlclient.a `pwd`/../share/libptlclient.a" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ptlpbio/libptlclient.a $HOME/$cercs_cv_archive/lib/libptlclient.a $HOME/lib/libptlclient.a" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ptlpbio/lib/libptlclient.a $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libptlclient.a $CHAOS_HOMEDIR/ptlpbio/$cercs_cv_archive/lib/libptlclient.a $CHAOS_HOMEDIR/ptlpbio/lib/libptlclient.a $CHAOS_HOMEDIR/lib/libptlclient.a" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libptlclient.a $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libptlclient.a $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libptlclient.a $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libptlclient.a $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libptlclient.a" done fi search_list="$datatap_dir/libptlclient.a $datatap_dir/lib/libptlclient.a $datatap_dir/include/libptlclient.a $search_list /usr/lib/libptlclient.a /usr/local/lib/libptlclient.a /opt/ptlpbio/lib/libptlclient.a /opt/misc/lib/libptlclient.a /opt/misc/lib/$cercs_cv_archive/libptlclient.a" tmp_search_results="" echo "configure:31842: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31846: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libptlclient.a"; then cercs_cv_ptlpbio_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libptlclient.a//g"` else cercs_cv_ptlpbio_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ptlpbio_link_dir" >&5 $as_echo "$cercs_cv_ptlpbio_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ptlpbio_link_arg=`echo $cercs_cv_ptlpbio_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ptlpbio_link_arg"; then arg=$cercs_cv_ptlpbio_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libptlclient.a | sed 's/\..*//'` if test ! -r $cercs_cv_ptlpbio_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ptlpbio_link_arg "`echo $cercs_cv_ptlpbio_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ptlpbio"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-ptlpbio was given. if test "${with_ptlpbio+set}" = set; then withval=$with_ptlpbio; fi if test -n "$with_ptlpbio"; then unset cercs_cv_ptlpbio_include_arg unset cercs_cv_ptlpbio_link_arg if test `echo $with_ptlpbio | sed 's/\(.\).*/\1/g'` != "/"; then with_ptlpbio=`pwd`/$with_ptlpbio fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ptlpbio package" >&5 $as_echo_n "checking needed include args for ptlpbio package... " >&6; } if test "${cercs_cv_ptlpbio_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ptlpbio $PWD/../../ptlpbio $PWD/../../../ptlpbio" tmp_search_results="" echo "configure:31915: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31919: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/thin_portal.h"; then cercs_cv_ptlpbio_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.thin_portal.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ptlpbio_include_arg" >&5 $as_echo "$cercs_cv_ptlpbio_include_arg" >&6; } if test -n "$cercs_cv_ptlpbio_include_arg"; then arg="$cercs_cv_ptlpbio_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ptlpbio"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ptlpbio package" >&5 $as_echo_n "checking needed link args for ptlpbio package... " >&6; } if test "${cercs_cv_ptlpbio_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ptlpbio $PWD/../../ptlpbio $PWD/../../../ptlpbio" tmp_search_results="" echo "configure:31957: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:31961: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libptlclient.a"; then cercs_cv_ptlpbio_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libptlclient.a//g"` else cercs_cv_ptlpbio_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ptlpbio_link_dir" >&5 $as_echo "$cercs_cv_ptlpbio_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ptlpbio_link_arg=`echo $cercs_cv_ptlpbio_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ptlpbio_link_arg"; then arg=$cercs_cv_ptlpbio_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libptlclient.a | sed 's/\..*//'` if test ! -r $cercs_cv_ptlpbio_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ptlpbio_link_arg "`echo $cercs_cv_ptlpbio_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ptlpbio"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -n "$cercs_cv_ptlpbio_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ptlpbio_link_dir" DT_LIBS="$DT_LIBS -lptlclient -lptlserver -lbench -ldl" datatap=portals else temptest=disable fi else echo "Neither portals nor infiniband found. Disabling datatap" cat >>confdefs.h <<\_ACEOF #define NO_DATATAP 1 _ACEOF datatap=disable temptest=disable fi fi if test x"$temptest" = xdisable; then datatap=disable echo "Datatap dependency check failed" cat >>confdefs.h <<\_ACEOF #define NO_DATATAP 1 _ACEOF fi { $as_echo "$as_me:$LINENO: === checking for FLEXPATH ===" >&5 $as_echo "$as_me: === checking for FLEXPATH ===" >&6;} FP_SRCDIR="" FP_CPPFLAGS="" FP_LDFLAGS="" FP_LIBS="" ac_flexpath_ok=yes temptest=enable flexpath_dir="" # Check whether --with-flexpath was given. if test "${with_flexpath+set}" = set; then withval=$with_flexpath; ac_with_flexpath=$withval else with_flexpath=no fi if test "x$with_flexpath" = "xno"; then ac_flexpath_ok=no temptest=disable elif test x"$with_flexpath" != xyes -a x"$with_flexpath" != xcheck; then { $as_echo "$as_me:$LINENO: checking got with flexpath argument $with_flexpath" >&5 $as_echo_n "checking got with flexpath argument $with_flexpath... " >&6; } # with_evpath=$with_flexpath fi if test "x$ac_flexpath_ok" != "xno"; then flexpath_dir=$withval datatap_dir=$withval if test -z "$with_local_specified"; then # Check whether --with-evpath was given. if test "${with_evpath+set}" = set; then withval=$with_evpath; fi if test -n "$with_evpath"; then unset cercs_cv_evpath_include_arg unset cercs_cv_evpath_link_arg if test `echo $with_evpath | sed 's/\(.\).*/\1/g'` != "/"; then with_evpath=`pwd`/$with_evpath fi fi { $as_echo "$as_me:$LINENO: checking needed include args for evpath package" >&5 $as_echo_n "checking needed include args for evpath package... " >&6; } if test "${cercs_cv_evpath_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./evpath.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_evpath"; then if test `echo $with_evpath | cut -c1` = "~"; then EXPANDED=`echo "echo $with_evpath" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_evpath fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/evpath.h $datatap_dir/lib/evpath.h $datatap_dir/include/evpath.h $search_list $EXPANDED/evpath.h $EXPANDED/include/evpath.h $EXPANDED/share/evpath.h $EXPANDED/$cercs_cv_archive/evpath.h $EXPANDED/$cercs_cv_archive/include/evpath.h $EXPANDED/evpath/evpath.h $EXPANDED/evpath/$cercs_cv_archive/evpath.h $EXPANDED/evpath/include/evpath.h $EXPANDED/evpath/include/$cercs_cv_archive/evpath.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../evpath/evpath.h `pwd`/../include/evpath.h `pwd`/../share/evpath.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/evpath/evpath.h $HOME/$cercs_cv_archive/include/evpath.h $HOME/include/evpath.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/evpath/include/evpath.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/evpath.h $CHAOS_HOMEDIR/evpath/$cercs_cv_archive/include/evpath.h $CHAOS_HOMEDIR/evpath/include/evpath.h $CHAOS_HOMEDIR/include/evpath.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/evpath.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/evpath.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/evpath.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/evpath.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/evpath.h" done fi search_list="$datatap_dir/evpath.h $datatap_dir/lib/evpath.h $datatap_dir/include/evpath.h $search_list /usr/include/evpath.h /usr/local/include/evpath.h /opt/evpath/include/evpath.h /opt/misc/include/evpath.h /opt/misc/include/$cercs_cv_archive/evpath.h" tmp_search_results="" echo "configure:32166: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:32170: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/evpath.h"; then cercs_cv_evpath_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.evpath.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_evpath_include_arg" >&5 $as_echo "$cercs_cv_evpath_include_arg" >&6; } if test -n "$cercs_cv_evpath_include_arg"; then arg="$cercs_cv_evpath_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "evpath"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for evpath package" >&5 $as_echo_n "checking needed link args for evpath package... " >&6; } if test "${cercs_cv_evpath_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libevpath.a" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_evpath"; then if test `echo $with_evpath | cut -c1` = "~"; then EXPANDED=`echo "echo $with_evpath" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_evpath fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libevpath.a $datatap_dir/lib/libevpath.a $datatap_dir/include/libevpath.a $search_list $EXPANDED/libevpath.a $EXPANDED/lib/libevpath.a $EXPANDED/share/libevpath.a $EXPANDED/$cercs_cv_archive/libevpath.a $EXPANDED/$cercs_cv_archive/lib/libevpath.a $EXPANDED/evpath/libevpath.a $EXPANDED/evpath/$cercs_cv_archive/libevpath.a $EXPANDED/evpath/lib/libevpath.a $EXPANDED/evpath/lib/$cercs_cv_archive/libevpath.a" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../evpath/libevpath.a `pwd`/../lib/libevpath.a `pwd`/../share/libevpath.a" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/evpath/libevpath.a $HOME/$cercs_cv_archive/lib/libevpath.a $HOME/lib/libevpath.a" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/evpath/lib/libevpath.a $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libevpath.a $CHAOS_HOMEDIR/evpath/$cercs_cv_archive/lib/libevpath.a $CHAOS_HOMEDIR/evpath/lib/libevpath.a $CHAOS_HOMEDIR/lib/libevpath.a" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libevpath.a $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libevpath.a $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libevpath.a $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libevpath.a $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libevpath.a" done fi search_list="$datatap_dir/libevpath.a $datatap_dir/lib/libevpath.a $datatap_dir/include/libevpath.a $search_list /usr/lib/libevpath.a /usr/local/lib/libevpath.a /opt/evpath/lib/libevpath.a /opt/misc/lib/libevpath.a /opt/misc/lib/$cercs_cv_archive/libevpath.a" tmp_search_results="" echo "configure:32258: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:32262: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libevpath.a"; then cercs_cv_evpath_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libevpath.a//g"` else cercs_cv_evpath_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_evpath_link_dir" >&5 $as_echo "$cercs_cv_evpath_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_evpath_link_arg=`echo $cercs_cv_evpath_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_evpath_link_arg"; then arg=$cercs_cv_evpath_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libevpath.a | sed 's/\..*//'` if test ! -r $cercs_cv_evpath_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_evpath_link_arg "`echo $cercs_cv_evpath_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "evpath"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-evpath was given. if test "${with_evpath+set}" = set; then withval=$with_evpath; fi if test -n "$with_evpath"; then unset cercs_cv_evpath_include_arg unset cercs_cv_evpath_link_arg if test `echo $with_evpath | sed 's/\(.\).*/\1/g'` != "/"; then with_evpath=`pwd`/$with_evpath fi fi { $as_echo "$as_me:$LINENO: checking needed include args for evpath package" >&5 $as_echo_n "checking needed include args for evpath package... " >&6; } if test "${cercs_cv_evpath_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../evpath $PWD/../../evpath $PWD/../../../evpath" tmp_search_results="" echo "configure:32331: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:32335: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/evpath.h"; then cercs_cv_evpath_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.evpath.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_evpath_include_arg" >&5 $as_echo "$cercs_cv_evpath_include_arg" >&6; } if test -n "$cercs_cv_evpath_include_arg"; then arg="$cercs_cv_evpath_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "evpath"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for evpath package" >&5 $as_echo_n "checking needed link args for evpath package... " >&6; } if test "${cercs_cv_evpath_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../evpath $PWD/../../evpath $PWD/../../../evpath" tmp_search_results="" echo "configure:32373: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:32377: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libevpath.a"; then cercs_cv_evpath_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libevpath.a//g"` else cercs_cv_evpath_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_evpath_link_dir" >&5 $as_echo "$cercs_cv_evpath_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_evpath_link_arg=`echo $cercs_cv_evpath_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_evpath_link_arg"; then arg=$cercs_cv_evpath_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libevpath.a | sed 's/\..*//'` if test ! -r $cercs_cv_evpath_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_evpath_link_arg "`echo $cercs_cv_evpath_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "evpath"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -z "$with_local_specified"; then # Check whether --with-ffs was given. if test "${with_ffs+set}" = set; then withval=$with_ffs; fi if test -n "$with_ffs"; then unset cercs_cv_ffs_include_arg unset cercs_cv_ffs_link_arg if test `echo $with_ffs | sed 's/\(.\).*/\1/g'` != "/"; then with_ffs=`pwd`/$with_ffs fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ffs package" >&5 $as_echo_n "checking needed include args for ffs package... " >&6; } if test "${cercs_cv_ffs_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./ffs.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ffs"; then if test `echo $with_ffs | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ffs" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ffs fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/ffs.h $datatap_dir/lib/ffs.h $datatap_dir/include/ffs.h $search_list $EXPANDED/ffs.h $EXPANDED/include/ffs.h $EXPANDED/share/ffs.h $EXPANDED/$cercs_cv_archive/ffs.h $EXPANDED/$cercs_cv_archive/include/ffs.h $EXPANDED/ffs/ffs.h $EXPANDED/ffs/$cercs_cv_archive/ffs.h $EXPANDED/ffs/include/ffs.h $EXPANDED/ffs/include/$cercs_cv_archive/ffs.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ffs/ffs.h `pwd`/../include/ffs.h `pwd`/../share/ffs.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ffs/ffs.h $HOME/$cercs_cv_archive/include/ffs.h $HOME/include/ffs.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ffs/include/ffs.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/ffs.h $CHAOS_HOMEDIR/ffs/$cercs_cv_archive/include/ffs.h $CHAOS_HOMEDIR/ffs/include/ffs.h $CHAOS_HOMEDIR/include/ffs.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/ffs.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/ffs.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/ffs.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/ffs.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/ffs.h" done fi search_list="$datatap_dir/ffs.h $datatap_dir/lib/ffs.h $datatap_dir/include/ffs.h $search_list /usr/include/ffs.h /usr/local/include/ffs.h /opt/ffs/include/ffs.h /opt/misc/include/ffs.h /opt/misc/include/$cercs_cv_archive/ffs.h" tmp_search_results="" echo "configure:32501: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:32505: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/ffs.h"; then cercs_cv_ffs_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.ffs.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_include_arg" >&5 $as_echo "$cercs_cv_ffs_include_arg" >&6; } if test -n "$cercs_cv_ffs_include_arg"; then arg="$cercs_cv_ffs_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ffs"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ffs package" >&5 $as_echo_n "checking needed link args for ffs package... " >&6; } if test "${cercs_cv_ffs_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libffs.a" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_ffs"; then if test `echo $with_ffs | cut -c1` = "~"; then EXPANDED=`echo "echo $with_ffs" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_ffs fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libffs.a $datatap_dir/lib/libffs.a $datatap_dir/include/libffs.a $search_list $EXPANDED/libffs.a $EXPANDED/lib/libffs.a $EXPANDED/share/libffs.a $EXPANDED/$cercs_cv_archive/libffs.a $EXPANDED/$cercs_cv_archive/lib/libffs.a $EXPANDED/ffs/libffs.a $EXPANDED/ffs/$cercs_cv_archive/libffs.a $EXPANDED/ffs/lib/libffs.a $EXPANDED/ffs/lib/$cercs_cv_archive/libffs.a" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../ffs/libffs.a `pwd`/../lib/libffs.a `pwd`/../share/libffs.a" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/ffs/libffs.a $HOME/$cercs_cv_archive/lib/libffs.a $HOME/lib/libffs.a" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/ffs/lib/libffs.a $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libffs.a $CHAOS_HOMEDIR/ffs/$cercs_cv_archive/lib/libffs.a $CHAOS_HOMEDIR/ffs/lib/libffs.a $CHAOS_HOMEDIR/lib/libffs.a" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libffs.a $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libffs.a $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libffs.a $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libffs.a $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libffs.a" done fi search_list="$datatap_dir/libffs.a $datatap_dir/lib/libffs.a $datatap_dir/include/libffs.a $search_list /usr/lib/libffs.a /usr/local/lib/libffs.a /opt/ffs/lib/libffs.a /opt/misc/lib/libffs.a /opt/misc/lib/$cercs_cv_archive/libffs.a" tmp_search_results="" echo "configure:32593: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:32597: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libffs.a"; then cercs_cv_ffs_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libffs.a//g"` else cercs_cv_ffs_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_link_dir" >&5 $as_echo "$cercs_cv_ffs_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ffs_link_arg=`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ffs_link_arg"; then arg=$cercs_cv_ffs_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libffs.a | sed 's/\..*//'` if test ! -r $cercs_cv_ffs_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ffs_link_arg "`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ffs"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-ffs was given. if test "${with_ffs+set}" = set; then withval=$with_ffs; fi if test -n "$with_ffs"; then unset cercs_cv_ffs_include_arg unset cercs_cv_ffs_link_arg if test `echo $with_ffs | sed 's/\(.\).*/\1/g'` != "/"; then with_ffs=`pwd`/$with_ffs fi fi { $as_echo "$as_me:$LINENO: checking needed include args for ffs package" >&5 $as_echo_n "checking needed include args for ffs package... " >&6; } if test "${cercs_cv_ffs_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ffs $PWD/../../ffs $PWD/../../../ffs" tmp_search_results="" echo "configure:32666: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:32670: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/ffs.h"; then cercs_cv_ffs_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.ffs.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_include_arg" >&5 $as_echo "$cercs_cv_ffs_include_arg" >&6; } if test -n "$cercs_cv_ffs_include_arg"; then arg="$cercs_cv_ffs_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "ffs"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for ffs package" >&5 $as_echo_n "checking needed link args for ffs package... " >&6; } if test "${cercs_cv_ffs_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../ffs $PWD/../../ffs $PWD/../../../ffs" tmp_search_results="" echo "configure:32708: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:32712: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libffs.a"; then cercs_cv_ffs_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libffs.a//g"` else cercs_cv_ffs_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_ffs_link_dir" >&5 $as_echo "$cercs_cv_ffs_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_ffs_link_arg=`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_ffs_link_arg"; then arg=$cercs_cv_ffs_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libffs.a | sed 's/\..*//'` if test ! -r $cercs_cv_ffs_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_ffs_link_arg "`echo $cercs_cv_ffs_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "ffs"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -z "$with_local_specified"; then # Check whether --with-atl was given. if test "${with_atl+set}" = set; then withval=$with_atl; fi if test -n "$with_atl"; then unset cercs_cv_atl_include_arg unset cercs_cv_atl_link_arg if test `echo $with_atl | sed 's/\(.\).*/\1/g'` != "/"; then with_atl=`pwd`/$with_atl fi fi { $as_echo "$as_me:$LINENO: checking needed include args for atl package" >&5 $as_echo_n "checking needed include args for atl package... " >&6; } if test "${cercs_cv_atl_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./atl.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_atl"; then if test `echo $with_atl | cut -c1` = "~"; then EXPANDED=`echo "echo $with_atl" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_atl fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/atl.h $datatap_dir/lib/atl.h $datatap_dir/include/atl.h $search_list $EXPANDED/atl.h $EXPANDED/include/atl.h $EXPANDED/share/atl.h $EXPANDED/$cercs_cv_archive/atl.h $EXPANDED/$cercs_cv_archive/include/atl.h $EXPANDED/atl/atl.h $EXPANDED/atl/$cercs_cv_archive/atl.h $EXPANDED/atl/include/atl.h $EXPANDED/atl/include/$cercs_cv_archive/atl.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../atl/atl.h `pwd`/../include/atl.h `pwd`/../share/atl.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/atl/atl.h $HOME/$cercs_cv_archive/include/atl.h $HOME/include/atl.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/atl/include/atl.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/atl.h $CHAOS_HOMEDIR/atl/$cercs_cv_archive/include/atl.h $CHAOS_HOMEDIR/atl/include/atl.h $CHAOS_HOMEDIR/include/atl.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/atl.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/atl.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/atl.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/atl.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/atl.h" done fi search_list="$datatap_dir/atl.h $datatap_dir/lib/atl.h $datatap_dir/include/atl.h $search_list /usr/include/atl.h /usr/local/include/atl.h /opt/atl/include/atl.h /opt/misc/include/atl.h /opt/misc/include/$cercs_cv_archive/atl.h" tmp_search_results="" echo "configure:32836: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:32840: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/atl.h"; then cercs_cv_atl_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.atl.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_atl_include_arg" >&5 $as_echo "$cercs_cv_atl_include_arg" >&6; } if test -n "$cercs_cv_atl_include_arg"; then arg="$cercs_cv_atl_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "atl"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for atl package" >&5 $as_echo_n "checking needed link args for atl package... " >&6; } if test "${cercs_cv_atl_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libatl.a" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_atl"; then if test `echo $with_atl | cut -c1` = "~"; then EXPANDED=`echo "echo $with_atl" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_atl fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libatl.a $datatap_dir/lib/libatl.a $datatap_dir/include/libatl.a $search_list $EXPANDED/libatl.a $EXPANDED/lib/libatl.a $EXPANDED/share/libatl.a $EXPANDED/$cercs_cv_archive/libatl.a $EXPANDED/$cercs_cv_archive/lib/libatl.a $EXPANDED/atl/libatl.a $EXPANDED/atl/$cercs_cv_archive/libatl.a $EXPANDED/atl/lib/libatl.a $EXPANDED/atl/lib/$cercs_cv_archive/libatl.a" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../atl/libatl.a `pwd`/../lib/libatl.a `pwd`/../share/libatl.a" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/atl/libatl.a $HOME/$cercs_cv_archive/lib/libatl.a $HOME/lib/libatl.a" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/atl/lib/libatl.a $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libatl.a $CHAOS_HOMEDIR/atl/$cercs_cv_archive/lib/libatl.a $CHAOS_HOMEDIR/atl/lib/libatl.a $CHAOS_HOMEDIR/lib/libatl.a" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libatl.a $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libatl.a $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libatl.a $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libatl.a $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libatl.a" done fi search_list="$datatap_dir/libatl.a $datatap_dir/lib/libatl.a $datatap_dir/include/libatl.a $search_list /usr/lib/libatl.a /usr/local/lib/libatl.a /opt/atl/lib/libatl.a /opt/misc/lib/libatl.a /opt/misc/lib/$cercs_cv_archive/libatl.a" tmp_search_results="" echo "configure:32928: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:32932: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libatl.a"; then cercs_cv_atl_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libatl.a//g"` else cercs_cv_atl_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_atl_link_dir" >&5 $as_echo "$cercs_cv_atl_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_atl_link_arg=`echo $cercs_cv_atl_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_atl_link_arg"; then arg=$cercs_cv_atl_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libatl.a | sed 's/\..*//'` if test ! -r $cercs_cv_atl_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_atl_link_arg "`echo $cercs_cv_atl_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "atl"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-atl was given. if test "${with_atl+set}" = set; then withval=$with_atl; fi if test -n "$with_atl"; then unset cercs_cv_atl_include_arg unset cercs_cv_atl_link_arg if test `echo $with_atl | sed 's/\(.\).*/\1/g'` != "/"; then with_atl=`pwd`/$with_atl fi fi { $as_echo "$as_me:$LINENO: checking needed include args for atl package" >&5 $as_echo_n "checking needed include args for atl package... " >&6; } if test "${cercs_cv_atl_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../atl $PWD/../../atl $PWD/../../../atl" tmp_search_results="" echo "configure:33001: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33005: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/atl.h"; then cercs_cv_atl_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.atl.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_atl_include_arg" >&5 $as_echo "$cercs_cv_atl_include_arg" >&6; } if test -n "$cercs_cv_atl_include_arg"; then arg="$cercs_cv_atl_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "atl"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for atl package" >&5 $as_echo_n "checking needed link args for atl package... " >&6; } if test "${cercs_cv_atl_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../atl $PWD/../../atl $PWD/../../../atl" tmp_search_results="" echo "configure:33043: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33047: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libatl.a"; then cercs_cv_atl_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libatl.a//g"` else cercs_cv_atl_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_atl_link_dir" >&5 $as_echo "$cercs_cv_atl_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_atl_link_arg=`echo $cercs_cv_atl_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_atl_link_arg"; then arg=$cercs_cv_atl_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libatl.a | sed 's/\..*//'` if test ! -r $cercs_cv_atl_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_atl_link_arg "`echo $cercs_cv_atl_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "atl"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -z "$with_local_specified"; then # Check whether --with-gen_thread was given. if test "${with_gen_thread+set}" = set; then withval=$with_gen_thread; fi if test -n "$with_gen_thread"; then unset cercs_cv_gen_thread_include_arg unset cercs_cv_gen_thread_link_arg if test `echo $with_gen_thread | sed 's/\(.\).*/\1/g'` != "/"; then with_gen_thread=`pwd`/$with_gen_thread fi fi { $as_echo "$as_me:$LINENO: checking needed include args for gen_thread package" >&5 $as_echo_n "checking needed include args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./gen_thread.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_gen_thread"; then if test `echo $with_gen_thread | cut -c1` = "~"; then EXPANDED=`echo "echo $with_gen_thread" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_gen_thread fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/gen_thread.h $datatap_dir/lib/gen_thread.h $datatap_dir/include/gen_thread.h $search_list $EXPANDED/gen_thread.h $EXPANDED/include/gen_thread.h $EXPANDED/share/gen_thread.h $EXPANDED/$cercs_cv_archive/gen_thread.h $EXPANDED/$cercs_cv_archive/include/gen_thread.h $EXPANDED/gen_thread/gen_thread.h $EXPANDED/gen_thread/$cercs_cv_archive/gen_thread.h $EXPANDED/gen_thread/include/gen_thread.h $EXPANDED/gen_thread/include/$cercs_cv_archive/gen_thread.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../gen_thread/gen_thread.h `pwd`/../include/gen_thread.h `pwd`/../share/gen_thread.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/gen_thread/gen_thread.h $HOME/$cercs_cv_archive/include/gen_thread.h $HOME/include/gen_thread.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/gen_thread/include/gen_thread.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/gen_thread.h $CHAOS_HOMEDIR/gen_thread/$cercs_cv_archive/include/gen_thread.h $CHAOS_HOMEDIR/gen_thread/include/gen_thread.h $CHAOS_HOMEDIR/include/gen_thread.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/gen_thread.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/gen_thread.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/gen_thread.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/gen_thread.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/gen_thread.h" done fi search_list="$datatap_dir/gen_thread.h $datatap_dir/lib/gen_thread.h $datatap_dir/include/gen_thread.h $search_list /usr/include/gen_thread.h /usr/local/include/gen_thread.h /opt/gen_thread/include/gen_thread.h /opt/misc/include/gen_thread.h /opt/misc/include/$cercs_cv_archive/gen_thread.h" tmp_search_results="" echo "configure:33171: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33175: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/gen_thread.h"; then cercs_cv_gen_thread_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.gen_thread.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_include_arg" >&5 $as_echo "$cercs_cv_gen_thread_include_arg" >&6; } if test -n "$cercs_cv_gen_thread_include_arg"; then arg="$cercs_cv_gen_thread_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "gen_thread"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for gen_thread package" >&5 $as_echo_n "checking needed link args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libgen_thread.a" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_gen_thread"; then if test `echo $with_gen_thread | cut -c1` = "~"; then EXPANDED=`echo "echo $with_gen_thread" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_gen_thread fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libgen_thread.a $datatap_dir/lib/libgen_thread.a $datatap_dir/include/libgen_thread.a $search_list $EXPANDED/libgen_thread.a $EXPANDED/lib/libgen_thread.a $EXPANDED/share/libgen_thread.a $EXPANDED/$cercs_cv_archive/libgen_thread.a $EXPANDED/$cercs_cv_archive/lib/libgen_thread.a $EXPANDED/gen_thread/libgen_thread.a $EXPANDED/gen_thread/$cercs_cv_archive/libgen_thread.a $EXPANDED/gen_thread/lib/libgen_thread.a $EXPANDED/gen_thread/lib/$cercs_cv_archive/libgen_thread.a" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../gen_thread/libgen_thread.a `pwd`/../lib/libgen_thread.a `pwd`/../share/libgen_thread.a" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/gen_thread/libgen_thread.a $HOME/$cercs_cv_archive/lib/libgen_thread.a $HOME/lib/libgen_thread.a" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/gen_thread/lib/libgen_thread.a $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libgen_thread.a $CHAOS_HOMEDIR/gen_thread/$cercs_cv_archive/lib/libgen_thread.a $CHAOS_HOMEDIR/gen_thread/lib/libgen_thread.a $CHAOS_HOMEDIR/lib/libgen_thread.a" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libgen_thread.a $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libgen_thread.a $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libgen_thread.a $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libgen_thread.a $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libgen_thread.a" done fi search_list="$datatap_dir/libgen_thread.a $datatap_dir/lib/libgen_thread.a $datatap_dir/include/libgen_thread.a $search_list /usr/lib/libgen_thread.a /usr/local/lib/libgen_thread.a /opt/gen_thread/lib/libgen_thread.a /opt/misc/lib/libgen_thread.a /opt/misc/lib/$cercs_cv_archive/libgen_thread.a" tmp_search_results="" echo "configure:33263: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33267: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libgen_thread.a"; then cercs_cv_gen_thread_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libgen_thread.a//g"` else cercs_cv_gen_thread_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_link_dir" >&5 $as_echo "$cercs_cv_gen_thread_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_gen_thread_link_arg=`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_gen_thread_link_arg"; then arg=$cercs_cv_gen_thread_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libgen_thread.a | sed 's/\..*//'` if test ! -r $cercs_cv_gen_thread_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_gen_thread_link_arg "`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "gen_thread"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-gen_thread was given. if test "${with_gen_thread+set}" = set; then withval=$with_gen_thread; fi if test -n "$with_gen_thread"; then unset cercs_cv_gen_thread_include_arg unset cercs_cv_gen_thread_link_arg if test `echo $with_gen_thread | sed 's/\(.\).*/\1/g'` != "/"; then with_gen_thread=`pwd`/$with_gen_thread fi fi { $as_echo "$as_me:$LINENO: checking needed include args for gen_thread package" >&5 $as_echo_n "checking needed include args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../gen_thread $PWD/../../gen_thread $PWD/../../../gen_thread" tmp_search_results="" echo "configure:33336: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33340: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/gen_thread.h"; then cercs_cv_gen_thread_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.gen_thread.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_include_arg" >&5 $as_echo "$cercs_cv_gen_thread_include_arg" >&6; } if test -n "$cercs_cv_gen_thread_include_arg"; then arg="$cercs_cv_gen_thread_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "gen_thread"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for gen_thread package" >&5 $as_echo_n "checking needed link args for gen_thread package... " >&6; } if test "${cercs_cv_gen_thread_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../gen_thread $PWD/../../gen_thread $PWD/../../../gen_thread" tmp_search_results="" echo "configure:33378: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33382: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libgen_thread.a"; then cercs_cv_gen_thread_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libgen_thread.a//g"` else cercs_cv_gen_thread_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_gen_thread_link_dir" >&5 $as_echo "$cercs_cv_gen_thread_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_gen_thread_link_arg=`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_gen_thread_link_arg"; then arg=$cercs_cv_gen_thread_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libgen_thread.a | sed 's/\..*//'` if test ! -r $cercs_cv_gen_thread_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_gen_thread_link_arg "`echo $cercs_cv_gen_thread_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "gen_thread"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -z "$with_local_specified"; then # Check whether --with-dill was given. if test "${with_dill+set}" = set; then withval=$with_dill; fi if test -n "$with_dill"; then unset cercs_cv_dill_include_arg unset cercs_cv_dill_link_arg if test `echo $with_dill | sed 's/\(.\).*/\1/g'` != "/"; then with_dill=`pwd`/$with_dill fi fi { $as_echo "$as_me:$LINENO: checking needed include args for dill package" >&5 $as_echo_n "checking needed include args for dill package... " >&6; } if test "${cercs_cv_dill_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./dill.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_dill"; then if test `echo $with_dill | cut -c1` = "~"; then EXPANDED=`echo "echo $with_dill" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_dill fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/dill.h $datatap_dir/lib/dill.h $datatap_dir/include/dill.h $search_list $EXPANDED/dill.h $EXPANDED/include/dill.h $EXPANDED/share/dill.h $EXPANDED/$cercs_cv_archive/dill.h $EXPANDED/$cercs_cv_archive/include/dill.h $EXPANDED/dill/dill.h $EXPANDED/dill/$cercs_cv_archive/dill.h $EXPANDED/dill/include/dill.h $EXPANDED/dill/include/$cercs_cv_archive/dill.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../dill/dill.h `pwd`/../include/dill.h `pwd`/../share/dill.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/dill/dill.h $HOME/$cercs_cv_archive/include/dill.h $HOME/include/dill.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/dill/include/dill.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/dill.h $CHAOS_HOMEDIR/dill/$cercs_cv_archive/include/dill.h $CHAOS_HOMEDIR/dill/include/dill.h $CHAOS_HOMEDIR/include/dill.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/dill.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/dill.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/dill.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/dill.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/dill.h" done fi search_list="$datatap_dir/dill.h $datatap_dir/lib/dill.h $datatap_dir/include/dill.h $search_list /usr/include/dill.h /usr/local/include/dill.h /opt/dill/include/dill.h /opt/misc/include/dill.h /opt/misc/include/$cercs_cv_archive/dill.h" tmp_search_results="" echo "configure:33506: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33510: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/dill.h"; then cercs_cv_dill_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.dill.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_dill_include_arg" >&5 $as_echo "$cercs_cv_dill_include_arg" >&6; } if test -n "$cercs_cv_dill_include_arg"; then arg="$cercs_cv_dill_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "dill"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for dill package" >&5 $as_echo_n "checking needed link args for dill package... " >&6; } if test "${cercs_cv_dill_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libdill.a" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_dill"; then if test `echo $with_dill | cut -c1` = "~"; then EXPANDED=`echo "echo $with_dill" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_dill fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libdill.a $datatap_dir/lib/libdill.a $datatap_dir/include/libdill.a $search_list $EXPANDED/libdill.a $EXPANDED/lib/libdill.a $EXPANDED/share/libdill.a $EXPANDED/$cercs_cv_archive/libdill.a $EXPANDED/$cercs_cv_archive/lib/libdill.a $EXPANDED/dill/libdill.a $EXPANDED/dill/$cercs_cv_archive/libdill.a $EXPANDED/dill/lib/libdill.a $EXPANDED/dill/lib/$cercs_cv_archive/libdill.a" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../dill/libdill.a `pwd`/../lib/libdill.a `pwd`/../share/libdill.a" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/dill/libdill.a $HOME/$cercs_cv_archive/lib/libdill.a $HOME/lib/libdill.a" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/dill/lib/libdill.a $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libdill.a $CHAOS_HOMEDIR/dill/$cercs_cv_archive/lib/libdill.a $CHAOS_HOMEDIR/dill/lib/libdill.a $CHAOS_HOMEDIR/lib/libdill.a" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libdill.a $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libdill.a $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libdill.a $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libdill.a $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libdill.a" done fi search_list="$datatap_dir/libdill.a $datatap_dir/lib/libdill.a $datatap_dir/include/libdill.a $search_list /usr/lib/libdill.a /usr/local/lib/libdill.a /opt/dill/lib/libdill.a /opt/misc/lib/libdill.a /opt/misc/lib/$cercs_cv_archive/libdill.a" tmp_search_results="" echo "configure:33598: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33602: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libdill.a"; then cercs_cv_dill_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libdill.a//g"` else cercs_cv_dill_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_dill_link_dir" >&5 $as_echo "$cercs_cv_dill_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_dill_link_arg=`echo $cercs_cv_dill_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_dill_link_arg"; then arg=$cercs_cv_dill_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libdill.a | sed 's/\..*//'` if test ! -r $cercs_cv_dill_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_dill_link_arg "`echo $cercs_cv_dill_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "dill"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-dill was given. if test "${with_dill+set}" = set; then withval=$with_dill; fi if test -n "$with_dill"; then unset cercs_cv_dill_include_arg unset cercs_cv_dill_link_arg if test `echo $with_dill | sed 's/\(.\).*/\1/g'` != "/"; then with_dill=`pwd`/$with_dill fi fi { $as_echo "$as_me:$LINENO: checking needed include args for dill package" >&5 $as_echo_n "checking needed include args for dill package... " >&6; } if test "${cercs_cv_dill_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../dill $PWD/../../dill $PWD/../../../dill" tmp_search_results="" echo "configure:33671: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33675: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/dill.h"; then cercs_cv_dill_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.dill.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_dill_include_arg" >&5 $as_echo "$cercs_cv_dill_include_arg" >&6; } if test -n "$cercs_cv_dill_include_arg"; then arg="$cercs_cv_dill_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "dill"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for dill package" >&5 $as_echo_n "checking needed link args for dill package... " >&6; } if test "${cercs_cv_dill_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../dill $PWD/../../dill $PWD/../../../dill" tmp_search_results="" echo "configure:33713: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33717: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libdill.a"; then cercs_cv_dill_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libdill.a//g"` else cercs_cv_dill_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_dill_link_dir" >&5 $as_echo "$cercs_cv_dill_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_dill_link_arg=`echo $cercs_cv_dill_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_dill_link_arg"; then arg=$cercs_cv_dill_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libdill.a | sed 's/\..*//'` if test ! -r $cercs_cv_dill_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_dill_link_arg "`echo $cercs_cv_dill_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "dill"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -z "$with_local_specified"; then # Check whether --with-cercs_env was given. if test "${with_cercs_env+set}" = set; then withval=$with_cercs_env; fi if test -n "$with_cercs_env"; then unset cercs_cv_cercs_env_include_arg unset cercs_cv_cercs_env_link_arg if test `echo $with_cercs_env | sed 's/\(.\).*/\1/g'` != "/"; then with_cercs_env=`pwd`/$with_cercs_env fi fi { $as_echo "$as_me:$LINENO: checking needed include args for cercs_env package" >&5 $as_echo_n "checking needed include args for cercs_env package... " >&6; } if test "${cercs_cv_cercs_env_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./cercs_env.h" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_cercs_env"; then if test `echo $with_cercs_env | cut -c1` = "~"; then EXPANDED=`echo "echo $with_cercs_env" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_cercs_env fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/cercs_env.h $datatap_dir/lib/cercs_env.h $datatap_dir/include/cercs_env.h $search_list $EXPANDED/cercs_env.h $EXPANDED/include/cercs_env.h $EXPANDED/share/cercs_env.h $EXPANDED/$cercs_cv_archive/cercs_env.h $EXPANDED/$cercs_cv_archive/include/cercs_env.h $EXPANDED/cercs_env/cercs_env.h $EXPANDED/cercs_env/$cercs_cv_archive/cercs_env.h $EXPANDED/cercs_env/include/cercs_env.h $EXPANDED/cercs_env/include/$cercs_cv_archive/cercs_env.h" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../cercs_env/cercs_env.h `pwd`/../include/cercs_env.h `pwd`/../share/cercs_env.h" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/cercs_env/cercs_env.h $HOME/$cercs_cv_archive/include/cercs_env.h $HOME/include/cercs_env.h" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/cercs_env/include/cercs_env.h $CHAOS_HOMEDIR/$cercs_cv_archive/include/cercs_env.h $CHAOS_HOMEDIR/cercs_env/$cercs_cv_archive/include/cercs_env.h $CHAOS_HOMEDIR/cercs_env/include/cercs_env.h $CHAOS_HOMEDIR/include/cercs_env.h" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/cercs_env.h $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/cercs_env.h $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/cercs_env.h $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/include/cercs_env.h $search_list" fi if test "include" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/cercs_env.h" done fi search_list="$datatap_dir/cercs_env.h $datatap_dir/lib/cercs_env.h $datatap_dir/include/cercs_env.h $search_list /usr/include/cercs_env.h /usr/local/include/cercs_env.h /opt/cercs_env/include/cercs_env.h /opt/misc/include/cercs_env.h /opt/misc/include/$cercs_cv_archive/cercs_env.h" tmp_search_results="" echo "configure:33841: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33845: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/cercs_env.h"; then cercs_cv_cercs_env_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.cercs_env.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_cercs_env_include_arg" >&5 $as_echo "$cercs_cv_cercs_env_include_arg" >&6; } if test -n "$cercs_cv_cercs_env_include_arg"; then arg="$cercs_cv_cercs_env_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "cercs_env"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for cercs_env package" >&5 $as_echo_n "checking needed link args for cercs_env package... " >&6; } if test "${cercs_cv_cercs_env_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else cercs_tmp="" search_list="./libcercs_env.a" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$with_cercs_env"; then if test `echo $with_cercs_env | cut -c1` = "~"; then EXPANDED=`echo "echo $with_cercs_env" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$with_cercs_env fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/libcercs_env.a $datatap_dir/lib/libcercs_env.a $datatap_dir/include/libcercs_env.a $search_list $EXPANDED/libcercs_env.a $EXPANDED/lib/libcercs_env.a $EXPANDED/share/libcercs_env.a $EXPANDED/$cercs_cv_archive/libcercs_env.a $EXPANDED/$cercs_cv_archive/lib/libcercs_env.a $EXPANDED/cercs_env/libcercs_env.a $EXPANDED/cercs_env/$cercs_cv_archive/libcercs_env.a $EXPANDED/cercs_env/lib/libcercs_env.a $EXPANDED/cercs_env/lib/$cercs_cv_archive/libcercs_env.a" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../cercs_env/libcercs_env.a `pwd`/../lib/libcercs_env.a `pwd`/../share/libcercs_env.a" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/cercs_env/libcercs_env.a $HOME/$cercs_cv_archive/lib/libcercs_env.a $HOME/lib/libcercs_env.a" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/cercs_env/lib/libcercs_env.a $CHAOS_HOMEDIR/$cercs_cv_archive/lib/libcercs_env.a $CHAOS_HOMEDIR/cercs_env/$cercs_cv_archive/lib/libcercs_env.a $CHAOS_HOMEDIR/cercs_env/lib/libcercs_env.a $CHAOS_HOMEDIR/lib/libcercs_env.a" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/libcercs_env.a $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libcercs_env.a $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/libcercs_env.a $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/libcercs_env.a $search_list" fi if test "lib" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/libcercs_env.a" done fi search_list="$datatap_dir/libcercs_env.a $datatap_dir/lib/libcercs_env.a $datatap_dir/include/libcercs_env.a $search_list /usr/lib/libcercs_env.a /usr/local/lib/libcercs_env.a /opt/cercs_env/lib/libcercs_env.a /opt/misc/lib/libcercs_env.a /opt/misc/lib/$cercs_cv_archive/libcercs_env.a" tmp_search_results="" echo "configure:33933: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:33937: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libcercs_env.a"; then cercs_cv_cercs_env_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libcercs_env.a//g"` else cercs_cv_cercs_env_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_cercs_env_link_dir" >&5 $as_echo "$cercs_cv_cercs_env_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_cercs_env_link_arg=`echo $cercs_cv_cercs_env_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_cercs_env_link_arg"; then arg=$cercs_cv_cercs_env_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libcercs_env.a | sed 's/\..*//'` if test ! -r $cercs_cv_cercs_env_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_cercs_env_link_arg "`echo $cercs_cv_cercs_env_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "cercs_env"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi else # Check whether --with-cercs_env was given. if test "${with_cercs_env+set}" = set; then withval=$with_cercs_env; fi if test -n "$with_cercs_env"; then unset cercs_cv_cercs_env_include_arg unset cercs_cv_cercs_env_link_arg if test `echo $with_cercs_env | sed 's/\(.\).*/\1/g'` != "/"; then with_cercs_env=`pwd`/$with_cercs_env fi fi { $as_echo "$as_me:$LINENO: checking needed include args for cercs_env package" >&5 $as_echo_n "checking needed include args for cercs_env package... " >&6; } if test "${cercs_cv_cercs_env_include_arg+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../cercs_env $PWD/../../cercs_env $PWD/../../../cercs_env" tmp_search_results="" echo "configure:34006: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:34010: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/cercs_env.h"; then cercs_cv_cercs_env_include_arg=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.cercs_env.h##g"` fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_cercs_env_include_arg" >&5 $as_echo "$cercs_cv_cercs_env_include_arg" >&6; } if test -n "$cercs_cv_cercs_env_include_arg"; then arg="$cercs_cv_cercs_env_include_arg" no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "cercs_env"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi fi { $as_echo "$as_me:$LINENO: checking needed link args for cercs_env package" >&5 $as_echo_n "checking needed link args for cercs_env package... " >&6; } if test "${cercs_cv_cercs_env_link_dir+set}" = set; then $as_echo_n "(cached) " >&6 else search_list="$PWD/../cercs_env $PWD/../../cercs_env $PWD/../../../cercs_env" tmp_search_results="" echo "configure:34048: searching for $search_list " >&5 for tmp_search_value in $search_list; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:34052: first found $tmp_search_results " >&5 break fi done if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi if test -n "$cercs_tmp" -a "$cercs_tmp" != "libcercs_env.a"; then cercs_cv_cercs_env_link_dir=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.libcercs_env.a//g"` else cercs_cv_cercs_env_link_dir="" fi fi { $as_echo "$as_me:$LINENO: result: $cercs_cv_cercs_env_link_dir" >&5 $as_echo "$cercs_cv_cercs_env_link_dir" >&6; } ld_arg="-L" new_flags=$LDFLAGS cercs_cv_cercs_env_link_arg=`echo $cercs_cv_cercs_env_link_dir | sed "/./ s/^/$ld_arg/1"` if test -n "$cercs_cv_cercs_env_link_arg"; then arg=$cercs_cv_cercs_env_link_arg no_dash_arg=`echo $arg | sed 's/^-//g'` if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo libcercs_env.a | sed 's/\..*//'` if test ! -r $cercs_cv_cercs_env_link_dir/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then arg="$cercs_cv_cercs_env_link_arg "`echo $cercs_cv_cercs_env_link_dir | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "cercs_env"` -eq 0; then new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi DT_LDFLAGS=$new_flags fi fi if test -n "$cercs_cv_evpath_link_dir" -a -n "$cercs_cv_evpath_include_arg";then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_evpath_link_dir" FP_LIBS="$FP_LIBS -levpath" FP_CFLAGS="$FP_CFLAGS $cercs_cv_evpath_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_evpath_include_arg" else echo "FLEXPATH couldn't find evpath - Not building flexpath" ac_flexpath_ok=no fi if test -n "$cercs_cv_ffs_link_dir" -a -n "$cercs_cv_ffs_include_arg"; then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_ffs_link_dir" FP_LIBS="$FP_LIBS -lffs" FP_CFLAGS="$FP_CFLAGS $cercs_cv_ffs_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_ffs_include_arg" else echo "FLEXPATH couldn't find ffs - Not building flexpath" ac_flexpath_ok=no fi if test -n "$cercs_cv_atl_link_dir" -a -n "$cercs_cv_atl_include_arg"; then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_atl_link_dir" FP_LIBS="$FP_LIBS -latl" FP_CFLAGS="$FP_CFLAGS $cercs_cv_atl_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_atl_include_arg" else ac_flexpath_ok=no echo "FLEXPATH couldn't find atl - Not building flexpath" fi if test -n "$cercs_cv_dill_link_dir" -a -n "$cercs_cv_dill_include_arg"; then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_dill_link_dir" FP_LIBS="$FP_LIBS -ldill" FP_CFLAGS="$FP_CFLAGS $cercs_cv_dill_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_dill_include_arg" else ac_flexpath_ok=no echo "FLEXPATH couldn't find dill - Not building flexpath" fi if test -n "$cercs_cv_gen_thread_link_dir" -a -n "$cercs_cv_gen_thread_include_arg"; then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_gen_thread_link_dir" FP_LIBS="$FP_LIBS -lgen_thread" FP_CFLAGS="$FP_CFLAGS $cercs_cv_gen_thread_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_gen_thread_include_arg" else ac_flexpath_ok=no echo "FLEXPATH couldn't find gen_thread - Not building flexpath" fi if test -n "$cercs_cv_cercs_env_link_dir" -a -n "$cercs_cv_cercs_env_include_arg"; then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_cercs_env_link_dir" FP_LIBS="$FP_LIBS -lcercs_env" FP_CFLAGS="$FP_CFLAGS $cercs_cv_cercs_env_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_cercs_env_include_arg" else ac_flexpath_ok=no echo "FLEXPATH couldn't find cercs_env - Not building flexpath" fi fi if test "x$ac_flexpath_ok" = "xyes"; then HAVE_FLEXPATH=1 NO_FLEXPATH=0 else HAVE_FLEXPATH=0 NO_FLEXPATH=1 fi if test "x$ac_flexpath_ok" = "xyes"; then HAVE_FLEXPATH_TRUE= HAVE_FLEXPATH_FALSE='#' else HAVE_FLEXPATH_TRUE='#' HAVE_FLEXPATH_FALSE= fi cat >>confdefs.h <<_ACEOF #define NO_FLEXPATH $NO_FLEXPATH _ACEOF cat >>confdefs.h <<_ACEOF #define HAVE_FLEXPATH $HAVE_FLEXPATH _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 # Check whether --enable-research-transports was given. if test "${enable_research_transports+set}" = set; then enableval=$enable_research_transports; fi if test "x$enable_research_transports" == "xyes"; then RESEARCH_TRANSPORTS_TRUE= RESEARCH_TRANSPORTS_FALSE='#' else RESEARCH_TRANSPORTS_TRUE='#' RESEARCH_TRANSPORTS_FALSE= 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 # Check whether --enable-skel-timing was given. if test "${enable_skel_timing+set}" = set; then enableval=$enable_skel_timing; fi if test "x$enable_skel_timing" == "xyes"; then SKEL_TIMING_TRUE= SKEL_TIMING_FALSE='#' else SKEL_TIMING_TRUE='#' SKEL_TIMING_FALSE= fi if test "x$enable_skel_timing" == "xyes"; then cat >>confdefs.h <<\_ACEOF #define SKEL_TIMING 1 _ACEOF SKEL_HAVE_ADIOS_TIMING=True else SKEL_HAVE_ADIOS_TIMING=False 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 x$datatap != xdisable; then HAVE_DATATAP_TRUE= HAVE_DATATAP_FALSE='#' else HAVE_DATATAP_TRUE='#' HAVE_DATATAP_FALSE= fi # Check whether --enable-write was given. if test "${enable_write+set}" = set; then enableval=$enable_write; fi if test "x$enable_write" != "xno"; then BUILD_WRITE_TRUE= BUILD_WRITE_FALSE='#' else BUILD_WRITE_TRUE='#' BUILD_WRITE_FALSE= fi LIBS="$MPILIBS" if false; then USE_PARALLEL_COMPILER_TRUE= USE_PARALLEL_COMPILER_FALSE='#' else USE_PARALLEL_COMPILER_TRUE='#' USE_PARALLEL_COMPILER_FALSE= fi if test -z "${MACRODEFFLAG}"; then MACRODEFFLAG="-D" fi if test -z "${HAVE_PHDF5_TRUE}" -a -z "${HAVE_HDF5_FALSE}"; then HDF5_CPPFLAGS="${PHDF5_CPPFLAGS}" HDF5_CFLAGS="${PHDF5_CFLAGS}" HDF5_LDFLAGS="${PHDF5_LDFLAGS}" HDF5_LIBS="${PHDF5_LIBS}" if true; then HAVE_HDF5_TRUE= HAVE_HDF5_FALSE='#' else HAVE_HDF5_TRUE='#' HAVE_HDF5_FALSE= fi cat >>confdefs.h <<\_ACEOF #define HAVE_HDF5 1 _ACEOF if true; then USE_PARALLEL_COMPILER_TRUE= USE_PARALLEL_COMPILER_FALSE='#' else USE_PARALLEL_COMPILER_TRUE='#' USE_PARALLEL_COMPILER_FALSE= fi { $as_echo "$as_me:$LINENO: Use PHDF5 for sequential HDF5 tools" >&5 $as_echo "$as_me: Use PHDF5 for sequential HDF5 tools" >&6;} fi if test -z "${HAVE_NC4PAR_TRUE}" -a -z "${HAVE_NETCDF_FALSE}"; then NETCDF_CPPFLAGS="${NC4PAR_CPPFLAGS}" NETCDF_CFLAGS="${NC4PAR_CFLAGS}" NETCDF_LDFLAGS="${NC4PAR_LDFLAGS}" NETCDF_LIBS="${NC4PAR_LIBS}" if true; then HAVE_NETCDF_TRUE= HAVE_NETCDF_FALSE='#' else HAVE_NETCDF_TRUE='#' HAVE_NETCDF_FALSE= fi cat >>confdefs.h <<\_ACEOF #define HAVE_NETCDF 1 _ACEOF if true; then USE_PARALLEL_COMPILER_TRUE= USE_PARALLEL_COMPILER_FALSE='#' else USE_PARALLEL_COMPILER_TRUE='#' USE_PARALLEL_COMPILER_FALSE= fi { $as_echo "$as_me:$LINENO: Use NC4PAR for sequential NETCDF tools" >&5 $as_echo "$as_me: Use NC4PAR for sequential NETCDF tools" >&6;} fi ADIOSLIB_EXTRA_CPPFLAGS="${MACRODEFFLAG}_FILE_OFFSET_BITS=64 ${MACRODEFFLAG}_LARGEFILE_SOURCE ${MACRODEFFLAG}_LARGEFILE64_SOURCE ${MACRODEFFLAG}_GNU_SOURCE" ADIOSLIB_CPPFLAGS="${MXML_CPPFLAGS}" ADIOSLIB_CFLAGS= ADIOSLIB_LDFLAGS="${MXML_LDFLAGS}" ADIOSLIB_LDADD="-lm ${MXML_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${MACRODEFFLAG}_NOMPI ${MXML_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS= ADIOSLIB_SEQ_LDFLAGS="${MXML_LDFLAGS}" ADIOSLIB_SEQ_LDADD="-lm ${MXML_LIBS}" ADIOSLIB_INT_CPPFLAGS="${MACRODEFFLAG}_NOMPI ${MXML_CPPFLAGS}" ADIOSLIB_INT_CFLAGS= ADIOSLIB_INT_LDFLAGS="${MXML_LDFLAGS}" ADIOSLIB_INT_LDADD="-lm ${MXML_LIBS}" ADIOSREADLIB_CPPFLAGS= ADIOSREADLIB_CFLAGS= ADIOSREADLIB_LDFLAGS= ADIOSREADLIB_LDADD="-lm" ADIOSREADLIB_SEQ_CPPFLAGS="${MACRODEFFLAG}_NOMPI" ADIOSREADLIB_SEQ_CFLAGS= ADIOSREADLIB_SEQ_LDFLAGS= ADIOSREADLIB_SEQ_LDADD="-lm" if test "x${datatap}" != "xdisable"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${DT_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${DT_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${DT_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${DT_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${DT_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${DT_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${DT_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${DT_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${DT_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${DT_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${DT_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${DT_LIBS}" fi if test -z "${HAVE_DATASPACES_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${DATASPACES_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${DATASPACES_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${DATASPACES_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${DATASPACES_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${DATASPACES_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${DATASPACES_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${DATASPACES_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${DATASPACES_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${DATASPACES_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${DATASPACES_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${DATASPACES_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${DATASPACES_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${DATASPACES_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${DATASPACES_LIBS}" fi if test -z "${HAVE_DIMES_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${DIMES_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${DIMES_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${DIMES_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${DIMES_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${DIMES_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${DIMES_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${DIMES_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${DIMES_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${DIMES_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${DIMES_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${DIMES_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${DIMES_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${DIMES_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${DIMES_LIBS}" fi if test -z "${HAVE_NSSI_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${NSSI_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${NSSI_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${NSSI_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${NSSI_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${NSSI_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${NSSI_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${NSSI_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${NSSI_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${MXML_CPPFLAGS} ${NSSI_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${MXML_CPPFLAGS} ${NSSI_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${MXML_LDFLAGS} ${NSSI_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${MXML_LIBS} ${NSSI_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${MXML_CPPFLAGS} ${NSSI_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${MXML_CPPFLAGS} ${NSSI_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${MXML_LDFLAGS} ${NSSI_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${MXML_LIBS} ${NSSI_LIBS}" fi if test -z "${HAVE_FLEXPATH_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${FP_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${FP_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${FP_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${FP_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${FP_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${FP_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${FP_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${FP_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${FP_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${FP_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${FP_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${FP_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${FP_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${FP_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${FP_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${FP_LIBS}" fi if test -z "${HAVE_NC4PAR_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${NC4PAR_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${NC4PAR_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${NC4PAR_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${NC4PAR_LIBS}" fi if test -z "${HAVE_PHDF5_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${PHDF5_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${PHDF5_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${PHDF5_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${PHDF5_LIBS}" fi if test -z "${HAVE_PORTALS_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${PORTALS_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${PORTALS_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${PORTALS_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${PORTALS_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${PORTALS_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${PORTALS_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${PORTALS_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${PORTALS_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${PORTALS_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${PORTALS_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${PORTALS_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${PORTALS_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${PORTALS_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${PORTALS_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${PORTALS_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${PORTALS_LIBS}" fi if test -z "${HAVE_INFINIBAND_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${INFINIBAND_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${INFINIBAND_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${INFINIBAND_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${INFINIBAND_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${INFINIBAND_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${INFINIBAND_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${INFINIBAND_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${INFINIBAND_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${INFINIBAND_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${INFINIBAND_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${INFINIBAND_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${INFINIBAND_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${INFINIBAND_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${INFINIBAND_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${INFINIBAND_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${INFINIBAND_LIBS}" fi if test -z "${HAVE_CRAY_PMI_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${CRAY_PMI_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${CRAY_PMI_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${CRAY_PMI_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${CRAY_PMI_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${CRAY_PMI_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${CRAY_PMI_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${CRAY_PMI_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${CRAY_PMI_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${CRAY_PMI_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${CRAY_PMI_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${CRAY_PMI_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${CRAY_PMI_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${CRAY_PMI_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${CRAY_PMI_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${CRAY_PMI_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${CRAY_PMI_LIBS}" fi if test -z "${HAVE_CRAY_UGNI_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${CRAY_UGNI_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${CRAY_UGNI_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${CRAY_UGNI_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${CRAY_UGNI_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${CRAY_UGNI_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${CRAY_UGNI_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${CRAY_UGNI_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${CRAY_UGNI_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${CRAY_UGNI_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${CRAY_UGNI_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${CRAY_UGNI_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${CRAY_UGNI_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${CRAY_UGNI_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${CRAY_UGNI_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${CRAY_UGNI_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${CRAY_UGNI_LIBS}" fi if test -z "${HAVE_DCMF_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${DCMF_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${DCMF_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${DCMF_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${DCMF_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${DCMF_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${DCMF_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${DCMF_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${DCMF_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${DCMF_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${DCMF_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${DCMF_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${DCMF_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${DCMF_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${DCMF_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${DCMF_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${DCMF_LIBS}" fi if test -z "${HAVE_NETCDF_TRUE}"; then ADIOSLIB_INT_CPPFLAGS="${ADIOSLIB_INT_CPPFLAGS} ${NETCDF_CPPFLAGS}" ADIOSLIB_INT_CFLAGS="${ADIOSLIB_INT_CFLAGS} ${NETCDF_CFLAGS}" ADIOSLIB_INT_LDFLAGS="${ADIOSLIB_INT_LDFLAGS} ${NETCDF_LDFLAGS}" ADIOSLIB_INT_LDADD="${ADIOSLIB_INT_LDADD} ${NETCDF_LIBS}" fi if test -z "${HAVE_HDF5_TRUE}"; then ADIOSLIB_INT_CPPFLAGS="${ADIOSLIB_INT_CPPFLAGS} ${HDF5_CPPFLAGS}" ADIOSLIB_INT_CFLAGS="${ADIOSLIB_INT_CFLAGS} ${HDF5_CFLAGS}" ADIOSLIB_INT_LDFLAGS="${ADIOSLIB_INT_LDFLAGS} ${HDF5_LDFLAGS}" ADIOSLIB_INT_LDADD="${ADIOSLIB_INT_LDADD} ${HDF5_LIBS}" fi if test -z "${HAVE_DMALLOC_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${MACRODEFFLAG}DMALLOC ${DMALLOC_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${DMALLOC_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${DMALLOC_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${DMALLOC_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${DMALLOC_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${DMALLOC_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${DMALLOC_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${DMALLOC_LIBS}" ADIOSLIB_INT_CPPFLAGS="${ADIOSLIB_INT_CPPFLAGS} ${DMALLOC_CPPFLAGS}" ADIOSLIB_INT_CFLAGS="${ADIOSLIB_INT_CFLAGS} ${DMALLOC_CFLAGS}" ADIOSLIB_INT_LDFLAGS="${ADIOSLIB_INT_LDFLAGS} ${DMALLOC_LDFLAGS}" ADIOSLIB_INT_LDADD="${ADIOSLIB_INT_LDADD} ${DMALLOC_LIBS}" ADIOSREADLIB_CPPFLAGS="${ADIOSREADLIB_CPPFLAGS} ${DMALLOC_CPPFLAGS}" ADIOSREADLIB_CFLAGS="${ADIOSREADLIB_CFLAGS} ${DMALLOC_CFLAGS}" ADIOSREADLIB_LDFLAGS="${ADIOSREADLIB_LDFLAGS} ${DMALLOC_LDFLAGS}" ADIOSREADLIB_LDADD="${ADIOSREADLIB_LDADD} ${DMALLOC_LIBS}" ADIOSREADLIB_SEQ_CPPFLAGS="${ADIOSREADLIB_SEQ_CPPFLAGS} ${DMALLOC_CPPFLAGS}" ADIOSREADLIB_SEQ_CFLAGS="${ADIOSREADLIB_SEQ_CFLAGS} ${DMALLOC_CFLAGS}" ADIOSREADLIB_SEQ_LDFLAGS="${ADIOSREADLIB_SEQ_LDFLAGS} ${DMALLOC_LDFLAGS}" ADIOSREADLIB_SEQ_LDADD="${ADIOSREADLIB_SEQ_LDADD} ${DMALLOC_LIBS}" fi if test -z "${HAVE_LUSTRE_TRUE}"; then ADIOSLIB_CPPFLAGS="${ADIOSLIB_CPPFLAGS} ${LUSTRE_CPPFLAGS}" ADIOSLIB_CFLAGS="${ADIOSLIB_CFLAGS} ${LUSTRE_CFLAGS}" ADIOSLIB_LDFLAGS="${ADIOSLIB_LDFLAGS} ${LUSTRE_LDFLAGS}" ADIOSLIB_LDADD="${ADIOSLIB_LDADD} ${LUSTRE_LIBS}" ADIOSLIB_SEQ_CPPFLAGS="${ADIOSLIB_SEQ_CPPFLAGS} ${LUSTRE_CPPFLAGS}" ADIOSLIB_SEQ_CFLAGS="${ADIOSLIB_SEQ_CFLAGS} ${LUSTRE_CFLAGS}" ADIOSLIB_SEQ_LDFLAGS="${ADIOSLIB_SEQ_LDFLAGS} ${LUSTRE_LDFLAGS}" ADIOSLIB_SEQ_LDADD="${ADIOSLIB_SEQ_LDADD} ${LUSTRE_LIBS}" fi if test -z "${USE_PARALLEL_COMPILER_TRUE}"; then cat >>confdefs.h <<\_ACEOF #define USE_PARALLEL_COMPILER 1 _ACEOF echo "#### Defined USE_PARALLEL_COMPILER to = [${USE_PARALLEL_COMPILER}]" fi VERSION_MAJOR=`echo ${VERSION} | sed -e "s/\..*//"` cat >>confdefs.h <<_ACEOF #define VERSION_MAJOR ${VERSION_MAJOR} _ACEOF VERSION_MINOR=`echo ${VERSION} | sed -e "s/[0-9]*\.\([0-9]*\).*/\1/"` cat >>confdefs.h <<_ACEOF #define VERSION_MINOR ${VERSION_MINOR} _ACEOF VERSION_MICRO=`echo ${VERSION} | sed -e "s/[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/"` VERSION_MICRO=`echo ${VERSION_MICRO} | sed -e "s/${VERSION}//"` if test -z "${VERSION_MICRO}"; then VERSION_MICRO=0 fi cat >>confdefs.h <<_ACEOF #define VERSION_MICRO ${VERSION_MICRO} _ACEOF # Get the version of the source we are configuring here # Just to print it out at the end of configure # see also Makefile.am:install-data-hook if type svnversion &>/dev/null; then SVNVERSION=`svnversion` else SVNVERSION="unknown" fi cat >>confdefs.h <<_ACEOF #define VERSION_SVNREV "${SVNVERSION}" _ACEOF ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/C/Makefile tests/Fortran/Makefile tests/genarray/Makefile tests/bp_read/Makefile tests/suite/Makefile tests/suite/programs/Makefile utils/Makefile utils/skel/Makefile utils/skel/etc/Makefile utils/skel/src/Makefile utils/skel/lib/skel_have_adios_timing.py utils/adios_lint/Makefile utils/gpp/Makefile utils/bpdump/Makefile utils/bp2h5/Makefile utils/bp2ncd/Makefile utils/bp2ascii/Makefile utils/bpsplit/Makefile utils/bpls/Makefile utils/bp2bp/Makefile examples/Makefile examples/C/Makefile examples/C/scalars/Makefile examples/C/arrays/Makefile examples/C/flexpath_arrays/Makefile examples/C/flexpath_arrays/process_select/Makefile examples/C/flexpath_arrays/global_range_select/Makefile examples/C/attributes/Makefile examples/C/manual/Makefile examples/C/global-array/Makefile examples/C/global-array-time/Makefile examples/C/stat/Makefile examples/C/read_all/Makefile examples/C/schema/Makefile examples/Fortran/Makefile examples/Fortran/scalars/Makefile examples/Fortran/arrays/Makefile examples/Fortran/global-array/Makefile examples/Fortran/global-array-time/Makefile adios_config.flags" 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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) $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" && { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 $as_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 : $LIBOBJS; 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=`$as_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 LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" 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 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_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 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_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 "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_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 "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_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 "${HAVE_MPI_TRUE}" && test -z "${HAVE_MPI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MPI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_MPI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_MPI_TRUE}" && test -z "${HAVE_MPI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MPI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_MPI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${BUILD_FORTRAN_TRUE}" && test -z "${BUILD_FORTRAN_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_FORTRAN\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"BUILD_FORTRAN\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_MPI_TRUE}" && test -z "${HAVE_MPI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MPI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_MPI\" 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 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_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 "${HAVE_MXML_TRUE}" && test -z "${HAVE_MXML_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MXML\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_MXML\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_MXML_TRUE}" && test -z "${HAVE_MXML_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MXML\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_MXML\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_MXML_TRUE}" && test -z "${HAVE_MXML_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MXML\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_MXML\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_MXML_TRUE}" && test -z "${HAVE_MXML_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MXML\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_MXML\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_MXML_TRUE}" && test -z "${HAVE_MXML_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MXML\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_MXML\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DCMF_TRUE}" && test -z "${HAVE_DCMF_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DCMF\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DCMF\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DCMF_TRUE}" && test -z "${HAVE_DCMF_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DCMF\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DCMF\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DCMF_TRUE}" && test -z "${HAVE_DCMF_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DCMF\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DCMF\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_INFINIBAND_TRUE}" && test -z "${HAVE_INFINIBAND_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INFINIBAND\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_INFINIBAND\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_INFINIBAND_TRUE}" && test -z "${HAVE_INFINIBAND_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INFINIBAND\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_INFINIBAND\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_INFINIBAND_TRUE}" && test -z "${HAVE_INFINIBAND_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INFINIBAND\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_INFINIBAND\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PORTALS_TRUE}" && test -z "${HAVE_PORTALS_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PORTALS\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PORTALS\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${NEED_DARWIN_SINGLE_MODULE_TRUE}" && test -z "${NEED_DARWIN_SINGLE_MODULE_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_DARWIN_SINGLE_MODULE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"NEED_DARWIN_SINGLE_MODULE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PORTALS_TRUE}" && test -z "${HAVE_PORTALS_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PORTALS\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PORTALS\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${NEED_DARWIN_SINGLE_MODULE_TRUE}" && test -z "${NEED_DARWIN_SINGLE_MODULE_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_DARWIN_SINGLE_MODULE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"NEED_DARWIN_SINGLE_MODULE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PORTALS_TRUE}" && test -z "${HAVE_PORTALS_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PORTALS\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PORTALS\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PORTALS_TRUE}" && test -z "${HAVE_PORTALS_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PORTALS\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PORTALS\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_CRAY_PMI_TRUE}" && test -z "${HAVE_CRAY_PMI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CRAY_PMI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_CRAY_PMI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_CRAY_PMI_TRUE}" && test -z "${HAVE_CRAY_PMI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CRAY_PMI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_CRAY_PMI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_CRAY_PMI_TRUE}" && test -z "${HAVE_CRAY_PMI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CRAY_PMI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_CRAY_PMI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_CRAY_PMI_TRUE}" && test -z "${HAVE_CRAY_PMI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CRAY_PMI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_CRAY_PMI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_CRAY_UGNI_TRUE}" && test -z "${HAVE_CRAY_UGNI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CRAY_UGNI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_CRAY_UGNI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_CRAY_UGNI_TRUE}" && test -z "${HAVE_CRAY_UGNI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CRAY_UGNI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_CRAY_UGNI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_CRAY_UGNI_TRUE}" && test -z "${HAVE_CRAY_UGNI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CRAY_UGNI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_CRAY_UGNI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_CRAY_UGNI_TRUE}" && test -z "${HAVE_CRAY_UGNI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CRAY_UGNI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_CRAY_UGNI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_HDF5_TRUE}" && test -z "${HAVE_HDF5_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_HDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_HDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_HDF5_TRUE}" && test -z "${HAVE_HDF5_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_HDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_HDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_HDF5_TRUE}" && test -z "${HAVE_HDF5_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_HDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_HDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_HDF5_TRUE}" && test -z "${HAVE_HDF5_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_HDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_HDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PHDF5_TRUE}" && test -z "${HAVE_PHDF5_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PHDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PHDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PHDF5_TRUE}" && test -z "${HAVE_PHDF5_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PHDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PHDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PHDF5_TRUE}" && test -z "${HAVE_PHDF5_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PHDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PHDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PHDF5_TRUE}" && test -z "${HAVE_PHDF5_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PHDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PHDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NETCDF_TRUE}" && test -z "${HAVE_NETCDF_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NETCDF\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NETCDF\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NETCDF_TRUE}" && test -z "${HAVE_NETCDF_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NETCDF\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NETCDF\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NETCDF_TRUE}" && test -z "${HAVE_NETCDF_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NETCDF\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NETCDF\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NETCDF_TRUE}" && test -z "${HAVE_NETCDF_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NETCDF\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NETCDF\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NC4PAR_TRUE}" && test -z "${HAVE_NC4PAR_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NC4PAR\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NC4PAR\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NC4PAR_TRUE}" && test -z "${HAVE_NC4PAR_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NC4PAR\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NC4PAR\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NC4PAR_TRUE}" && test -z "${HAVE_NC4PAR_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NC4PAR\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NC4PAR\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NC4PAR_TRUE}" && test -z "${HAVE_NC4PAR_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NC4PAR\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NC4PAR\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PABLO_TRUE}" && test -z "${HAVE_PABLO_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PABLO\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PABLO\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PABLO_TRUE}" && test -z "${HAVE_PABLO_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PABLO\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PABLO\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_PABLO_TRUE}" && test -z "${HAVE_PABLO_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PABLO\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_PABLO\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NSSI_TRUE}" && test -z "${HAVE_NSSI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NSSI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NSSI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NSSI_TRUE}" && test -z "${HAVE_NSSI_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NSSI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NSSI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DATASPACES_TRUE}" && test -z "${HAVE_DATASPACES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DATASPACES_TRUE}" && test -z "${HAVE_DATASPACES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DATASPACES_TRUE}" && test -z "${HAVE_DATASPACES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DATASPACES_TRUE}" && test -z "${HAVE_DATASPACES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DATASPACES_TRUE}" && test -z "${HAVE_DATASPACES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DATASPACES_TRUE}" && test -z "${HAVE_DATASPACES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DATASPACES_TRUE}" && test -z "${HAVE_DATASPACES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DATASPACES_TRUE}" && test -z "${HAVE_DATASPACES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DATASPACES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DIMES_TRUE}" && test -z "${HAVE_DIMES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DIMES_TRUE}" && test -z "${HAVE_DIMES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DIMES_TRUE}" && test -z "${HAVE_DIMES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DIMES_TRUE}" && test -z "${HAVE_DIMES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DIMES_TRUE}" && test -z "${HAVE_DIMES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DIMES_TRUE}" && test -z "${HAVE_DIMES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DIMES_TRUE}" && test -z "${HAVE_DIMES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DIMES_TRUE}" && test -z "${HAVE_DIMES_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DIMES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DMALLOC_TRUE}" && test -z "${HAVE_DMALLOC_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DMALLOC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DMALLOC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DMALLOC_TRUE}" && test -z "${HAVE_DMALLOC_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DMALLOC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DMALLOC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DMALLOC_TRUE}" && test -z "${HAVE_DMALLOC_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DMALLOC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DMALLOC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DMALLOC_TRUE}" && test -z "${HAVE_DMALLOC_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DMALLOC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DMALLOC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_LUSTRE_TRUE}" && test -z "${HAVE_LUSTRE_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LUSTRE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_LUSTRE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_LUSTRE_TRUE}" && test -z "${HAVE_LUSTRE_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LUSTRE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_LUSTRE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_FLEXPATH_TRUE}" && test -z "${HAVE_FLEXPATH_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXPATH\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_FLEXPATH\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${RESEARCH_TRANSPORTS_TRUE}" && test -z "${RESEARCH_TRANSPORTS_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"RESEARCH_TRANSPORTS\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"RESEARCH_TRANSPORTS\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${SKEL_TIMING_TRUE}" && test -z "${SKEL_TIMING_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"SKEL_TIMING\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"SKEL_TIMING\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_DATATAP_TRUE}" && test -z "${HAVE_DATATAP_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DATATAP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_DATATAP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${BUILD_WRITE_TRUE}" && test -z "${BUILD_WRITE_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_WRITE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"BUILD_WRITE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${USE_PARALLEL_COMPILER_TRUE}" && test -z "${USE_PARALLEL_COMPILER_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"USE_PARALLEL_COMPILER\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"USE_PARALLEL_COMPILER\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_HDF5_TRUE}" && test -z "${HAVE_HDF5_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_HDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_HDF5\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${USE_PARALLEL_COMPILER_TRUE}" && test -z "${USE_PARALLEL_COMPILER_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"USE_PARALLEL_COMPILER\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"USE_PARALLEL_COMPILER\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_NETCDF_TRUE}" && test -z "${HAVE_NETCDF_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NETCDF\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HAVE_NETCDF\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${USE_PARALLEL_COMPILER_TRUE}" && test -z "${USE_PARALLEL_COMPILER_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"USE_PARALLEL_COMPILER\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"USE_PARALLEL_COMPILER\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 #! $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 || ac_write_fail=1 ## --------------------- ## ## 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=: # Pre-4.2 versions of Zsh do 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 as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } 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.) 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 $as_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. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # 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 || $as_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" || { $as_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 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then 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 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 $as_me, which was generated by GNU Autoconf 2.63. 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 case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # 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_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTION]... [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet, --silent 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_write_fail=1 ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.63, with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2008 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' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. 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 ) $as_echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { $as_echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) $as_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. -*) { $as_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 || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # 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' macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_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"`' 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"`' NM='`$ECHO "X$NM" | $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"`' OBJDUMP='`$ECHO "X$OBJDUMP" | $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_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_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_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "X$GCC_CXX" | $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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "X$postdeps_CXX" | $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_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 SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ 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_FC \ compiler_CXX \ compiler_FC \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_no_builtin_flag_FC \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_wl_FC \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_pic_FC \ lt_prog_compiler_static_CXX \ lt_prog_compiler_static_FC \ lt_cv_prog_compiler_c_o_CXX \ lt_cv_prog_compiler_c_o_FC \ export_dynamic_flag_spec_CXX \ export_dynamic_flag_spec_FC \ whole_archive_flag_spec_CXX \ whole_archive_flag_spec_FC \ compiler_needs_object_CXX \ compiler_needs_object_FC \ with_gnu_ld_CXX \ with_gnu_ld_FC \ allow_undefined_flag_CXX \ allow_undefined_flag_FC \ no_undefined_flag_CXX \ no_undefined_flag_FC \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_FC \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_flag_spec_ld_FC \ hardcode_libdir_separator_CXX \ hardcode_libdir_separator_FC \ fix_srcfile_path_CXX \ fix_srcfile_path_FC \ exclude_expsyms_CXX \ exclude_expsyms_FC \ include_expsyms_CXX \ include_expsyms_FC \ file_list_spec_CXX \ file_list_spec_FC \ compiler_lib_search_dirs_CXX \ compiler_lib_search_dirs_FC \ predep_objects_CXX \ predep_objects_FC \ postdep_objects_CXX \ postdep_objects_FC \ predeps_CXX \ predeps_FC \ postdeps_CXX \ postdeps_FC \ compiler_lib_search_path_CXX \ 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_FC \ old_archive_from_new_cmds_CXX \ old_archive_from_new_cmds_FC \ old_archive_from_expsyms_cmds_CXX \ old_archive_from_expsyms_cmds_FC \ archive_cmds_CXX \ archive_cmds_FC \ archive_expsym_cmds_CXX \ archive_expsym_cmds_FC \ module_cmds_CXX \ module_cmds_FC \ module_expsym_cmds_CXX \ module_expsym_cmds_FC \ export_symbols_cmds_CXX \ export_symbols_cmds_FC \ prelink_cmds_CXX \ 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 || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; "tests/C/Makefile") CONFIG_FILES="$CONFIG_FILES tests/C/Makefile" ;; "tests/Fortran/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Fortran/Makefile" ;; "tests/genarray/Makefile") CONFIG_FILES="$CONFIG_FILES tests/genarray/Makefile" ;; "tests/bp_read/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bp_read/Makefile" ;; "tests/suite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suite/Makefile" ;; "tests/suite/programs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suite/programs/Makefile" ;; "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; "utils/skel/Makefile") CONFIG_FILES="$CONFIG_FILES utils/skel/Makefile" ;; "utils/skel/etc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/skel/etc/Makefile" ;; "utils/skel/src/Makefile") CONFIG_FILES="$CONFIG_FILES utils/skel/src/Makefile" ;; "utils/skel/lib/skel_have_adios_timing.py") CONFIG_FILES="$CONFIG_FILES utils/skel/lib/skel_have_adios_timing.py" ;; "utils/adios_lint/Makefile") CONFIG_FILES="$CONFIG_FILES utils/adios_lint/Makefile" ;; "utils/gpp/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gpp/Makefile" ;; "utils/bpdump/Makefile") CONFIG_FILES="$CONFIG_FILES utils/bpdump/Makefile" ;; "utils/bp2h5/Makefile") CONFIG_FILES="$CONFIG_FILES utils/bp2h5/Makefile" ;; "utils/bp2ncd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/bp2ncd/Makefile" ;; "utils/bp2ascii/Makefile") CONFIG_FILES="$CONFIG_FILES utils/bp2ascii/Makefile" ;; "utils/bpsplit/Makefile") CONFIG_FILES="$CONFIG_FILES utils/bpsplit/Makefile" ;; "utils/bpls/Makefile") CONFIG_FILES="$CONFIG_FILES utils/bpls/Makefile" ;; "utils/bp2bp/Makefile") CONFIG_FILES="$CONFIG_FILES utils/bp2bp/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "examples/C/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/Makefile" ;; "examples/C/scalars/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/scalars/Makefile" ;; "examples/C/arrays/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/arrays/Makefile" ;; "examples/C/flexpath_arrays/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/flexpath_arrays/Makefile" ;; "examples/C/flexpath_arrays/process_select/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/flexpath_arrays/process_select/Makefile" ;; "examples/C/flexpath_arrays/global_range_select/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/flexpath_arrays/global_range_select/Makefile" ;; "examples/C/attributes/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/attributes/Makefile" ;; "examples/C/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/manual/Makefile" ;; "examples/C/global-array/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/global-array/Makefile" ;; "examples/C/global-array-time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/global-array-time/Makefile" ;; "examples/C/stat/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/stat/Makefile" ;; "examples/C/read_all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/read_all/Makefile" ;; "examples/C/schema/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/schema/Makefile" ;; "examples/Fortran/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Fortran/Makefile" ;; "examples/Fortran/scalars/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Fortran/scalars/Makefile" ;; "examples/Fortran/arrays/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Fortran/arrays/Makefile" ;; "examples/Fortran/global-array/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Fortran/global-array/Makefile" ;; "examples/Fortran/global-array-time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Fortran/global-array-time/Makefile" ;; "adios_config.flags") CONFIG_FILES="$CONFIG_FILES adios_config.flags" ;; *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 $as_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") } || { $as_echo "$as_me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=' ' ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 $as_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 rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\).*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\).*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 $as_echo "$as_me: error: could not setup config files machinery" >&2;} { (exit 1); exit 1; }; } _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 || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_t=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_t"; then break elif $ac_last_try; then { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # 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. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} { (exit 1); exit 1; }; } fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 $as_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 || { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; 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 '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin" \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } ;; 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 || $as_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=`$as_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 || $as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 $as_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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_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 || ac_write_fail=1 # 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= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 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 || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;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 " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } 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"; } && { $as_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 $as_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 \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$tmp/config.h" "$ac_file" \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 $as_echo "$as_me: error: could not create -" >&2;} { (exit 1); exit 1; }; } fi # 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 || $as_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) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf 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 || $as_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 || $as_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=`$as_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 || $as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 $as_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 FC " # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # 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 # A BSD- or MS-compatible name lister. NM=$lt_NM # 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 # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # 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: 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 test $ac_write_fail = 0 || { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } # 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 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi echo echo "*********************************" echo $PACKAGE configured as follows: echo "*********************************" echo echo " - General Compile FLAGS"; echo " - CC = $CC"; echo " - CXX = $CXX"; echo " - FC = $FC"; echo " - CPPFLAGS = $CPPFLAGS"; echo " - CFLAGS = $CFLAGS"; echo " - CXXFLAGS = $CXXFLAGS"; echo " - FCFLAGS = $FCFLAGS"; echo " - LDLAGS = $LDFLAGS"; echo " - LIBS = $LIBS"; echo echo " - MPICC = $MPICC"; echo " - MPICXX = $MPICXX"; echo " - MPIFC = $MPIFC"; echo " - MPILIBS = $MPILIBS"; echo if test "x$enable_research_transports" == "xyes"; then echo " - Research Transports Included"; else echo " - No research transport methods"; fi if test "x$enable_skel_timing" == "xyes"; then echo " - Skel Timing Mechanism Enabled"; else echo " - Skel Timing Mechanism Disabled"; fi if test -z "${HAVE_MXML_TRUE}"; then echo " - MXML"; echo " - MXML_CFLAGS = $MXML_CFLAGS"; echo " - MXML_CPPFLAGS = $MXML_CPPFLAGS"; echo " - MXML_LDFLAGS = $MXML_LDFLAGS"; echo " - MXML_LIBS = $MXML_LIBS"; echo else echo " - No MXML" fi if test -z "${HAVE_LUSTRE_TRUE}"; then echo " - LUSTRE"; echo " - LUSTRE_CFLAGS = $LUSTRE_CFLAGS"; echo " - LUSTRE_CPPFLAGS = $LUSTRE_CPPFLAGS"; echo " - LUSTRE_LDFLAGS = $LUSTRE_LDFLAGS"; echo " - LUSTRE_LIBS = $LUSTRE_LIBS"; echo else echo " - No LUSTRE" fi echo " - Networking library for staging methods:"; if test -z "${HAVE_PORTALS_TRUE}"; then echo " - PORTALS"; echo " - PORTALS_CFLAGS = $PORTALS_CFLAGS"; echo " - PORTALS_CPPFLAGS = $PORTALS_CPPFLAGS"; echo " - PORTALS_LDFLAGS = $PORTALS_LDFLAGS"; echo " - PORTALS_LIBS = $PORTALS_LIBS"; echo #else # echo " - No Portals" #fi elif test -z "${HAVE_INFINIBAND_TRUE}"; then echo " - INFINIBAND"; echo " - INFINIBAND_CFLAGS = $INFINIBAND_CFLAGS"; echo " - INFINIBAND_CPPFLAGS = $INFINIBAND_CPPFLAGS"; echo " - INFINIBAND_LDFLAGS = $INFINIBAND_LDFLAGS"; echo " - INFINIBAND_LIBS = $INFINIBAND_LIBS"; echo #else # echo " - No InfiniBand" #fi elif test -z "${HAVE_CRAY_PMI_TRUE}" -a -z "${HAVE_CRAY_UGNI_TRUE}"; then echo " - CRAY uGNI with PMI"; echo " - CFLAGS = $CRAY_PMI_CFLAGS $CRAY_UGNI_CFLAGS"; echo " - CPPFLAGS = $CRAY_PMI_CPPFLAGS $CRAY_UGNI_CPPFLAGS"; echo " - LDFLAGS = $CRAY_PMI_LDFLAGS $CRAY_UGNI_LDFLAGS"; echo " - LIBS = $CRAY_PMI_LIBS $CRAY_UGNI_LIBS"; echo #else # echo " - No Cray uGNI" elif test -z "${HAVE_DCMF_TRUE}"; then echo " - IBM DCMF"; echo " - DCMF_CFLAGS = $DCMF_CFLAGS"; echo " - DCMF_CPPFLAGS = $DCMF_CPPFLAGS"; echo " - DCMF_LDFLAGS = $DCMF_LDFLAGS"; echo " - DCMF_LIBS = $DCMF_LIBS"; echo else echo " - No supported networking library found" fi if test "x${datatap}" != "xdisable"; then echo " - DataTap with interconnect: $datatap"; echo " - DT_CFLAGS = $DT_CFLAGS"; echo " - DT_CPPFLAGS = $DT_CPPFLAGS"; echo " - DT_LDFLAGS = $DT_LDFLAGS"; echo " - DT_LIBS = $DT_LIBS"; echo else echo " - No DataTap transport to build DATATAP transport method"; fi if test -z "${HAVE_DATASPACES_TRUE}"; then echo " - DATASPACES transport method"; echo " - DATASPACES_CFLAGS = $DATASPACES_CFLAGS"; echo " - DATASPACES_CPPFLAGS = $DATASPACES_CPPFLAGS"; echo " - DATASPACES_LDFLAGS = $DATASPACES_LDFLAGS"; echo " - DATASPACES_LIBS = $DATASPACES_LIBS"; echo else echo " - No DATASPACES to build DATASPACES transport method" fi if test -z "${HAVE_DIMES_TRUE}"; then echo " - DIMES transport method"; echo " - DIMES_CFLAGS = $DIMES_CFLAGS"; echo " - DIMES_CPPFLAGS = $DIMES_CPPFLAGS"; echo " - DIMES_LDFLAGS = $DIMES_LDFLAGS"; echo " - DIMES_LIBS = $DIMES_LIBS"; echo else echo " - No DIMES to build DIMES transport method" fi if test -z "${HAVE_PHDF5_TRUE}"; then echo " - PHDF5"; echo " - PHDF5_CFLAGS = $PHDF5_CFLAGS"; echo " - PHDF5_CPPFLAGS = $PHDF5_CPPFLAGS"; echo " - PHDF5_LDFLAGS = $PHDF5_LDFLAGS"; echo " - PHDF5_LIBS = $PHDF5_LIBS"; echo else echo " - No PHDF5 to build PHDF5 transport method" fi if test -z "${HAVE_HDF5_TRUE}"; then echo " - HDF5"; echo " - HDF5_CFLAGS = $HDF5_CFLAGS"; echo " - HDF5_CPPFLAGS = $HDF5_CPPFLAGS"; echo " - HDF5_LDFLAGS = $HDF5_LDFLAGS"; echo " - HDF5_LIBS = $HDF5_LIBS"; echo else echo " - No HDF5" fi if test -z "${HAVE_NC4PAR_TRUE}"; then echo " - NetCDF 4 Parallel"; echo " - NC4PAR_CFLAGS = $NC4PAR_CFLAGS"; echo " - NC4PAR_CPPFLAGS = $NC4PAR_CPPFLAGS"; echo " - NC4PAR_LDFLAGS = $NC4PAR_LDFLAGS"; echo " - NC4PAR_LIBS = $NC4PAR_LIBS"; echo else echo " - No NETCDF 4 Parallel to build NC4 transport method" fi if test -z "${HAVE_NETCDF_TRUE}"; then echo " - NetCDF"; echo " - NETCDF_CFLAGS = $NETCDF_CFLAGS"; echo " - NETCDF_CPPFLAGS = $NETCDF_CPPFLAGS"; echo " - NETCDF_LDFLAGS = $NETCDF_LDFLAGS"; echo " - NETCDF_LIBS = $NETCDF_LIBS"; echo else echo " - No NETCDF" fi if test -z "${HAVE_NSSI_TRUE}"; then echo " - NSSI"; echo " - NSSI_CFLAGS = $NSSI_CFLAGS"; echo " - NSSI_CPPFLAGS = $NSSI_CPPFLAGS"; echo " - NSSI_LDFLAGS = $NSSI_LDFLAGS"; echo " - NSSI_LIBS = $NSSI_LIBS"; echo else echo " - No NSSI to build NSSI transport method" fi if test -z "${HAVE_FLEXPATH_TRUE}"; then echo " - FLEXPATH"; echo " - FP_CFLAGS = $FP_CFLAGS"; echo " - FP_CPPFLAGS = $FP_CPPFLAGS"; echo " - FP_LDFLAGS = $FP_LDFLAGS"; echo " - FP_LIBS = $FP_LIBS"; echo else echo " - No FLEXPATH to build FLEXPATH transport method" fi echo " - SVN version = ${SVNVERSION}" echo " - Install path = ${prefix}" adios-1.5.0/ChangeLog0000644000175000017500000000000012251360163015505 0ustar amckinstryamckinstryadios-1.5.0/aclocal.m40000644000175000017500000116077112251360163015622 0ustar amckinstryamckinstry# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, [m4_warning([this file was generated for autoconf 2.63. 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'.])]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # 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 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. m4_define([_LT_COPYING], [dnl # 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. ]) # serial 56 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ 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]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; 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-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl _LT_CONFIG_LIBTOOL_INIT([ # 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 ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl _LT_PROG_ECHO_BACKSLASH 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 _LT_CC_BASENAME([$compiler]) # 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 _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "X$" | $Xsed -e "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # 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' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); 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 lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); 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"')dnl " lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` ;; esac _LT_OUTPUT_LIBTOOL_INIT ]) # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. 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 ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [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. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### 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 _LT_PROG_LTMAIN # 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) _LT_PROG_XSI_SHELLFNS 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" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. 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 ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # 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 ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl 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* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl 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* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [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" >&AS_MESSAGE_LOG_FD $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 >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) 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 ]) # _LT_DARWIN_LINKER_FEATURES # -------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(whole_archive_flag_spec, $1)='' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_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 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="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}" _LT_TAGVAR(module_expsym_cmds, $1)="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}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$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}" _LT_TAGVAR(archive_expsym_cmds, $1)="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 _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX # ----------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 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],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. m4_defun([_LT_PROG_ECHO_BACKSLASH], [_LT_SHELL_INIT([ # 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 AC_SUBST(lt_ECHO) ]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that does not interpret backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) 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 AC_TRY_EVAL(ac_compile); 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 AC_TRY_EVAL(ac_compile); 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 AC_TRY_EVAL(ac_compile); 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" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) 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 AC_TRY_EVAL(ac_compile); 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" ])# _LT_ENABLE_LOCK # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [AC_CHECK_TOOL(AR, ar, false) test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1]) AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # 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 _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works 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 ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works 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 ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- 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?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] 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 AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ 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]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=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\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 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_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $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* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) 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 AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [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]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != 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, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = 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 _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) 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" AC_MSG_RESULT([yes]) 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" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ 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`' m4_if([$1], [],[ 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_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [shlibpath_overrides_runpath=yes])]) 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 # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # 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="$sys_lib_dlsearch_path_spec $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 AC_MSG_RESULT([$dynamic_linker]) 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 _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[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]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library 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 ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker 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 /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 ]) 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 _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method == "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [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]) 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*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # LT_LIB_M # -------- # check for math library 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]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' _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, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # 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 AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && 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_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && 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" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 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 ]) 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 AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='-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 m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; 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_TAGVAR(lt_prog_compiler_pic, $1)=-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_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--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_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+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_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC*) # IBM XL 8.0 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='-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 m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-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). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$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 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) _LT_TAGVAR(export_symbols_cmds, $1)='$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' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # 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'. _LT_TAGVAR(exclude_expsyms, $1)=['_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. dnl Note also adjust exclude_expsyms for C++ above. 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 _LT_TAGVAR(ld_shlibs, $1)=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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= 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 _LT_TAGVAR(ld_shlibs, $1)=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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$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)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$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 _LT_TAGVAR(archive_cmds, $1)='$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... _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(whole_archive_flag_spec, $1)='${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 _LT_TAGVAR(whole_archive_flag_spec, $1)='${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 _LT_TAGVAR(whole_archive_flag_spec, $1)= 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 _LT_TAGVAR(whole_archive_flag_spec, $1)='${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' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(ld_shlibs, $1)=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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$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. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=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 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$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. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${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 _LT_TAGVAR(hardcode_direct, $1)=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 _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= 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 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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. _LT_TAGVAR(always_export_symbols, $1)=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. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$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. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${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. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$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)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-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. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=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. _LT_TAGVAR(archive_cmds, $1)='$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. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_TAGVAR(ld_shlibs, $1)=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*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$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*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$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" AC_LINK_IFELSE(int foo(void) {}, _LT_TAGVAR(archive_expsym_cmds, $1)='$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' ) LDFLAGS="$save_LDFLAGS" else _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='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='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='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}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=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 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=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. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$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. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) 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. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then _LT_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], [[If ld is used when linking, flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [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]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [fix_srcfile_path], [1], [Fix the shell variable $srcfile for the compiler]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$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);}' _LT_TAG_COMPILER # 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 _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) 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 AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_PROG_CXX # ------------ # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ # compiler, we have our own version here. m4_defun([_LT_PROG_CXX], [ pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) AC_PROG_CXX if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_CXX dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_CXX], []) # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [AC_REQUIRE([_LT_PROG_CXX])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$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. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # 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 _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) 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_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= 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. _LT_TAGVAR(archive_cmds, $1)='$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 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=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. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${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 _LT_TAGVAR(hardcode_direct, $1)=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 _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= 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 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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. _LT_TAGVAR(always_export_symbols, $1)=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. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$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. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${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. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$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 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$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... _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=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 _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=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 _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$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*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='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++ _LT_TAGVAR(archive_cmds, $1)='$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. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=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. _LT_TAGVAR(archive_cmds, $1)='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' _LT_TAGVAR(archive_expsym_cmds, $1)='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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$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."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) _LT_TAGVAR(prelink_cmds, $1)='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`"' _LT_TAGVAR(old_archive_cmds, $1)='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' _LT_TAGVAR(archive_cmds, $1)='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' _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${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++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # 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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${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' _LT_TAGVAR(compiler_needs_object, $1)=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. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=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*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=echo else _LT_TAGVAR(ld_shlibs, $1)=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. _LT_TAGVAR(archive_cmds, $1)='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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(archive_expsym_cmds, $1)='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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # 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 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$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' ;; *) _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # 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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=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?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=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. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$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. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='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. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$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. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$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_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) 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_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ]) dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); 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 "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${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 "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${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 "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [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. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; 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 _LT_TAGVAR(postdeps,$1)='-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 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_PROG_F77 # ------------ # Since AC_PROG_F77 is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_F77], [ pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) AC_PROG_F77 if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_F77 dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_F77], []) # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_REQUIRE([_LT_PROG_F77])dnl AC_LANG_PUSH(Fortran 77) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$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. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${F77-"f77"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) 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 AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$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_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_PROG_FC # ----------- # Since AC_PROG_FC is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_FC], [ pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) AC_PROG_FC if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_FC dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_FC], []) # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_REQUIRE([_LT_PROG_FC])dnl AC_LANG_PUSH(Fortran) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$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. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # 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 _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) 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 AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$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_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC="$lt_save_CC" ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC= CC=${RC-"windres"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC="$lt_save_CC" ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- 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 ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # 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 AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # 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 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_XSI_SHELLFNS # --------------------- # Bourne and XSI compatible variants of some useful shell functions. m4_defun([_LT_PROG_XSI_SHELLFNS], [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"` } dnl func_dirname_and_basename dnl A portable version of this function is already defined in general.m4sh dnl so there is no need for it here. # 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 ]) # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # 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 6 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) 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.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [0], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl ])# win32-dll 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.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [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], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [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], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [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], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: 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.]) ]) 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.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: 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.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # 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 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # 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. # Generated from ltversion.in. # serial 3017 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.2.6b]) m4_define([LT_PACKAGE_REVISION], [1.3017]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.2.6b' macro_revision='1.3017' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # 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 4 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # 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. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' 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.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # 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. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. 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` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # 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 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. 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 m4_define([_AM_COND_VALUE_$1], [$2])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])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Free Software Foundation, Inc. # # 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 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. 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 am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) 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 # 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. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; 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 ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj 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 $am__obj 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]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ 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 ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # 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 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf 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 } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. 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"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # 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 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])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) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 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 ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. 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]) # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # 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. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # 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 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. 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])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # 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 # AM_MAINTAINER_MODE([DEFAULT-MODE]) # ---------------------------------- # Control maintainer-specific portions of Makefiles. # Default is to disable them, unless `enable' is passed literally. # For symmetry, `disable' may be passed as well. Anyway, the user # can override the default with the --enable/--disable switch. AC_DEFUN([AM_MAINTAINER_MODE], [m4_case(m4_default([$1], [disable]), [enable], [m4_define([am_maintainer_other], [disable])], [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful (and sometimes confusing) to the casual installer], [USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST([MAINT])dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # 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 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .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 # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # 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 6 # AM_PROG_CC_C_O # -------------- # Like AC_PROG_CC_C_O, but changed for automake. 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 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != 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])]) ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # 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 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # 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 ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # 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. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. 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 ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # 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 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # 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 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # 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)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # 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. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). 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])]) # Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # 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 2 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # 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 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar 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]) ]) # _AM_PROG_TAR m4_include([config/ac_cray_pmi.m4]) m4_include([config/ac_cray_ugni.m4]) m4_include([config/ac_dataspaces.m4]) m4_include([config/ac_datatap.m4]) m4_include([config/ac_dcmf.m4]) m4_include([config/ac_dimes.m4]) m4_include([config/ac_dmalloc.m4]) m4_include([config/ac_flexpath.m4]) m4_include([config/ac_hdf5.m4]) m4_include([config/ac_infiniband.m4]) m4_include([config/ac_lustre.m4]) m4_include([config/ac_mxml.m4]) m4_include([config/ac_nc4par.m4]) m4_include([config/ac_netcdf.m4]) m4_include([config/ac_nssi.m4]) m4_include([config/ac_pablo.m4]) m4_include([config/ac_phdf5.m4]) m4_include([config/ac_portals.m4]) m4_include([config/acx_mpi.m4]) m4_include([config/acx_pthread.m4]) m4_include([config/cercs.m4]) adios-1.5.0/COPYING0000644000175000017500000000543212251360163015004 0ustar amckinstryamckinstryADIOS is freely available under the terms of the BSD license given below. Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. Copyright (c) 2008 - 2009. Georgia Institute of Technology. All rights reserved. Produced at the National Center for Computational Sciences in Oak Ridge National Laboratory. 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 disclaimer (as noted below) in the documentation and/or other materials provided with the distribution. * Neither the name of the UT-BATTELLE, LLC nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 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 HOLDER 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. Additional BSD Notice 1. This notice is required to be provided under our contract with the U.S. Department of Energy (DOE). This work was produced at Oak Ridge National Laboratory under Contract No. DEAC05-00OR22725 with the DOE. 2. Neither the United States Government nor UT-BATTELLE, LLC nor any of their employees, makes any warranty, express or implied, or assumes any liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately-owned rights. 3. Also, reference herein to any specific commercial products, process, or services by trade name, trademark, manufacturer or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or UT-BATTELLE, LLC. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or UT-BATTELLE, LLC, and shall not be used for advertising or product endorsement purposes. adios-1.5.0/examples/0000755000175000017500000000000012251360163015563 5ustar amckinstryamckinstryadios-1.5.0/examples/Makefile.am0000644000175000017500000000015012251360163017613 0ustar amckinstryamckinstryif BUILD_WRITE CSUBDIRS=C if BUILD_FORTRAN FSUBDIRS=Fortran endif endif SUBDIRS=$(CSUBDIRS) $(FSUBDIRS) adios-1.5.0/examples/C/0000755000175000017500000000000012251360163015745 5ustar amckinstryamckinstryadios-1.5.0/examples/C/Makefile.am0000644000175000017500000000015512251360163020002 0ustar amckinstryamckinstrySUBDIRS=scalars arrays attributes manual global-array global-array-time read_all stat schema flexpath_arrays adios-1.5.0/examples/C/manual/0000755000175000017500000000000012251360163017222 5ustar amckinstryamckinstryadios-1.5.0/examples/C/manual/Makefile.am0000644000175000017500000000202612251360163021256 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = 1_nonadios_example 2_adios_write 3_adios_read 4_adios_nfiles 1_nonadios_example_SOURCES = 1_nonadios_example.c 1_nonadios_example_LDADD = $(top_builddir)/src/libadios.a 1_nonadios_example_LDFLAGS = $(ADIOSLIB_LDFLAGS) 1_nonadios_example_LDADD += $(ADIOSLIB_LDADD) 2_adios_write_SOURCES = 2_adios_write.c 2_adios_write_LDADD = $(top_builddir)/src/libadios.a 2_adios_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) 2_adios_write_LDADD += $(ADIOSLIB_LDADD) 3_adios_read_SOURCES = 3_adios_read.c 3_adios_read_LDADD = $(top_builddir)/src/libadios.a 3_adios_read_LDFLAGS = $(ADIOSLIB_LDFLAGS) 3_adios_read_LDADD += $(ADIOSLIB_LDADD) 4_adios_nfiles_SOURCES = 4_adios_nfiles.c 4_adios_nfiles_LDADD = $(top_builddir)/src/libadios.a 4_adios_nfiles_LDFLAGS = $(ADIOSLIB_LDFLAGS) 4_adios_nfiles_LDADD += $(ADIOSLIB_LDADD) CLEANFILES = *.bp CC=$(MPICC) EXTRA_DIST = config.xml gread_temperature.ch gwrite_temperature.ch adios-1.5.0/examples/C/manual/3_adios_read.c0000644000175000017500000000267712251360163021716 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* * ADIOS example from the User's manual * * Read back data written by 2_adios_posix. * Use the same method and the same number of processes that were used * for writing the data with 2_adios_posix. * */ #include #include "mpi.h" #include "adios.h" int main (int argc, char ** argv) { char filename [256]; int rank; int NX = 10; double t[NX]; char result[1024], s[32]; int i; /* ADIOS variables declarations for matching gread_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize, adios_buf_size; int64_t adios_handle; MPI_Comm comm = MPI_COMM_WORLD; MPI_Init (&argc, &argv); MPI_Comm_rank (MPI_COMM_WORLD, &rank); sprintf (filename, "restart.bp"); adios_init ("config.xml", comm); adios_open (&adios_handle, "temperature", filename, "r", comm); #include "gread_temperature.ch" adios_close (adios_handle); adios_finalize (rank); MPI_Finalize (); sprintf(result, "rank=%d t=[%g", rank, t[0]); for (i=1; i #include "mpi.h" #include "adios.h" int main (int argc, char ** argv) { char filename [256]; int rank; int NX = 10; double t[NX]; int i; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Comm comm = MPI_COMM_WORLD; MPI_Init (&argc, &argv); MPI_Comm_rank (MPI_COMM_WORLD, &rank); for (i=0; i #include "mpi.h" #include "adios.h" int main (int argc, char ** argv) { char filename [256]; int rank, size; int NX = 10; int N = 3; /* number of files to write */ double t[NX]; int i; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; int color, key; MPI_Comm comm; MPI_Init (&argc, &argv); MPI_Comm_rank (MPI_COMM_WORLD, &rank); MPI_Comm_size (MPI_COMM_WORLD, &size); /* MPI_Comm_split partitions the world group into N disjoint subgroups, * the processes are ranked in terms of the argument key. * A new communicator comm is returned for this specific grid configuration */ color = rank % N; key = rank / N; MPI_Comm_split (MPI_COMM_WORLD, color, key, &comm); for (i=0; i #include "mpi.h" int main (int argc, char ** argv) { char filename [256]; int rank; int NX = 10; double t[NX]; FILE * fp; int i; MPI_Init (&argc, &argv); MPI_Comm_rank (MPI_COMM_WORLD, &rank); sprintf (filename, "restart_%5.5d.dat", rank); for (i=0; i adios-1.5.0/examples/C/manual/gwrite_temperature.ch0000644000175000017500000000031312251360163023451 0ustar amckinstryamckinstryadios_groupsize = 4 \ + 8 * (NX); adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "NX", &NX); adios_write (adios_handle, "temperature", t); adios-1.5.0/examples/C/flexpath_arrays/0000755000175000017500000000000012251360163021141 5ustar amckinstryamckinstryadios-1.5.0/examples/C/flexpath_arrays/Makefile.am0000644000175000017500000000005312251360163023173 0ustar amckinstryamckinstrySUBDIRS=process_select global_range_select adios-1.5.0/examples/C/flexpath_arrays/process_select/0000755000175000017500000000000012251360163024156 5ustar amckinstryamckinstryadios-1.5.0/examples/C/flexpath_arrays/process_select/Makefile.am0000644000175000017500000000102512251360163026210 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = arrays_write arrays_read arrays_write_SOURCES = arrays_write.c arrays_write_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) arrays_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) arrays_read_SOURCES = arrays_read.c arrays_read_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) arrays_read_LDFLAGS = $(ADIOSLIB_LDFLAGS) CLEANFILES = *.txt CC=$(MPICC) EXTRA_DIST = arrays.xml job.pbs adios-1.5.0/examples/C/flexpath_arrays/process_select/arrays.xml0000644000175000017500000000101212251360163026173 0ustar amckinstryamckinstry QUEUE_SIZE=10; adios-1.5.0/examples/C/flexpath_arrays/process_select/arrays_read.c0000644000175000017500000000623612251360163026625 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /*************************************************************/ /* Example of reading arrays in ADIOS */ /* which were written from the same number of processors */ /* */ /* Similar example is manual/2_adios_read.c */ /*************************************************************/ #include #include #include #include #include "mpi.h" #include "adios.h" #include "public/adios_read.h" int main (int argc, char ** argv) { /* application data structures */ char filename [256]; int rank, size, i, j; int NX, NY; double *t; int *p; /* MPI and ADIOS data structures */ MPI_Comm comm = MPI_COMM_WORLD; int adios_err; int64_t adios_handle, adios_buf_size; /* MPI and ADIOS setup */ MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); adios_read_init_method(ADIOS_READ_METHOD_FLEXPATH, comm, ""); /* First read in the scalars to calculate the size of the arrays */ /* get everything from single process - rank 0 for now*/ ADIOS_SELECTION process_select; process_select.type=ADIOS_SELECTION_WRITEBLOCK; process_select.u.block.index = rank; /* read the size of arrays using local inq_var */ /* Note: at this moment, timeout is not handled. It blocks until writer appears */ ADIOS_FILE* afile = adios_read_open("arrays", ADIOS_READ_METHOD_FLEXPATH, comm, ADIOS_LOCKMODE_NONE, 30.0); /* Read arrays for each time step */ int ii=0; while(adios_errno != err_end_of_stream){ ADIOS_VARINFO* nx_info = adios_inq_var( afile, "NX"); if(nx_info->value) { NX = *((int *)nx_info->value); } ADIOS_VARINFO* ny_info = adios_inq_var( afile, "NY"); if(ny_info->value) { NY = *((int *)ny_info->value); } /* Allocate space for the arrays */ t = (double *) malloc (NX*NY*sizeof(double)); p = (int *) malloc (NX*sizeof(int)); memset(t, 0, NX*NY*sizeof(double)); memset(p, 0, NX*sizeof(int)); /* schedule a read of the arrays */ adios_schedule_read (afile, &process_select, "var_double_2Darray", 0, 1, t); adios_schedule_read (afile, &process_select, "var_int_1Darray", 0, 1, p); /* commit request and retrieve data */ adios_perform_reads (afile, 1); /* print result */ printf("Results Rank=%d Step=%d p[] = [%d, %d,...] t[][] = [%.2f, %.2f]\n", rank, afile->current_step, p[0], p[1], t[0], t[1]); /* block until next step is available (30 sec timeout unsupported) */ adios_release_step(afile); adios_advance_step(afile, 0, 30); MPI_Barrier (comm); /* shutdown ADIOS and MPI */ } adios_read_close(afile); /* wait until all readers finish */ adios_read_finalize_method(ADIOS_READ_METHOD_FLEXPATH); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/flexpath_arrays/process_select/job.pbs0000644000175000017500000000020612251360163025434 0ustar amckinstryamckinstry#!/bin/sh #PBS -N test #PBS -j oe #PBS -l walltime=00:05:00,nodes=3:ppn=2 cd $PBS_O_WORKDIR mpirun -np 6 ./adios_types >& result.dat adios-1.5.0/examples/C/flexpath_arrays/process_select/Makefile.in0000644000175000017500000004377112251360163026237 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = arrays_write$(EXEEXT) arrays_read$(EXEEXT) subdir = examples/C/flexpath_arrays/process_select DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_arrays_read_OBJECTS = arrays_read.$(OBJEXT) arrays_read_OBJECTS = $(am_arrays_read_OBJECTS) am__DEPENDENCIES_1 = arrays_read_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) arrays_read_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(arrays_read_LDFLAGS) $(LDFLAGS) -o $@ am_arrays_write_OBJECTS = arrays_write.$(OBJEXT) arrays_write_OBJECTS = $(am_arrays_write_OBJECTS) arrays_write_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) arrays_write_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(arrays_write_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(arrays_read_SOURCES) $(arrays_write_SOURCES) DIST_SOURCES = $(arrays_read_SOURCES) $(arrays_write_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies arrays_write_SOURCES = arrays_write.c arrays_write_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) arrays_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) arrays_read_SOURCES = arrays_read.c arrays_read_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) arrays_read_LDFLAGS = $(ADIOSLIB_LDFLAGS) CLEANFILES = *.txt EXTRA_DIST = arrays.xml job.pbs all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/flexpath_arrays/process_select/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/flexpath_arrays/process_select/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list arrays_read$(EXEEXT): $(arrays_read_OBJECTS) $(arrays_read_DEPENDENCIES) @rm -f arrays_read$(EXEEXT) $(arrays_read_LINK) $(arrays_read_OBJECTS) $(arrays_read_LDADD) $(LIBS) arrays_write$(EXEEXT): $(arrays_write_OBJECTS) $(arrays_write_DEPENDENCIES) @rm -f arrays_write$(EXEEXT) $(arrays_write_LINK) $(arrays_write_OBJECTS) $(arrays_write_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/flexpath_arrays/process_select/arrays_write.c0000644000175000017500000000511312251360163027035 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include #include #include "mpi.h" #include "adios.h" /*************************************************************/ /* Example of writing arrays in ADIOS */ /* */ /* Similar example is manual/2_adios_write.c */ /*************************************************************/ int main (int argc, char ** argv) { /* application data structures */ char filename [256]; int rank, size, i, j; int NX = 10, NY = 100; double t[NX][NY]; int p[NX]; /* MPI and ADIOS data structures */ MPI_Comm comm = MPI_COMM_WORLD; int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; /* MPI and ADIOS setup */ MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); strcpy (filename, "arrays"); adios_init ("arrays.xml", comm); /* write data 200 times so that it forms a stream */ int ii=0; for(ii=0; ii<30; ii++) { /* must open eveery time for stream api to work */ adios_open (&adios_handle, "arrays", filename, "w", comm); /* initialize 2d array to: (rank*1000000) + (stream step * 1000) + offset */ for (i = 0; i < NX; i++) for (j = 0; j< NY; j++) t[i][j] = (rank * 1000000) + (ii * 1000) + (i*NY) + j; /* initialize 1d array similarly */ for (i = 0; i < NX; i++) p[i] = (rank*1000000) + (ii * 1000) + i; /* groupsize registration (necessary?) */ adios_groupsize = 4 + 4 + 8 * (NX) * (NY) + 4 * (NX); adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); /* write a step */ adios_write (adios_handle, "NX", &NX); adios_write (adios_handle, "NY", &NY); adios_write (adios_handle, "var_double_2Darray", t); adios_write (adios_handle, "var_int_1Darray", p); //fprintf(stderr, "2d arr %p 1d arr %p\n", t, p); /* commit the write */ adios_close (adios_handle); printf("Committed Rank=%d Step=%d\n\n", rank, ii); } /* insure all writers are done before shutdown */ MPI_Barrier (comm); /* shutdown adios and mpi */ adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/flexpath_arrays/Makefile.in0000644000175000017500000005073212251360163023215 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = examples/C/flexpath_arrays DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = process_select global_range_select all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/flexpath_arrays/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/flexpath_arrays/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/flexpath_arrays/global_range_select/0000755000175000017500000000000012251360163025114 5ustar amckinstryamckinstryadios-1.5.0/examples/C/flexpath_arrays/global_range_select/Makefile.am0000644000175000017500000000101512251360163027145 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = arrays_write arrays_read arrays_write_SOURCES = arrays_write.c arrays_write_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) arrays_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) arrays_read_SOURCES = arrays_read.c arrays_read_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) arrays_read_LDFLAGS = $(ADIOSLIB_LDFLAGS) CLEANFILES = *.bp CC=$(MPICC) EXTRA_DIST = arrays.xml adios-1.5.0/examples/C/flexpath_arrays/global_range_select/arrays.xml0000644000175000017500000000116712251360163027144 0ustar amckinstryamckinstry QUEUE_SIZE=4; adios-1.5.0/examples/C/flexpath_arrays/global_range_select/arrays_read.c0000644000175000017500000000730212251360163027556 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /*************************************************************/ /* Example of reading arrays in ADIOS */ /* which were written from the same number of processors */ /* */ /* Similar example is manual/2_adios_read.c */ /*************************************************************/ #include #include #include #include #include "mpi.h" #include "adios.h" #include "public/adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j; int NX, NY; double *t; MPI_Comm comm = MPI_COMM_WORLD; int adios_err; int64_t adios_handle, adios_buf_size; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); adios_read_init_method(ADIOS_READ_METHOD_FLEXPATH, comm, ""); ADIOS_SELECTION global_range_select; //if(rank == 0){ global_range_select.type=ADIOS_SELECTION_BOUNDINGBOX; global_range_select.u.bb.start = malloc(sizeof(uint64_t)*2); global_range_select.u.bb.count = malloc(sizeof(uint64_t)*2); (global_range_select.u.bb.start)[0] = rank; (global_range_select.u.bb.count)[0] = 1; (global_range_select.u.bb.start)[1] = 0; (global_range_select.u.bb.count)[1] = 40; global_range_select.u.bb.ndim = 2; ADIOS_SELECTION scalar_block_select; scalar_block_select.type = ADIOS_SELECTION_WRITEBLOCK; scalar_block_select.u.block.index = rank; //fprintf(stderr, "app got here\n"); /* schedule_read of a scalar. */ int test_scalar = -1; ADIOS_FILE* afile = adios_read_open("arrays", ADIOS_READ_METHOD_FLEXPATH, comm, ADIOS_LOCKMODE_NONE, 0.0); int ii = 0; while(adios_errno != err_end_of_stream){ /* get a bounding box - rank 0 for now*/ ADIOS_VARINFO* nx_info = adios_inq_var( afile, "NX"); ADIOS_VARINFO* ny_info = adios_inq_var( afile, "NY"); if(nx_info->value) { NX = *((int *)nx_info->value); } if(ny_info->value){ NY= *((int*)ny_info->value); } //printf("\trank=%d: NX=%d\n", rank, NX); //printf("\trank=%d: NY=%d\n", rank, NY); /* Allocate space for the arrays */ int nelem = 40; int arr_size = sizeof(double) * nelem; t = (double *) malloc (arr_size); memset(t, 0, arr_size); //fprintf(stderr, "t %p\n", t); /* Read the arrays */ adios_schedule_read (afile, &global_range_select, "var_2d_array", 0, 1, t); adios_schedule_read (afile, &scalar_block_select, "test_scalar", 0, 1, &test_scalar); adios_perform_reads (afile, 1); //sleep(20); printf("Rank=%d: test_scalar: %d step: %d, t[0,5+x] = [%6.2f", rank, test_scalar, ii, t[0]); for(j=0; j #include #include "mpi.h" #include "adios.h" /*************************************************************/ /* Example of writing arrays in ADIOS */ /* */ /* Similar example is manual/2_adios_write.c */ /*************************************************************/ int main (int argc, char ** argv) { char filename [256]; int rank, size, i; int NX = 10000; int NY = 1; double t[NX]; MPI_Comm comm = MPI_COMM_WORLD; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); strcpy (filename, "arrays"); adios_init ("arrays.xml", comm); int test_scalar = rank * 1000; int ii; for(ii = 0; ii<200; ii++){ for (i = 0; i < NX; i++) t[i] = rank * NX + i*ii; adios_open (&adios_handle, "temperature", filename, "w", comm); adios_write (adios_handle, "NX", &NX); adios_write (adios_handle, "NY", &NY); adios_write (adios_handle, "test_scalar", &test_scalar); adios_write (adios_handle, "size", &size); adios_write (adios_handle, "rank", &rank); adios_write (adios_handle, "var_2d_array", t); adios_close (adios_handle); fprintf(stderr, "Rank=%d commited write %d\n", rank, ii); } adios_finalize (rank); //MPI_Finalize (); return 0; } adios-1.5.0/examples/C/scalars/0000755000175000017500000000000012251360163017375 5ustar amckinstryamckinstryadios-1.5.0/examples/C/scalars/Makefile.am0000644000175000017500000000152612251360163021435 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = scalars_write scalars_read scalars_write_step scalars_write_SOURCES = scalars_write.c scalars_write_LDADD = $(top_builddir)/src/libadios.a scalars_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) scalars_write_LDADD += $(ADIOSLIB_LDADD) scalars_read_SOURCES = scalars_read.c scalars_read_LDADD = $(top_builddir)/src/libadiosread.a scalars_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) scalars_read_LDADD += $(ADIOSREADLIB_LDADD) scalars_write_step_SOURCES = scalars_write.c scalars_write_step_LDADD = $(top_builddir)/src/libadios.a scalars_write_step_LDFLAGS = $(ADIOSLIB_LDFLAGS) scalars_write_step_LDADD += $(ADIOSLIB_LDADD) CLEANFILES = *.bp CC=$(MPICC) EXTRA_DIST = scalars.xml gwrite_scalars.ch gread_scalars.ch job.pbs adios-1.5.0/examples/C/scalars/scalars.xml0000644000175000017500000000310612251360163021547 0ustar amckinstryamckinstry adios-1.5.0/examples/C/scalars/scalars_write.c0000644000175000017500000000353112251360163022405 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /*************************************************************/ /* Example of writing various types of variable in ADIOS */ /*************************************************************/ #include #include #include "mpi.h" #include "adios.h" typedef struct complex { float r; float i; } complex; typedef struct double_complex { double r; double i; } double_complex; int main (int argc, char ** argv) { char filename [256]; int rank, size, i; int NX = 10; double t[NX]; MPI_Comm comm = MPI_COMM_WORLD; int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; int8_t v1 = -4; int16_t v2 = -3; int32_t v3 = -2; int64_t v4 = -1; uint8_t v5 = 1; uint16_t v6 = 2; uint32_t v7 = 3; uint64_t v8 = 4; float v9 = 5.0; double v10 = 6.0; char * v11 = "ADIOS example"; complex v12; v12.r = 8.0; v12.i = 9.0; double_complex v13; v13.r = 10.0; v13.i = 11.0; MPI_Init (&argc, &argv); strcpy (filename, "scalars.bp"); /* adios_open() opens a "group in a file", here the "scalars" group. GWRITE is the convenient way to write all variables defined in the xml file but of course one can write the individual adios_write() statements here too */ adios_init ("scalars.xml", comm); adios_open (&adios_handle, "scalars", filename, "w", comm); #include "gwrite_scalars.ch" adios_close (adios_handle); MPI_Barrier (comm); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/scalars/job.pbs0000644000175000017500000000020612251360163020653 0ustar amckinstryamckinstry#!/bin/sh #PBS -N test #PBS -j oe #PBS -l walltime=00:05:00,nodes=3:ppn=2 cd $PBS_O_WORKDIR mpirun -np 6 ./adios_types >& result.dat adios-1.5.0/examples/C/scalars/Makefile.in0000644000175000017500000004560412251360163021453 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = scalars_write$(EXEEXT) scalars_read$(EXEEXT) \ scalars_write_step$(EXEEXT) subdir = examples/C/scalars DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_scalars_read_OBJECTS = scalars_read.$(OBJEXT) scalars_read_OBJECTS = $(am_scalars_read_OBJECTS) am__DEPENDENCIES_1 = scalars_read_DEPENDENCIES = $(top_builddir)/src/libadiosread.a \ $(am__DEPENDENCIES_1) scalars_read_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(scalars_read_LDFLAGS) $(LDFLAGS) -o $@ am_scalars_write_OBJECTS = scalars_write.$(OBJEXT) scalars_write_OBJECTS = $(am_scalars_write_OBJECTS) scalars_write_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) scalars_write_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(scalars_write_LDFLAGS) $(LDFLAGS) -o $@ am_scalars_write_step_OBJECTS = scalars_write.$(OBJEXT) scalars_write_step_OBJECTS = $(am_scalars_write_step_OBJECTS) scalars_write_step_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) scalars_write_step_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(scalars_write_step_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(scalars_read_SOURCES) $(scalars_write_SOURCES) \ $(scalars_write_step_SOURCES) DIST_SOURCES = $(scalars_read_SOURCES) $(scalars_write_SOURCES) \ $(scalars_write_step_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies scalars_write_SOURCES = scalars_write.c scalars_write_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) scalars_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) scalars_read_SOURCES = scalars_read.c scalars_read_LDADD = $(top_builddir)/src/libadiosread.a \ $(ADIOSREADLIB_LDADD) scalars_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) scalars_write_step_SOURCES = scalars_write.c scalars_write_step_LDADD = $(top_builddir)/src/libadios.a \ $(ADIOSLIB_LDADD) scalars_write_step_LDFLAGS = $(ADIOSLIB_LDFLAGS) CLEANFILES = *.bp EXTRA_DIST = scalars.xml gwrite_scalars.ch gread_scalars.ch job.pbs all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/scalars/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/scalars/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list scalars_read$(EXEEXT): $(scalars_read_OBJECTS) $(scalars_read_DEPENDENCIES) @rm -f scalars_read$(EXEEXT) $(scalars_read_LINK) $(scalars_read_OBJECTS) $(scalars_read_LDADD) $(LIBS) scalars_write$(EXEEXT): $(scalars_write_OBJECTS) $(scalars_write_DEPENDENCIES) @rm -f scalars_write$(EXEEXT) $(scalars_write_LINK) $(scalars_write_OBJECTS) $(scalars_write_LDADD) $(LIBS) scalars_write_step$(EXEEXT): $(scalars_write_step_OBJECTS) $(scalars_write_step_DEPENDENCIES) @rm -f scalars_write_step$(EXEEXT) $(scalars_write_step_LINK) $(scalars_write_step_OBJECTS) $(scalars_write_step_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/scalars/scalars_read.c0000644000175000017500000000650112251360163022166 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /*********************************************************************/ /* Example of reading various types of scalar variables in ADIOS */ /*********************************************************************/ #include #include #include "mpi.h" #include "adios_read.h" typedef struct complex { float r; float i; } complex; typedef struct double_complex { double r; double i; } double_complex; int main (int argc, char ** argv) { char filename [256]; int rank, size, i; int NX = 10; double t[NX]; MPI_Comm comm = MPI_COMM_WORLD; enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP; ADIOS_SELECTION * sel1=NULL; int8_t v1 = 0; int16_t v2 = 0; int32_t v3 = 0; int64_t v4 = 0; uint8_t v5 = 0; uint16_t v6 = 0; uint32_t v7 = 0; uint64_t v8 = 0; float v9 = 0.0; double v10 = 0.0; char v11[256]; complex v12; v12.r = 0.0; v12.i = 0.0; double_complex v13; v13.r = 0.0; v13.i = 0.0; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); strcpy (filename, "scalars.bp"); adios_read_init_method (method, comm, "verbose=3"); ADIOS_FILE * f = adios_read_open (filename, method, comm, ADIOS_LOCKMODE_NONE, 0.0); adios_schedule_read (f, sel1, "var_byte", 0, 1, &v1); adios_schedule_read (f, sel1, "var_short", 0, 1, &v2); adios_schedule_read (f, sel1, "var_int", 0, 1, &v3); adios_schedule_read (f, sel1, "var_long", 0, 1, &v4); adios_schedule_read (f, sel1, "var_ubyte", 0, 1, &v5); adios_schedule_read (f, sel1, "var_ushort", 0, 1, &v6); adios_schedule_read (f, sel1, "var_uint", 0, 1, &v7); adios_schedule_read (f, sel1, "var_ulong", 0, 1, &v8); adios_schedule_read (f, sel1, "var_real", 0, 1, &v9); adios_schedule_read (f, sel1, "var_double", 0, 1, &v10); /* note that a string is an array and thus v11 a pointer already, so we pass the v11 instead of &v11 here */ adios_schedule_read (f, sel1, "var_string", 0, 1, v11); adios_schedule_read (f, sel1, "var_complex", 0, 1, &v12); adios_schedule_read (f, sel1, "var_double_complex", 0, 1, &v13); adios_perform_reads (f,1); if (rank == 0) { printf("byte v1 = %d\n", v1); printf("short v2 = %d\n", v2); printf("integer v3 = %d\n", v3); printf("long v4 = %lld\n", v4); printf("uns.byte v5 = %u\n", v5); printf("uns.short v6 = %u\n", v6); printf("uns.int v7 = %u\n", v7); printf("uns.long v8 = %llu\n", v8); printf("float v9 = %g\n", v9); printf("double v10 = %g\n", v10); printf("string v11 = %s\n", v11); printf("complex v12 = (%g, i%g)\n", v12.r, v12.i); printf("dbl-complex v13 = (%g, i%g)\n", v13.r, v13.i); } adios_read_close (f); MPI_Barrier (comm); adios_read_finalize_method (ADIOS_READ_METHOD_BP); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/scalars/CMakeLists.txt0000644000175000017500000000125612251360163022141 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/C/scalars) link_directories(${PROJECT_BINARY_DIR}/examples/C/scalars) add_executable(scalars_write scalars_write.c) target_link_libraries(scalars_write adios ${ADIOSLIB_LDADD}) add_executable(scalars_read scalars_read.c) target_link_libraries(scalars_read adiosread ${ADIOSREADLIB_LDADD}) add_executable(scalars_write_step scalars_write.c) target_link_libraries(scalars_write_step adios ${ADIOSLIB_LDADD}) #install(FILES scalars.xml gwrite_scalars.ch gread_scalars.ch job.pbs DESTINATION ${PROJECT_BINARY_DIR}/examples/C/scalars) adios-1.5.0/examples/C/scalars/gwrite_scalars.ch0000644000175000017500000000171512251360163022726 0ustar amckinstryamckinstryadios_groupsize = 1 \ + 2 \ + 4 \ + 8 \ + 1 \ + 2 \ + 4 \ + 8 \ + 4 \ + 8 \ + strlen(v11) \ + 8 \ + 16; adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "var_byte", &v1); adios_write (adios_handle, "var_short", &v2); adios_write (adios_handle, "var_int", &v3); adios_write (adios_handle, "var_long", &v4); adios_write (adios_handle, "var_ubyte", &v5); adios_write (adios_handle, "var_ushort", &v6); adios_write (adios_handle, "var_uint", &v7); adios_write (adios_handle, "var_ulong", &v8); adios_write (adios_handle, "var_real", &v9); adios_write (adios_handle, "var_double", &v10); adios_write (adios_handle, "var_string", v11); adios_write (adios_handle, "var_complex", &v12); adios_write (adios_handle, "var_double_complex", &v13); adios-1.5.0/examples/C/scalars/gread_scalars.ch0000644000175000017500000000224012251360163022501 0ustar amckinstryamckinstryadios_groupsize = 0; adios_totalsize = 0; adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_buf_size = 1; adios_read (adios_handle, "var_byte", &v1, adios_buf_size); adios_buf_size = 2; adios_read (adios_handle, "var_short", &v2, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "var_int", &v3, adios_buf_size); adios_buf_size = 8; adios_read (adios_handle, "var_long", &v4, adios_buf_size); adios_buf_size = 1; adios_read (adios_handle, "var_ubyte", &v5, adios_buf_size); adios_buf_size = 2; adios_read (adios_handle, "var_ushort", &v6, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "var_uint", &v7, adios_buf_size); adios_buf_size = 8; adios_read (adios_handle, "var_ulong", &v8, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "var_real", &v9, adios_buf_size); adios_buf_size = 8; adios_read (adios_handle, "var_double", &v10, adios_buf_size); adios_buf_size = 2147483648; adios_read (adios_handle, "var_string", v11, adios_buf_size); adios_buf_size = 8; adios_read (adios_handle, "var_complex", &v12, adios_buf_size); adios_buf_size = 16; adios_read (adios_handle, "var_double_complex", &v13, adios_buf_size); adios-1.5.0/examples/C/read_all/0000755000175000017500000000000012251360163017510 5ustar amckinstryamckinstryadios-1.5.0/examples/C/read_all/Makefile.am0000644000175000017500000000121312251360163021541 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = read_all read_all_v1 read_all_SOURCES = read_all.c read_all_CPPFLAGS = ${MACRODEFFLAG}_NOMPI read_all_LDADD = $(top_builddir)/src/libadiosread_nompi.a read_all_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) read_all_LDADD += $(ADIOSREADLIB_LDADD) read_all_v1_SOURCES = read_all_v1.c read_all_v1_CPPFLAGS = ${MACRODEFFLAG}_NOMPI ${MACRODEFFLAG}ADIOS_USE_READ_API_1 read_all_v1_LDADD = $(top_builddir)/src/libadiosread_nompi.a read_all_v1_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) read_all_v1_LDADD += $(ADIOSREADLIB_LDADD) adios-1.5.0/examples/C/read_all/read_all.c0000644000175000017500000001627612251360163021433 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: * read all variables and attributes from * all groups in a BP file * * This is a sequential program. */ #include #include #include #include "adios_read.h" const char * value_to_string (enum ADIOS_DATATYPES type, void * data, int idx); int main (int argc, char ** argv) { char filename [256]; int rank, size, gidx, i, j, k,l; MPI_Comm comm_dummy = 0; /* MPI_Comm is defined through adios_read.h */ enum ADIOS_DATATYPES attr_type; void * data = NULL; uint64_t start[] = {0,0,0,0,0,0,0,0,0,0}; uint64_t count[10], bytes_read = 0; ADIOS_SELECTION *sel; if (argc < 2) { printf("Usage: %s \n", argv[0]); return 1; } ADIOS_FILE * f; //int step; //for (step=0; step < 2; step++) { f = adios_read_open_file (argv[1], ADIOS_READ_METHOD_BP, comm_dummy); if (f == NULL) { printf ("%s\n", adios_errmsg()); return -1; } /* For all variables */ printf(" Variables=%d:\n", f->nvars); for (i = 0; i < f->nvars; i++) { ADIOS_VARINFO * v = adios_inq_var_byid (f, i); adios_inq_var_stat (f, v, 0, 0); uint64_t total_size = adios_type_size (v->type, v->value); for (j = 0; j < v->ndim; j++) total_size *= v->dims[j]; printf(" %-9s %s", adios_type_to_string(v->type), f->var_namelist[i]); if (v->ndim == 0) { /* Scalars do not need to be read in, we get it from the metadata when using adios_inq_var */ printf(" = %s\n", value_to_string(v->type, v->value, 0)); } else { /* Arrays have to be read in from the file */ printf("[%d",v->dims[0]); for (j = 1; j < v->ndim; j++) printf(", %d",v->dims[j]); //printf("] = \n"); if (v->type == adios_integer) printf("] = min=%d max=%d\n", (*(int*)v->statistics->min), (*(int*)v->statistics->max)); else if (v->type == adios_double) printf("] = min=%lg max=%lg\n", (*(double*)v->statistics->min), (*(double*)v->statistics->max)); if (total_size > 1024*1024*1024) { printf(" // too big, do not read in\n"); } else { data = malloc (total_size); if (data == NULL) { fprintf (stderr, "malloc failed.\n"); return -1; } for (j = 0; j < v->ndim; j++) count[j] = v->dims[j]; sel = adios_selection_boundingbox (v->ndim, start, count); adios_schedule_read_byid (f, sel, i, 0, 1, data); adios_perform_reads (f, 1); if (bytes_read < 0) { printf ("%s\n", adios_errmsg()); } else if (bytes_read > 1024*1024) { printf ("Too big to print\n"); } else if (v->ndim == 1) { printf (" ["); for (j = 0; j < v->dims[0]; j++) printf("%s ", value_to_string(v->type, data, j)); printf ("]\n"); } else if (v->ndim == 2) { for (j = 0; j < v->dims[0]; j++) { printf (" row %d: [", j); for (k = 0; k < v->dims[1]; k++) printf("%s ", value_to_string(v->type, data, j*v->dims[1] + k)); printf ("]\n"); } } else if (v->ndim == 3) { for (j = 0; j < v->dims[0]; j++) { printf (" block %d: \n", j); for (k = 0; k < v->dims[1]; k++) { printf (" row %d: [", k); for (l = 0; l < v->dims[2]; l++) { printf("%s ", value_to_string(v->type, data, j*v->dims[1]*v->dims[2] + k*v->dims[1] + l)); } printf ("]\n"); } printf ("\n"); } } else { printf (" cannot print arrays with >3 dimensions\n"); } free (data); } } adios_free_varinfo (v); } /* variables */ /* For all attributes */ printf(" Attributes=%d:\n", f->nattrs); for (i = 0; i < f->nattrs; i++) { enum ADIOS_DATATYPES atype; int asize; void *adata; adios_get_attr_byid (f, i, &atype, &asize, &adata); printf(" %-9s %s = %s\n", adios_type_to_string(atype), f->attr_namelist[i], value_to_string(atype, adata, 0)); free(adata); } /* attributes */ adios_read_close (f); //} /* loop 'step' */ return 0; } const char * value_to_string (enum ADIOS_DATATYPES type, void * data, int idx) { static char s [100]; s [0] = 0; switch (type) { case adios_unsigned_byte: sprintf (s, "%u", ((uint8_t *) data)[idx]); break; case adios_byte: sprintf (s, "%d", ((int8_t *) data)[idx]); break; case adios_short: sprintf (s, "%hd", ((int16_t *) data)[idx]); break; case adios_unsigned_short: sprintf (s, "%hu", ((uint16_t *) data)[idx]); break; case adios_integer: sprintf (s, "%d", ((int32_t *) data)[idx]); break; case adios_unsigned_integer: sprintf (s, "%u", ((uint32_t *) data)[idx]); break; case adios_long: sprintf (s, "%lld", ((int64_t *) data)[idx]); break; case adios_unsigned_long: sprintf (s, "%llu", ((uint64_t *) data)[idx]); break; case adios_real: sprintf (s, "%g", ((float *) data)[idx]); break; case adios_double: sprintf (s, "%lg", ((double *) data)[idx]); break; case adios_long_double: sprintf (s, "%Lg", ((long double *) data)[idx]); break; case adios_string: return (char*) ((char *)data+idx); break; case adios_complex: sprintf (s, "(%g, %g)", ((float *) data)[2*idx], ((float *) data)[2*idx+1]); break; case adios_double_complex: sprintf (s, "(%lg, %lg)", ((double *) data)[2*idx], ((double *) data)[2*idx+1]); break; } return s; } adios-1.5.0/examples/C/read_all/README0000644000175000017500000000062312251360163020371 0ustar amckinstryamckinstryC program to traverse a BP file and list all variables and attributes in all groups. Arrays less then 1KB are read in and their values printed (scalars, 1D and 2D arrays only). This code demonstrates the generic read API in a sequential program. utils/bpls/bpls.c is basically the same, except for - printing the min/max of variables - sorting the listing, - dumping any slice of any variables adios-1.5.0/examples/C/read_all/Makefile.in0000644000175000017500000004572012251360163021565 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = read_all$(EXEEXT) read_all_v1$(EXEEXT) subdir = examples/C/read_all DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_read_all_OBJECTS = read_all-read_all.$(OBJEXT) read_all_OBJECTS = $(am_read_all_OBJECTS) am__DEPENDENCIES_1 = read_all_DEPENDENCIES = $(top_builddir)/src/libadiosread_nompi.a \ $(am__DEPENDENCIES_1) read_all_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(read_all_LDFLAGS) \ $(LDFLAGS) -o $@ am_read_all_v1_OBJECTS = read_all_v1-read_all_v1.$(OBJEXT) read_all_v1_OBJECTS = $(am_read_all_v1_OBJECTS) read_all_v1_DEPENDENCIES = $(top_builddir)/src/libadiosread_nompi.a \ $(am__DEPENDENCIES_1) read_all_v1_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(read_all_v1_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(read_all_SOURCES) $(read_all_v1_SOURCES) DIST_SOURCES = $(read_all_SOURCES) $(read_all_v1_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies read_all_SOURCES = read_all.c read_all_CPPFLAGS = ${MACRODEFFLAG}_NOMPI read_all_LDADD = $(top_builddir)/src/libadiosread_nompi.a \ $(ADIOSREADLIB_LDADD) read_all_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) read_all_v1_SOURCES = read_all_v1.c read_all_v1_CPPFLAGS = ${MACRODEFFLAG}_NOMPI ${MACRODEFFLAG}ADIOS_USE_READ_API_1 read_all_v1_LDADD = $(top_builddir)/src/libadiosread_nompi.a \ $(ADIOSREADLIB_LDADD) read_all_v1_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/read_all/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/read_all/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list read_all$(EXEEXT): $(read_all_OBJECTS) $(read_all_DEPENDENCIES) @rm -f read_all$(EXEEXT) $(read_all_LINK) $(read_all_OBJECTS) $(read_all_LDADD) $(LIBS) read_all_v1$(EXEEXT): $(read_all_v1_OBJECTS) $(read_all_v1_DEPENDENCIES) @rm -f read_all_v1$(EXEEXT) $(read_all_v1_LINK) $(read_all_v1_OBJECTS) $(read_all_v1_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< read_all-read_all.o: read_all.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(read_all_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o read_all-read_all.o `test -f 'read_all.c' || echo '$(srcdir)/'`read_all.c read_all-read_all.obj: read_all.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(read_all_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o read_all-read_all.obj `if test -f 'read_all.c'; then $(CYGPATH_W) 'read_all.c'; else $(CYGPATH_W) '$(srcdir)/read_all.c'; fi` read_all_v1-read_all_v1.o: read_all_v1.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(read_all_v1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o read_all_v1-read_all_v1.o `test -f 'read_all_v1.c' || echo '$(srcdir)/'`read_all_v1.c read_all_v1-read_all_v1.obj: read_all_v1.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(read_all_v1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o read_all_v1-read_all_v1.obj `if test -f 'read_all_v1.c'; then $(CYGPATH_W) 'read_all_v1.c'; else $(CYGPATH_W) '$(srcdir)/read_all_v1.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/read_all/CMakeLists.txt0000644000175000017500000000120512251360163022246 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/C/read_all) link_directories(${PROJECT_BINARY_DIR}/examples/C/read_all) add_executable(read_all read_all.c) target_link_libraries(read_all adiosread_nompi ${ADIOSLIB_LDADD}) set_target_properties(read_all PROPERTIES COMPILE_FLAGS "${MACRODEFFLAG}_NOMPI") add_executable(read_all_v1 read_all_v1.c) target_link_libraries(read_all_v1 adiosread_nompi ${ADIOSREADLIB_LDADD}) set_target_properties(read_all_v1 PROPERTIES COMPILE_FLAGS "${MACRODEFFLAG}_NOMPI ${MACRODEFFLAG}ADIOS_USE_READ_API_1") adios-1.5.0/examples/C/read_all/read_all_v1.c0000644000175000017500000001723612251360163022036 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: * read all variables and attributes from * all groups in a BP file * * This is a sequential program. */ #include #include #include #include "adios_read.h" const char * value_to_string (enum ADIOS_DATATYPES type, void * data, int idx); int main (int argc, char ** argv) { char filename [256]; int rank, size, gidx, i, j, k,l; MPI_Comm comm_dummy = 0; /* MPI_Comm is defined through adios_read.h */ enum ADIOS_DATATYPES attr_type; void * data = NULL; uint64_t start[] = {0,0,0,0,0,0,0,0,0,0}; uint64_t count[10], bytes_read = 0; if (argc < 2) { printf("Usage: %s \n", argv[0]); return 1; } ADIOS_FILE * f; //int step; //for (step=0; step < 2; step++) { f = adios_fopen (argv[1], comm_dummy); if (f == NULL) { printf ("%s\n", adios_errmsg()); return -1; } /* For all groups */ for (gidx = 0; gidx < f->groups_count; gidx++) { printf("Group %s:\n", f->group_namelist[gidx]); ADIOS_GROUP * g = adios_gopen (f, f->group_namelist[gidx]); if (g == NULL) { printf ("%s\n", adios_errmsg()); return -1; } /* For all variables */ printf(" Variables=%d:\n", g->vars_count); for (i = 0; i < g->vars_count; i++) { ADIOS_VARINFO * v = adios_inq_var_byid (g, i); uint64_t total_size = adios_type_size (v->type, v->value); for (j = 0; j < v->ndim; j++) total_size *= v->dims[j]; printf(" %-9s %s", adios_type_to_string(v->type), g->var_namelist[i]); if (v->ndim == 0) { /* Scalars do not need to be read in, we get it from the metadata when using adios_inq_var */ printf(" = %s\n", value_to_string(v->type, v->value, 0)); } else { /* Arrays have to be read in from the file */ printf("[%d",v->dims[0]); for (j = 1; j < v->ndim; j++) printf(", %d",v->dims[j]); //printf("] = \n"); if (v->type == adios_integer) printf("] = min=%d max=%d timedim=%d\n", (*(int*)v->gmin), (*(int*)v->gmax), v->timedim); else if (v->type == adios_double) printf("] = min=%lg max=%lg timedim=%d\n", (*(double*)v->gmin), (*(double*)v->gmax), v->timedim); if (total_size > 1024*1024*1024) { printf(" // too big, do not read in\n"); } else { data = malloc (total_size); if (data == NULL) { fprintf (stderr, "malloc failed.\n"); return -1; } for (j = 0; j < v->ndim; j++) count[j] = v->dims[j]; bytes_read = adios_read_var_byid (g, i, start, count, data); if (bytes_read < 0) { printf ("%s\n", adios_errmsg()); } else if (bytes_read > 1024*1024) { printf ("Too big to print\n"); } else if (v->ndim == 1) { printf (" ["); for (j = 0; j < v->dims[0]; j++) printf("%s ", value_to_string(v->type, data, j)); printf ("]\n"); } else if (v->ndim == 2) { for (j = 0; j < v->dims[0]; j++) { printf (" row %d: [", j); for (k = 0; k < v->dims[1]; k++) printf("%s ", value_to_string(v->type, data, j*v->dims[1] + k)); printf ("]\n"); } } else if (v->ndim == 3) { for (j = 0; j < v->dims[0]; j++) { printf (" block %d: \n", j); for (k = 0; k < v->dims[1]; k++) { printf (" row %d: [", k); for (l = 0; l < v->dims[2]; l++) { printf("%s ", value_to_string(v->type, data, j*v->dims[1]*v->dims[2] + k*v->dims[1] + l)); } printf ("]\n"); } printf ("\n"); } } else { printf (" cannot print arrays with >3 dimensions\n"); } free (data); } } adios_free_varinfo (v); } /* variables */ /* For all attributes */ printf(" Attributes=%d:\n", g->attrs_count); for (i = 0; i < g->attrs_count; i++) { enum ADIOS_DATATYPES atype; int asize; void *adata; adios_get_attr_byid (g, i, &atype, &asize, &adata); printf(" %-9s %s = %s\n", adios_type_to_string(atype), g->attr_namelist[i], value_to_string(atype, adata, 0)); free(adata); } /* attributes */ adios_gclose (g); } /* groups */ adios_fclose (f); //} /* loop 'step' */ return 0; } const char * value_to_string (enum ADIOS_DATATYPES type, void * data, int idx) { static char s [100]; s [0] = 0; switch (type) { case adios_unsigned_byte: sprintf (s, "%u", ((uint8_t *) data)[idx]); break; case adios_byte: sprintf (s, "%d", ((int8_t *) data)[idx]); break; case adios_short: sprintf (s, "%hd", ((int16_t *) data)[idx]); break; case adios_unsigned_short: sprintf (s, "%hu", ((uint16_t *) data)[idx]); break; case adios_integer: sprintf (s, "%d", ((int32_t *) data)[idx]); break; case adios_unsigned_integer: sprintf (s, "%u", ((uint32_t *) data)[idx]); break; case adios_long: sprintf (s, "%lld", ((int64_t *) data)[idx]); break; case adios_unsigned_long: sprintf (s, "%llu", ((uint64_t *) data)[idx]); break; case adios_real: sprintf (s, "%g", ((float *) data)[idx]); break; case adios_double: sprintf (s, "%lg", ((double *) data)[idx]); break; case adios_long_double: sprintf (s, "%Lg", ((long double *) data)[idx]); break; case adios_string: return (char*) ((char *)data+idx); break; case adios_complex: sprintf (s, "(%g, %g)", ((float *) data)[2*idx], ((float *) data)[2*idx+1]); break; case adios_double_complex: sprintf (s, "(%lg, %lg)", ((double *) data)[2*idx], ((double *) data)[2*idx+1]); break; } return s; } adios-1.5.0/examples/C/stat/0000755000175000017500000000000012251360163016720 5ustar amckinstryamckinstryadios-1.5.0/examples/C/stat/stat_read.c0000644000175000017500000001170512251360163021036 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: read global arrays from a BP file * */ #include #include #include #include "mpi.h" #include "adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j, k; MPI_Comm comm = MPI_COMM_WORLD; enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP; uint64_t start[3], count[3], bytes_read = 0; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_read_init_method (method, comm, "verbose=3"); ADIOS_FILE * f = adios_read_open_file("adios_stat.bp", method, comm); if (f == NULL) { fprintf (stderr, "%s\n", adios_errmsg()); return -1; } ADIOS_VARINFO * v = adios_inq_var (f, "temperature"); if (v) { /* get statistics, for each individual time-step */ adios_inq_var_stat (f, v, 1, 0); printf("Global MIN of temperature: %lf\n", * (double *) v->statistics->min); printf("Global MAX of temperature: %lf\n", * (double *) v->statistics->max); printf("Global AVG of temperature: %lf\n", * (double *) v->statistics->avg); printf("Global STD DEV of temperature: %lf\n", * (double *) v->statistics->std_dev); printf("\n"); printf("---------------------------------------------------------------------------\n"); if (v->statistics->steps) { printf("MIN\t\tMAX\t\tAVG\t\tSTD_DEV\t\tHISTOGRAM\n"); for(i = 0; i < v->nsteps; i++) { if (v->statistics->steps->mins[i]) printf("%lf\t", * (double *) v->statistics->steps->mins[i]); else printf("--\t\t"); if (v->statistics->steps->maxs[i]) printf("%lf\t", * (double *) v->statistics->steps->maxs[i]); else printf("--\t\t"); if (v->statistics->steps->avgs[i]) printf("%lf\t", * (double *) v->statistics->steps->avgs[i]); else printf("--\t\t"); if (v->statistics->steps->std_devs[i]) printf("%lf\t", * (double *) v->statistics->steps->std_devs[i]); else printf("--\t\t"); if (v->statistics->histogram) { for(j = 0; j <= v->statistics->histogram->num_breaks; j++) { printf("%d ", v->statistics->histogram->frequencies[i][j]); } printf("\n"); } else { printf("--\t\t"); } printf("\n"); } } else { printf ("Per step statistics is missing\n"); } printf("---------------------------------------------------------------------------\n"); printf("\n"); if (v->statistics->histogram) { printf("Break points:\t\t\t"); for(j = 0; j < v->statistics->histogram->num_breaks; j++) printf("%6.2lf\t", v->statistics->histogram->breaks[j]); printf("\n"); printf("Frequencies:\t\t\t"); for(j = 0; j <= v->statistics->histogram->num_breaks; j++) printf("%6d\t", v->statistics->histogram->gfrequencies[j]); } printf("\n\n"); #if 0 printf ("Auto covariance of MIN values of temperature over time: %lf\n", adios_stat_cov (v, v, "min", 0, 12, 0)); printf ("Auto correlation of MAX values of temperature over time, with lag 2 units: %lf\n", adios_stat_cor (v, v, "max", 0, 8, 2)); printf("\n\n"); #endif adios_free_varinfo (v); } else { fprintf (stderr, "ERROR: Cannot inquire statistics of variable 'temperature': %s\n", adios_errmsg()); } v = adios_inq_var (f, "complex"); if (v) { adios_inq_var_stat (f, v, 1, 0); double *C = v->statistics->min; printf("Global Minimum of variable complex - Magnitude: %lf\n", C[0]); printf("Global Minimum of variable complex - Real part: %lf\n", C[1]); printf("Global Minimum of variable complex - Imaginary part: %lfi\n", C[2]); double ** Cmin; Cmin = (double **) v->statistics->steps->mins; printf("\nMagnitude\t\tReal\t\t\tImaginary\n"); for (j = 0; j < v->nsteps; j++) { printf ("%lf\t\t%lf\t\t%lf\n", Cmin[j][0], Cmin[j][1], Cmin[j][2]); } printf("\n"); adios_free_varinfo (v); } else { fprintf (stderr, "ERROR: Cannot inquire statistics of variable 'complex': %s\n", adios_errmsg()); } adios_read_close (f); MPI_Barrier (comm); adios_read_finalize_method (method); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/stat/Makefile.am0000644000175000017500000000112012251360163020746 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = stat_write stat_read stat_write_SOURCES = stat_write.c stat_write_LDADD = $(top_builddir)/src/libadios.a stat_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) stat_write_LDADD += $(ADIOSLIB_LDADD) stat_read_SOURCES = stat_read.c stat_read_LDADD = $(top_builddir)/src/libadiosread.a stat_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) stat_read_LDADD += $(ADIOSREADLIB_LDADD) CLEANFILES = *.bp CC=$(MPICC) EXTRA_DIST = stat.xml gwrite_stat.ch gread_stat.ch job.pbs adios-1.5.0/examples/C/stat/stat.xml0000644000175000017500000000151012251360163020412 0ustar amckinstryamckinstry adios-1.5.0/examples/C/stat/gwrite_stat.ch0000644000175000017500000000064012251360163021570 0ustar amckinstryamckinstryadios_groupsize = 4 \ + 4 \ + 4 \ + 8 * (2) * (NX) \ + 8 * (1) * (NX); adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "NX", &NX); adios_write (adios_handle, "size", &size); adios_write (adios_handle, "rank", &rank); adios_write (adios_handle, "complex", c); adios_write (adios_handle, "temperature", t); adios-1.5.0/examples/C/stat/gread_stat.ch0000644000175000017500000000067412251360163021360 0ustar amckinstryamckinstryadios_groupsize = 0; adios_totalsize = 0; adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_buf_size = 4; adios_read (adios_handle, "NX", &NX, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "size", &size, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "rank", &rank, adios_buf_size); adios_buf_size = 8 * (1) * (NX); adios_read (adios_handle, "temperature", temperature, adios_buf_size); adios-1.5.0/examples/C/stat/stat_write.c0000644000175000017500000000332512251360163021254 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include #include #include "mpi.h" #include "adios.h" struct double_complex { double r; double i; }; int main (int argc, char ** argv) { char filename [256]; int rank, size, i, it; int NX = 10; double t[NX]; struct double_complex c[NX]; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Comm comm=MPI_COMM_WORLD; MPI_Init (&argc, &argv); MPI_Comm_rank (MPI_COMM_WORLD, &rank); MPI_Comm_size (comm, &size); adios_init ("stat.xml", comm); strcpy (filename, "adios_stat.bp"); for (it =0; it < 13; it++) { for (i = 0; i < NX; i++) { t[i] = it*100.0 + NX * rank + i; c[i].r = it * 10 + i + 8; c[i].i = it * 10 + i - 5; } // Introduce Inf value here t[0] = 1 / 0.0; if (it==0) adios_open (&adios_handle, "temperature", filename, "w", comm); else adios_open (&adios_handle, "temperature", filename, "a", comm); #include "gwrite_stat.ch" adios_close (adios_handle); MPI_Barrier (comm); } printf ("[%d]: adios_stat.bp written successfully\n", rank); MPI_Barrier (comm); //if (rank==0) printf("Finalize adios\n"); adios_finalize (rank); //if (rank==0) printf("Finalize MPI\n"); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/stat/job.pbs0000644000175000017500000000020512251360163020175 0ustar amckinstryamckinstry#!/bin/sh #PBS -N test #PBS -j oe #PBS -l walltime=00:05:00,nodes=3:ppn=2 cd $PBS_O_WORKDIR mpirun -np 6 ./stat_write >& result.dat adios-1.5.0/examples/C/stat/Makefile.in0000644000175000017500000004360412251360163020774 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = stat_write$(EXEEXT) stat_read$(EXEEXT) subdir = examples/C/stat DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_stat_read_OBJECTS = stat_read.$(OBJEXT) stat_read_OBJECTS = $(am_stat_read_OBJECTS) am__DEPENDENCIES_1 = stat_read_DEPENDENCIES = $(top_builddir)/src/libadiosread.a \ $(am__DEPENDENCIES_1) stat_read_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(stat_read_LDFLAGS) $(LDFLAGS) -o $@ am_stat_write_OBJECTS = stat_write.$(OBJEXT) stat_write_OBJECTS = $(am_stat_write_OBJECTS) stat_write_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) stat_write_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(stat_write_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(stat_read_SOURCES) $(stat_write_SOURCES) DIST_SOURCES = $(stat_read_SOURCES) $(stat_write_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies stat_write_SOURCES = stat_write.c stat_write_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) stat_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) stat_read_SOURCES = stat_read.c stat_read_LDADD = $(top_builddir)/src/libadiosread.a \ $(ADIOSREADLIB_LDADD) stat_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) CLEANFILES = *.bp EXTRA_DIST = stat.xml gwrite_stat.ch gread_stat.ch job.pbs all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/stat/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/stat/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list stat_read$(EXEEXT): $(stat_read_OBJECTS) $(stat_read_DEPENDENCIES) @rm -f stat_read$(EXEEXT) $(stat_read_LINK) $(stat_read_OBJECTS) $(stat_read_LDADD) $(LIBS) stat_write$(EXEEXT): $(stat_write_OBJECTS) $(stat_write_DEPENDENCIES) @rm -f stat_write$(EXEEXT) $(stat_write_LINK) $(stat_write_OBJECTS) $(stat_write_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/stat/CMakeLists.txt0000644000175000017500000000114412251360163021460 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/C/stat) link_directories(${PROJECT_BINARY_DIR}/examples/C/stat) add_executable(stat_write stat_write.c) target_link_libraries(stat_write adios ${ADIOSLIB_LDADD}) add_executable(stat_read stat_read.c) target_link_libraries(stat_read adios ${ADIOSREADLIB_LDADD}) #set_target_properties(stat_read PROPERTIES COMPILE_FLAGS "-DADIOS_USE_READ_API_1") #install(FILES stat.xml gwrite_stat.ch gread_stat.ch job.pbs DESTINATION ${PROJECT_BINARY_DIR}/examples/C/stat) adios-1.5.0/examples/C/Makefile.in0000644000175000017500000005075412251360163020025 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = examples/C DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = scalars arrays attributes manual global-array global-array-time read_all stat schema flexpath_arrays all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/schema/0000755000175000017500000000000012251360163017205 5ustar amckinstryamckinstryadios-1.5.0/examples/C/schema/Makefile.am0000644000175000017500000000167312251360163021250 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = uniform rectilinear structured unstructured uniform_SOURCES = uniform.c uniform_LDADD = $(top_builddir)/src/libadios.a uniform_LDFLAGS = $(ADIOSLIB_LDFLAGS) uniform_LDADD += $(ADIOSLIB_LDADD) rectilinear_SOURCES = rectilinear.c rectilinear_LDADD = $(top_builddir)/src/libadios.a rectilinear_LDFLAGS = $(ADIOSLIB_LDFLAGS) rectilinear_LDADD += $(ADIOSLIB_LDADD) structured_SOURCES = structured.c structured_LDADD = $(top_builddir)/src/libadios.a structured_LDFLAGS = $(ADIOSLIB_LDFLAGS) structured_LDADD += $(ADIOSLIB_LDADD) unstructured_SOURCES = unstructured.c unstructured_LDADD = $(top_builddir)/src/libadios.a unstructured_LDFLAGS = $(ADIOSLIB_LDFLAGS) unstructured_LDADD += $(ADIOSLIB_LDADD) CLEANFILES = *.bp CC=$(MPICC) EXTRA_DIST = uniform.xml structured.xml rectilinear.xml unstructured.xml adios-1.5.0/examples/C/schema/uniform.xml0000644000175000017500000000450012251360163021405 0ustar amckinstryamckinstry adios-1.5.0/examples/C/schema/rectilinear.c0000644000175000017500000000423712251360163021660 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: write a variable along with a rectilinear mesh. * Note that the mesh dimensions depend on the rank. */ #include #include #include "mpi.h" #include "adios.h" int main (int argc, char * argv[] ) { char filename []="rectilinear.bp"; int rank, size, i; int NX = 10; double t[NX], mean = 0; MPI_Comm comm = MPI_COMM_WORLD; char * str = "Jul, 2012"; int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); int xydim = size+NX; float X[size]; float Y[NX]; X[0] = 0; for (i = 1; i< size; i++) { X[i] = i + X[i-1]; } Y[0] = 0; for (i = 1; i< NX; i++) { Y[i] = i + Y[i-1]; } for (i = 0; i < NX; i++) { t[i] = rank * NX + i; mean += t[i]; } mean /= NX; adios_init ("rectilinear.xml", comm); adios_open (&adios_handle, "schema", filename, "w", comm); adios_groupsize = 4 \ + 4 \ + 4 \ + 4 \ + 8 \ + strlen(str) \ + 4 * (1) * (size) \ + 4 * (1) * (NX) \ + 8 * (1) * (NX); adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "NX", &NX); adios_write (adios_handle, "size", &size); adios_write (adios_handle, "rank", &rank); adios_write (adios_handle, "mean", &mean); adios_write (adios_handle, "xydim", &xydim); adios_write (adios_handle, "X", X); adios_write (adios_handle, "Y", Y); adios_write (adios_handle, "date", str); adios_write (adios_handle, "temperature", t); adios_close (adios_handle); MPI_Barrier (comm); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/schema/rectilinear.xml0000644000175000017500000000217312251360163022233 0ustar amckinstryamckinstry adios-1.5.0/examples/C/schema/uniform.c0000644000175000017500000000403112251360163021026 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: write a variable along with uniform mesh */ #include #include #include "mpi.h" #include "adios.h" int main (int argc, char * argv[] ) { char filename [] = "uniform.bp"; int rank, size, size2, i; int O1=-1, O2=-2, S1=2; int NX = 10; double t[NX], mean = 0; MPI_Comm comm = MPI_COMM_WORLD; char * str = "Jul, 2012"; int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); int M2 = NX - 1; for (i = 0; i < NX; i++) { t[i] = rank * NX + i; mean += t[i]; } mean /= NX; adios_init ("uniform.xml", comm); adios_open (&adios_handle, "schema", filename, "w", comm); adios_groupsize = 4 \ + 4 \ + 4 \ + 4 \ + 4 \ + 4 \ + 4 \ + 4 \ + 8 \ + strlen(str) \ + 8 * (1) * (NX); adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "NX", &NX); adios_write (adios_handle, "size", &size); adios_write (adios_handle, "size-2", &size2); adios_write (adios_handle, "rank", &rank); adios_write (adios_handle, "mean", &mean); adios_write (adios_handle, "O1", &O1); adios_write (adios_handle, "O2", &O2); adios_write (adios_handle, "S1", &S1); adios_write (adios_handle, "M2", &M2); adios_write (adios_handle, "date", str); adios_write (adios_handle, "temperature", t); adios_close (adios_handle); MPI_Barrier (comm); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/schema/unstructured.xml0000644000175000017500000000303712251360163022501 0ustar amckinstryamckinstry adios-1.5.0/examples/C/schema/Makefile.in0000644000175000017500000004646012251360163021264 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = uniform$(EXEEXT) rectilinear$(EXEEXT) \ structured$(EXEEXT) unstructured$(EXEEXT) subdir = examples/C/schema DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_rectilinear_OBJECTS = rectilinear.$(OBJEXT) rectilinear_OBJECTS = $(am_rectilinear_OBJECTS) am__DEPENDENCIES_1 = rectilinear_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) rectilinear_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(rectilinear_LDFLAGS) $(LDFLAGS) -o $@ am_structured_OBJECTS = structured.$(OBJEXT) structured_OBJECTS = $(am_structured_OBJECTS) structured_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) structured_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(structured_LDFLAGS) $(LDFLAGS) -o $@ am_uniform_OBJECTS = uniform.$(OBJEXT) uniform_OBJECTS = $(am_uniform_OBJECTS) uniform_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) uniform_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(uniform_LDFLAGS) \ $(LDFLAGS) -o $@ am_unstructured_OBJECTS = unstructured.$(OBJEXT) unstructured_OBJECTS = $(am_unstructured_OBJECTS) unstructured_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) unstructured_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(unstructured_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(rectilinear_SOURCES) $(structured_SOURCES) \ $(uniform_SOURCES) $(unstructured_SOURCES) DIST_SOURCES = $(rectilinear_SOURCES) $(structured_SOURCES) \ $(uniform_SOURCES) $(unstructured_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies uniform_SOURCES = uniform.c uniform_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) uniform_LDFLAGS = $(ADIOSLIB_LDFLAGS) rectilinear_SOURCES = rectilinear.c rectilinear_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) rectilinear_LDFLAGS = $(ADIOSLIB_LDFLAGS) structured_SOURCES = structured.c structured_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) structured_LDFLAGS = $(ADIOSLIB_LDFLAGS) unstructured_SOURCES = unstructured.c unstructured_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) unstructured_LDFLAGS = $(ADIOSLIB_LDFLAGS) CLEANFILES = *.bp EXTRA_DIST = uniform.xml structured.xml rectilinear.xml unstructured.xml all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/schema/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/schema/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list rectilinear$(EXEEXT): $(rectilinear_OBJECTS) $(rectilinear_DEPENDENCIES) @rm -f rectilinear$(EXEEXT) $(rectilinear_LINK) $(rectilinear_OBJECTS) $(rectilinear_LDADD) $(LIBS) structured$(EXEEXT): $(structured_OBJECTS) $(structured_DEPENDENCIES) @rm -f structured$(EXEEXT) $(structured_LINK) $(structured_OBJECTS) $(structured_LDADD) $(LIBS) uniform$(EXEEXT): $(uniform_OBJECTS) $(uniform_DEPENDENCIES) @rm -f uniform$(EXEEXT) $(uniform_LINK) $(uniform_OBJECTS) $(uniform_LDADD) $(LIBS) unstructured$(EXEEXT): $(unstructured_OBJECTS) $(unstructured_DEPENDENCIES) @rm -f unstructured$(EXEEXT) $(unstructured_LINK) $(unstructured_OBJECTS) $(unstructured_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/schema/unstructured.c0000644000175000017500000001761312251360163022130 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: write variables along with an unstructured mesh. */ #include #include #include "mpi.h" #include "adios.h" static char *reference = "http://people.sc.fsu.edu/~jburkardt/m_src/twod_to_vtk/twod_to_vtk.html"; //44 lines static float points[] = { 0.000, 0.000, 0.000, 1.000, 0.000, 2.000, 0.000, 3.000, 1.000, 0.000, 1.000, 1.000, 1.000, 2.000, 1.000, 3.000, 2.000, 0.000, 2.000, 1.000, 2.000, 2.000, 2.000, 3.000, 3.000, 0.000, 3.000, 1.000, 3.000, 2.000, 3.000, 3.000, 4.000, 0.000, 4.000, 1.000, 4.000, 2.000, 4.000, 3.000, 5.000, 0.000, 5.000, 1.000, 5.000, 2.000, 5.000, 3.000, 6.000, 0.000, 6.000, 1.000, 6.000, 2.000, 6.000, 3.000, 7.000, 0.000, 7.000, 1.000, 7.000, 2.000, 7.000, 3.000, 8.000, 0.000, 8.000, 1.000, 8.000, 2.000, 8.000, 3.000, 9.000, 0.000, 9.000, 1.000, 9.000, 2.000, 9.000, 3.000, 10.000, 0.000, 10.000, 1.000, 10.000, 2.000, 10.000, 3.000 }; static float points_X[] = { 0.000, 0.000, 0.000, 0.000, 1.000, 1.000, 1.000, 1.000, 2.000, 2.000, 2.000, 2.000, 3.000, 3.000, 3.000, 3.000, 4.000, 4.000, 4.000, 4.000, 5.000, 5.000, 5.000, 5.000, 6.000, 6.000, 6.000, 6.000, 7.000, 7.000, 7.000, 7.000, 8.000, 8.000, 8.000, 8.000, 9.000, 9.000, 9.000, 9.000, 10.000, 10.000, 10.000, 10.000 }; static float points_Y[] = { 0.000, 1.000, 2.000, 3.000, 0.000, 1.000, 2.000, 3.000, 0.000, 1.000, 2.000, 3.000, 0.000, 1.000, 2.000, 3.000, 0.000, 1.000, 2.000, 3.000, 0.000, 1.000, 2.000, 3.000, 0.000, 1.000, 2.000, 3.000, 0.000, 1.000, 2.000, 3.000, 0.000, 1.000, 2.000, 3.000, 0.000, 1.000, 2.000, 3.000, 0.000, 1.000, 2.000, 3.000 }; //60 lines static int cells[] = { 1, 2, 12, 13, 12, 2, 2, 3, 13, 14, 13, 3, 3, 4, 14, 15, 14, 4, 4, 5, 15, 16, 15, 5, 5, 6, 16, 17, 16, 6, 6, 7, 17, 18, 17, 7, 7, 8, 18, 19, 18, 8, 8, 9, 19, 20, 19, 9, 9, 10, 20, 21, 20, 10, 10, 11, 21, 22, 21, 11, 12, 13, 23, 24, 23, 13, 13, 14, 24, 25, 24, 14, 14, 15, 25, 26, 25, 15, 15, 16, 26, 27, 26, 16, 16, 17, 27, 28, 27, 17, 17, 18, 28, 29, 28, 18, 18, 19, 29, 30, 29, 19, 19, 20, 30, 31, 30, 20, 20, 21, 31, 32, 31, 21, 21, 22, 32, 33, 32, 22, 23, 24, 34, 35, 34, 24, 24, 25, 35, 36, 35, 25, 25, 26, 36, 37, 36, 26, 26, 27, 37, 38, 37, 27, 27, 28, 38, 39, 38, 28, 28, 29, 39, 40, 39, 29, 29, 30, 40, 41, 40, 30, 30, 31, 41, 42, 41, 31, 31, 32, 42, 43, 42, 32, 32, 33, 43, 44, 43, 33 }; static double U[] = { 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, 5.8752800e-03, 5.8752800e-03, 5.8752800e-03, 5.8752800e-03, 9.5085900e-03, 9.5085900e-03, 9.5085900e-03, 9.5085900e-03, 9.5135100e-03, 9.5135100e-03, 9.5135100e-03, 9.5135100e-03, 5.8881600e-03, 5.8881600e-03, 5.8881600e-03, 5.8881600e-03, 1.5925500e-05, 1.5925500e-05, 1.5925500e-05, 1.5925500e-05, 5.8623800e-03, 5.8623800e-03, 5.8623800e-03, 5.8623800e-03, 9.5036500e-03, 9.5036500e-03, 9.5036500e-03, 9.5036500e-03, 9.5184100e-03, 9.5184100e-03, 9.5184100e-03, 9.5184100e-03, 5.9010200e-03, 5.9010200e-03, 5.9010200e-03, 5.9010200e-03, 3.1850900e-05, 3.1850900e-05, 3.1850900e-05, 3.1850900e-05 }; static double V[] = { 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, -2.0000000e+00, -2.0000000e+00, -2.0000000e+00, -2.0000000e+00, -4.0000000e+00, -4.0000000e+00, -4.0000000e+00, -4.0000000e+00, -6.0000000e+00, -6.0000000e+00, -6.0000000e+00, -6.0000000e+00, -8.0000000e+00, -8.0000000e+00, -8.0000000e+00, -8.0000000e+00, -1.0000000e+01, -1.0000000e+01, -1.0000000e+01, -1.0000000e+01, -1.2000000e+01, -1.2000000e+01, -1.2000000e+01, -1.2000000e+01, -1.4000000e+01, -1.4000000e+01, -1.4000000e+01, -1.4000000e+01, -1.6000000e+01, -1.6000000e+01, -1.6000000e+01, -1.6000000e+01, -1.8000000e+01, -1.8000000e+01, -1.8000000e+01, -1.8000000e+01, -2.0000000e+01, -2.0000000e+01, -2.0000000e+01, -2.0000000e+01 }; static double T[] = { 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 , 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 , 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 , 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 , 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 , 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 , 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 , 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 , 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 , 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 , 0.0000000e+00 , 2.0000000e+00 , 2.0000000e+00 , 0.0000000e+00 }; int main (int argc, char ** argv ) { char filename [256]; char meshname [256] = "unstructured"; char xmlfilename[256]; int rank, size, i; MPI_Comm comm = MPI_COMM_WORLD; int npoints = 44; int num_cells = 60; int Nspace = 2; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); strcpy (filename, meshname); strcat (filename, ".bp"); strcpy (xmlfilename,meshname); strcat (xmlfilename,".xml"); for(i = 0; i < num_cells * 3; i ++) { cells[i] --; } adios_init (xmlfilename, comm); adios_open (&adios_handle, "channel", filename, "w", comm); adios_groupsize = 4 \ + 4 \ + 4 \ + 8 * (npoints) \ + 8 * (npoints) \ + 8 * (npoints) \ + 4 * (num_cells) * (3) \ + 4 * (npoints) * (2) \ + 4 * (npoints) \ + 4 * (npoints); adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "npoints", &npoints); adios_write (adios_handle, "num_cells", &num_cells); adios_write (adios_handle, "Nspace", &Nspace); adios_write (adios_handle, "U", U); adios_write (adios_handle, "V", V); adios_write (adios_handle, "T", T); adios_write (adios_handle, "cells", cells); adios_write (adios_handle, "points", points); adios_write (adios_handle, "points_X", points_X); adios_write (adios_handle, "points_Y", points_Y); adios_close (adios_handle); MPI_Barrier (comm); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/schema/structured.xml0000644000175000017500000000142112251360163022131 0ustar amckinstryamckinstry adios-1.5.0/examples/C/schema/CMakeLists.txt0000644000175000017500000000135112251360163021745 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/C/schema) link_directories(${PROJECT_BINARY_DIR}/examples/C/schema) add_executable(uniform uniform.c) target_link_libraries(uniform adios ${ADIOSLIB_LDADD}) add_executable(rectilinear rectilinear.c) target_link_libraries(rectilinear adios ${ADIOSLIB_LDADD}) add_executable(structured structured.c) target_link_libraries(structured adios ${ADIOSLIB_LDADD}) add_executable(unstructured unstructured.c) target_link_libraries(unstructured adios ${ADIOSLIB_LDADD}) #install(FILES structured.xml rectilinear.xml unstructured.xml uniform.xml DESTINATION ${PROJECT_BINARY_DIR}/examples/C/schema) adios-1.5.0/examples/C/schema/structured.c0000644000175000017500000000462612251360163021565 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: write a variable along with a structured mesh. * Note that the mesh dimensions depend on the rank. */ #include #include #include "mpi.h" #include "adios.h" int main (int argc, char * argv[] ) { char filename[]="structured.bp"; int rank, size, i, j; int NX = 10; double t[NX], mean = 0; MPI_Comm comm = MPI_COMM_WORLD; char * str = "Jul, 2012"; int nspace=2; int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); float X[size*NX]; float Y[size][NX]; float XY[2*size*NX]; int size2 = 2*size*NX; int idx = 0; for (i = 0; i< size; i++) { for (j=0; j adios-1.5.0/examples/C/global-array-time/job.pbs0000644000175000017500000000021412251360163022532 0ustar amckinstryamckinstry#!/bin/sh #PBS -N test #PBS -j oe #PBS -l walltime=00:05:00,nodes=3:ppn=2 cd $PBS_O_WORKDIR mpirun -np 6 ./adios_globaltime >& result.dat adios-1.5.0/examples/C/global-array-time/Makefile.in0000644000175000017500000005072712251360163023335 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = adios_globaltime$(EXEEXT) \ adios_globaltime_no_xml$(EXEEXT) \ adios_read_globaltime$(EXEEXT) \ adios_read_globaltime_streaming$(EXEEXT) subdir = examples/C/global-array-time DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_adios_globaltime_OBJECTS = adios_globaltime.$(OBJEXT) adios_globaltime_OBJECTS = $(am_adios_globaltime_OBJECTS) am__DEPENDENCIES_1 = adios_globaltime_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) adios_globaltime_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_globaltime_LDFLAGS) $(LDFLAGS) -o $@ am_adios_globaltime_no_xml_OBJECTS = \ adios_globaltime_no_xml.$(OBJEXT) adios_globaltime_no_xml_OBJECTS = \ $(am_adios_globaltime_no_xml_OBJECTS) adios_globaltime_no_xml_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) adios_globaltime_no_xml_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_globaltime_no_xml_LDFLAGS) $(LDFLAGS) -o $@ am_adios_read_globaltime_OBJECTS = adios_read_globaltime.$(OBJEXT) adios_read_globaltime_OBJECTS = $(am_adios_read_globaltime_OBJECTS) adios_read_globaltime_DEPENDENCIES = \ $(top_builddir)/src/libadiosread.a $(am__DEPENDENCIES_1) adios_read_globaltime_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_read_globaltime_LDFLAGS) $(LDFLAGS) -o $@ am_adios_read_globaltime_streaming_OBJECTS = \ adios_read_globaltime_streaming.$(OBJEXT) adios_read_globaltime_streaming_OBJECTS = \ $(am_adios_read_globaltime_streaming_OBJECTS) adios_read_globaltime_streaming_DEPENDENCIES = \ $(top_builddir)/src/libadiosread.a $(am__DEPENDENCIES_1) adios_read_globaltime_streaming_LINK = $(LIBTOOL) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(AM_CFLAGS) $(CFLAGS) \ $(adios_read_globaltime_streaming_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(adios_globaltime_SOURCES) \ $(adios_globaltime_no_xml_SOURCES) \ $(adios_read_globaltime_SOURCES) \ $(adios_read_globaltime_streaming_SOURCES) DIST_SOURCES = $(adios_globaltime_SOURCES) \ $(adios_globaltime_no_xml_SOURCES) \ $(adios_read_globaltime_SOURCES) \ $(adios_read_globaltime_streaming_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies adios_globaltime_SOURCES = adios_globaltime.c adios_globaltime_LDADD = $(top_builddir)/src/libadios.a \ $(ADIOSLIB_LDADD) adios_globaltime_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_globaltime_no_xml_SOURCES = adios_globaltime_no_xml.c adios_globaltime_no_xml_LDADD = $(top_builddir)/src/libadios.a \ $(ADIOSLIB_LDADD) adios_globaltime_no_xml_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_read_globaltime_SOURCES = adios_read_globaltime.c adios_read_globaltime_LDADD = $(top_builddir)/src/libadiosread.a \ $(ADIOSREADLIB_LDADD) adios_read_globaltime_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) adios_read_globaltime_streaming_SOURCES = adios_read_globaltime_streaming.c adios_read_globaltime_streaming_LDADD = \ $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) adios_read_globaltime_streaming_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) CLEANFILES = *.bp EXTRA_DIST = adios_globaltime.xml gread_restart.ch gwrite_restart.ch job.pbs all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/global-array-time/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/global-array-time/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list adios_globaltime$(EXEEXT): $(adios_globaltime_OBJECTS) $(adios_globaltime_DEPENDENCIES) @rm -f adios_globaltime$(EXEEXT) $(adios_globaltime_LINK) $(adios_globaltime_OBJECTS) $(adios_globaltime_LDADD) $(LIBS) adios_globaltime_no_xml$(EXEEXT): $(adios_globaltime_no_xml_OBJECTS) $(adios_globaltime_no_xml_DEPENDENCIES) @rm -f adios_globaltime_no_xml$(EXEEXT) $(adios_globaltime_no_xml_LINK) $(adios_globaltime_no_xml_OBJECTS) $(adios_globaltime_no_xml_LDADD) $(LIBS) adios_read_globaltime$(EXEEXT): $(adios_read_globaltime_OBJECTS) $(adios_read_globaltime_DEPENDENCIES) @rm -f adios_read_globaltime$(EXEEXT) $(adios_read_globaltime_LINK) $(adios_read_globaltime_OBJECTS) $(adios_read_globaltime_LDADD) $(LIBS) adios_read_globaltime_streaming$(EXEEXT): $(adios_read_globaltime_streaming_OBJECTS) $(adios_read_globaltime_streaming_DEPENDENCIES) @rm -f adios_read_globaltime_streaming$(EXEEXT) $(adios_read_globaltime_streaming_LINK) $(adios_read_globaltime_streaming_OBJECTS) $(adios_read_globaltime_streaming_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/global-array-time/adios_globaltime.c0000644000175000017500000000317412251360163024724 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include #include #include "mpi.h" #include "adios.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, it; int NX = 10; // NY = 1 for testing purpose int NY = 1; double t[NX]; double p[NY]; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Comm comm=MPI_COMM_WORLD; MPI_Init (&argc, &argv); MPI_Comm_rank (MPI_COMM_WORLD, &rank); MPI_Comm_size (comm, &size); adios_init ("adios_globaltime.xml", comm); strcpy (filename, "adios_globaltime.bp"); for (it =1; it <= 13; it++) { for (i = 0; i < NX; i++) t[i] = it*100.0 + rank*NX + i; for (i = 0; i < NY; i++) p[i] = it*1000.0 + rank*NY + i; if (it==1) adios_open (&adios_handle, "restart", filename, "w", comm); else adios_open (&adios_handle, "restart", filename, "a", comm); #include "gwrite_restart.ch" adios_close (adios_handle); MPI_Barrier (comm); //if (rank==0) printf("Timestep %d written\n", it+1); } MPI_Barrier (comm); //if (rank==0) printf("Finalize adios\n"); adios_finalize (rank); //if (rank==0) printf("Finalize MPI\n"); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/global-array-time/CMakeLists.txt0000644000175000017500000000202712251360163024016 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/C/global-array-time) link_directories(${PROJECT_BINARY_DIR}/examples/C/global-array-time) add_executable(adios_globaltime adios_globaltime.c) target_link_libraries(adios_globaltime adios ${ADIOSLIB_LDADD}) add_executable(adios_globaltime_no_xml adios_globaltime_no_xml.c) target_link_libraries(adios_globaltime_no_xml adios ${ADIOSLIB_LDADD}) add_executable(adios_read_globaltime adios_read_globaltime.c) target_link_libraries(adios_read_globaltime adiosread ${ADIOSREADLIB_LDADD}) #set_target_properties(adios_read_globaltime PROPERTIES COMPILE_FLAGS "-DADIOS_USE_READ_API_1") add_executable(adios_read_globaltime_streaming adios_read_globaltime_streaming.c) target_link_libraries(adios_read_globaltime_streaming adiosread ${ADIOSREADLIB_LDADD}) #install(FILES adios_globaltime.xml gread_restart.ch gwrite_restart.ch job.pbs DESTINATION ${PROJECT_BINARY_DIR}/examples/C/global-array-time) adios-1.5.0/examples/C/global-array-time/adios_read_globaltime.c0000644000175000017500000000530112251360163025711 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: read global arrays from a BP file * */ #include #include #include #include "mpi.h" #include "adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j, k, token; MPI_Comm comm = MPI_COMM_WORLD; MPI_Status status; enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP; ADIOS_SELECTION * sel; void * data = NULL; uint64_t start[3], count[3], step = 0; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_read_init_method (method, comm, "verbose=3"); /* adios_read_open_file() allows for seeing all timesteps in the file */ ADIOS_FILE * f = adios_read_open_file ("adios_globaltime.bp", method, comm); if (f == NULL) { printf ("%s\n", adios_errmsg()); return -1; } ADIOS_VARINFO * v = adios_inq_var (f, "temperature"); // read in two timesteps data = malloc (2 * v->dims[0] * v->dims[1] * sizeof (double)); if (data == NULL) { fprintf (stderr, "malloc failed.\n"); return -1; } // read in timestep 'rank' (up to 12) step = rank % 13; start[0] = 0; count[0] = v->dims[0]; start[1] = 0; count[1] = v->dims[1]; /* Read a subset of the temperature array */ sel = adios_selection_boundingbox (v->ndim, start, count); /* 2 steps from 'step' */ adios_schedule_read (f, sel, "temperature", step, 2, data); adios_perform_reads (f, 1); if (rank == 0) printf ("Array size of temperature [0:%lld,0:%lld]\n", v->dims[0], v->dims[1]); if (rank > 0) { MPI_Recv (&token, 1, MPI_INT, rank-1, 0, comm, &status); } printf("------------------------------------------------\n", rank); printf("rank=%d: \n", rank); for (i = 0; i < 2; i++) { printf ("step %lld = [\n", step+i); for (j = 0; j < v->dims[0]; j++) { printf (" ["); for (k = 0; k < v->dims[1]; k++) { printf ("%g ", ((double *)data) [ i * v->dims[0] * v->dims[1] + j * v->dims[1] + k]); } printf ("]\n"); } printf ("]\n"); } printf ("\n"); if (rank < size-1) { MPI_Send (&token, 1, MPI_INT, rank+1, 0, comm); } free (data); adios_free_varinfo (v); adios_read_close (f); MPI_Barrier (comm); adios_read_finalize_method (method); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/global-array-time/adios_read_globaltime_streaming.c0000644000175000017500000000741412251360163027771 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: read global arrays from a BP file * which has multiple timesteps, * reading step by step * */ #include #include #include #include "mpi.h" #include "adios_read.h" #include "adios_error.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j, NX = 16; MPI_Comm comm = MPI_COMM_WORLD; ADIOS_FILE * f; ADIOS_VARINFO * v; ADIOS_SELECTION * sel; int steps = 0; int retval = 0; float timeout_sec = 1.0; void * data = NULL, * data1 = NULL, * data2 = NULL; uint64_t start[2], count[2], bytes_read = 0; struct timeval t0, t1; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_read_init_method (ADIOS_READ_METHOD_BP, comm, "verbose=3"); f = adios_read_open ("adios_globaltime.bp", ADIOS_READ_METHOD_BP, comm, ADIOS_LOCKMODE_NONE, timeout_sec); if (adios_errno == err_file_not_found) { printf ("rank %d: Stream not found after waiting %f seconds: %s\n", rank, timeout_sec, adios_errmsg()); retval = adios_errno; } else if (adios_errno == err_end_of_stream) { printf ("rank %d: Stream terminated before open. %s\n", rank, adios_errmsg()); retval = adios_errno; } else if (f == NULL) { printf ("rank %d: Error at opening stream: %s\n", rank, adios_errmsg()); retval = adios_errno; } else { /* process file here... */ v = adios_inq_var (f, "temperature"); adios_inq_var_blockinfo (f, v); printf ("ndim = %d\n", v->ndim); //printf ("nsteps = %d\n", v->nsteps); printf ("dims[%lu][%lu]\n", v->dims[0], v->dims[1]); uint64_t slice_size = v->dims[0]/size; if (rank == size-1) slice_size = slice_size + v->dims[0]%size; start[0] = rank * slice_size; count[0] = slice_size; start[1] = 0; count[1] = v->dims[1]; data = malloc (slice_size * v->dims[1] * 8); /* Processing loop over the steps (we are already in the first one) */ while (adios_errno != err_end_of_stream) { steps++; // steps start counting from 1 sel = adios_selection_boundingbox (v->ndim, start, count); adios_schedule_read (f, sel, "temperature", 0, 1, data); adios_perform_reads (f, 1); if (rank == 0) printf ("--------- Step: %d --------------------------------\n", f->current_step); printf("rank=%d: [0:%lld,0:%lld] = [", rank, v->dims[0], v->dims[1]); for (i = 0; i < slice_size; i++) { printf (" ["); for (j = 0; j < v->dims[1]; j++) { printf ("%g ", *((double *)data + i * v->dims[1] + j)); } printf ("]"); } printf (" ]\n\n"); // advance to 1) next available step with 2) blocking wait adios_advance_step (f, 0, timeout_sec); if (adios_errno == err_step_notready) { printf ("rank %d: No new step arrived within the timeout. Quit. %s\n", rank, adios_errmsg()); break; // quit while loop } } adios_read_close (f); } if (rank==0) printf ("We have processed %d steps\n", steps); adios_read_finalize_method (ADIOS_READ_METHOD_BP); free (data); MPI_Finalize (); return retval; } adios-1.5.0/examples/C/global-array-time/gread_restart.ch0000644000175000017500000000115012251360163024414 0ustar amckinstryamckinstryadios_groupsize = 0; adios_totalsize = 0; adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_buf_size = 4; adios_read (adios_handle, "NX", &NX, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "NY", &NY, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "size", &size, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "rank", &rank, adios_buf_size); adios_buf_size = 8 * (1) * (NX); adios_read (adios_handle, "temperature", temperature, adios_buf_size); adios_buf_size = 8 * (1) * (NY); adios_read (adios_handle, "pressure", pressure, adios_buf_size); adios-1.5.0/examples/C/global-array-time/adios_globaltime_no_xml.c0000644000175000017500000000566312251360163026305 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: write a global array from N processors with gwrite * * How to run: mpirun -np adios_global * Output: adios_global.bp * ADIOS config file: adios_global.xml * */ #include #include #include "mpi.h" #include "adios.h" #ifdef DMALLOC #include "dmalloc.h" #endif int main (int argc, char ** argv) { char filename [256]; int rank, size, i; int NX = 10, G, O; double t[NX]; MPI_Comm comm = MPI_COMM_WORLD; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err, it; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); G = 2 * NX * size; strcpy (filename, "adios_globaltime.bp"); adios_init_noxml (comm); adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, 10); int64_t m_adios_group; int64_t m_adios_file; adios_declare_group (&m_adios_group, "restart", "iter", adios_flag_yes); adios_select_method (m_adios_group, "MPI", "", ""); adios_define_var (m_adios_group, "NX" ,"", adios_integer ,0, 0, 0); adios_define_var (m_adios_group, "G" ,"", adios_integer ,0, 0, 0); /* have to define O and temperature as many times as we write them within one step (twice) */ for (it=0; it < 2; it++) { adios_define_var (m_adios_group, "O" ,"", adios_integer ,0, 0, 0); adios_define_var (m_adios_group, "temperature" ,"", adios_double ,"iter,NX", "G", "O"); } for (it =0; it < 5; it++) { for (i = 0; i < NX; i++) t[i] = rank + it*0.1 + 0.01; adios_open (&m_adios_file, "restart", filename, "a", comm); adios_groupsize = 4 + 4 + 4 + NX * 8 + 4 + 4 + 4 + NX * 8; adios_group_size (m_adios_file, adios_groupsize, &adios_totalsize); adios_write(m_adios_file, "NX", (void *) &NX); adios_write(m_adios_file, "G", (void *) &G); O = rank * 2 * NX; adios_write(m_adios_file, "O", (void *) &O); adios_write(m_adios_file, "temperature", t); for (i = 0; i < NX; i++) t[i] += 0.01; O = rank * 2 * NX + NX; adios_write(m_adios_file, "O", (void *) &O); adios_write(m_adios_file, "temperature", t); adios_close (m_adios_file); MPI_Barrier (comm); } adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/CMakeLists.txt0000644000175000017500000000052512251360163020507 0ustar amckinstryamckinstryadd_subdirectory(scalars) add_subdirectory(arrays) add_subdirectory(attributes) add_subdirectory(manual) add_subdirectory(global-array) add_subdirectory(global-array-time) add_subdirectory(read_all) add_subdirectory(stat) add_subdirectory(schema) #SUBDIRS=scalars arrays attributes manual global-array global-array-time read_all stat schema adios-1.5.0/examples/C/arrays/0000755000175000017500000000000012251360163017246 5ustar amckinstryamckinstryadios-1.5.0/examples/C/arrays/Makefile.am0000644000175000017500000000110112251360163021273 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = arrays_write arrays_read arrays_write_SOURCES = arrays_write.c arrays_write_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) arrays_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) arrays_read_SOURCES = arrays_read.c arrays_read_LDADD = $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) arrays_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) CLEANFILES = *.bp CC=$(MPICC) EXTRA_DIST = arrays.xml gwrite_arrays.ch gread_arrays.ch job.pbs adios-1.5.0/examples/C/arrays/arrays.xml0000644000175000017500000000075712251360163021302 0ustar amckinstryamckinstry adios-1.5.0/examples/C/arrays/gread_arrays.ch0000644000175000017500000000074312251360163022231 0ustar amckinstryamckinstryadios_groupsize = 0; adios_totalsize = 0; adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_buf_size = 4; adios_read (adios_handle, "NX", &NX, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "NY", &NY, adios_buf_size); adios_buf_size = 8 * (NX) * (NY); adios_read (adios_handle, "var_double_2Darray", var_double_2Darray, adios_buf_size); adios_buf_size = 4 * (NX); adios_read (adios_handle, "var_int_1Darray", var_int_1Darray, adios_buf_size); adios-1.5.0/examples/C/arrays/arrays_read.c0000644000175000017500000000461712251360163021716 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /*************************************************************/ /* Example of reading arrays in ADIOS */ /* which were written from the same number of processors */ /* */ /* Similar example is manual/2_adios_read.c */ /*************************************************************/ #include #include #include #include #include "mpi.h" #include "adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j; int NX, NY; double *t; int *p; MPI_Comm comm = MPI_COMM_WORLD; enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP; ADIOS_SELECTION * sel; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); adios_read_init_method (method, comm, "verbose=3"); strcpy (filename, "arrays.bp"); ADIOS_FILE * f = adios_read_open (filename, method, comm, ADIOS_LOCKMODE_NONE, 0); /* Specify a selection that points to a specific writer's block */ sel = adios_selection_writeblock (rank); /* First get the scalars to calculate the size of the arrays */ adios_schedule_read (f, sel, "NX", 0, 1, &NX); adios_schedule_read (f, sel, "NY", 0, 1, &NY); adios_perform_reads (f, 1); printf("rank=%d: NX=%d NY=%d\n", rank, NX, NY); /* Allocate space for the arrays */ t = (double *) malloc (NX*NY*sizeof(double)); p = (int *) malloc (NX*sizeof(int)); /* Read the arrays */ adios_schedule_read (f, sel, "var_double_2Darray", 0, 1, t); adios_schedule_read (f, sel, "var_int_1Darray", 0, 1, p); adios_perform_reads (f, 1); /* At this point, we have the data in memory */ printf("rank=%d: p = [%d", rank, p[0]); for (i = 1; i < NX; i++) printf(", %d", p[i]); printf("]\n"); printf("rank=%d: t[5,*] = [%6.2f", rank, t[5*NY]); for (j = 1; j < NY; j++) printf(", %6.2f", t[5*NY+j]); printf("]\n"); free (t); free (p); adios_read_close (f); MPI_Barrier (comm); adios_read_finalize_method (method); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/arrays/gwrite_arrays.ch0000644000175000017500000000054512251360163022450 0ustar amckinstryamckinstryadios_groupsize = 4 \ + 4 \ + 8 * (NX) * (NY) \ + 4 * (NX); adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "NX", &NX); adios_write (adios_handle, "NY", &NY); adios_write (adios_handle, "var_double_2Darray", t); adios_write (adios_handle, "var_int_1Darray", p); adios-1.5.0/examples/C/arrays/job.pbs0000644000175000017500000000020612251360163020524 0ustar amckinstryamckinstry#!/bin/sh #PBS -N test #PBS -j oe #PBS -l walltime=00:05:00,nodes=3:ppn=2 cd $PBS_O_WORKDIR mpirun -np 6 ./adios_types >& result.dat adios-1.5.0/examples/C/arrays/Makefile.in0000644000175000017500000004374112251360163021324 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = arrays_write$(EXEEXT) arrays_read$(EXEEXT) subdir = examples/C/arrays DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_arrays_read_OBJECTS = arrays_read.$(OBJEXT) arrays_read_OBJECTS = $(am_arrays_read_OBJECTS) am__DEPENDENCIES_1 = arrays_read_DEPENDENCIES = $(top_builddir)/src/libadiosread.a \ $(am__DEPENDENCIES_1) arrays_read_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(arrays_read_LDFLAGS) $(LDFLAGS) -o $@ am_arrays_write_OBJECTS = arrays_write.$(OBJEXT) arrays_write_OBJECTS = $(am_arrays_write_OBJECTS) arrays_write_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) arrays_write_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(arrays_write_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(arrays_read_SOURCES) $(arrays_write_SOURCES) DIST_SOURCES = $(arrays_read_SOURCES) $(arrays_write_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies arrays_write_SOURCES = arrays_write.c arrays_write_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) arrays_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) arrays_read_SOURCES = arrays_read.c arrays_read_LDADD = $(top_builddir)/src/libadiosread.a $(ADIOSREADLIB_LDADD) arrays_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) CLEANFILES = *.bp EXTRA_DIST = arrays.xml gwrite_arrays.ch gread_arrays.ch job.pbs all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/arrays/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/arrays/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list arrays_read$(EXEEXT): $(arrays_read_OBJECTS) $(arrays_read_DEPENDENCIES) @rm -f arrays_read$(EXEEXT) $(arrays_read_LINK) $(arrays_read_OBJECTS) $(arrays_read_LDADD) $(LIBS) arrays_write$(EXEEXT): $(arrays_write_OBJECTS) $(arrays_write_DEPENDENCIES) @rm -f arrays_write$(EXEEXT) $(arrays_write_LINK) $(arrays_write_OBJECTS) $(arrays_write_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/arrays/CMakeLists.txt0000644000175000017500000000105612251360163022010 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/C/arrays) link_directories(${PROJECT_BINARY_DIR}/examples/C/arrays) add_executable(arrays_write arrays_write.c) target_link_libraries(arrays_write adios ${ADIOSLIB_LDADD}) add_executable(arrays_read arrays_read.c) target_link_libraries(arrays_read adiosread ${ADIOSREADLIB_LDADD}) #install(FILES arrays.xml gwrite_arrays.ch gread_arrays.ch job.pbs DESTINATION ${PROJECT_BINARY_DIR}/examples/C/arrays) adios-1.5.0/examples/C/arrays/arrays_write.c0000644000175000017500000000272212251360163022130 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include #include #include "mpi.h" #include "adios.h" /*************************************************************/ /* Example of writing arrays in ADIOS */ /* */ /* Similar example is manual/2_adios_write.c */ /*************************************************************/ int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j; int NX = 10, NY = 100; double t[NX][NY]; int p[NX]; MPI_Comm comm = MPI_COMM_WORLD; int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); for (i = 0; i < NX; i++) for (j = 0; j< NY; j++) t[i][j] = rank * NX + i + j*(1.0/NY); for (i = 0; i < NX; i++) p[i] = rank * NX + i; strcpy (filename, "arrays.bp"); adios_init ("arrays.xml", comm); adios_open (&adios_handle, "arrays", filename, "w", comm); #include "gwrite_arrays.ch" adios_close (adios_handle); MPI_Barrier (comm); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/attributes/0000755000175000017500000000000012251360163020133 5ustar amckinstryamckinstryadios-1.5.0/examples/C/attributes/Makefile.am0000644000175000017500000000124412251360163022170 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = attributes_write attributes_read attributes_write_SOURCES = attributes_write.c attributes_write_LDADD = $(top_builddir)/src/libadios.a attributes_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) attributes_write_LDADD += $(ADIOSLIB_LDADD) attributes_read_SOURCES = attributes_read.c attributes_read_LDADD = $(top_builddir)/src/libadiosread.a attributes_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) attributes_read_LDADD += $(ADIOSREADLIB_LDADD) CLEANFILES = *.bp CC=$(MPICC) EXTRA_DIST = attributes.xml gwrite_temperature.ch gread_temperature.ch adios-1.5.0/examples/C/attributes/attributes_write.c0000644000175000017500000000244612251360163023705 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: write some attributes along with variables */ #include #include #include "mpi.h" #include "adios.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i; int NX = 10, level = 1; double t[NX], mean = 0; MPI_Comm comm = MPI_COMM_WORLD; const char * str = "Nov, 2009"; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); for (i = 0; i < NX; i++) { t[i] = rank * NX + i; mean += t[i]; } mean /= NX; strcpy (filename, "attributes.bp"); adios_init ("attributes.xml", comm); adios_open (&adios_handle, "temperature", filename, "w", comm); #include "gwrite_temperature.ch" adios_close (adios_handle); MPI_Barrier (comm); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/attributes/gread_temperature.ch0000644000175000017500000000112612251360163024146 0ustar amckinstryamckinstryadios_groupsize = 0; adios_totalsize = 0; adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_buf_size = 4; adios_read (adios_handle, "NX", &NX, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "size", &size, adios_buf_size); adios_buf_size = 4; adios_read (adios_handle, "rank", &rank, adios_buf_size); adios_buf_size = 8; adios_read (adios_handle, "mean", &mean, adios_buf_size); adios_buf_size = 2147483648; adios_read (adios_handle, "date", date, adios_buf_size); adios_buf_size = 8 * (1) * (NX); adios_read (adios_handle, "temperature", t, adios_buf_size); adios-1.5.0/examples/C/attributes/Makefile.in0000644000175000017500000004424112251360163022205 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = attributes_write$(EXEEXT) attributes_read$(EXEEXT) subdir = examples/C/attributes DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_attributes_read_OBJECTS = attributes_read.$(OBJEXT) attributes_read_OBJECTS = $(am_attributes_read_OBJECTS) am__DEPENDENCIES_1 = attributes_read_DEPENDENCIES = $(top_builddir)/src/libadiosread.a \ $(am__DEPENDENCIES_1) attributes_read_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(attributes_read_LDFLAGS) $(LDFLAGS) -o $@ am_attributes_write_OBJECTS = attributes_write.$(OBJEXT) attributes_write_OBJECTS = $(am_attributes_write_OBJECTS) attributes_write_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) attributes_write_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(attributes_write_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(attributes_read_SOURCES) $(attributes_write_SOURCES) DIST_SOURCES = $(attributes_read_SOURCES) $(attributes_write_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies attributes_write_SOURCES = attributes_write.c attributes_write_LDADD = $(top_builddir)/src/libadios.a \ $(ADIOSLIB_LDADD) attributes_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) attributes_read_SOURCES = attributes_read.c attributes_read_LDADD = $(top_builddir)/src/libadiosread.a \ $(ADIOSREADLIB_LDADD) attributes_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) CLEANFILES = *.bp EXTRA_DIST = attributes.xml gwrite_temperature.ch gread_temperature.ch all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/attributes/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/attributes/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list attributes_read$(EXEEXT): $(attributes_read_OBJECTS) $(attributes_read_DEPENDENCIES) @rm -f attributes_read$(EXEEXT) $(attributes_read_LINK) $(attributes_read_OBJECTS) $(attributes_read_LDADD) $(LIBS) attributes_write$(EXEEXT): $(attributes_write_OBJECTS) $(attributes_write_DEPENDENCIES) @rm -f attributes_write$(EXEEXT) $(attributes_write_LINK) $(attributes_write_OBJECTS) $(attributes_write_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/attributes/attributes_read.c0000644000175000017500000000372212251360163023464 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: read attributes from a BP file * * This is possible only with the generic read API. * so the GREAD stuff and the xml file is not used here. * */ #include #include #include "mpi.h" #include "adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i; int NX = 10, level = 1; double t[NX], mean = 0; MPI_Comm comm = MPI_COMM_WORLD; enum ADIOS_DATATYPES attr_type; enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP; int attr_size; void * data = NULL; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_read_init_method (method, comm, "verbose=3"); ADIOS_FILE * f = adios_read_open ("attributes.bp", method, comm, ADIOS_LOCKMODE_NONE, 0.0); if (f == NULL) { printf ("%s\n", adios_errmsg()); return -1; } for (i = 0; i < f->nattrs; i++) { adios_get_attr (f, f->attr_namelist[i], &attr_type, &attr_size, &data); printf ("rank %d: attr: %s %s = ", rank, adios_type_to_string(attr_type), f->attr_namelist[i]); switch (attr_type) { case adios_integer: printf ("%d\n", *(int *)data); break; case adios_double: printf ("%e\n", *(double *)data); break; case adios_string: printf ("%s\n", (char *)data); break; default: printf ("??????\n"); } free (data); data = 0; } adios_read_close (f); MPI_Barrier (comm); adios_read_finalize_method (ADIOS_READ_METHOD_BP); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/attributes/CMakeLists.txt0000644000175000017500000000126112251360163022673 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/C/attributes) link_directories(${PROJECT_BINARY_DIR}/examples/C/attributes) add_executable(attributes_write attributes_write.c) target_link_libraries(attributes_write adios ${ADIOSLIB_LDADD}) add_executable(attributes_read attributes_read.c) target_link_libraries(attributes_read adiosread ${ADIOSREADLIB_LDADD}) #set_target_properties(attributes_read PROPERTIES COMPILE_FLAGS "-DADIOS_USE_READ_API_1") #install(FILES attributes.xml gwrite_temperature.ch gread_temperature.ch DESTINATION ${PROJECT_BINARY_DIR}/examples/C/attributes) adios-1.5.0/examples/C/attributes/attributes.xml0000644000175000017500000000230312251360163023041 0ustar amckinstryamckinstry adios-1.5.0/examples/C/attributes/gwrite_temperature.ch0000644000175000017500000000073512251360163024372 0ustar amckinstryamckinstryadios_groupsize = 4 \ + 4 \ + 4 \ + 8 \ + strlen(str) \ + 8 * (1) * (NX); adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "NX", &NX); adios_write (adios_handle, "size", &size); adios_write (adios_handle, "rank", &rank); adios_write (adios_handle, "mean", &mean); adios_write (adios_handle, "date", str); adios_write (adios_handle, "temperature", t); adios-1.5.0/examples/C/global-array/0000755000175000017500000000000012251360163020321 5ustar amckinstryamckinstryadios-1.5.0/examples/C/global-array/Makefile.am0000644000175000017500000000477212251360163022367 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = adios_global adios_global_2files adios_read_gpp adios_read_global adios_read_writeblock adios_read_chunk adios_global_no_xml adios_read_global_no_xml no_xml_write_byid read_no_xml_write_byid adios_global_SOURCES = adios_global.c adios_global_LDADD = $(top_builddir)/src/libadios.a adios_global_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_global_LDADD += $(ADIOSLIB_LDADD) adios_global_2files_SOURCES = adios_global_2files.c adios_global_2files_LDADD = $(top_builddir)/src/libadios.a adios_global_2files_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_global_2files_LDADD += $(ADIOSLIB_LDADD) adios_read_global_SOURCES = adios_read_global.c adios_read_global_LDADD = $(top_builddir)/src/libadiosread.a adios_read_global_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) adios_read_global_LDADD += $(ADIOSREADLIB_LDADD) adios_read_writeblock_SOURCES = adios_read_writeblock.c adios_read_writeblock_LDADD = $(top_builddir)/src/libadiosread.a adios_read_writeblock_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_read_writeblock_LDADD += $(ADIOSLIB_LDADD) adios_read_chunk_SOURCES = adios_read_chunk.c adios_read_chunk_LDADD = $(top_builddir)/src/libadiosread.a adios_read_chunk_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) adios_read_chunk_LDADD += $(ADIOSREADLIB_LDADD) adios_read_gpp_SOURCES = adios_read_gpp.c adios_read_gpp_LDADD = $(top_builddir)/src/libadiosread.a adios_read_gpp_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) adios_read_gpp_LDADD += $(ADIOSREADLIB_LDADD) adios_global_no_xml_SOURCES = adios_global_no_xml.c adios_global_no_xml_LDADD = $(top_builddir)/src/libadios.a adios_global_no_xml_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_global_no_xml_LDADD += $(ADIOSLIB_LDADD) adios_read_global_no_xml_SOURCES = adios_read_global_no_xml.c adios_read_global_no_xml_LDADD = $(top_builddir)/src/libadiosread.a adios_read_global_no_xml_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) adios_read_global_no_xml_LDADD += $(ADIOSREADLIB_LDADD) no_xml_write_byid_SOURCES = no_xml_write_byid.c no_xml_write_byid_LDADD = $(top_builddir)/src/libadios.a no_xml_write_byid_LDFLAGS = $(ADIOSLIB_LDFLAGS) no_xml_write_byid_LDADD += $(ADIOSLIB_LDADD) read_no_xml_write_byid_SOURCES = read_no_xml_write_byid.c read_no_xml_write_byid_LDADD = $(top_builddir)/src/libadiosread.a read_no_xml_write_byid_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) read_no_xml_write_byid_LDADD += $(ADIOSREADLIB_LDADD) CLEANFILES = *.bp CC=$(MPICC) EXTRA_DIST = adios_global.xml gread_temperature.ch gwrite_temperature.ch job.pbs adios-1.5.0/examples/C/global-array/adios_global_2files.c0000644000175000017500000000301712251360163024351 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include #include "mpi.h" #include "public/adios.h" int main (int argc, char ** argv) { char filename [256]; int rank; int NX = 10; double t[NX], p[NX], s[NX]; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Comm comm; int color, key; int size; int i; MPI_Init (&argc, &argv); MPI_Comm_rank (MPI_COMM_WORLD, &rank); /* MPI_Comm_split paritions the world group into disjointed 2 subgroups, * the processes are ranked in terms of the argument key * a new communicator comm is returned for this specific grid configuration */ color = rank % 2; key = rank / 2; MPI_Comm_split (MPI_COMM_WORLD, color, key, &comm); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); for (i = 0; i < NX; i++) t [i] = 10*(key*2+color)+i; /* every P/2 processes write into the same file * there are 2 files generated. */ sprintf (filename, "adios_global_%5.5d.bp", color); adios_init ("adios_global.xml", MPI_COMM_WORLD); adios_open (&adios_handle, "temperature", filename, "w", comm); #include "gwrite_temperature.ch" adios_close (adios_handle); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/global-array/adios_read_gpp.c0000644000175000017500000000257712251360163023440 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: read a global array from N processors with gread * * How to run: mpirun -np adios_global * Reads output from adios_global.c * ADIOS config file: adios_global.xml * */ #include #include #include "mpi.h" #include "public/adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i; int NX = 4096; double t[NX], t1, t2; MPI_Comm comm = MPI_COMM_WORLD; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; ADIOS_FILE *fp; ADIOS_SELECTION *s; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); strcpy (filename, "adios_global.bp"); //adios_read_init_method (ADIOS_READ_METHOD_BP, comm, ""); fp = adios_read_open_file ("adios_global.bp", ADIOS_READ_METHOD_BP, comm); #include "gread_temperature.ch" adios_read_close (fp); // Verify data for (i = 0; i < NX; i++) if (t[i] != rank*NX + i) { fprintf (stderr, "Error detected\n"); } adios_read_finalize_method (ADIOS_READ_METHOD_BP); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/global-array/job.pbs0000644000175000017500000000025012251360163021576 0ustar amckinstryamckinstry#!/bin/sh #PBS -N test #PBS -j oe #PBS -l walltime=00:05:00,nodes=3:ppn=2 cd $PBS_O_WORKDIR export num_aggregators=4 mpirun -np 16 ./adios_read_global >& result.dat adios-1.5.0/examples/C/global-array/read_no_xml_write_byid.c0000644000175000017500000000560212251360163025200 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: read global arrays from a BP file * * This code is using the generic read API, which can read in * arbitrary slices of an array and thus we can read in an array * on arbitrary number of processes (provided our code is smart * enough to do the domain decomposition). * * Run this example after adios_global, which generates * adios_global.bp. Run this example on equal or less * number of processes since we decompose only on one * dimension of the global array here. */ #include #include #include #include #include "mpi.h" #include "adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j, npl, token; MPI_Comm comm = MPI_COMM_WORLD; MPI_Status status; enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP; ADIOS_SELECTION * sel; void * data = NULL; uint64_t start[1], count[1], bytes_read = 0; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_read_init_method (method, comm, "verbose=3"); ADIOS_FILE * f = adios_read_open ("no_xml_write_byid.bp", method, comm, ADIOS_LOCKMODE_NONE, 0); if (f == NULL) { printf ("%s\n", adios_errmsg()); return -1; } ADIOS_VARINFO * v = adios_inq_var (f, "temperature"); /* Using less readers to read the global array back, i.e., non-uniform */ uint64_t slice_size = v->dims[0]/size; start[0] = slice_size * rank; if (rank == size-1) /* last rank may read more lines */ slice_size = slice_size + v->dims[0]%size; count[0] = slice_size; data = malloc (slice_size * sizeof (double)); if (data == NULL) { fprintf (stderr, "malloc failed.\n"); return -1; } /* Read a subset of the temperature array */ sel = adios_selection_boundingbox (v->ndim, start, count); adios_schedule_read (f, sel, "temperature", 0, 1, data); adios_perform_reads (f, 1); if (rank > 0) { MPI_Recv (&token, 1, MPI_INT, rank-1, 0, comm, &status); } printf (" ======== Rank %d ========== \n", rank); npl = 10; for (i = 0; i < slice_size; i+=npl) { printf ("[%4.4d] ", rank*slice_size+i); for (j= 0; j < npl; j++) { printf (" %6.6g", * ((double *)data + i + j)); } printf ("\n"); } fflush(stdout); sleep(1); if (rank < size-1) { MPI_Send (&token, 1, MPI_INT, rank+1, 0, comm); } free (data); adios_read_close (f); MPI_Barrier (comm); adios_read_finalize_method (method); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/global-array/gread_temperature.ch0000644000175000017500000000022512251360163024333 0ustar amckinstryamckinstrys = adios_selection_writeblock (rank); adios_schedule_read (fp, s, "temperature", 1, 1, t); adios_perform_reads (fp, 1); adios_selection_delete (s); adios-1.5.0/examples/C/global-array/Makefile.in0000644000175000017500000006246112251360163022377 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = adios_global$(EXEEXT) adios_global_2files$(EXEEXT) \ adios_read_gpp$(EXEEXT) adios_read_global$(EXEEXT) \ adios_read_writeblock$(EXEEXT) adios_read_chunk$(EXEEXT) \ adios_global_no_xml$(EXEEXT) adios_read_global_no_xml$(EXEEXT) \ no_xml_write_byid$(EXEEXT) read_no_xml_write_byid$(EXEEXT) subdir = examples/C/global-array DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_adios_global_OBJECTS = adios_global.$(OBJEXT) adios_global_OBJECTS = $(am_adios_global_OBJECTS) am__DEPENDENCIES_1 = adios_global_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) adios_global_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_global_LDFLAGS) $(LDFLAGS) -o $@ am_adios_global_2files_OBJECTS = adios_global_2files.$(OBJEXT) adios_global_2files_OBJECTS = $(am_adios_global_2files_OBJECTS) adios_global_2files_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) adios_global_2files_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_global_2files_LDFLAGS) $(LDFLAGS) -o $@ am_adios_global_no_xml_OBJECTS = adios_global_no_xml.$(OBJEXT) adios_global_no_xml_OBJECTS = $(am_adios_global_no_xml_OBJECTS) adios_global_no_xml_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) adios_global_no_xml_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_global_no_xml_LDFLAGS) $(LDFLAGS) -o $@ am_adios_read_chunk_OBJECTS = adios_read_chunk.$(OBJEXT) adios_read_chunk_OBJECTS = $(am_adios_read_chunk_OBJECTS) adios_read_chunk_DEPENDENCIES = $(top_builddir)/src/libadiosread.a \ $(am__DEPENDENCIES_1) adios_read_chunk_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_read_chunk_LDFLAGS) $(LDFLAGS) -o $@ am_adios_read_global_OBJECTS = adios_read_global.$(OBJEXT) adios_read_global_OBJECTS = $(am_adios_read_global_OBJECTS) adios_read_global_DEPENDENCIES = $(top_builddir)/src/libadiosread.a \ $(am__DEPENDENCIES_1) adios_read_global_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_read_global_LDFLAGS) $(LDFLAGS) -o $@ am_adios_read_global_no_xml_OBJECTS = \ adios_read_global_no_xml.$(OBJEXT) adios_read_global_no_xml_OBJECTS = \ $(am_adios_read_global_no_xml_OBJECTS) adios_read_global_no_xml_DEPENDENCIES = \ $(top_builddir)/src/libadiosread.a $(am__DEPENDENCIES_1) adios_read_global_no_xml_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_read_global_no_xml_LDFLAGS) $(LDFLAGS) -o $@ am_adios_read_gpp_OBJECTS = adios_read_gpp.$(OBJEXT) adios_read_gpp_OBJECTS = $(am_adios_read_gpp_OBJECTS) adios_read_gpp_DEPENDENCIES = $(top_builddir)/src/libadiosread.a \ $(am__DEPENDENCIES_1) adios_read_gpp_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_read_gpp_LDFLAGS) $(LDFLAGS) -o $@ am_adios_read_writeblock_OBJECTS = adios_read_writeblock.$(OBJEXT) adios_read_writeblock_OBJECTS = $(am_adios_read_writeblock_OBJECTS) adios_read_writeblock_DEPENDENCIES = \ $(top_builddir)/src/libadiosread.a $(am__DEPENDENCIES_1) adios_read_writeblock_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_read_writeblock_LDFLAGS) $(LDFLAGS) -o $@ am_no_xml_write_byid_OBJECTS = no_xml_write_byid.$(OBJEXT) no_xml_write_byid_OBJECTS = $(am_no_xml_write_byid_OBJECTS) no_xml_write_byid_DEPENDENCIES = $(top_builddir)/src/libadios.a \ $(am__DEPENDENCIES_1) no_xml_write_byid_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(no_xml_write_byid_LDFLAGS) $(LDFLAGS) -o $@ am_read_no_xml_write_byid_OBJECTS = read_no_xml_write_byid.$(OBJEXT) read_no_xml_write_byid_OBJECTS = $(am_read_no_xml_write_byid_OBJECTS) read_no_xml_write_byid_DEPENDENCIES = \ $(top_builddir)/src/libadiosread.a $(am__DEPENDENCIES_1) read_no_xml_write_byid_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(read_no_xml_write_byid_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(adios_global_SOURCES) $(adios_global_2files_SOURCES) \ $(adios_global_no_xml_SOURCES) $(adios_read_chunk_SOURCES) \ $(adios_read_global_SOURCES) \ $(adios_read_global_no_xml_SOURCES) $(adios_read_gpp_SOURCES) \ $(adios_read_writeblock_SOURCES) $(no_xml_write_byid_SOURCES) \ $(read_no_xml_write_byid_SOURCES) DIST_SOURCES = $(adios_global_SOURCES) $(adios_global_2files_SOURCES) \ $(adios_global_no_xml_SOURCES) $(adios_read_chunk_SOURCES) \ $(adios_read_global_SOURCES) \ $(adios_read_global_no_xml_SOURCES) $(adios_read_gpp_SOURCES) \ $(adios_read_writeblock_SOURCES) $(no_xml_write_byid_SOURCES) \ $(read_no_xml_write_byid_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies adios_global_SOURCES = adios_global.c adios_global_LDADD = $(top_builddir)/src/libadios.a $(ADIOSLIB_LDADD) adios_global_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_global_2files_SOURCES = adios_global_2files.c adios_global_2files_LDADD = $(top_builddir)/src/libadios.a \ $(ADIOSLIB_LDADD) adios_global_2files_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_read_global_SOURCES = adios_read_global.c adios_read_global_LDADD = $(top_builddir)/src/libadiosread.a \ $(ADIOSREADLIB_LDADD) adios_read_global_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) adios_read_writeblock_SOURCES = adios_read_writeblock.c adios_read_writeblock_LDADD = $(top_builddir)/src/libadiosread.a \ $(ADIOSLIB_LDADD) adios_read_writeblock_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_read_chunk_SOURCES = adios_read_chunk.c adios_read_chunk_LDADD = $(top_builddir)/src/libadiosread.a \ $(ADIOSREADLIB_LDADD) adios_read_chunk_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) adios_read_gpp_SOURCES = adios_read_gpp.c adios_read_gpp_LDADD = $(top_builddir)/src/libadiosread.a \ $(ADIOSREADLIB_LDADD) adios_read_gpp_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) adios_global_no_xml_SOURCES = adios_global_no_xml.c adios_global_no_xml_LDADD = $(top_builddir)/src/libadios.a \ $(ADIOSLIB_LDADD) adios_global_no_xml_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_read_global_no_xml_SOURCES = adios_read_global_no_xml.c adios_read_global_no_xml_LDADD = $(top_builddir)/src/libadiosread.a \ $(ADIOSREADLIB_LDADD) adios_read_global_no_xml_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) no_xml_write_byid_SOURCES = no_xml_write_byid.c no_xml_write_byid_LDADD = $(top_builddir)/src/libadios.a \ $(ADIOSLIB_LDADD) no_xml_write_byid_LDFLAGS = $(ADIOSLIB_LDFLAGS) read_no_xml_write_byid_SOURCES = read_no_xml_write_byid.c read_no_xml_write_byid_LDADD = $(top_builddir)/src/libadiosread.a \ $(ADIOSREADLIB_LDADD) read_no_xml_write_byid_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) CLEANFILES = *.bp EXTRA_DIST = adios_global.xml gread_temperature.ch gwrite_temperature.ch job.pbs all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/C/global-array/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/C/global-array/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list adios_global$(EXEEXT): $(adios_global_OBJECTS) $(adios_global_DEPENDENCIES) @rm -f adios_global$(EXEEXT) $(adios_global_LINK) $(adios_global_OBJECTS) $(adios_global_LDADD) $(LIBS) adios_global_2files$(EXEEXT): $(adios_global_2files_OBJECTS) $(adios_global_2files_DEPENDENCIES) @rm -f adios_global_2files$(EXEEXT) $(adios_global_2files_LINK) $(adios_global_2files_OBJECTS) $(adios_global_2files_LDADD) $(LIBS) adios_global_no_xml$(EXEEXT): $(adios_global_no_xml_OBJECTS) $(adios_global_no_xml_DEPENDENCIES) @rm -f adios_global_no_xml$(EXEEXT) $(adios_global_no_xml_LINK) $(adios_global_no_xml_OBJECTS) $(adios_global_no_xml_LDADD) $(LIBS) adios_read_chunk$(EXEEXT): $(adios_read_chunk_OBJECTS) $(adios_read_chunk_DEPENDENCIES) @rm -f adios_read_chunk$(EXEEXT) $(adios_read_chunk_LINK) $(adios_read_chunk_OBJECTS) $(adios_read_chunk_LDADD) $(LIBS) adios_read_global$(EXEEXT): $(adios_read_global_OBJECTS) $(adios_read_global_DEPENDENCIES) @rm -f adios_read_global$(EXEEXT) $(adios_read_global_LINK) $(adios_read_global_OBJECTS) $(adios_read_global_LDADD) $(LIBS) adios_read_global_no_xml$(EXEEXT): $(adios_read_global_no_xml_OBJECTS) $(adios_read_global_no_xml_DEPENDENCIES) @rm -f adios_read_global_no_xml$(EXEEXT) $(adios_read_global_no_xml_LINK) $(adios_read_global_no_xml_OBJECTS) $(adios_read_global_no_xml_LDADD) $(LIBS) adios_read_gpp$(EXEEXT): $(adios_read_gpp_OBJECTS) $(adios_read_gpp_DEPENDENCIES) @rm -f adios_read_gpp$(EXEEXT) $(adios_read_gpp_LINK) $(adios_read_gpp_OBJECTS) $(adios_read_gpp_LDADD) $(LIBS) adios_read_writeblock$(EXEEXT): $(adios_read_writeblock_OBJECTS) $(adios_read_writeblock_DEPENDENCIES) @rm -f adios_read_writeblock$(EXEEXT) $(adios_read_writeblock_LINK) $(adios_read_writeblock_OBJECTS) $(adios_read_writeblock_LDADD) $(LIBS) no_xml_write_byid$(EXEEXT): $(no_xml_write_byid_OBJECTS) $(no_xml_write_byid_DEPENDENCIES) @rm -f no_xml_write_byid$(EXEEXT) $(no_xml_write_byid_LINK) $(no_xml_write_byid_OBJECTS) $(no_xml_write_byid_LDADD) $(LIBS) read_no_xml_write_byid$(EXEEXT): $(read_no_xml_write_byid_OBJECTS) $(read_no_xml_write_byid_DEPENDENCIES) @rm -f read_no_xml_write_byid$(EXEEXT) $(read_no_xml_write_byid_LINK) $(read_no_xml_write_byid_OBJECTS) $(read_no_xml_write_byid_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/C/global-array/CMakeLists.txt0000644000175000017500000000346312251360163023067 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/C/global-array) link_directories(${PROJECT_BINARY_DIR}/examples/C/global-array) add_executable(adios_global adios_global.c) target_link_libraries(adios_global adios ${ADIOSLIB_LDADD}) add_executable(adios_global_2files adios_global_2files.c) target_link_libraries(adios_global_2files adios ${ADIOSLIB_LDADD}) add_executable(adios_read_global adios_read_global.c) target_link_libraries(adios_read_global adiosread ${ADIOSREADLIB_LDADD}) #set_target_properties(adios_read_global PROPERTIES COMPILE_FLAGS "-DADIOS_USE_READ_API_1") add_executable(adios_read_writeblock adios_read_writeblock.c) target_link_libraries(adios_read_writeblock adiosread ${ADIOSLIB_LDADD}) add_executable(adios_read_chunk adios_read_chunk.c) target_link_libraries(adios_read_chunk adiosread ${ADIOSREADLIB_LDADD}) add_executable(adios_read_gpp adios_read_gpp.c) target_link_libraries(adios_read_gpp adiosread ${ADIOSREADLIB_LDADD}) add_executable(adios_global_no_xml adios_global_no_xml.c) target_link_libraries(adios_global_no_xml adios ${ADIOSLIB_LDADD}) add_executable(adios_read_global_no_xml adios_read_global_no_xml.c) target_link_libraries(adios_read_global_no_xml adiosread ${ADIOSREADLIB_LDADD}) #set_target_properties(adios_read_global_no_xml PROPERTIES COMPILE_FLAGS "-DADIOS_USE_READ_API_1") add_executable(no_xml_write_byid no_xml_write_byid.c) target_link_libraries(no_xml_write_byid adios ${ADIOSLIB_LDADD}) add_executable(read_no_xml_write_byid read_no_xml_write_byid.c) target_link_libraries(read_no_xml_write_byid adiosread ${ADIOSREADLIB_LDADD}) #install(FILES adios_global.xml gread_temperature.ch gwrite_temperature.ch job.pbs DESTINATION ${PROJECT_BINARY_DIR}/examples/C/global-array) adios-1.5.0/examples/C/global-array/adios_read_writeblock.c0000644000175000017500000000551712251360163025014 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: read global arrays from a BP file * * This code is using the generic read API, which can read in * arbitrary slices of an array and thus we can read in an array * on arbitrary number of processes (provided our code is smart * enough to do the domain decomposition). * * Run this example after adios_global, which generates * adios_global.bp. Run this example on equal or less * number of processes since we decompose only on one * dimension of the global array here. */ #include #include #include #include "mpi.h" #include "adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j, datasize; MPI_Comm comm = MPI_COMM_WORLD; enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP; ADIOS_SELECTION * sel; void * data = NULL; uint64_t start[2], count[2], bytes_read = 0; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_read_init_method (method, comm, "verbose=4"); ADIOS_FILE * f = adios_read_open_file ("adios_global.bp", method, comm); ADIOS_VARINFO * varinfo = adios_inq_var (f, "temperature"); if (varinfo) { printf ("nsteps = %d\n", varinfo->nsteps); for (i = 0; i < varinfo->nsteps; i++) { printf ("step: %d has %d", i, varinfo->nblocks[i]); } printf ("\n"); adios_inq_var_blockinfo (f, varinfo); for (i = 0; i < varinfo->sum_nblocks; i++) { printf ("block[%d]: ", i); printf ("start="); for (j = 0; j < varinfo->ndim; j++) { printf ("%lu ", varinfo->blockinfo[i].start[j]); } printf ("count="); for (j = 0; j < varinfo->ndim; j++) { printf ("%lu ", varinfo->blockinfo[i].count[j]); } printf ("\n"); } datasize = 8; for (i = 0; i < varinfo->ndim; i++) { datasize *= varinfo->blockinfo[rank].count[i]; } data = malloc (datasize); sel = adios_selection_writeblock (rank); adios_schedule_read (f, sel, "temperature", 0, 1, data); adios_perform_reads (f, 1); adios_selection_delete (sel); } adios_free_varinfo (varinfo); adios_read_close (f); printf ("data:\n"); for (i = 0; i < datasize/8; i ++) { printf ("%7.4f ", * ((double *)data + i)); } printf ("\n"); free (data); adios_read_finalize_method (ADIOS_READ_METHOD_BP); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/global-array/adios_read_global_no_xml.c0000644000175000017500000000560312251360163025457 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: read global arrays from a BP file * * This code is using the generic read API, which can read in * arbitrary slices of an array and thus we can read in an array * on arbitrary number of processes (provided our code is smart * enough to do the domain decomposition). * * Run this example after adios_global, which generates * adios_global.bp. Run this example on equal or less * number of processes since we decompose only on one * dimension of the global array here. */ #include #include #include #include #include "mpi.h" #include "adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j, npl, token; MPI_Comm comm = MPI_COMM_WORLD; MPI_Status status; enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP; ADIOS_SELECTION * sel; void * data = NULL; uint64_t start[1], count[1], bytes_read = 0; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_read_init_method (method, comm, "verbose=3"); ADIOS_FILE * f = adios_read_open ("adios_global_no_xml.bp", method, comm, ADIOS_LOCKMODE_NONE, 0); if (f == NULL) { printf ("%s\n", adios_errmsg()); return -1; } ADIOS_VARINFO * v = adios_inq_var (f, "temperature"); /* Using less readers to read the global array back, i.e., non-uniform */ uint64_t slice_size = v->dims[0]/size; start[0] = slice_size * rank; if (rank == size-1) /* last rank may read more lines */ slice_size = slice_size + v->dims[0]%size; count[0] = slice_size; data = malloc (slice_size * sizeof (double)); if (data == NULL) { fprintf (stderr, "malloc failed.\n"); return -1; } /* Read a subset of the temperature array */ sel = adios_selection_boundingbox (v->ndim, start, count); adios_schedule_read (f, sel, "temperature", 0, 1, data); adios_perform_reads (f, 1); if (rank > 0) { MPI_Recv (&token, 1, MPI_INT, rank-1, 0, comm, &status); } printf (" ======== Rank %d ========== \n", rank); npl = 10; for (i = 0; i < slice_size; i+=npl) { printf ("[%4.4d] ", rank*slice_size+i); for (j= 0; j < npl; j++) { printf (" %6.6g", * ((double *)data + i + j)); } printf ("\n"); } fflush(stdout); sleep(1); if (rank < size-1) { MPI_Send (&token, 1, MPI_INT, rank+1, 0, comm); } free (data); adios_read_close (f); MPI_Barrier (comm); adios_read_finalize_method (method); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/global-array/adios_read_global.c0000644000175000017500000000515012251360163024100 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: read global arrays from a BP file * * This code is using the generic read API, which can read in * arbitrary slices of an array and thus we can read in an array * on arbitrary number of processes (provided our code is smart * enough to do the domain decomposition). * * Run this example after adios_global, which generates * adios_global.bp. Run this example on equal or less * number of processes since we decompose only on one * dimension of the global array here. */ #include #include #include #include "mpi.h" #include "adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j; MPI_Comm comm = MPI_COMM_WORLD; enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP; ADIOS_SELECTION * sel; void * data = NULL; uint64_t start[2], count[2], bytes_read = 0; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_read_init_method (method, comm, "verbose=3"); ADIOS_FILE * f = adios_read_open ("adios_global.bp", method, comm, ADIOS_LOCKMODE_NONE, 0); if (f == NULL) { printf ("%s\n", adios_errmsg()); return -1; } ADIOS_VARINFO * v = adios_inq_var (f, "temperature"); /* Using less readers to read the global array back, i.e., non-uniform */ uint64_t slice_size = v->dims[0]/size; start[0] = slice_size * rank; if (rank == size-1) /* last rank may read more lines */ slice_size = slice_size + v->dims[0]%size; count[0] = slice_size; start[1] = 0; count[1] = v->dims[1]; data = malloc (slice_size * v->dims[1] * sizeof (double)); if (data == NULL) { fprintf (stderr, "malloc failed.\n"); return -1; } /* Read a subset of the temperature array */ sel = adios_selection_boundingbox (v->ndim, start, count); adios_schedule_read (f, sel, "temperature", 0, 1, data); adios_perform_reads (f, 1); for (i = 0; i < slice_size; i++) { printf ("rank %d: [%lld,%d:%lld]", rank, start[0]+i, 0, slice_size); for (j = 0; j < v->dims[1]; j++) printf (" %6.6g", * ((double *)data + i * v->dims[1] + j)); printf ("\n"); } free (data); adios_read_close (f); MPI_Barrier (comm); adios_read_finalize_method (method); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/global-array/gwrite_temperature.ch0000644000175000017500000000052312251360163024553 0ustar amckinstryamckinstryadios_groupsize = 4 \ + 4 \ + 4 \ + 8 * (1) * (NX); adios_group_size (adios_handle, adios_groupsize, &adios_totalsize); adios_write (adios_handle, "NX", &NX); adios_write (adios_handle, "size", &size); adios_write (adios_handle, "rank", &rank); adios_write (adios_handle, "temperature", t); adios-1.5.0/examples/C/global-array/adios_read_chunk.c0000644000175000017500000001131212251360163023745 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: read global arrays from a BP file * * This code is using the generic read API, which can read in * arbitrary slices of an array and thus we can read in an array * on arbitrary number of processes (provided our code is smart * enough to do the domain decomposition). * * Run this example after adios_global, which generates * adios_global.bp. Run this example on equal or less * number of processes since we decompose only on one * dimension of the global array here. */ #include #include #include #include "mpi.h" #include "adios_read.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j, datasize, if_any; MPI_Comm comm = MPI_COMM_WORLD; enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP_AGGREGATE; ADIOS_SELECTION * sel1, * sel2; ADIOS_VARCHUNK * chunk = 0; void * data = NULL; uint64_t start[2], count[2], npoints, * points; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); adios_read_init_method (method, comm, "max_chunk_size=4;verbose=3;num_aggregators=2"); ADIOS_FILE * f = adios_read_open_file ("adios_global.bp", method, comm); ADIOS_VARINFO * varinfo = adios_inq_var (f, "temperature"); if (varinfo) { printf ("nsteps = %d\n", varinfo->nsteps); for (i = 0; i < varinfo->nsteps; i++) { printf ("step: %d has %d", i, varinfo->nblocks[i]); } printf ("\n"); printf ("ndim = %d\n", varinfo->ndim); printf ("dims = ("); datasize = 8; for (i = 0; i < varinfo->ndim; i++) { datasize *= varinfo->dims[i]; printf ("%lu", varinfo->dims[i]); if (i != varinfo->ndim - 1) { printf (","); } } printf (")\n"); data = malloc (datasize); /* adios_inq_var_blockinfo (f, varinfo); for (i = 0; i < varinfo->sum_nblocks; i++) { printf ("block[%d]: ", i); printf ("start="); for (j = 0; j < varinfo->ndim; j++) { printf ("%lu ", varinfo->blockinfo[i].start[j]); } printf ("count="); for (j = 0; j < varinfo->ndim; j++) { printf ("%lu ", varinfo->blockinfo[i].count[j]); } printf ("\n"); } */ for (i = 0; i < varinfo->ndim; i++) { start[i] = 0; count[i] = varinfo->dims[i]; } sel1 = adios_selection_boundingbox (varinfo->ndim, start, count); /* npoints = 1; for (i = 0; i < varinfo->ndim; i++) { npoints *= count[i]; } points = (uint64_t *) malloc (npoints * varinfo->ndim * 8); for (i = 0; i < npoints; i++) { uint64_t temp = i; for (j = varinfo->ndim - 1; j > -1; j--) { points[i * varinfo->ndim + j] = temp % count[j]; temp = temp/count[j]; } } */ /* for (i = 0; i < npoints; i++) { printf ("("); for (j = 0; j < varinfo->ndim; j++) { printf ("%lu ",points[i * varinfo->ndim + j]); } printf (")"); } printf ("\n"); */ /* sel2 = adios_selection_points (varinfo->ndim, npoints, points); */ adios_schedule_read (f, sel1, "temperature", 0, 1, data); /* adios_schedule_read (f, sel2, "temperature", 0, 1, data); */ adios_perform_reads (f, 1); #if 0 while (adios_check_reads (f, &chunk) > 0) { datasize = 1; for (i = 0; i < varinfo->ndim; i++) { datasize *= chunk->sel->u.bb.count[i]; } printf ("data:\n"); /* for (i = 0; i < datasize; i ++) { printf ("%7.4f ", * ((double *)chunk->data + i)); } printf ("\n"); */ for (i = 0; i < 10; i ++) { printf ("%7.4f ", * ((double *)chunk->data + i)); } printf ("\n"); adios_free_chunk (chunk); } #endif adios_selection_delete (sel1); /* adios_selection_delete (sel2); */ } while (1); adios_free_varinfo (varinfo); adios_read_close (f); adios_read_finalize_method (ADIOS_READ_METHOD_BP); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/global-array/adios_global_no_xml.c0000644000175000017500000000575112251360163024470 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: write a global array from N processors with gwrite * * How to run: mpirun -np adios_global_no_xml * Output: adios_global_no_xml.bp * ADIOS config file: None * */ /* This example will write out 2 sub blocks of the variable temperature and place these in the global array. This example illustrates both the use of sub blocks in writing, and the usage of the ADIOS non-xml API's */ #include #include #include "mpi.h" #include "public/adios.h" #include "public/adios_types.h" #ifdef DMALLOC #include "dmalloc.h" #endif int main (int argc, char ** argv) { char filename [256]; int rank, size, i, block; int NX = 100, Global_bounds, Offsets; double t[NX]; int sub_blocks = 3; MPI_Comm comm = MPI_COMM_WORLD; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); Global_bounds = sub_blocks * NX * size; strcpy (filename, "adios_global_no_xml.bp"); adios_init_noxml (comm); adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, 10); int64_t m_adios_group; int64_t m_adios_file; adios_declare_group (&m_adios_group, "restart", "iter", adios_flag_yes); adios_select_method (m_adios_group, "MPI", "", ""); adios_define_var (m_adios_group, "NX" ,"", adios_integer ,0, 0, 0); adios_define_var (m_adios_group, "Global_bounds" ,"", adios_integer ,0, 0, 0); for (i=0;i adios_global_no_xml * Output: adios_global_no_xml.bp * ADIOS config file: None * */ /* This example will write out 2 sub blocks of the variable temperature and place these in the global array. This example illustrates both the use of sub blocks in writing, and the usage of the ADIOS non-xml API's */ #include #include #include "mpi.h" #include "public/adios.h" #include "public/adios_types.h" #ifdef DMALLOC #include "dmalloc.h" #endif int main (int argc, char ** argv) { char filename [256]; int rank, size, i, j; int NX = 100, gb, offset; //local/global/offset double t[NX]; int nblocks = 3; MPI_Comm comm = MPI_COMM_WORLD; char g_str[100], o_str[100], l_str[100]; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); gb = nblocks * NX * size; sprintf (g_str, "%d", gb); sprintf (l_str, "%d", NX); strcpy (filename, "no_xml_write_byid.bp"); adios_init_noxml (comm); adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, 10); int64_t m_adios_group; int64_t m_adios_file; int64_t var_ids[nblocks]; adios_declare_group (&m_adios_group, "restart", "iter", adios_flag_yes); adios_select_method (m_adios_group, "MPI", "", ""); for (i = 0; i < nblocks; i++) { offset = rank * nblocks * NX + i * NX; sprintf (o_str, "%d", offset); var_ids[i] = adios_define_var (m_adios_group, "temperature" ,"", adios_double ,l_str, g_str, o_str ); } adios_open (&m_adios_file, "restart", filename, "w", comm); adios_groupsize = nblocks * (4 + 4 + 4 + NX * 8); adios_group_size (m_adios_file, adios_groupsize, &adios_totalsize); /* now we will write the data for each sub block */ for (i = 0; i < nblocks; i++) { offset = rank * nblocks * NX + i * NX; for (j = 0; j < NX; j++) t[j] = offset + j; adios_write_byid(m_adios_file, var_ids[i], t); } adios_close (m_adios_file); MPI_Barrier (comm); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/C/global-array/adios_global.xml0000644000175000017500000000142512251360163023464 0ustar amckinstryamckinstry stripe_count=1;stripe_size=10485760;num_aggregators=2;merging_pgs=0;num_ost=2 adios-1.5.0/examples/C/global-array/adios_global.c0000644000175000017500000000237112251360163023107 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* ADIOS C Example: write a global array from N processors with gwrite * * How to run: mpirun -np adios_global * Output: adios_global.bp * ADIOS config file: adios_global.xml * */ #include #include #include "mpi.h" #include "adios.h" int main (int argc, char ** argv) { char filename [256]; int rank, size, i; int NX = 10; double t[NX]; MPI_Comm comm = MPI_COMM_WORLD; /* ADIOS variables declarations for matching gwrite_temperature.ch */ int adios_err; uint64_t adios_groupsize, adios_totalsize; int64_t adios_handle; MPI_Init (&argc, &argv); MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &size); for (i = 0; i < NX; i++) t[i] = rank*NX + i; strcpy (filename, "adios_global.bp"); adios_init ("adios_global.xml", comm); adios_open (&adios_handle, "temperature", filename, "w", comm); #include "gwrite_temperature.ch" adios_close (adios_handle); MPI_Barrier (comm); adios_finalize (rank); MPI_Finalize (); return 0; } adios-1.5.0/examples/skel/0000755000175000017500000000000012251360163016521 5ustar amckinstryamckinstryadios-1.5.0/examples/skel/genarray3d/0000755000175000017500000000000012251360163020560 5ustar amckinstryamckinstryadios-1.5.0/examples/skel/genarray3d/genarray3d.xml0000644000175000017500000000527712251360163023354 0ustar amckinstryamckinstry adios-1.5.0/examples/skel/gts/0000755000175000017500000000000012251360163017316 5ustar amckinstryamckinstryadios-1.5.0/examples/skel/gts/gts.xml0000644000175000017500000000751512251360163020645 0ustar amckinstryamckinstry adios-1.5.0/examples/skel/s3d/0000755000175000017500000000000012251360163017212 5ustar amckinstryamckinstryadios-1.5.0/examples/skel/s3d/s3d.xml0000644000175000017500000000331112251360163020423 0ustar amckinstryamckinstry stripe_count=1,stripe_size=25600000,block_size=25600000,num_aggregators=1920,merging_pgs=0 adios-1.5.0/examples/skel/geos5/0000755000175000017500000000000012251360163017543 5ustar amckinstryamckinstryadios-1.5.0/examples/skel/geos5/geos5.xml0000755000175000017500000005524312251360163021323 0ustar amckinstryamckinstry adios-1.5.0/examples/skel/grapes/0000755000175000017500000000000012251360163020002 5ustar amckinstryamckinstryadios-1.5.0/examples/skel/grapes/grapes.xml0000644000175000017500000000561112251360163022010 0ustar amckinstryamckinstry stripe_count=32;stripe_size=1048576;block_size=1048576 adios-1.5.0/examples/coupling/0000755000175000017500000000000012251360163017403 5ustar amckinstryamckinstryadios-1.5.0/examples/coupling/job0000755000175000017500000000432112251360163020103 0ustar amckinstryamckinstry#!/bin/bash #PBS -A STF006 #PBS -N genarray #PBS -j oe #PBS -l walltime=1:00:00,size=20 ## On jaguarpf, you need size=48 (4 nodes * 12cores for 4 apruns) #cd $PBS_O_WORKDIR # Number of writers (WPX*WPY = WRITEPROC) WRITEPROC=16 WPX=4 WPY=4 # Number of staging processes, if staging is used STAGINGPROC=4 # Number of readers (RPX*RPY = READPROC) READPROC=9 RPX=3 RPY=3 let "WP=WPX*WPY" if [ $WP -ne $WRITEPROC ]; then echo "WPX*WPY != WRITEPROC: " $WP and $WRITEPROC exit 1 fi let "RP=RPX*RPY" if [ $RP -ne $READPROC ]; then echo "RPX*RPY != READPROC: " $RP and $READPROC exit 1 fi # clean-up rm -f log.* draw* core* conf dataspaces.conf srv.lck rm -f writer.bp reader_0*.bp METHOD=`grep " dataspaces.conf # Run DataSpaces SERVER=/ccs/proj/e2e/dataspaces/sith/pgi/bin/dataspaces_server echo "-- Start DataSpaces server "$SERVER" on $STAGINGPROC PEs, -s$STAGINGPROC -c$PROCALL" mpirun -np $STAGINGPROC $SERVER -s$STAGINGPROC -c$PROCALL &> log.server & ## Give some time for the servers to load and startup sleep 1s while [ ! -f conf ]; do echo "-- File conf is not yet available from server. Sleep more" sleep 1s done sleep 10s # wait server to fill up the conf file ## Export the main server config to the environment while read line; do export set "${line}" done < conf echo "-- DataSpaces Portals IDs: P2TNID = $P2TNID P2TPID = $P2TPID" else READMETHOD="FILE" fi # Start WRITER echo "-- Start WRITER on $WRITEPROC PEs" mpirun -np $WRITEPROC ./coupling_writer_2D $WPX $WPY 10 10 5 >& log.writer & # Start READER echo "-- Start READER on $READPROC PEs." mpirun -np $READPROC ./coupling_reader_2D $RPX $RPY $READMETHOD 1 >& log.reader & echo "-- Wait until all applications exit. Run ./check.sh to see status" wait rm -f conf adios-1.5.0/examples/coupling/README0000644000175000017500000001117112251360163020264 0ustar amckinstryamckinstryREQUIREMENTS: - ADIOS 1.4.1: http://www.olcf.ornl.gov/center-projects/adios - Fortran 90 compiler - MPI BUILD: - Install ADIOS - In Makefile, set ADIOS_DIR to the installation directory - also set the MPI/F90 compiler name (e.g. mpif90 or ftn) - run make 1. Run the writer ================= 2x2 processes write 4x5 blocks (8x10 global array), 5 timesteps $ mpirun -np 4 ./coupling_writer_2D 2 2 4 5 5 Process number : 2 x 2 Array size per process: 4 x 5 rank=0: 2D array pos: 0,0 offset: 0,0 rank=1: 2D array pos: 1,0 offset: 4,0 rank=2: 2D array pos: 0,1 offset: 0,5 rank=3: 2D array pos: 1,1 offset: 4,5 rank=1 set matrix to 1.01 rank=0 set matrix to 0.01 Output file: writer_001.bp rank=2 set matrix to 2.01 rank=3 set matrix to 3.01 rank=1: ---------------------- write completed ---------------------- rank=2: ---------------------- write completed ---------------------- rank=3: ---------------------- write completed ---------------------- rank=0: ---------------------- write completed ---------------------- ... 2. Check the output =================== $ bpls -l writer.bp integer /info/nproc 5*scalar = 4 / 4 integer /info/npx 5*scalar = 2 / 2 integer /info/npy 5*scalar = 2 / 2 integer /gdx 5*scalar = 8 / 8 integer /gdy 5*scalar = 10 / 10 integer /aux/ox 5*scalar = 0 / 0 integer /aux/oy 5*scalar = 0 / 0 integer /aux/ldx 5*scalar = 4 / 4 integer /aux/ldy 5*scalar = 5 / 5 double /xy 5*{10, 8} = 0.01 / 3.05 / 1.53 / 1.11812 Note that F90 app writes 8x10 arrays in Fortran column-order, which is 10x8 in C row-order. bpls sees/shows the C ordering because it is a C program. The reader below sees 8x10 Fortran array because it is a Fortan program. 3. Run the reader ================= $ mpirun -np 3 ./coupling_reader_2D 1 3 MPI 1 1 Process number : 1 x 3 Method for reading: 0 Input file: writer.bp rank=0: Read in gdx and gdy, step1 from writer.bp rank=2: Read in gdx and gdy, step1 from writer.bp rank=1: Read in gdx and gdy, step1 from writer.bp rank=0: Read in xy(1:2,1:10) from writer.bp rank=2: Read in xy(5:8,1:10) from writer.bp rank=1: Read in xy(3:4,1:10) from writer.bp rank=1: Collectively wrote xy and new xy2 to reader_001.bp rank=2: Collectively wrote xy and new xy2 to reader_001.bp rank=0: Collectively wrote xy and new xy2 to reader_001.bp rank=2: Read in gdx and gdy, step2 from writer.bp rank=0: Read in gdx and gdy, step2 from writer.bp rank=1: Read in gdx and gdy, step2 from writer.bp rank=0: Read in xy(1:2,1:10) from writer.bp rank=2: Read in xy(5:8,1:10) from writer.bp rank=1: Read in xy(3:4,1:10) from writer.bp rank=2: Collectively wrote xy and new xy2 to reader_002.bp rank=1: Collectively wrote xy and new xy2 to reader_002.bp rank=0: Collectively wrote xy and new xy2 to reader_002.bp ... 4. Check the output =================== $ bpls -l reader_001.bp integer /info/rank scalar = 0 integer /gdx scalar = 8 integer /gdy scalar = 10 integer /aux/ldx scalar = 2 integer /aux/ldy scalar = 10 integer /aux/ox scalar = 0 integer /aux/oy scalar = 0 double /xy {10, 8} = 0.01 / 3.01 / 1.51 / 1.11803 double /xy2 {10, 8} = 0.0001 / 2.0301 / 1.2651 / 0.833742 xy in the two files should match: $ bpls -l reader_001.bp -d xy -n 8 double /xy {10, 8} = 0.01 / 3.01 / 1.51 / 1.11803 (0,0) 0.01 0.01 0.01 0.01 1.01 1.01 1.01 1.01 (1,0) 0.01 0.01 0.01 0.01 1.01 1.01 1.01 1.01 (2,0) 0.01 0.01 0.01 0.01 1.01 1.01 1.01 1.01 (3,0) 0.01 0.01 0.01 0.01 1.01 1.01 1.01 1.01 (4,0) 0.01 0.01 0.01 0.01 1.01 1.01 1.01 1.01 (5,0) 2.01 2.01 2.01 2.01 3.01 3.01 3.01 3.01 (6,0) 2.01 2.01 2.01 2.01 3.01 3.01 3.01 3.01 (7,0) 2.01 2.01 2.01 2.01 3.01 3.01 3.01 3.01 (8,0) 2.01 2.01 2.01 2.01 3.01 3.01 3.01 3.01 (9,0) 2.01 2.01 2.01 2.01 3.01 3.01 3.01 3.01 $ bpls -l writer.bp -d xy -n 8 -c "1,-1,-1" double /xy 5*{10, 8} = 0.01 / 3.05 / 1.53 / 1.11812 slice (0:0, 0:9, 0:7) (0,0,0) 0.01 0.01 0.01 0.01 1.01 1.01 1.01 1.01 (0,1,0) 0.01 0.01 0.01 0.01 1.01 1.01 1.01 1.01 (0,2,0) 0.01 0.01 0.01 0.01 1.01 1.01 1.01 1.01 (0,3,0) 0.01 0.01 0.01 0.01 1.01 1.01 1.01 1.01 (0,4,0) 0.01 0.01 0.01 0.01 1.01 1.01 1.01 1.01 (0,5,0) 2.01 2.01 2.01 2.01 3.01 3.01 3.01 3.01 (0,6,0) 2.01 2.01 2.01 2.01 3.01 3.01 3.01 3.01 (0,7,0) 2.01 2.01 2.01 2.01 3.01 3.01 3.01 3.01 (0,8,0) 2.01 2.01 2.01 2.01 3.01 3.01 3.01 3.01 (0,9,0) 2.01 2.01 2.01 2.01 3.01 3.01 3.01 3.01 adios-1.5.0/examples/coupling/coupling_writer_2D.xml0000644000175000017500000000357212251360163023675 0ustar amckinstryamckinstry verbose=3 adios-1.5.0/examples/coupling/coupling_reader_2D.F900000644000175000017500000002344212251360163023357 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! ! ! Coupling writer/reader ! ! Read a 2D array ! to/from a file or from/to another coupling code using DataSpaces/ADIOS ! ! npx * npy processes write a 2D array, where each process writes an ! ! Data written ! xy 2D global array as received from the writers ! xy2 2D array with block,* decomp ! ! All data are real*8 type ! ! (c) Oak Ridge National Laboratory, 2009 ! Author: Norbert Podhorszki ! module coupling_reader_2D_comm ! arguments integer :: npx, npy, npz ! # of processors in x-y-z direction integer :: read_method ! 0=bp, 1=hdf5, 2=dart, 3=dimes integer :: read_mode ! 0=whole array on each process ! 1=1D decomposition on 1st dim integer :: nproc ! number of processors real*8, dimension(:,:), allocatable :: xy, xy2 ! Offsets and sizes integer :: ox, oy integer :: ldx, ldy integer :: gdx, gdy ! MPI variables integer :: group_comm, self_comm integer :: rank integer :: ierr ! ADIOS variables character (len=200) :: group !character (len=6) :: nprocstr integer*8 :: adios_totalsize, adios_groupsize, adios_buf_size integer :: adios_err integer*8 :: inh ! input file handle integer*8 :: adios_handle ! output file handle (used by gwrite too) character(len=256) :: infn ! filename integer :: wts ! writer's output timestep index (read from 1,2...) logical, parameter :: dump_text = .true. end module coupling_reader_2D_comm program coupling use coupling_reader_2D_comm use adios_read_mod implicit none include 'mpif.h' integer :: key, color real*8 :: t1,t2,io_time call MPI_Init (ierr) call MPI_Barrier(MPI_COMM_WORLD, ierr) call MPI_Comm_rank(MPI_COMM_WORLD, key, ierr) ! Split MPI_COMM_WORLD for MPMD execution color = 2 call MPI_Comm_split(MPI_COMM_WORLD, color, key, group_comm, ierr) call MPI_Comm_dup (MPI_COMM_SELF, self_comm, ierr) call MPI_Comm_rank (group_comm, rank, ierr) call MPI_Comm_size (group_comm, nproc , ierr) call processArgs() if (rank == 0) then print '(" Process number : ",i0," x ",i0)', npx,npy print '(" Method for reading: ",i0)', read_method if (nproc .ne. npx*npy) then print '(" Error: Number of processors ",i0,"does not match N*M=",i0)', nproc, npx*npy call exit(1) endif endif write (infn,'("writer.bp")') if (rank==0) print *, " Input file: "//trim(infn) call adios_read_init_method (read_method, group_comm, "verbose=3; app_id=2; poll_interval=1000", ierr); call adios_init("coupling_reader_2D.xml", group_comm, ierr) !call MPI_Barrier (group_comm, ierr) !write (*,*) 'rank ', rank, "init completed" !write (nprocstr,'(i0)') nproc call adios_read_open (inh, infn, read_method, group_comm, ADIOS_LOCKMODE_CURRENT, 180.0, ierr) if (ierr .ne. 0) then print '(" Failed to open stream: ",a)', infn print '(" open stream ierr=: ",i)', ierr call exit(1) endif t1=0; t2=0; call MPI_Barrier (group_comm, ierr) wts = 1 ! start reading from writer's 1st step do while (ierr==0) call MPI_Barrier (group_comm, ierr) t1=MPI_Wtime(); call readArrays() call MPI_Barrier (group_comm, ierr) t2=t2+(MPI_Wtime()-t1); call adios_release_step(inh, ierr) call printArrays() call advanceArrays() call MPI_Barrier (group_comm, ierr) call adios_advance_step(inh, 0, 10.0, ierr) if (ierr==err_end_of_stream .and. rank==0) then print *, " Stream has terminated. Quit reader" elseif (ierr==err_step_notready .and. rank==0) then print *, " Next step has not arrived for a while. Assume termination" endif wts = wts+1 enddo call adios_read_close (inh, ierr) ! call mpi_allreduce(t2, io_time, 1, MPI_INTEGER, MPI_MAX,group_comm, ierr) if(rank==0) then print '("Total read time = ", d12.2)', t2 endif ! Terminate call MPI_Barrier (group_comm, ierr) call adios_read_finalize_method (read_method, ierr) call adios_finalize (rank, ierr) call MPI_Finalize (ierr) end program coupling !!*************************** subroutine readArrays() use coupling_reader_2D_comm use adios_read_mod implicit none integer :: i,j,k integer*8 :: sel integer*8, dimension(3) :: offset, readsize ! read gdx and gdy print '("rank=",i0,": Read in gdx and gdy, step",i0," from ",a)', rank, wts, trim(infn) call adios_get_scalar (inh,"gdx",gdx, ierr) call adios_get_scalar (inh,"gdy",gdy, ierr) ! Calculate the local x,y offsets if (read_mode == 0) then ! each process reads the whole array ldx = gdx ldy = gdy ox = 0 oy = 0 elseif (read_mode == 1) then ldx = gdx / nproc ldy = gdy ox = rank * ldx oy = 0 ! last process should read all the rest of columns if (rank == nproc-1) then ldx = gdx - ldx*(nproc-1) endif endif if (.not. allocated(xy)) then allocate( xy (1:ldx, 1:ldy) ) allocate( xy2 (1:ldx, 1:ldy) ) endif xy = -1.0 ! should be overwritten at reading the array next ! Read in the whole xy array readsize(1) = ldx readsize(2) = ldy offset(1) = ox offset(2) = oy call adios_selection_boundingbox (sel, 2, offset, readsize) print '("rank=",i0,": Read in xy(",i0,":",i0,",",i0,":",i0,") from ",a)', rank, & offset(1)+1, offset(1)+readsize(1), & offset(2)+1, offset(2)+readsize(2),trim(infn) call adios_schedule_read (inh, sel, "xy", 0, 1, xy, ierr) call adios_perform_reads (inh, ierr) call adios_selection_delete (sel) do j=1,ldy do i=1,ldx xy2(i,j) = rank*1.0 + xy(i,j)/100.0 enddo enddo call MPI_Barrier (group_comm, ierr) end subroutine readArrays !!*************************** subroutine printArrays() use coupling_reader_2D_comm use adios_write_mod implicit none integer, parameter :: u=20 character(len=256) :: outfn integer :: i,j,k,writer if (read_mode == 0) then writer = mod(wts,nproc) if (writer == rank) then write (outfn, '("reader_",i3.3,".bp")') wts call adios_open (adios_handle, "reader2D", outfn, "w", self_comm, adios_err) #include "gwrite_reader2D.fh" ! start streaming from buffer to disk call adios_close (adios_handle, adios_err) print '("rank=",i0,": One process wrote xy and new xy2 to ",a)', rank, trim(outfn) endif if (dump_text) then write (outfn, '("reader_",i3.3,"_",i0,".txt")') wts, rank open (u, FILE=outfn, STATUS='NEW', FORM="FORMATTED") ! print xyz_bbb write (u,'("xy(1:",i0,",1:",i0,") = ")') ldx, ldy do j=1,ldy do i=1,ldx write (u, '(f6.2," ",$)') xy(i,j) enddo write (u,*) " " ! new line enddo close (u) endif elseif (read_mode ==1) then write (outfn, '("reader_",i3.3,".bp")') wts call adios_open (adios_handle, "reader2D", outfn, "w", group_comm, adios_err) #include "gwrite_reader2D.fh" ! start streaming from buffer to disk call adios_close (adios_handle, adios_err) print '("rank=",i0,": Collectively wrote xy and new xy2 to ",a)', rank, trim(outfn) endif end subroutine printArrays !!*************************** subroutine advanceArrays() use coupling_reader_2D_comm implicit none xy = 0.9 * xy xy2 = 0.9 * xy2 end subroutine advanceArrays !!*************************** subroutine usage() print *, "Usage: coupling_reader_2D N M method read-mode" print *, "N: number of processes in X dimension" print *, "M: number of processes in Y dimension" print *, "read method: DATASPACES or DIMES for memory-to-memory coupling," print *, " otherwise file-based" print *, "read-mode: 0: each process reads whole global array" print *, " 1: 1D decomposition in 1st dimension" end subroutine usage !!*************************** subroutine processArgs() use coupling_reader_2D_comm use adios_read_mod #ifndef __GFORTRAN__ #ifndef __GNUC__ interface integer function iargc() end function iargc end interface #endif #endif character(len=256) :: npx_str, npy_str, method_str, mode_str, ts_str integer :: numargs !! process arguments numargs = iargc() !print *,"Number of arguments:",numargs if ( numargs < 4 ) then call usage() call exit(1) endif call getarg(1, npx_str) call getarg(2, npy_str) read (npx_str,'(i5)') npx read (npy_str,'(i5)') npy call getarg(3, method_str) if (trim(method_str) .eq. "DATASPACES") then read_method = ADIOS_READ_METHOD_DATASPACES elseif (trim(method_str) .eq. "DIMES") then read_method = ADIOS_READ_METHOD_DIMES elseif (trim(method_str) .eq. "FLEXPATH") then read_method = ADIOS_READ_METHOD_FLEXPATH else read_method = ADIOS_READ_METHOD_BP endif call getarg(4, mode_str) read (mode_str,'(i5)') read_mode if (read_mode < 0 .or. read_mode > 1) then print *, "Argument error: read_mode must be 0 or 1" call usage() call exit(2) endif end subroutine processArgs adios-1.5.0/examples/coupling/coupling_reader_2D.xml0000644000175000017500000000214012251360163023611 0ustar amckinstryamckinstry adios-1.5.0/examples/coupling/read.F900000644000175000017500000002261612251360163020605 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! ! ! Coupling writer/reader ! ! Read a 2D array ! to/from a file or from/to another coupling code using DataSpaces/ADIOS ! ! npx * npy processes write a 2D array, where each process writes an ! ! Data written ! xy 2D global array as received from the writers ! xy2 2D array with block,* decomp ! ! All data are real*8 type ! ! (c) Oak Ridge National Laboratory, 2009 ! Author: Norbert Podhorszki ! module coupling_reader_2D_comm ! arguments integer :: npx, npy, npz ! # of processors in x-y-z direction integer :: read_method ! 0=bp, 1=hdf5, 2=dart, 3=dimes integer :: read_mode ! 0=whole array on each process ! 1=1D decomposition on 1st dim integer :: nproc ! number of processors real*8, dimension(:,:), allocatable :: xy, xy2 ! Offsets and sizes integer :: ox, oy integer :: ldx, ldy integer :: gdx, gdy ! MPI variables integer :: group_comm, self_comm integer :: rank integer :: ierr ! ADIOS variables character (len=200) :: group !character (len=6) :: nprocstr integer*8 :: adios_totalsize, adios_groupsize, adios_buf_size integer :: adios_err integer*8 :: inh ! input file handle integer*8 :: adios_handle ! output file handle (used by gwrite too) character(len=256) :: infn ! filename integer :: wts ! writer's output timestep index (read from 1,2...) logical, parameter :: dump_text = .true. end module coupling_reader_2D_comm program coupling use coupling_reader_2D_comm use adios_read_mod use adios_write_mod implicit none include 'mpif.h' call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, group_comm, ierr) call MPI_Comm_dup (MPI_COMM_SELF, self_comm, ierr) call MPI_Comm_rank (MPI_COMM_WORLD, rank, ierr) call MPI_Comm_size (group_comm, nproc , ierr) call processArgs() if (rank == 0) then print '(" Process number : ",i0," x ",i0)', npx,npy print '(" Method for reading: ",i0)', read_method if (nproc .ne. npx*npy) then print '(" Error: Number of processors ",i0,"does not match N*M=",i0)', nproc, npx*npy call exit(1) endif endif write (infn,'("writer.bp")') if (rank==0) print *, " Input file: "//trim(infn) call adios_read_init_method (read_method, group_comm, "verbose=2; app_id=2; poll_interval=1377", ierr); call adios_init("coupling_reader_2D.xml", group_comm, ierr) !call MPI_Barrier (group_comm, ierr) !write (*,*) 'rank ', rank, "init completed" !write (nprocstr,'(i0)') nproc call adios_read_open_stream (inh, infn, read_method, group_comm, ADIOS_LOCKMODE_CURRENT, 30.0, ierr) if (ierr .ne. 0) then print '(" Failed to open stream: ",a)', infn print '(" open stream ierr=: ",i0)', ierr call exit(1) endif call MPI_Barrier (MPI_COMM_WORLD, ierr) wts = 1 ! start reading from writer's 1st step do while (ierr==0) call readArrays() call adios_release_step(inh, ierr) call printArrays() call advanceArrays() call sleep(2) call MPI_Barrier (MPI_COMM_WORLD, ierr) call adios_advance_step(inh, 0, 10.0, ierr) if (ierr==err_end_of_stream .and. rank==0) then print *, " Stream has terminated. Quit reader" elseif (ierr==err_step_notready .and. rank==0) then print *, " Next step has not arrived for a while. Assume termination" endif wts = wts+1 enddo call adios_read_close (inh, ierr) ! Terminate call MPI_Barrier (MPI_COMM_WORLD, ierr) call adios_read_finalize_method (read_method, ierr) call adios_finalize (rank, ierr) call MPI_Finalize (ierr) end program coupling !!*************************** subroutine readArrays() use coupling_reader_2D_comm use adios_read_mod implicit none integer :: i,j,k integer*8 :: sel integer*8, dimension(3) :: offset, readsize ! read gdx and gdy print '("rank=",i0,": Read in gdx and gdy, step",i0," from ",a)', rank, wts, trim(infn) call adios_get_scalar(inh, "gdx", gdx, ierr) call adios_get_scalar(inh, "gdy", gdy, ierr) ! Calculate the local x,y offsets if (read_mode == 0) then ! each process reads the whole array ldx = gdx ldy = gdy ox = 0 oy = 0 elseif (read_mode == 1) then ldx = gdx / nproc ldy = gdy ox = rank * ldx oy = 0 ! last process should read all the rest of columns if (rank == nproc-1) then ldx = gdx - ldx*(nproc-1) endif endif if (.not. allocated(xy)) then allocate( xy (1:ldx, 1:ldy) ) allocate( xy2 (1:ldx, 1:ldy) ) endif xy = -1.0 ! should be overwritten at reading the array next ! Read in the whole xy array readsize(1) = ldx readsize(2) = ldy offset(1) = ox offset(2) = oy call adios_selection_boundingbox (sel, 2, offset, readsize) print '("rank=",i0,": Read in xy(",i0,":",i0,",",i0,":",i0,") from ",a)', rank, & offset(1)+1, offset(1)+readsize(1), & offset(2)+1, offset(2)+readsize(2),trim(infn) call adios_schedule_read (inh, sel, "xy", 0, 1, xy, ierr) call adios_perform_reads (inh, ierr) call adios_selection_delete (sel) do j=1,ldy do i=1,ldx xy2(i,j) = rank*1.0 + xy(i,j)/100.0 enddo enddo print '("rank=",i0,": Read done")', rank call MPI_Barrier (group_comm, ierr) end subroutine readArrays !!*************************** subroutine printArrays() use coupling_reader_2D_comm use adios_write_mod implicit none integer, parameter :: u=20 character(len=256) :: outfn integer :: i,j,k,writer if (read_mode == 0) then writer = mod(wts,nproc) if (writer == rank) then write (outfn, '("reader_",i3.3,".bp")') wts call adios_open (adios_handle, "reader2D", outfn, "w", self_comm, adios_err) #include "gwrite_reader2D.fh" ! start streaming from buffer to disk call adios_close (adios_handle, adios_err) print '("rank=",i0,": One process wrote xy and new xy2 to ",a)', rank, trim(outfn) endif if (dump_text) then write (outfn, '("reader_",i3.3,"_",i0,".txt")') wts, rank open (u, FILE=outfn, STATUS='NEW', FORM="FORMATTED") ! print xyz_bbb write (u,'("xy(1:",i0,",1:",i0,") = ")') ldx, ldy do j=1,ldy do i=1,ldx write (u, '(f6.2," ",$)') xy(i,j) enddo write (u,*) " " ! new line enddo close (u) endif elseif (read_mode ==1) then write (outfn, '("reader_",i3.3,".bp")') wts call adios_open (adios_handle, "reader2D", outfn, "w", group_comm, adios_err) #include "gwrite_reader2D.fh" ! start streaming from buffer to disk call adios_close (adios_handle, adios_err) print '("rank=",i0,": Collectively wrote xy and new xy2 to ",a)', rank, trim(outfn) endif end subroutine printArrays !!*************************** subroutine advanceArrays() use coupling_reader_2D_comm implicit none xy = 0.9 * xy xy2 = 0.9 * xy2 end subroutine advanceArrays !!*************************** subroutine usage() print *, "Usage: coupling_reader_2D N M method read-mode" print *, "N: number of processes in X dimension" print *, "M: number of processes in Y dimension" print *, "read method: DATASPACES or DIMES for memory-to-memory coupling," print *, " otherwise file-based" print *, "read-mode: 0: each process reads whole global array" print *, " 1: 1D decomposition in 1st dimension" end subroutine usage !!*************************** subroutine processArgs() use coupling_reader_2D_comm #ifndef __GFORTRAN__ #ifndef __GNUC__ interface integer function iargc() end function iargc end interface #endif #endif character(len=256) :: npx_str, npy_str, method_str, mode_str, ts_str integer :: numargs !! process arguments numargs = iargc() !print *,"Number of arguments:",numargs if ( numargs < 4 ) then call usage() call exit(1) endif call getarg(1, npx_str) call getarg(2, npy_str) read (npx_str,'(i5)') npx read (npy_str,'(i5)') npy call getarg(3, method_str) !print '("Requested method: [",a,"]")', trim(method_str) if (trim(method_str) .eq. "DATASPACES") then read_method = 3 ! ADIOS_READ_METHOD_DATASPACES elseif (trim(method_str) .eq. "DIMES") then read_method = 4 ! ADIOS_READ_METHOD_DIMES elseif (trim(method_str) .eq. "FLEXPATH") then read_method = 5 ! ADIOS_READ_METHOD_FLEXPATH else read_method = 0 endif call getarg(4, mode_str) read (mode_str,'(i5)') read_mode if (read_mode < 0 .or. read_mode > 1) then print *, "Argument error: read_mode must be 0 or 1" call usage() call exit(2) endif end subroutine processArgs adios-1.5.0/examples/coupling/coupling_writer_2D.F900000644000175000017500000001410412251360163023424 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! ! ! Coupling writer/reader ! ! Write a 2D array ! to/from a file or from/to another coupling code using DataSpaces/ADIOS ! ! npx * npy processes write a 2D array, where each process writes an ! ldx * ldy piece with filling with its rank as real*8 value ! ! Data written ! xy 2D array with block,block decomp ! ! All data are real*8 type ! ! (c) Oak Ridge National Laboratory, 2009 ! Author: Norbert Podhorszki ! module coupling_writer_2D_comm ! arguments integer :: npx, npy, npz ! # of processors in x-y-z direction integer :: ldx, ldy, ldz ! size of array per processor integer :: timesteps ! number of timesteps to run integer :: nproc ! number of processors real*8, dimension(:,:), allocatable :: xy ! Offsets and sizes integer :: ox, oy integer :: gdx, gdy ! MPI variables integer :: group_comm integer :: rank integer :: ierr ! ADIOS variables character (len=200) :: group !character (len=6) :: nprocstr integer*8 :: adios_handle, adios_totalsize, adios_groupsize, adios_buf_size integer :: adios_err ! actual timestep integer :: ts end module coupling_writer_2D_comm program coupling use coupling_writer_2D_comm use adios_write_mod implicit none include 'mpif.h' integer :: t, key, color call MPI_Init (ierr) call MPI_Barrier(MPI_COMM_WORLD, ierr) call MPI_Comm_rank(MPI_COMM_WORLD, key, ierr) ! Split MPI_COMM_WORLD for MPMD execution color = 1 call MPI_Comm_split(MPI_COMM_WORLD, color, key, group_comm, ierr) call MPI_Comm_rank (group_comm, rank, ierr) call MPI_Comm_size (group_comm, nproc , ierr) call adios_init ("coupling_writer_2D.xml", group_comm, ierr) !call MPI_Barrier (group_comm, ierr) call processArgs() if (rank == 0) then print '(" Process number : ",i0," x ",i0)', npx,npy print '(" Array size per process: ",i0," x ",i0)', ldx,ldy if (nproc .ne. npx*npy) then print '(" Error: Number of processors ",i0,"does not match N*M=",i0)', nproc, npx*npy call exit(1) endif endif !write (*,*) 'rank ', rank, "init completed" !write (nprocstr,'(i0)') nproc ! Calculate global size call allocateLocalArrays() !call sleep(60) do ts=1,timesteps call generateLocalArrays() call writeArrays() call MPI_Barrier (group_comm, ierr) !print '("rank=",i0," goes to sleep after step ",i0)', rank, ts if (ts < timesteps) call sleep(2) !print '("rank=",i0," woke up")', rank enddo ! Terminate call MPI_Barrier (group_comm, ierr) call adios_finalize (rank, adios_err) call MPI_Finalize (ierr) end program coupling !!*************************** subroutine allocateLocalArrays() use coupling_writer_2D_comm implicit none integer :: posx, posy, posz ! position index in the array integer :: i,j,k !! 2D array with block,block decomposition posx = mod(rank, npx) ! 1st dim easy: 0, npx, 2npx... are in the same X position posy = rank/npx ! 2nd dim: npx processes belong into one dim ox = posx * ldx oy = posy * ldy gdx = npx * ldx gdy = npy * ldy print '("rank=",i0,": 2D array pos: ",i0,",",i0," offset: ",i0,",",i0)', & rank, posx, posy, ox, oy allocate( xy(1:ldx, 1:ldy) ) end subroutine allocateLocalArrays !!*************************** subroutine generateLocalArrays() use coupling_writer_2D_comm implicit none print '("rank=",i0," set matrix to ",f6.2)', rank, 1.0*rank+0.01*ts xy = 1.0*rank + 0.01*ts !xy = 1.0*rank + 1.0*ts end subroutine generateLocalArrays !!*************************** subroutine writeArrays() use coupling_writer_2D_comm use adios_write_mod implicit none character(len=256) :: fn ! Write out data using ADIOS write (fn,'("writer.bp")') if (rank == 0) print *, " Output file: "//trim(fn) if (ts == 1) then call adios_open (adios_handle, "writer2D", fn, "w", group_comm, adios_err) else call adios_open (adios_handle, "writer2D", fn, "a", group_comm, adios_err) endif #include "gwrite_writer2D.fh" ! start streaming from buffer to disk call adios_close (adios_handle, adios_err) print '("rank=",i0,": ---------------------- write completed ----------------------")', rank end subroutine writeArrays !!*************************** subroutine usage() print *, "Usage: coupling_writer_2D N M nx ny [timesteps]" print *, "N: number of processes in X dimension" print *, "M: number of processes in Y dimension" print *, "nx: local array size in X dimension per processor" print *, "ny: local array size in Y dimension per processor" print *, "timesteps: how many times to write data" end subroutine usage !!*************************** subroutine processArgs() use coupling_writer_2D_comm #ifndef __GFORTRAN__ #ifndef __GNUC__ interface integer function iargc() end function iargc end interface #endif #endif character(len=256) :: npx_str, npy_str, npz_str, ldx_str, ldy_str, ldz_str, ts_str integer :: numargs !! process arguments numargs = iargc() !print *,"Number of arguments:",numargs if ( numargs < 4 ) then call usage() call exit(1) endif call getarg(1, npx_str) call getarg(2, npy_str) !call getarg(4, npz_str) read (npx_str,'(i5)') npx read (npy_str,'(i5)') npy !read (npz_str,'(i5)') npz call getarg(3, ldx_str) call getarg(4, ldy_str) !call getarg(7, ldz_str) read (ldx_str,'(i6)') ldx read (ldy_str,'(i6)') ldy !read (ldz_str,'(i6)') ldz if ( numargs == 5 ) then call getarg(5, ts_str) read (ts_str,'(i6)') timesteps else timesteps = 1 endif end subroutine processArgs adios-1.5.0/examples/coupling/Makefile0000644000175000017500000000242012251360163021041 0ustar amckinstryamckinstry## MPIF90 SETTINGS FC=mpif90 FFLAGS=-g ## FTN SETTINGS #FC=ftn #FFLAGS = -O3 #BG/P IBM compiler #FC=mpixlf90 #FFLAGS=-O0 -qarch=450 -qtune=450 #TARGET=gnu TARGET=pgi ## Set ADIOS_DIR here or before doing make override ADIOS_DIR:=/ccs/proj/e2e/pnorbert/ADIOS/sith.pgi override ADIOS_INC:=` ${ADIOS_DIR}/bin/adios_config -c -f` override ADIOS_FLIB:=`${ADIOS_DIR}/bin/adios_config -l -f` override GPP = ${ADIOS_DIR}/bin/gpp.py default: coupling_writer_2D coupling_reader_2D all: default coupling_writer_2D.o : coupling_writer_2D.F90 gwrite_writer2D.fh ${FC} -g -c ${ADIOS_INC} coupling_writer_2D.F90 $< coupling_writer_2D: coupling_writer_2D.o gwrite_writer2D.fh ${FC} -g -o coupling_writer_2D coupling_writer_2D.o ${ADIOS_FLIB} gwrite_writer2D.fh: coupling_writer_2D.xml ${GPP} coupling_writer_2D.xml coupling_reader_2D.o : coupling_reader_2D.F90 gwrite_reader2D.fh ${FC} -g -c ${ADIOS_INC} coupling_reader_2D.F90 $< coupling_reader_2D: coupling_reader_2D.o gwrite_reader2D.fh ${FC} -g -o coupling_reader_2D coupling_reader_2D.o ${ADIOS_FLIB} gwrite_reader2D.fh: coupling_reader_2D.xml ${GPP} coupling_reader_2D.xml clean: rm -f *.o *.mod *.fh core.* rm -f coupling_writer_2D coupling_reader_2D distclean: clean rm -f log.* dataspaces.conf conf srv.lck *.bp adios-1.5.0/examples/staging/0000755000175000017500000000000012251360163017217 5ustar amckinstryamckinstryadios-1.5.0/examples/staging/stage_write/0000755000175000017500000000000012251360163021534 5ustar amckinstryamckinstryadios-1.5.0/examples/staging/stage_write/stage_write.c0000644000175000017500000003275512251360163024231 0ustar amckinstryamckinstry/* * Staged write of ADIOS files using a staging method * * Copyright (c) 2008 - 2012. UT-BATTELLE, LLC. All rights reserved. */ /* Staged write example code. Assumptions: - one output step fits into the memory of the staged writer. Actually, this means, even more memory is needed than the size of output. We need to read each variable while also buffering all of them for output. - output steps contain the same variable set (no changes in variables) - attributes are the same for all steps (will write only once here) */ #include #include #include #include #include #include #include #include #include "mpi.h" #include "utils.h" #include "adios.h" #include "adios_read.h" #include "adios_error.h" //static enum ADIOS_READ_METHOD read_method = ADIOS_READ_METHOD_BP; static enum ADIOS_READ_METHOD read_method = ADIOS_READ_METHOD_DATASPACES; // Input arguments char infilename[256]; // File/stream to read char outfilename[256]; // File to write char methodname[16]; // ADIOS write method char methodparams[256]; // ADIOS write method static const int max_read_buffer_size = 1024*1024*1024; static const int max_write_buffer_size = 1024*1024*1024; static int timeout_sec = 600; // will stop if no data found for this time (-1: never stop) // Global variables int rank, numproc; MPI_Comm comm; ADIOS_FILE *f; // stream for reading int64_t fh; // ADIOS output file handle int64_t gh; // ADIOS group for output definitions uint64_t write_total; // data size written by one processor uint64_t largest_block; // the largest variable block one process reads char ** group_namelist; // name of ADIOS group char *readbuf; // read buffer int decomp_values[10]; int process_metadata(int step); int read_write(int step); void printUsage(char *prgname) { print0("Usage: %s input output method \"params\" \n" " input Input stream path\n" " output Output file path\n" " method ADIOS method to write with\n" " params Write method parameters (in quotes; comma-separated list)\n" " list of numbers e.g. 32 8 4\n" " Decomposition values in each dimension of an array\n" " The product of these number must be less then the number\n" " of processes. Processes whose rank is higher than the\n" " product, will not write anything.\n" " Arrays with less dimensions than the number of values,\n" " will be decomposed with using the appropriate number of\n" " values.\n" ,prgname); } int processArgs(int argc, char ** argv) { int i, j, nd, prod; char *end; if (argc < 5) { printUsage (argv[0]); return 1; } strncpy(infilename, argv[1], sizeof(infilename)); strncpy(outfilename, argv[2], sizeof(outfilename)); strncpy(methodname, argv[3], sizeof(methodname)); strncpy(methodparams, argv[4], sizeof(methodparams)); nd = 0; j = 5; while (argc > j && j<11) { // get max 6 dimensions errno = 0; decomp_values[nd] = strtol(argv[j], &end, 10); if (errno || (end != 0 && *end != '\0')) { print0 ("ERROR: Invalid decomposition number in argument %d: '%s'\n", j, argv[j]); printUsage(argv[0]); return 1; } nd++; j++; } if (argc > j) { print0 ("ERROR: Only 6 decompositon arguments are supported\n"); return 1; } for (i=nd; i<10; i++) { decomp_values[i] = 1; } prod = 1; for (i=0; i numproc) { print0 ("ERROR: Product of decomposition numbers %d > number of processes %d\n", prod, numproc); printUsage(argv[0]); return 1; } return 0; } int main (int argc, char ** argv) { int err; int steps = 0, curr_step; int retval = 0; MPI_Init (&argc, &argv); comm = MPI_COMM_WORLD; MPI_Comm_rank (comm, &rank); MPI_Comm_size (comm, &numproc); if (processArgs(argc, argv)) { return 1; } print0("Input stream = %s\n", infilename); print0("Output stream = %s\n", outfilename); print0("Method = %s\n", methodname); print0("Method parameters = %s\n", methodparams); err = adios_read_init_method(read_method, comm, "max_chunk_size=100; " "app_id =32767; \n" "verbose= 3;" "poll_interval = 100;" ); if (!err) { print0 ("%s\n", adios_errmsg()); } adios_init_noxml(comm); print0 ("Waiting to open stream %s...\n", infilename); f = adios_read_open_stream (infilename, read_method, comm, ADIOS_LOCKMODE_ALL, timeout_sec); if (adios_errno == err_file_not_found) { print ("rank %d: Stream not found after waiting %d seconds: %s\n", rank, timeout_sec, adios_errmsg()); retval = adios_errno; } else if (adios_errno == err_end_of_stream) { print ("rank %d: Stream terminated before open. %s\n", rank, adios_errmsg()); retval = adios_errno; } else if (f == NULL) { print ("rank %d: Error at opening stream: %s\n", rank, adios_errmsg()); retval = adios_errno; } else { // process steps here... if (f->current_step != 0) { print ("rank %d: WARNING: First %d steps were missed by open.\n", rank, f->current_step); } while (adios_errno != err_end_of_stream) { steps++; // start counting from 1 print0 ("File info:\n"); print0 (" current step: %d\n", f->current_step); print0 (" last step: %d\n", f->last_step); print0 (" # of variables: %d:\n", f->nvars); retval = process_metadata(steps); if (retval) break; retval = read_write(steps); if (retval) break; // advance to 1) next available step with 2) blocking wait curr_step = f->current_step; // save for final bye print adios_advance_step (f, 0, timeout_sec); if (adios_errno == err_step_notready) { print ("rank %d: No new step arrived within the timeout. Quit. %s\n", rank, adios_errmsg()); break; // quit while loop } else if (f->current_step != curr_step+1) { print ("rank %d: WARNING: steps %d..%d were missed when advancing.\n", rank, curr_step+1, f->current_step-1); } } adios_read_close (f); } print0 ("Bye after processing %d steps\n", steps); adios_read_finalize_method (read_method); adios_finalize (rank); MPI_Finalize (); return retval; } typedef struct { ADIOS_VARINFO * v; uint64_t start[10]; uint64_t count[10]; uint64_t writesize; // size of subset this process writes, 0: do not write } VarInfo; VarInfo * varinfo; int process_metadata(int step) { int retval = 0; int i, j; char gdims[256], ldims[256], offs[256]; uint64_t sum_count; ADIOS_VARINFO *v; // shortcut pointer if (step > 1) { // right now, nothing to prepare in later steps print("Step %d. return immediately\n",step); return 0; } /* First step processing */ // get groupname of stream, then declare for output adios_get_grouplist(f, &group_namelist); print0("Group name is %s\n", group_namelist[0]); adios_declare_group(&gh,group_namelist[0],"",adios_flag_yes); varinfo = (VarInfo *) malloc (sizeof(VarInfo) * f->nvars); if (!varinfo) { print("ERROR: rank %d cannot allocate %lu bytes\n", rank, sizeof(VarInfo)*f->nvars); return 1; } write_total = 0; largest_block = 0; // Decompose each variable and calculate output buffer size for (i=0; invars; i++) { print0 ("Get info on variable %d: %s\n", i, f->var_namelist[i]); varinfo[i].v = adios_inq_var_byid (f, i); v = varinfo[i].v; // just a shortcut if (v == NULL) { print ("rank %d: ERROR: Variable %s inquiry failed: %s\n", rank, f->var_namelist[i], adios_errmsg()); return 1; } // print variable type and dimensions print0(" %-9s %s", adios_type_to_string(v->type), f->var_namelist[i]); if (v->ndim > 0) { print0("[%llu", v->dims[0]); for (j = 1; j < v->ndim; j++) print0(", %llu", v->dims[j]); print0("] :\n"); } else { print0("\tscalar\n"); } // determine subset we will write decompose (numproc, rank, v->ndim, v->dims, decomp_values, varinfo[i].count, varinfo[i].start, &sum_count); varinfo[i].writesize = sum_count * adios_type_size(v->type, v->value); if (varinfo[i].writesize != 0) { write_total += varinfo[i].writesize; if (largest_block < varinfo[i].writesize) largest_block = varinfo[i].writesize; } } // determine output buffer size and allocate it uint64_t bufsize = write_total + f->nvars*128 + f->nattrs*32 + 1024; if (bufsize > max_write_buffer_size) { print ("ERROR: rank %d: write buffer size needs to hold about %llu bytes, " "but max is set to %d\n", rank, bufsize, max_write_buffer_size); return 1; } print0 ("Rank %d: allocate %llu MB for output buffer\n", rank, bufsize/1048576+1); adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, bufsize/1048576+1); // allocate read buffer bufsize = largest_block + 128; if (bufsize > max_read_buffer_size) { print ("ERROR: rank %d: read buffer size needs to hold at least %llu bytes, " "but max is set to %d\n", rank, bufsize, max_read_buffer_size); return 1; } print0 ("Rank %d: allocate %g MB for input buffer\n", rank, (double)bufsize/1048576.0); readbuf = (char *) malloc ((size_t)bufsize); if (!readbuf) { print ("ERROR: rank %d: cannot allocate %llu bytes for read buffer\n", rank, bufsize); return 1; } // Select output method adios_select_method (gh, methodname, methodparams, ""); // Define variables for output based on decomposition char *vpath, *vname; for (i=0; invars; i++) { v = varinfo[i].v; if (varinfo[i].writesize != 0) { // define variable for ADIOS writes getbasename (f->var_namelist[i], &vpath, &vname); if (v->ndim > 0) { int64s_to_str (v->ndim, v->dims, gdims); int64s_to_str (v->ndim, varinfo[i].count, ldims); int64s_to_str (v->ndim, varinfo[i].start, offs); print ("rank %d: Define variable path=\"%s\" name=\"%s\" " "gdims=%s ldims=%s offs=%s\n", rank, vpath, vname, gdims, ldims, offs); adios_define_var (gh, vname, vpath, v->type, ldims, gdims, offs); } else { print ("rank %d: Define scalar path=\"%s\" name=\"%s\"\n", rank, vpath, vname); adios_define_var (gh, vname, vpath, v->type, "", "", ""); } free(vpath); free(vname); } } if (rank == 0) { // get and define attributes enum ADIOS_DATATYPES attr_type; void * attr_value; char * attr_value_str; int attr_size; for (i=0; inattrs; i++) { adios_get_attr_byid (f, i, &attr_type, &attr_size, &attr_value); attr_value_str = (char *)value_to_string (attr_type, attr_value, 0); adios_define_attribute (gh, f->attr_namelist[i], "", attr_type, attr_value_str, ""); free (attr_value); } } return retval; } int read_write(int step) { int retval = 0; int i; uint64_t total_size; // open output file adios_open (&fh, group_namelist[0], outfilename, (step==1 ? "w" : "a"), comm); adios_group_size (fh, write_total, &total_size); for (i=0; invars; i++) { if (varinfo[i].writesize != 0) { // read variable subset print ("rank %d: Read variable %d: %s\n", rank, i, f->var_namelist[i]); ADIOS_SELECTION *sel = adios_selection_boundingbox (varinfo[i].v->ndim, varinfo[i].start, varinfo[i].count); adios_schedule_read_byid (f, sel, i, 1, 1, readbuf); adios_perform_reads (f, 1); // write (buffer) variable print ("rank %d: Write variable %d: %s\n", rank, i, f->var_namelist[i]); adios_write(fh, f->var_namelist[i], readbuf); } } adios_release_step (f); // this step is no longer needed to be locked in staging area adios_close (fh); // write out output buffer to file return retval; } adios-1.5.0/examples/staging/stage_write/test_decompose.c0000644000175000017500000000712112251360163024716 0ustar amckinstryamckinstry#include #include #include #include #include #include "decompose.h" #include "utils.h" int ndim, nproc; uint64_t *dims; int *np; int rank; // unused, required by print0 in utils.h void printUsage(char *prgname) { print0("Usage: %s N M dim1 ... dimN np1 ... npN\n" " N Number of dimensions\n" " M Number of processes\n" " dim1..dimN Dimensions\n" " np1..npN list of decomposition numbers e.g. 32 8 4\n" " Decomposition values in each dimension of an array\n" " The product of these number must be less then the number\n" " of processes. Processes whose rank is higher than the\n" " product, will not write anything.\n" " Arrays with less dimensions than the number of values,\n" " will be decomposed with using the appropriate number of\n" " values.\n" ,prgname); } int processArgs(int argc, char ** argv) { int i, j, nd, prod; char *end; if (argc < 3) { printUsage (argv[0]); return 1; } errno = 0; ndim = strtol(argv[1], &end, 10); if (errno || (end != 0 && *end != '\0')) { print0 ("ERROR: Invalid decomposition number in argument 1: '%s'\n", argv[j]); printUsage(argv[0]); return 1; } errno = 0; nproc = strtol(argv[2], &end, 10); if (errno || (end != 0 && *end != '\0')) { print0 ("ERROR: Invalid decomposition number in argument 2: '%s'\n", argv[j]); printUsage(argv[0]); return 1; } if (argc != 3+2*ndim) { print0 ("ERROR: Expected number of arguments is %d\n", 2*ndim+2); printUsage (argv[0]); return 1; } dims = (uint64_t*) malloc (sizeof(uint64_t) * ndim); np = (int*) malloc (sizeof(int) * ndim); nd = 0; j = 3; for (nd=0; nd < ndim; nd++) { // get ndim dimensions errno = 0; dims[nd] = strtoll(argv[j], &end, 10); if (errno || (end != 0 && *end != '\0')) { print0 ("ERROR: Invalid decomposition number in argument %d: '%s'\n", j, argv[j]); printUsage(argv[0]); return 1; } j++; } for (nd=0; nd < ndim; nd++) { // get ndim decomposition values errno = 0; np[nd] = strtoll(argv[j], &end, 10); if (errno || (end != 0 && *end != '\0')) { print0 ("ERROR: Invalid decomposition number in argument %d: '%s'\n", j, argv[j]); printUsage(argv[0]); return 1; } j++; } prod = 1; for (i=0; i nproc) { print0 ("ERROR: Product of decomposition numbers %d > number of processes %d\n", prod, nproc); printUsage(argv[0]); return 1; } return 0; } int main (int argc, char ** argv) { char ints[256]; uint64_t count[10], start[10], totalsize; int i, nd; if (processArgs(argc, argv)) return 1; print("# of proc: %d\n", nproc); ints_to_str(ndim, np, ints); print("decomposition: %s\n", ints); for (nd = ndim; nd > 0; nd--) { int64s_to_str(nd, dims, ints); print("--------------------------------------------\n"); print("%d dimensions: %s\n", nd, ints); for (i=0; i dataspaces.conf # Run DataSpaces echo "-- Start DataSpaces server "$SERVER" on $STAGINGPROC PEs, -s$STAGINGPROC -c$PROCALL" mpirun -np $STAGINGPROC $SERVER -s$STAGINGPROC -c$PROCALL &> log.server & ## Give some time for the servers to load and startup sleep 1s while [ ! -f conf ]; do echo "-- File conf is not yet available from server. Sleep more" sleep 1s done sleep 3s # wait server to fill up the conf file ## Export the main server config to the environment while read line; do export set "${line}" done < conf echo "-- DataSpaces IDs: P2TNID = $P2TNID P2TPID = $P2TPID" # Start GENARRAY echo "-- Start GENARRAY on $WRITEPROC PEs" mpirun -np $WRITEPROC ./genarray_stream genarray.bp $WRITEPROC 1 1 16 32 64 5 10 >& log.genarray & # Start STAGE_WRITE echo "-- Start STAGE_WRITE on $READPROC PEs" mpirun -np $READPROC ./stage_write genarray.bp staged.bp MPI \"\" $READPROC 1 1 >& log.stage_write & echo "-- Wait until all applications exit. Run ./check.sh to see status" wait rm -f conf adios-1.5.0/examples/staging/stage_write/README0000644000175000017500000000535012251360163022417 0ustar amckinstryamckinstrySTAGE WRITE CODE This code can be used to perform your disk I/O after sending the data to a staging area. It can also be used to read in your file with a certain number of processors with a new decomposition and write out the data with the new layout. BUILD ===== Edit the Makefile for your needs. This example is not built automatically with ADIOS. You need to install ADIOS first, then use the installation to build this code. The read method in this code is not set by argument but is in the source. Set it for your target usage. See variable "read_method", set around line 32. USAGE ===== The 'job' file provides an example how to launch 3 applications within one job. Besides your own app, first you have to prepare and start the staging server (DataSpaces in the job script). Then you can run both your app and this stage writer code. Parameters to stage write: E.g. genarray.bp staged.bp MPI \"\" $READPROC 1 1 input Input stream path output Output file path method ADIOS method to write with params Write method parameters (in quotes; comma-separated list) list of numbers e.g. 32 8 4 Decomposition values in each dimension of an array The product of these number must be less then the number of processes. Processes whose rank is higher than the product, will not read/write anything. Arrays with less dimensions than the number of values, will be decomposed with using the numbers from the beginning. NOTES ===== 1. The job example is set for the ./genarray_stream.F90 writing application, which is not built automatically. Use the Makefile.genarray_stream to build it. WARNING: the method used in the genarray_stream.xml should match the reading method in stage_write.c. That is, if you use a file method (e.g. MPI) to write to a file, the stage_write should use the BP reading method to be able to process it. Then you don't need to run the dataspaces server in the job either. Modify both places to use DataSpaces for staging. 2. The writing application must append new steps into the same file (name). A stream in ADIOS staging cannot consist of multiple file names but of a single "file" with multiple steps in it. E.g. we had to modify the tests/genarray/genarray.F90 to append to a file named "genarray.bp". See ./genarray_stream.F90, which is not built automatically. 3. You probably end up modifying this code. For instance, you might find that the desired decomposition cannot be expressed (e.g. you have arrays with various dimensions and you want decomposition different from them), or you want to pass the output file name within the stream dataset itself, or you want to do something with the data before writing it out. adios-1.5.0/examples/staging/stage_write/decompose.h0000644000175000017500000000065412251360163023670 0ustar amckinstryamckinstry#ifndef __DECOMPOSE_H_ #define __DECOMPOSE_H_ #include /* Decompose a variable among several processors count/start: array of size/offset in each dimension writesize: sum (count) */ void decompose (int numproc, int rank, int ndim, uint64_t *dims, int *decomp_values, /*OUT*/ uint64_t *count, /*OUT*/ uint64_t *start, /*OUT*/ uint64_t *writesize); #endif adios-1.5.0/examples/staging/stage_write/utils.h0000644000175000017500000000306612251360163023052 0ustar amckinstryamckinstry/* * Staged write of ADIOS files using a staging method * * Copyright (c) 2008 - 2012. UT-BATTELLE, LLC. All rights reserved. */ #ifndef __UTILS_H_ #define __UTILS_H_ #include #include #include "adios_types.h" #define MAX3(a,b,c) (a > b ? (a > c ? a : c) : (b > c ? b : c)) #define print(...) fprintf (stderr, __VA_ARGS__); #define print0(...) if (!rank) fprintf (stderr, __VA_ARGS__); #define bool int #define false 0 #define true 1 void ints_to_str (int n, int *values, char *s); void int64s_to_str (int n, uint64_t *values, char *s); const char * value_to_string (enum ADIOS_DATATYPES type, void * data, int idx); /* Get basename and dirname from path. Allocates memory for both strings, they should be freed after use. May return NULL for dirname. "" for dirname means path is like /file. dir1/dir2/file dir=dir1/dir2 base=file dir1/file dir=dir1 base=file file dir=null base=file /file dir="" base=file dir1/ dir=null base=dir1 / dir="" base="" "" dir=null base="" */ void getbasename (char *path, char **dirname, char **basename); bool file_exists (char *path); // true if stat(path) succeeds, // i.e. it is an accessible item on file system bool is_dir (char *path); // true if path is a directory (and stat() succeeds on it) /** mkdir -r * return: 0 on success, otherwise mkdir() syscall's return value */ int createdir_recursive( char* path); #endif adios-1.5.0/examples/staging/stage_write/decompose_block.c0000644000175000017500000000522412251360163025033 0ustar amckinstryamckinstry/* Decompose arrays in all dimensions (block), evenly among the processes. Does not care how small the blocks become, so small arrays with many writers may suffer with this approach. */ #include "decompose.h" #include "utils.h" void decompose (int numproc, int rank, int ndim, uint64_t *dims, int *np, // number of processes in each dimension /*OUT*/ uint64_t *count, /*OUT*/ uint64_t *start, /*OUT*/ uint64_t *writesize) { int i; int pos[10]; // rank's position in each dimensions if (ndim == 0) { // scalars -> rank 0 writes them if (rank == 0) *writesize = 1; else *writesize = 0; return; } /* calculate this process' position in the n-dim space 0 1 2 3 4 5 6 7 8 for 1D: posx = rank/1 ! 1st dim: 0, 1, 2...,rank-1 are in the same X position for 2D: posx = mod(rank, npx) ! 1st dim: 0, npx, 2npx... are in the same X position posy = rank/(npx) ! 2nd dim: npx processes belong into one dim for 3D: posx = mod(rank, npx) ! 1st dim: 0, npx, 2npx... are in the same X position posy = mod(rank/npx, npy) ! 2nd dim: (0, npx-1) have the same dim (so divide with npx first) posz = rank/(npx*npy) ! 3rd dim: npx*npy processes belong into one dim */ int nps = 1; for (i=0; i= np[ndim-1]) { print("rank %d: position in %d-D space = %s ---> Out of bound process\n", rank, ndim, ints); } else { print("rank %d: position in %d-D space = %s\n", rank, ndim, ints); } /* Decompose each dimension according to the position */ *writesize = 1; for (i=0; i= np[ndim-1]) { // this process gets nothing to read count[i] = 0; start[i] = 0; } else { count[i] = dims[i] / np[i]; start[i] = count[i] * pos[i]; if (pos[i] == np[i]-1) { // last one in the dimension may need to read more than the rest count[i] = dims[i] - count[i]*(np[i]-1); } } *writesize *= count[i]; } int64s_to_str(ndim, count, ints); print("rank %d: ldims in %d-D space = %s\n", rank, ndim, ints); int64s_to_str(ndim, start, ints); print("rank %d: offsets in %d-D space = %s\n", rank, ndim, ints); } adios-1.5.0/examples/staging/stage_write/decompose_single.c0000644000175000017500000000111512251360163025215 0ustar amckinstryamckinstry#include "decompose.h" /* Silly decompose: let process 0 do everything */ void decompose (int numproc, int rank, int ndim, uint64_t *dims, int *decomp_values, /*OUT*/ uint64_t *count, /*OUT*/ uint64_t *start, /*OUT*/ uint64_t *writesize) { int i; if (rank == 0) *writesize = 1; else *writesize = 0; for (i=0; i.bp" print '(" Process number : ",i0," x ",i0," x ",i0)', npx,npy,npz if (common_size) then print '(" Array size per process: ",i0," x ",i0," x ",i0)', ndx,ndy,ndz else print *," Array sizes per processes taken from file: "//trim(inputfile) endif if (nproc .ne. npx*npy*npz) then print '(" Error: Number of processors ",i0,"does not match ndx*ndy*ndz=",i0)', nproc, npx*npy*npz call exit(1) endif endif !write (*,*) 'rank ', rank, "init completed" !write (nprocstr,'(i0)') nproc call determineLocalSize() call determineGlobalSize() call determineOffsets() call generateLocalArray() call writeArray() ! Terminate call MPI_Barrier (app_comm, ierr) call adios_finalize (rank, ierr) call MPI_Barrier (MPI_COMM_WORLD, ierr) print *,"Writer calls MPI_Finalize" call MPI_Finalize (ierr) print *,"Exit writer code " end program genarray !!*************************** subroutine determineLocalSize() use genarray_stream_comm implicit none if (common_size) then ! we are done since we know them from argument else ! have to read from file print *, "To be implemented: read sizes from file 1" call exit(2) endif end subroutine determineLocalSize !!*************************** subroutine determineGlobalSize() use genarray_stream_comm implicit none if (common_size) then gndx = npx * ndx gndy = npy * ndy gndz = npz * ndz else ! have to read from file print *, "To be implemented: read sizes from file 2" call exit(2) endif end subroutine determineGlobalSize !!*************************** subroutine determineOffsets() use genarray_stream_comm implicit none integer :: posx, posy, posz ! position index in the array if (common_size) then posx = mod(rank, npx) ! 1st dim easy: 0, npx, 2npx... are in the same X position posy = mod(rank/npx, npy) ! 2nd dim: (0, npx-1) have the same dim (so divide with npx first) posz = rank/(npx*npy) ! 3rd dim: npx*npy processes belong into one dim offx = posx * ndx offy = posy * ndy offz = posz * ndz else ! have to read from file print *, "To be implemented: read sizes from file 3" call exit(2) endif end subroutine determineOffsets !!*************************** subroutine generateLocalArray() use genarray_stream_comm implicit none integer :: i,j,k allocate( double_xyz(1:ndx, 1:ndy, 1:ndz) ) do k=1,ndz do j=1,ndy do i=1,ndx double_xyz(i,j,k) = 1.0d0*rank enddo enddo enddo end subroutine generateLocalArray !!*************************** subroutine writeArray() use genarray_stream_comm implicit none integer*8 adios_handle, adios_groupsize integer adios_err integer :: tstep character(2) :: mode = "w" include 'mpif.h' if (rank==0) print '("Writing: "," filename ",14x,"size(GB)",4x,"io_time(sec)",6x,"GB/s")' do tstep=1,timesteps if (tstep > 1) mode = "a" double_xyz = tstep + double_xyz call MPI_BARRIER(app_comm, adios_err) io_start_time = MPI_WTIME() group = "genarray" call adios_open (adios_handle, group, outputfile, mode, app_comm, adios_err) adios_groupsize = 13*4 + 9*8*ndx*ndy*ndz call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) call adios_write (adios_handle, "gndx", gndx, adios_err) call adios_write (adios_handle, "gndy", gndy, adios_err) call adios_write (adios_handle, "gndz", gndz, adios_err) call adios_write (adios_handle, "nproc", nproc, adios_err) call adios_write (adios_handle, "npx", npx, adios_err) call adios_write (adios_handle, "npy", npy, adios_err) call adios_write (adios_handle, "npz", npz, adios_err) call adios_write (adios_handle, "offx", offx, adios_err) call adios_write (adios_handle, "offy", offy, adios_err) call adios_write (adios_handle, "offz", offz, adios_err) call adios_write (adios_handle, "ndx", ndx, adios_err) call adios_write (adios_handle, "ndy", ndy, adios_err) call adios_write (adios_handle, "ndz", ndz, adios_err) call adios_write (adios_handle, "var1", double_xyz, adios_err) call adios_write (adios_handle, "var2", double_xyz, adios_err) call adios_write (adios_handle, "var3", double_xyz, adios_err) call adios_write (adios_handle, "var4", double_xyz, adios_err) call adios_write (adios_handle, "var5", double_xyz, adios_err) call adios_write (adios_handle, "var6", double_xyz, adios_err) call adios_write (adios_handle, "var7", double_xyz, adios_err) call adios_write (adios_handle, "var8", double_xyz, adios_err) call adios_write (adios_handle, "var9", double_xyz, adios_err) call adios_close (adios_handle, adios_err) call MPI_BARRIER(app_comm ,adios_err) io_end_time = MPI_WTIME() io_total_time = io_end_time - io_start_time sz = adios_totalsize * nproc/1024.d0/1024.d0/1024.d0 !size in GB gbs = sz/io_total_time if (rank==0) print '("Writing: ",a20,d12.2,2x,d12.2,2x,d12.3)', outputfile,sz,io_total_time,gbs if (tstep^!\%|%!zIšI!˜m¸m!¶‘Ö‘ß genarrayoffy/aux!b‚!€% %!žI¾I!¼mÜm!Ú‘ú‘ß genarrayoffz/aux!†¦!¤%Ä%!ÂIâI!àmn!þ‘’Þ genarrayndx/aux!ªÉ !È%ç% !æIJ !n#n !"’A’ Þ genarrayndy/aux!Íì !ë% & ! J(J !'nFn !E’d’ Þ genarrayndz/aux!ð !&-& !,JKJ !Jnin !h’‡’ genarrayvar1/var“×H _ ð?ð?è@@@@“1&õ&H _ @@èp§@”Á@“OJKH _ @@èp·@”á@“mn1oH _ $@$@èˆÃ@jø@“‹’O“H _ .@.@èLÍ@@w Agenarrayvar2/var“"Û"H _ ð?ð?è@@@@“5FùFH _ @@èp§@”Á@“SjkH _ @@èp·@”á@“qŽ5H _ $@$@èˆÃ@jø@“²S³H _ .@.@èLÍ@@w Agenarrayvar3/var“BßBH _ ð?ð?è@@@@“9fýfH _ @@èp§@”Á@“WŠ‹H _ @@èp·@”á@“u®9¯H _ $@$@èˆÃ@jø@““ÒWÓH _ .@.@èLÍ@@w Agenarrayvar4/var“bãbH _ ð?ð?è@@@@“=†‡H _ @@èp§@”Á@“[ª«H _ @@èp·@”á@“yÎ=ÏH _ $@$@èˆÃ@jø@“—ò[óH _ .@.@èLÍ@@w Agenarrayvar5/var“#‚ç‚H _ ð?ð?è@@@@“A¦§H _ @@èp§@”Á@“_Ê#ËH _ @@èp·@”á@“}îAïH _ $@$@èˆÃ@jø@“›_H _ .@.@èLÍ@@w Agenarrayvar6/var“'¢ë¢H _ ð?ð?è@@@@“EÆ ÇH _ @@èp§@”Á@“cê'ëH _ @@èp·@”á@“EH _ $@$@èˆÃ@jø@“Ÿ2c3H _ .@.@èLÍ@@w Agenarrayvar7/var“+ÂïÂH _ ð?ð?è@@@@“Iæ çH _ @@èp§@”Á@“g + H _ @@èp·@”á@“….I/H _ $@$@èˆÃ@jø@“£RgSH _ .@.@èLÍ@@w Agenarrayvar8/var“/âóâH _ ð?ð?è@@@@“MH _ @@èp§@”Á@“k*/+H _ @@èp·@”á@“‰NMOH _ $@$@èˆÃ@jø@“§rksH _ .@.@èLÍ@@w Agenarrayvar9/var“3÷H _ ð?ð?è@@@@“Q&'H _ @@èp§@”Á@“oJ3KH _ @@èp·@”á@“nQoH _ $@$@èˆÃ@jø@“«’o“H _ .@.@èLÍ@@w AE 9genarray/info/nproc/description 0A"y"Number of writers0_F—FNumber of writers0}jµjNumber of writers0›ŽÓŽNumber of writers0¹²ñ²Number of writers‘genarray/info/npx/description By"Á"#Number of processors in x dimensionB—FßF#Number of processors in x dimensionBµjýj#Number of processors in x dimensionBÓŽ#Number of processors in x dimensionBñ²9³#Number of processors in x dimension‘genarray/info/npy/description BÁ" ##Number of processors in y dimensionBßF'G#Number of processors in y dimensionBýjEk#Number of processors in y dimensionBc#Number of processors in y dimensionB9³³#Number of processors in y dimension‘genarray/info/npz/description B #Q##Number of processors in z dimensionB'GoG#Number of processors in z dimensionBEkk#Number of processors in z dimensionBc«#Number of processors in z dimensionB³ɳ#Number of processors in z dimension~genarray/var/double_xyz/description =Q#š#3D array with 3D decomposition=oG¸G3D array with 3D decomposition=kÖk3D array with 3D decomposition=«ô3D array with 3D decomposition=ɳ´3D array with 3D decomposition÷genarrayversion /__adios__ $š#À#1.5.0$¸GÞG1.5.0$Ökük1.5.0$ô1.5.0$´8´1.5.0ògenarraycreate_time_epoch /__adios__!À#ï#–V·Q!ÞG H–V·Q!ük+l–V·Q!I–V·Q!8´g´–V·Qògenarrayupdate_time_epoch /__adios__!ï#$–V·Q! H #include #include #include #include #include #include "utils.h" void ints_to_str (int n, int *values, char *s) { int i; char v[32]; if (!n) { s[0] = '\0'; return; } sprintf(s,"%d", values[0]); for (i=1; i1) work[strlen(work)-1] = '\0'; ptr = rindex(work, '/'); if (ptr && ptr != work) { // found a / and but not the beginning / of a full path ptr[0] = 0; *dirname = strdup(work); ptr[0] = '/'; *basename = strdup(ptr+1); } else if (ptr == work) { // found / as the first character *dirname = strdup(""); *basename = strdup(ptr+1); } else { *dirname = NULL; //strdup("."); *basename = strdup(work); } free(work); } bool file_exists (char * path) { struct stat sb; int i = stat ( path, &sb ); if ( i == 0 ) /* File found */ return true; return false; } bool is_dir(char *path) { struct stat sb; if ( !stat( path, &sb) ) { if ( sb.st_mode & S_IFDIR ) { //if (verbose) printf("isDir( %s ) = true\n", path); return true; } } /* else { // for whatever reason, stat cannot be retrieved // so just say here, it is not a directory retval = false; }*/ return false; } int createdir_recursive( char* path) { int res; char *dirs, *base; /*printf(" called mkdir %s\n", path);*/ getbasename(path, &dirs, &base); if ( dirs != NULL) { if ( !is_dir(dirs) ) { /*printf(" dirs=%s base=%s\n", dirs, base);*/ res = createdir_recursive(dirs); } else res = 0; free(dirs); if (res) return res; } if (file_exists(path)) res = 0; else res = mkdir(path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); if (res) { if (errno == EEXIST) { print("Concurrency error: createdir %s failed: %s\n", path, strerror(errno)); print("Some other process created this dir already during this function call\n"); res = 0; } else { print("createdir %s failed: %s\n", path, strerror(errno)); } } //else // print("createdir %s succeeded\n", path); free(base); return (res); } adios-1.5.0/examples/staging/stage_write/genarray_stream.xml0000644000175000017500000000533212251360163025444 0ustar amckinstryamckinstry verbose=2 adios-1.5.0/examples/Makefile.in0000644000175000017500000005076012251360163017640 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = examples DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = C Fortran DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @BUILD_WRITE_TRUE@CSUBDIRS = C @BUILD_FORTRAN_TRUE@@BUILD_WRITE_TRUE@FSUBDIRS = Fortran SUBDIRS = $(CSUBDIRS) $(FSUBDIRS) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/Fortran/0000755000175000017500000000000012251360163017176 5ustar amckinstryamckinstryadios-1.5.0/examples/Fortran/Makefile.am0000644000175000017500000000010312251360163021224 0ustar amckinstryamckinstrySUBDIRS=scalars arrays global-array global-array-time #time-index adios-1.5.0/examples/Fortran/scalars/0000755000175000017500000000000012251360163020626 5ustar amckinstryamckinstryadios-1.5.0/examples/Fortran/scalars/Makefile.am0000644000175000017500000000134312251360163022663 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = scalars_write scalars_read scalars_write_SOURCES = scalars_write.F90 scalars_write_LDADD = $(top_builddir)/src/libadiosf.a scalars_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) scalars_write_LDADD += $(ADIOSLIB_LDADD) scalars_read_SOURCES = scalars_read.F90 scalars_read_LDADD = $(top_builddir)/src/libadiosreadf.a scalars_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) scalars_read_LDADD += $(ADIOSREADLIB_LDADD) CLEANFILES = *.bp CC=$(MPICC) EXTRA_DIST = scalars.xml gwrite_scalars.fh gread_scalars.fh job.pbs FC=$(MPIFC) FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ adios-1.5.0/examples/Fortran/scalars/gread_scalars.fh0000644000175000017500000000252412251360163023742 0ustar amckinstryamckinstryadios_groupsize = 0 adios_totalsize = 0 call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) adios_buf_size = 1 call adios_read (adios_handle, "var_byte", v1, adios_buf_size, adios_err) adios_buf_size = 2 call adios_read (adios_handle, "var_short", v2, adios_buf_size, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "var_int", v3, adios_buf_size, adios_err) adios_buf_size = 8 call adios_read (adios_handle, "var_long", v4, adios_buf_size, adios_err) adios_buf_size = 1 call adios_read (adios_handle, "var_ubyte", v5, adios_buf_size, adios_err) adios_buf_size = 2 call adios_read (adios_handle, "var_ushort", v6, adios_buf_size, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "var_uint", v7, adios_buf_size, adios_err) adios_buf_size = 8 call adios_read (adios_handle, "var_ulong", v8, adios_buf_size, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "var_real", v9, adios_buf_size, adios_err) adios_buf_size = 8 call adios_read (adios_handle, "var_double", v10, adios_buf_size, adios_err) adios_buf_size = len(v11) call adios_read (adios_handle, "var_string", v11, adios_buf_size, adios_err) adios_buf_size = 8 call adios_read (adios_handle, "var_complex", v12, adios_buf_size, adios_err) adios_buf_size = 16 call adios_read (adios_handle, "var_double_complex", v13, adios_buf_size, adios_err) adios-1.5.0/examples/Fortran/scalars/gwrite_scalars.fh0000644000175000017500000000222312251360163024155 0ustar amckinstryamckinstryadios_groupsize = 1 & + 2 & + 4 & + 8 & + 1 & + 2 & + 4 & + 8 & + 4 & + 8 & + len_trim(v11) & + 8 & + 16 call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) call adios_write (adios_handle, "var_byte", v1, adios_err) call adios_write (adios_handle, "var_short", v2, adios_err) call adios_write (adios_handle, "var_int", v3, adios_err) call adios_write (adios_handle, "var_long", v4, adios_err) call adios_write (adios_handle, "var_ubyte", v5, adios_err) call adios_write (adios_handle, "var_ushort", v6, adios_err) call adios_write (adios_handle, "var_uint", v7, adios_err) call adios_write (adios_handle, "var_ulong", v8, adios_err) call adios_write (adios_handle, "var_real", v9, adios_err) call adios_write (adios_handle, "var_double", v10, adios_err) call adios_write (adios_handle, "var_string", v11, adios_err) call adios_write (adios_handle, "var_complex", v12, adios_err) call adios_write (adios_handle, "var_double_complex", v13, adios_err) adios-1.5.0/examples/Fortran/scalars/scalars.xml0000644000175000017500000000311412251360163022777 0ustar amckinstryamckinstry adios-1.5.0/examples/Fortran/scalars/README0000644000175000017500000000327612251360163021516 0ustar amckinstryamckinstryThe scalars_write.F90 example shows how to write out scalar variables from a Fortran code. Note that in ADIOS 1.0, a string is a scalar as seen in this example. However, a character() array in Fortran can be written out as a byte array too. Note that each process writes an scalar with the same name into the scalars.bp file if the MPI method is used. Only one of them can be seen with the generic read API and tools based on this API like bpls. However, you can read each scalar from the separate processes with the a selection for a specific writer (see arrays/arrays_read.F90). How to build the code on your own: 1. Generate the gwrite/gread include files from the XML file $ gpp.py scalars.xml $ ls *.fh gread_scalars.fh gwrite_scalars.fh 2. Compile and link the code, with environment variables ADIOS_DIR pointing to the ADIOS installation directory (substitute mpif90 with your F90 compiler): $ ADIOS_INC=`$ADIOS_DIR/bin/adios_config -fc` $ ADIOS_FLIB=`$ADIOS_DIR/bin/adios_config -fl` $ ADIOS_FREADLIB=`$ADIOS_DIR/bin/adios_config -flr` $ mpif90 -o arrays_write ${ADIOS_INC} scalars_write.F90 ${ADIOS_FLIB} $ mpif90 -o arrays_read ${ADIOS_INC} scalars_read.F90 ${ADIOS_FREADLIB} 2. Compile and link the code, with environment variables ADIOS_DIR pointing to the ADIOS installation directory and MXML_DIR pointing to the MXML installation directory (substitute mpif90 with your F90 compiler): $ mpif90 -o scalars_write scalars_write.F90 -I${ADIOS_DIR}/include \ -L${ADIOS_DIR}/lib -ladiosf -L${MXML_DIR}/lib -lmxml $ mpif90 -o scalars_read scalars_read.F90 -I${ADIOS_DIR}/include \ -L${ADIOS_DIR}/lib -ladiosf -L${MXML_DIR}/lib -lmxml adios-1.5.0/examples/Fortran/scalars/scalars_read.F900000644000175000017500000000723012251360163023533 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! !/*************************************************************/ !/* Example of reading various types of variable in ADIOS */ !/*************************************************************/ program scalars_read use adios_read_mod implicit none include 'mpif.h' character(len=25) :: filename = "scalars.bp" integer :: rank, size, i, ierr integer :: comm ! ADIOS variables declarations integer*8 :: f integer :: method = ADIOS_READ_METHOD_BP integer*8 :: sel ! scalar variables to write out (including a string) integer*1 :: v1 = 0 integer*2 :: v2 = 0 integer*4 :: v3 = 0 integer*8 :: v4 = 0 integer*1 :: v5 = 0 integer*2 :: v6 = 0 integer*4 :: v7 = 0 integer*8 :: v8 = 0 real*4 :: v9 = 0.0 real*8 :: v10 = 0.0 character(len=20) :: v11 = "undefined" complex*8 :: v12 = (0.0, 0.0) complex*16 :: v13 = (0.0, 0.0) call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, comm, ierr) call MPI_Comm_rank (comm, rank, ierr) call MPI_Comm_size (comm, size, ierr); call adios_read_init_method (method, comm, "verbose=3", ierr); call adios_read_open (f, filename, method, comm, ADIOS_LOCKMODE_NONE, 1.0, ierr); sel = 0 ! sel must be integer*8 ! option 1 for scalars: get it from the metadata read at open call adios_get_scalar (f, "var_byte", v1, ierr) call adios_get_scalar (f, "var_short", v2, ierr) call adios_get_scalar (f, "var_int", v3, ierr) call adios_get_scalar (f, "var_long", v4, ierr) ! the above variables contain the value at this point ! option 2 for scalars: read them from file call adios_schedule_read (f, sel, "var_ubyte", 1, 1, v5, ierr) call adios_schedule_read (f, sel, "var_ushort", 1, 1, v6, ierr) call adios_schedule_read (f, sel, "var_uint", 1, 1, v7, ierr) call adios_schedule_read (f, sel, "var_ulong", 1, 1, v8, ierr) call adios_schedule_read (f, sel, "var_real", 1, 1, v9, ierr) call adios_schedule_read (f, sel, "var_double", 1, 1, v10, ierr) call adios_schedule_read (f, sel, "var_string", 1, 1, v11, ierr) call adios_schedule_read (f, sel, "var_complex", 1, 1, v12, ierr) call adios_schedule_read (f, sel, "var_double_complex", 1, 1, v13, ierr) ! no read has been performed yet! call adios_perform_reads (f, ierr) ! the above variables contain the value only at this point if (rank == 0) then write (*, '("int*1 v1 = ",i3)') v1 write (*, '("int*2 v2 = ",i3)') v2 write (*, '("int*4 v3 = ",i3)') v3 write (*, '("int*8 v4 = ",i3)') v4 write (*, '("int*1 v5 = ",i3)') v5 write (*, '("int*2 v6 = ",i3)') v6 write (*, '("int*4 v7 = ",i3)') v7 write (*, '("int*8 v8 = ",i3)') v8 write (*, '("real*4 v9 = ",f6.2)') v9 write (*, '("real*8 v10 = ",f6.2)') v10 write (*, '("string v11 = ",a)') trim(v11) write (*, '("complex*8 v12 = (",f6.2,", ", f6.2,")")') v12 write (*, '("complex*16 v13 = (",f6.2,", ", f6.2,")")') v13 endif call adios_read_close (f, ierr) call MPI_Barrier (comm, ierr); call adios_read_finalize_method (method, ierr); call MPI_Finalize (ierr); end program adios-1.5.0/examples/Fortran/scalars/scalars_write.F900000644000175000017500000000366412251360163023761 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! !/*************************************************************/ !/* Example of writing various types of variable in ADIOS */ !/*************************************************************/ program scalars use adios_write_mod implicit none include 'mpif.h' character(len=25) :: filename = "scalars.bp" integer :: rank, size, i, ierr integer :: comm ! ADIOS variables declarations for matching gwrite_scalars.fh integer :: adios_err integer*8 :: adios_groupsize, adios_totalsize integer*8 :: adios_handle ! scalar variables to write out (including a string) integer*1 :: v1 = -4 integer*2 :: v2 = -3 integer*4 :: v3 = -2 integer*8 :: v4 = -1 integer*1 :: v5 = 1 integer*2 :: v6 = 2 integer*4 :: v7 = 3 integer*8 :: v8 = 4 real*4 :: v9 = 5.0 real*8 :: v10 = 6.0 character(len=20) :: v11 = "ADIOS example" complex*8 :: v12 = (8.0, 9.0) complex*16 :: v13 = (10.0, 11.0) call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, comm, ierr) call MPI_Comm_rank (comm, rank, ierr) call MPI_Comm_size (comm, size, ierr); call adios_init ("scalars.xml", comm, adios_err); ! adios_open() opens a 'group in a file', here the 'scalars' group call adios_open (adios_handle, "scalars", filename, "w", comm, adios_err); #include "gwrite_scalars.fh" call adios_close (adios_handle, adios_err) call MPI_Barrier (comm, ierr); call adios_finalize (rank, adios_err); call MPI_Finalize (ierr); end program adios-1.5.0/examples/Fortran/scalars/job.pbs0000644000175000017500000000020612251360163022104 0ustar amckinstryamckinstry#!/bin/sh #PBS -N test #PBS -j oe #PBS -l walltime=00:05:00,nodes=3:ppn=2 cd $PBS_O_WORKDIR mpirun -np 6 ./adios_types >& result.dat adios-1.5.0/examples/Fortran/scalars/Makefile.in0000644000175000017500000004405512251360163022703 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = scalars_write$(EXEEXT) scalars_read$(EXEEXT) subdir = examples/Fortran/scalars DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_scalars_read_OBJECTS = scalars_read.$(OBJEXT) scalars_read_OBJECTS = $(am_scalars_read_OBJECTS) am__DEPENDENCIES_1 = scalars_read_DEPENDENCIES = $(top_builddir)/src/libadiosreadf.a \ $(am__DEPENDENCIES_1) scalars_read_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(scalars_read_LDFLAGS) $(LDFLAGS) -o $@ am_scalars_write_OBJECTS = scalars_write.$(OBJEXT) scalars_write_OBJECTS = $(am_scalars_write_OBJECTS) scalars_write_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) scalars_write_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(scalars_write_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = PPFCCOMPILE = $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) LTPPFCCOMPILE = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) FCLD = $(FC) SOURCES = $(scalars_read_SOURCES) $(scalars_write_SOURCES) DIST_SOURCES = $(scalars_read_SOURCES) $(scalars_write_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = $(MPIFC) FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies scalars_write_SOURCES = scalars_write.F90 scalars_write_LDADD = $(top_builddir)/src/libadiosf.a \ $(ADIOSLIB_LDADD) scalars_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) scalars_read_SOURCES = scalars_read.F90 scalars_read_LDADD = $(top_builddir)/src/libadiosreadf.a \ $(ADIOSREADLIB_LDADD) scalars_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) CLEANFILES = *.bp EXTRA_DIST = scalars.xml gwrite_scalars.fh gread_scalars.fh job.pbs FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ all: all-am .SUFFIXES: .SUFFIXES: .F90 .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Fortran/scalars/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/Fortran/scalars/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list scalars_read$(EXEEXT): $(scalars_read_OBJECTS) $(scalars_read_DEPENDENCIES) @rm -f scalars_read$(EXEEXT) $(scalars_read_LINK) $(scalars_read_OBJECTS) $(scalars_read_LDADD) $(LIBS) scalars_write$(EXEEXT): $(scalars_write_OBJECTS) $(scalars_write_DEPENDENCIES) @rm -f scalars_write$(EXEEXT) $(scalars_write_LINK) $(scalars_write_OBJECTS) $(scalars_write_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .F90.o: $(PPFCCOMPILE) -c -o $@ $< .F90.obj: $(PPFCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .F90.lo: $(LTPPFCCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/Fortran/scalars/CMakeLists.txt0000644000175000017500000000120712251360163023366 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_BINARY_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/Fortran/scalars) link_directories(${PROJECT_BINARY_DIR}/examples/Fortran/scalars) add_executable(scalars_write_f scalars_write.F90) target_link_libraries(scalars_write_f adiosf ${ADIOSLIB_LDADD}) add_executable(scalars_read_f scalars_read.F90) target_link_libraries(scalars_read_f adiosreadf ${ADIOSREADLIB_LDADD}) #install(FILES scalars.xml gwrite_scalars.fh gread_scalars.fh job.pbs DESTINATION ${PROJECT_BINARY_DIR}/examples/Fortran/scalars) adios-1.5.0/examples/Fortran/Makefile.in0000644000175000017500000005072412251360163021253 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = examples/Fortran DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = scalars arrays global-array global-array-time all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Fortran/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/Fortran/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am #time-index # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/Fortran/global-array-time/0000755000175000017500000000000012251360163022506 5ustar amckinstryamckinstryadios-1.5.0/examples/Fortran/global-array-time/Makefile.am0000644000175000017500000000104512251360163024542 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = adios_globaltime adios_globaltime_SOURCES = adios_globaltime.F90 adios_globaltime_LDADD = $(top_builddir)/src/libadiosf.a adios_globaltime_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_globaltime_LDADD += $(ADIOSLIB_LDADD) CLEANFILES = *.bp CC=$(MPICC) FC=$(MPIFC) FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ EXTRA_DIST = adios_globaltime.xml gread_restart.fh gwrite_restart.fh job.pbs adios-1.5.0/examples/Fortran/global-array-time/adios_globaltime.xml0000644000175000017500000000157012251360163026531 0ustar amckinstryamckinstry adios-1.5.0/examples/Fortran/global-array-time/job.pbs0000644000175000017500000000021412251360163023763 0ustar amckinstryamckinstry#!/bin/sh #PBS -N test #PBS -j oe #PBS -l walltime=00:05:00,nodes=3:ppn=2 cd $PBS_O_WORKDIR mpirun -np 6 ./adios_globaltime >& result.dat adios-1.5.0/examples/Fortran/global-array-time/Makefile.in0000644000175000017500000004256512251360163024567 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = adios_globaltime$(EXEEXT) subdir = examples/Fortran/global-array-time DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_adios_globaltime_OBJECTS = adios_globaltime.$(OBJEXT) adios_globaltime_OBJECTS = $(am_adios_globaltime_OBJECTS) am__DEPENDENCIES_1 = adios_globaltime_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) adios_globaltime_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(adios_globaltime_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = PPFCCOMPILE = $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) LTPPFCCOMPILE = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) FCLD = $(FC) SOURCES = $(adios_globaltime_SOURCES) DIST_SOURCES = $(adios_globaltime_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = $(MPIFC) FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies adios_globaltime_SOURCES = adios_globaltime.F90 adios_globaltime_LDADD = $(top_builddir)/src/libadiosf.a \ $(ADIOSLIB_LDADD) adios_globaltime_LDFLAGS = $(ADIOSLIB_LDFLAGS) CLEANFILES = *.bp FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ EXTRA_DIST = adios_globaltime.xml gread_restart.fh gwrite_restart.fh job.pbs all: all-am .SUFFIXES: .SUFFIXES: .F90 .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Fortran/global-array-time/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/Fortran/global-array-time/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list adios_globaltime$(EXEEXT): $(adios_globaltime_OBJECTS) $(adios_globaltime_DEPENDENCIES) @rm -f adios_globaltime$(EXEEXT) $(adios_globaltime_LINK) $(adios_globaltime_OBJECTS) $(adios_globaltime_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .F90.o: $(PPFCCOMPILE) -c -o $@ $< .F90.obj: $(PPFCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .F90.lo: $(LTPPFCCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/Fortran/global-array-time/CMakeLists.txt0000644000175000017500000000107712251360163025253 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_BINARY_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/Fortran/global-array-time) link_directories(${PROJECT_BINARY_DIR}/examples/Fortran/global-array-time) add_executable(adios_globaltime_f adios_globaltime.F90) target_link_libraries(adios_globaltime_f adiosf ${ADIOSLIB_LDADD}) #install(FILES adios_globaltime.xml gread_restart.fh gwrite_restart.fh job.pbs DESTINATION ${PROJECT_BINARY_DIR}/examples/Fortran/global-array-time) adios-1.5.0/examples/Fortran/global-array-time/gread_restart.fh0000644000175000017500000000130412251360163025651 0ustar amckinstryamckinstryadios_groupsize = 0 adios_totalsize = 0 call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "NX", NX, adios_buf_size, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "NY", NY, adios_buf_size, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "size", size, adios_buf_size, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "rank", rank, adios_buf_size, adios_err) adios_buf_size = 8 * (NX) * (1) call adios_read (adios_handle, "temperature", temperature, adios_buf_size, adios_err) adios_buf_size = 8 * (NY) * (1) call adios_read (adios_handle, "pressure", pressure, adios_buf_size, adios_err) adios-1.5.0/examples/Fortran/global-array-time/adios_globaltime.F900000644000175000017500000000406512251360163026271 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! ! ADIOS Fortran Example: write a global array from N processors with gwrite ! and write several timesteps into one BP file ! ! How to run: mpirun -np adios_globaltime ! Output: adios_globaltime.bp ! ADIOS config file: adios_globaltime.xml ! program adios_global use adios_write_mod implicit none include 'mpif.h' character(len=256) :: filename = "adios_globaltime.bp" integer :: rank, size, i, it, ierr integer, parameter :: NX = 10 ! NY = 1 for testing purpose integer, parameter :: NY = 1 real*8 :: t(NX) real*8 :: p(NY) integer :: comm ! ADIOS variables declarations for matching gwrite_temperature.fh integer :: adios_err integer*8 :: adios_groupsize, adios_totalsize integer*8 :: adios_handle call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, comm, ierr) call MPI_Comm_rank (comm, rank, ierr) call MPI_Comm_size (comm, size, ierr) call adios_init ("adios_globaltime.xml", comm, adios_err) do it = 1, 13 do i = 1, NX t(i) = 100.0*it + NX*rank + i - 1 enddo do i = 1, NY p(i) = 1000.0*it + NY*rank + i - 1 enddo ! We need to create the file in the first round, ! then we need to append to it if (it == 1) then call adios_open (adios_handle, "restart", filename, "w", comm, adios_err) else call adios_open (adios_handle, "restart", filename, "a", comm, adios_err) endif #include "gwrite_restart.fh" call adios_close (adios_handle, adios_err) call MPI_Barrier (comm, ierr) enddo call MPI_Barrier (comm, ierr) call adios_finalize (rank, adios_err) call MPI_Finalize (ierr) end program adios-1.5.0/examples/Fortran/global-array-time/gwrite_restart.fh0000644000175000017500000000110112251360163026063 0ustar amckinstryamckinstryadios_groupsize = 4 & + 4 & + 4 & + 4 & + 8 * (NX) * (1) & + 8 * (NY) * (1) call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) call adios_write (adios_handle, "NX", NX, adios_err) call adios_write (adios_handle, "NY", NY, adios_err) call adios_write (adios_handle, "size", size, adios_err) call adios_write (adios_handle, "rank", rank, adios_err) call adios_write (adios_handle, "temperature", t, adios_err) call adios_write (adios_handle, "pressure", p, adios_err) adios-1.5.0/examples/Fortran/CMakeLists.txt0000644000175000017500000000016712251360163021742 0ustar amckinstryamckinstryadd_subdirectory(scalars) add_subdirectory(arrays) add_subdirectory(global-array) add_subdirectory(global-array-time) adios-1.5.0/examples/Fortran/arrays/0000755000175000017500000000000012251360163020477 5ustar amckinstryamckinstryadios-1.5.0/examples/Fortran/arrays/Makefile.am0000644000175000017500000000132412251360163022533 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = arrays_write arrays_read arrays_write_SOURCES = arrays_write.F90 arrays_write_LDADD = $(top_builddir)/src/libadiosf.a arrays_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) arrays_write_LDADD += $(ADIOSLIB_LDADD) arrays_read_SOURCES = arrays_read.F90 arrays_read_LDADD = $(top_builddir)/src/libadiosreadf.a arrays_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) arrays_read_LDADD += $(ADIOSREADLIB_LDADD) CLEANFILES = *.bp CC=$(MPICC) EXTRA_DIST = arrays.xml gwrite_arrays.fh gread_arrays.fh job.pbs FC=$(MPIFC) FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ adios-1.5.0/examples/Fortran/arrays/arrays.xml0000644000175000017500000000076512251360163022532 0ustar amckinstryamckinstry adios-1.5.0/examples/Fortran/arrays/README0000644000175000017500000000204612251360163021361 0ustar amckinstryamckinstryThe arrays_write.F90 example shows how to write out an array the simplest way from a Fortran code. Note that each process writes an array with the same name and dimension into the arrays.bp file if the MPI method is used. Only one of them can be seen with the generic read API and tools based on this API like bpls. However, you can read each array in using the selection for a specific writer (see arrays_read.F90). How to build the code on your own: 1. Generate the gwrite/gread include files from the XML file $ gpp.py arrays.xml $ ls *.fh gread_arrays.fh gwrite_arrays.fh 2. Compile and link the code, with environment variables ADIOS_DIR pointing to the ADIOS installation directory (substitute mpif90 with your F90 compiler): $ ADIOS_INC=`$ADIOS_DIR/bin/adios_config -fc` $ ADIOS_FLIB=`$ADIOS_DIR/bin/adios_config -fl` $ ADIOS_FREADLIB=`$ADIOS_DIR/bin/adios_config -flr` $ mpif90 -o arrays_write ${ADIOS_INC} arrays_write.F90 ${ADIOS_FLIB} $ mpif90 -o arrays_read ${ADIOS_INC} arrays_read.F90 ${ADIOS_FREADLIB} adios-1.5.0/examples/Fortran/arrays/arrays_write.F900000644000175000017500000000342212251360163023473 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! !/*************************************************************/ !/* Example of writing of simple arrays in ADIOS */ !/* */ !/* Similar example is ../../C/manual/2_adios_write.c */ !/*************************************************************/ program arrays use adios_write_mod implicit none include 'mpif.h' character(len=25) :: filename = "arrays.bp" integer :: rank, size, i, j, ierr integer :: comm ! ADIOS variables declarations for matching gwrite_temperature.fh integer :: adios_err integer*8 :: adios_groupsize, adios_totalsize integer*8 :: adios_handle ! variables to write out integer, parameter :: NX = 10, NY = 100 real*8 :: t(NX,NY) integer :: p(NX) call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, comm, ierr) call MPI_Comm_rank (comm, rank, ierr) call MPI_Comm_size (comm, size, ierr) do j = 1,NY do i = 1,NX t(i,j) = rank*NY + (j-1) + i*(1.0/NX) enddo enddo do i = 1,NX p(i) = rank*NX + i enddo call adios_init ("arrays.xml", comm, adios_err); call adios_open (adios_handle, "arrays", filename, "w", comm, adios_err); #include "gwrite_arrays.fh" call adios_close (adios_handle, adios_err) call MPI_Barrier (comm, ierr); call adios_finalize (rank, adios_err); call MPI_Finalize (ierr); end program adios-1.5.0/examples/Fortran/arrays/gwrite_arrays.fh0000644000175000017500000000065412251360163023705 0ustar amckinstryamckinstryadios_groupsize = 4 & + 4 & + 8 * (NX) * (NY) & + 4 * (NX) call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) call adios_write (adios_handle, "NX", NX, adios_err) call adios_write (adios_handle, "NY", NY, adios_err) call adios_write (adios_handle, "var_double_2Darray", t, adios_err) call adios_write (adios_handle, "var_int_1Darray", p, adios_err) adios-1.5.0/examples/Fortran/arrays/gread_arrays.fh0000644000175000017500000000104512251360163023461 0ustar amckinstryamckinstryadios_groupsize = 0 adios_totalsize = 0 call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "NX", NX, adios_buf_size, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "NY", NY, adios_buf_size, adios_err) adios_buf_size = 8 * (NX) * (NY) call adios_read (adios_handle, "var_double_2Darray", var_double_2Darray, adios_buf_size, adios_err) adios_buf_size = 4 * (NX) call adios_read (adios_handle, "var_int_1Darray", var_int_1Darray, adios_buf_size, adios_err) adios-1.5.0/examples/Fortran/arrays/job.pbs0000644000175000017500000000020612251360163021755 0ustar amckinstryamckinstry#!/bin/sh #PBS -N test #PBS -j oe #PBS -l walltime=00:05:00,nodes=3:ppn=2 cd $PBS_O_WORKDIR mpirun -np 6 ./adios_types >& result.dat adios-1.5.0/examples/Fortran/arrays/Makefile.in0000644000175000017500000004377212251360163022561 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = arrays_write$(EXEEXT) arrays_read$(EXEEXT) subdir = examples/Fortran/arrays DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_arrays_read_OBJECTS = arrays_read.$(OBJEXT) arrays_read_OBJECTS = $(am_arrays_read_OBJECTS) am__DEPENDENCIES_1 = arrays_read_DEPENDENCIES = $(top_builddir)/src/libadiosreadf.a \ $(am__DEPENDENCIES_1) arrays_read_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(arrays_read_LDFLAGS) $(LDFLAGS) -o $@ am_arrays_write_OBJECTS = arrays_write.$(OBJEXT) arrays_write_OBJECTS = $(am_arrays_write_OBJECTS) arrays_write_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) arrays_write_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(arrays_write_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = PPFCCOMPILE = $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) LTPPFCCOMPILE = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) FCLD = $(FC) SOURCES = $(arrays_read_SOURCES) $(arrays_write_SOURCES) DIST_SOURCES = $(arrays_read_SOURCES) $(arrays_write_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = $(MPIFC) FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies arrays_write_SOURCES = arrays_write.F90 arrays_write_LDADD = $(top_builddir)/src/libadiosf.a $(ADIOSLIB_LDADD) arrays_write_LDFLAGS = $(ADIOSLIB_LDFLAGS) arrays_read_SOURCES = arrays_read.F90 arrays_read_LDADD = $(top_builddir)/src/libadiosreadf.a \ $(ADIOSREADLIB_LDADD) arrays_read_LDFLAGS = $(ADIOSREADLIB_LDFLAGS) CLEANFILES = *.bp EXTRA_DIST = arrays.xml gwrite_arrays.fh gread_arrays.fh job.pbs FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ all: all-am .SUFFIXES: .SUFFIXES: .F90 .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Fortran/arrays/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/Fortran/arrays/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list arrays_read$(EXEEXT): $(arrays_read_OBJECTS) $(arrays_read_DEPENDENCIES) @rm -f arrays_read$(EXEEXT) $(arrays_read_LINK) $(arrays_read_OBJECTS) $(arrays_read_LDADD) $(LIBS) arrays_write$(EXEEXT): $(arrays_write_OBJECTS) $(arrays_write_DEPENDENCIES) @rm -f arrays_write$(EXEEXT) $(arrays_write_LINK) $(arrays_write_OBJECTS) $(arrays_write_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .F90.o: $(PPFCCOMPILE) -c -o $@ $< .F90.obj: $(PPFCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .F90.lo: $(LTPPFCCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/Fortran/arrays/CMakeLists.txt0000644000175000017500000000117312251360163023241 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_BINARY_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/Fortran/arrays) link_directories(${PROJECT_BINARY_DIR}/examples/Fortran/arrays) add_executable(arrays_write_f arrays_write.F90) target_link_libraries(arrays_write_f adiosf ${ADIOSLIB_LDADD}) add_executable(arrays_read_f arrays_read.F90) target_link_libraries(arrays_read_f adiosreadf ${ADIOSREADLIB_LDADD}) #install(FILES arrays.xml gwrite_arrays.fh gread_arrays.fh job.pbs DESTINATION ${PROJECT_BINARY_DIR}/examples/Fortran/arrays) adios-1.5.0/examples/Fortran/arrays/arrays_read.F900000644000175000017500000000546712251360163023267 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! !/**************************************************************/ !/* Example of reading of simple arrays in ADIOS */ !/* which were written from the same number of processors */ !/* */ !/* Similar example is ../../C/manual/2_adios_read.c */ !/**************************************************************/ program arrays use adios_read_mod implicit none include 'mpif.h' character(len=25) :: filename = "arrays.bp" integer :: rank, size, i, j, ierr integer :: comm ! ADIOS variables declarations for matching gwrite_temperature.fh integer*8 :: f integer :: method = ADIOS_READ_METHOD_BP integer*8 :: sel ! variables to read in integer :: NX, NY real*8, dimension(:,:), allocatable :: t integer, dimension(:), allocatable :: p call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, comm, ierr) call MPI_Comm_rank (comm, rank, ierr) call MPI_Comm_size (comm, size, ierr) call adios_read_init_method (method, comm, "verbose=3", ierr); call adios_read_open (f, filename, method, comm, ADIOS_LOCKMODE_NONE, 1.0, ierr); ! select specific writer's data (using rank since each rank of the writer ! wrote one block of the data) call adios_selection_writeblock (sel, rank) ! First get the scalars to calculate the size of the arrays. ! Note that we cannot use adios_get_scalar here because that ! retrieves the same NX for everyone (from writer rank 0). call adios_schedule_read (f, sel, "NX", 1, 1, NX, ierr) call adios_schedule_read (f, sel, "NY", 1, 1, NY, ierr) call adios_perform_reads (f, ierr) write (*,'("rank=",i0," NX=",i0," NY=",i0)') rank, NX, NY ! Allocate space for the arrays allocate (t(NX,NY)) allocate (p(NX)) ! Read the arrays call adios_schedule_read (f, sel, "var_double_2Darray", 1, 1, t, ierr) call adios_schedule_read (f, sel, "var_int_1Darray", 1, 1, p, ierr) call adios_perform_reads (f, ierr) ! Print the results write (*,'("rank=",i0," p = (",i0,$)') rank, p(1) do i = 2,NX write (*,'(", ",i0,$)') p(i) enddo write (*,'(")")') write (*,'("rank=",i0," t(:,5) = (",f6.2,$)') rank, t(1,5) do i = 2,NX write (*,'(", ",f6.2,$)') t(i,5) enddo write (*,'(")")') call adios_read_close (f, ierr) call MPI_Barrier (comm, ierr); call adios_read_finalize_method (method, ierr); call MPI_Finalize (ierr); end program adios-1.5.0/examples/Fortran/global-array/0000755000175000017500000000000012251360163021552 5ustar amckinstryamckinstryadios-1.5.0/examples/Fortran/global-array/Makefile.am0000644000175000017500000000172612251360163023614 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies noinst_PROGRAMS = adios_global adios_global_no_xml no_xml_write_byid adios_global_SOURCES = adios_global.F90 adios_global_LDADD = $(top_builddir)/src/libadiosf.a adios_global_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_global_LDADD += $(ADIOSLIB_LDADD) adios_global_no_xml_SOURCES = adios_global_no_xml.F90 adios_global_no_xml_LDADD = $(top_builddir)/src/libadiosf.a adios_global_no_xml_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_global_no_xml_LDADD += $(ADIOSLIB_LDADD) no_xml_write_byid_SOURCES = no_xml_write_byid.F90 no_xml_write_byid_LDADD = $(top_builddir)/src/libadiosf.a no_xml_write_byid_LDFLAGS = $(ADIOSLIB_LDFLAGS) no_xml_write_byid_LDADD += $(ADIOSLIB_LDADD) CLEANFILES = *.bp CC=$(MPICC) FC=$(MPIFC) FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ EXTRA_DIST = adios_global.xml gread_temperature.fh gwrite_temperature.fh job.pbs adios-1.5.0/examples/Fortran/global-array/adios_global.F900000644000175000017500000000274112251360163024455 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! ! ADIOS Fortran Example: write a global array from N processors with gwrite ! ! How to run: mpirun -np adios_global ! Output: adios_global.bp ! ADIOS config file: adios_global.xml ! program adios_global use adios_write_mod implicit none include 'mpif.h' character(len=256) :: filename = "adios_global.bp" integer :: rank, size, i, ierr integer, parameter :: NX = 10 real*8, dimension(NX) :: t integer :: comm ! ADIOS variables declarations for matching gwrite_temperature.fh integer :: adios_err integer*8 :: adios_groupsize, adios_totalsize integer*8 :: adios_handle call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, comm, ierr) call MPI_Comm_rank (comm, rank, ierr) call MPI_Comm_size (comm, size, ierr) do i = 1, NX t(i) = 10.0*rank+i-1 enddo call adios_init ("adios_global.xml", comm, adios_err) call adios_open (adios_handle, "temperature", filename, "w", comm, adios_err) #include "gwrite_temperature.fh" call adios_close (adios_handle, adios_err) call MPI_Barrier (comm, ierr) call adios_finalize (rank, adios_err) call MPI_Finalize (ierr) end program adios-1.5.0/examples/Fortran/global-array/no_xml_write_byid.F900000644000175000017500000000524212251360163025552 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! ! ADIOS Fortran Example: write a global array from N processors using No-XML API. ! The example also shows how to do multi-writes in ADIOS. ! How to run: mpirun -np adios_global_no_xml ! Output: adios_global_no_xml.bp ! ADIOS config file: None ! program no_xml_write_byid use adios_write_mod implicit none include 'mpif.h' character(len=256) :: filename = "no_xml_write_byid.bp" integer :: rank, size, i, ierr integer,parameter :: NX=10 integer :: O, G real*8, dimension(NX) :: t integer :: comm integer :: adios_err integer*8 :: adios_groupsize, adios_totalsize integer*8 :: adios_handle integer*8 :: m_adios_group integer*8 :: var_id1, var_id2 character(len=32) :: local, global, offset call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, comm, ierr) call MPI_Comm_rank (comm, rank, ierr) call MPI_Comm_size (comm, size, ierr) call adios_init_noxml (comm, adios_err) call adios_allocate_buffer (10, adios_err) call adios_declare_group (m_adios_group, "restart", "iter", 1, adios_err) call adios_select_method (m_adios_group, "MPI", "", "", adios_err) G = 2 * NX * size O = 2 * NX * rank write (local, "(I2)") NX write (global, "(I3)") G write (offset, "(I3)") O ! define a global array call adios_define_var (m_adios_group, "temperature" & ,"", 6 & ,local, global, offset, var_id1) write (offset, "(I3)") O + NX ! define a global array call adios_define_var (m_adios_group, "temperature" & ,"", 6 & ,local, global, offset, var_id2) call adios_open (adios_handle, "restart", filename, "w", comm, adios_err) adios_groupsize = NX * 8 & + NX * 8 call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) do i = 1, NX t(i) = O + i - 1 enddo call adios_write_byid (adios_handle, var_id1, t, adios_err) O = 2 * NX * rank + NX do i = 1, NX t(i) = O + i - 1 enddo call adios_write_byid (adios_handle, var_id2, t, adios_err) call adios_close (adios_handle, adios_err) call MPI_Barrier (comm, ierr) call adios_finalize (rank, adios_err) call MPI_Finalize (ierr) end program adios-1.5.0/examples/Fortran/global-array/job.pbs0000644000175000017500000000021012251360163023023 0ustar amckinstryamckinstry#!/bin/sh #PBS -N test #PBS -j oe #PBS -l walltime=00:05:00,nodes=3:ppn=2 cd $PBS_O_WORKDIR mpirun -np 6 ./adios_global >& result.dat adios-1.5.0/examples/Fortran/global-array/Makefile.in0000644000175000017500000004601212251360163023622 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = adios_global$(EXEEXT) adios_global_no_xml$(EXEEXT) \ no_xml_write_byid$(EXEEXT) subdir = examples/Fortran/global-array DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_adios_global_OBJECTS = adios_global.$(OBJEXT) adios_global_OBJECTS = $(am_adios_global_OBJECTS) am__DEPENDENCIES_1 = adios_global_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) adios_global_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(adios_global_LDFLAGS) $(LDFLAGS) -o $@ am_adios_global_no_xml_OBJECTS = adios_global_no_xml.$(OBJEXT) adios_global_no_xml_OBJECTS = $(am_adios_global_no_xml_OBJECTS) adios_global_no_xml_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) adios_global_no_xml_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(adios_global_no_xml_LDFLAGS) $(LDFLAGS) -o $@ am_no_xml_write_byid_OBJECTS = no_xml_write_byid.$(OBJEXT) no_xml_write_byid_OBJECTS = $(am_no_xml_write_byid_OBJECTS) no_xml_write_byid_DEPENDENCIES = $(top_builddir)/src/libadiosf.a \ $(am__DEPENDENCIES_1) no_xml_write_byid_LINK = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \ $(no_xml_write_byid_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = PPFCCOMPILE = $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) LTPPFCCOMPILE = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) FCLD = $(FC) SOURCES = $(adios_global_SOURCES) $(adios_global_no_xml_SOURCES) \ $(no_xml_write_byid_SOURCES) DIST_SOURCES = $(adios_global_SOURCES) $(adios_global_no_xml_SOURCES) \ $(no_xml_write_byid_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = $(MPIFC) FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src AUTOMAKE_OPTIONS = no-dependencies adios_global_SOURCES = adios_global.F90 adios_global_LDADD = $(top_builddir)/src/libadiosf.a $(ADIOSLIB_LDADD) adios_global_LDFLAGS = $(ADIOSLIB_LDFLAGS) adios_global_no_xml_SOURCES = adios_global_no_xml.F90 adios_global_no_xml_LDADD = $(top_builddir)/src/libadiosf.a \ $(ADIOSLIB_LDADD) adios_global_no_xml_LDFLAGS = $(ADIOSLIB_LDFLAGS) no_xml_write_byid_SOURCES = no_xml_write_byid.F90 no_xml_write_byid_LDADD = $(top_builddir)/src/libadiosf.a \ $(ADIOSLIB_LDADD) no_xml_write_byid_LDFLAGS = $(ADIOSLIB_LDFLAGS) CLEANFILES = *.bp FCLINK = \ $(LIBTOOL) --mode=link --tag F77 $(FC) \ $(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@ EXTRA_DIST = adios_global.xml gread_temperature.fh gwrite_temperature.fh job.pbs all: all-am .SUFFIXES: .SUFFIXES: .F90 .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Fortran/global-array/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/Fortran/global-array/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list adios_global$(EXEEXT): $(adios_global_OBJECTS) $(adios_global_DEPENDENCIES) @rm -f adios_global$(EXEEXT) $(adios_global_LINK) $(adios_global_OBJECTS) $(adios_global_LDADD) $(LIBS) adios_global_no_xml$(EXEEXT): $(adios_global_no_xml_OBJECTS) $(adios_global_no_xml_DEPENDENCIES) @rm -f adios_global_no_xml$(EXEEXT) $(adios_global_no_xml_LINK) $(adios_global_no_xml_OBJECTS) $(adios_global_no_xml_LDADD) $(LIBS) no_xml_write_byid$(EXEEXT): $(no_xml_write_byid_OBJECTS) $(no_xml_write_byid_DEPENDENCIES) @rm -f no_xml_write_byid$(EXEEXT) $(no_xml_write_byid_LINK) $(no_xml_write_byid_OBJECTS) $(no_xml_write_byid_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .F90.o: $(PPFCCOMPILE) -c -o $@ $< .F90.obj: $(PPFCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .F90.lo: $(LTPPFCCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/examples/Fortran/global-array/gread_temperature.fh0000644000175000017500000000077512251360163025601 0ustar amckinstryamckinstryadios_groupsize = 0 adios_totalsize = 0 call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "NX", NX, adios_buf_size, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "size", size, adios_buf_size, adios_err) adios_buf_size = 4 call adios_read (adios_handle, "rank", rank, adios_buf_size, adios_err) adios_buf_size = 8 * (NX) * (1) call adios_read (adios_handle, "temperature", temperature, adios_buf_size, adios_err) adios-1.5.0/examples/Fortran/global-array/CMakeLists.txt0000644000175000017500000000125512251360163024315 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_BINARY_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/examples/Fortran/global-array) link_directories(${PROJECT_BINARY_DIR}/examples/Fortran/global-array) add_executable(adios_global_f adios_global.F90) target_link_libraries(adios_global_f adiosf ${ADIOSLIB_LDADD}) add_executable(adios_global_no_xml_f adios_global_no_xml.F90) target_link_libraries(adios_global_no_xml_f adiosf ${ADIOSLIB_LDADD}) #install(FILES adios_global.xml gread_temperature.fh gwrite_temperature.fh job.pbs DESTINATION ${PROJECT_BINARY_DIR}/examples/Fortran/global-array) adios-1.5.0/examples/Fortran/global-array/adios_global_no_xml.F900000644000175000017500000000745412251360163026037 0ustar amckinstryamckinstry! ! ADIOS is freely available under the terms of the BSD license described ! in the COPYING file in the top level directory of this source distribution. ! ! Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. ! ! ADIOS Fortran Example: write a global array from N processors using No-XML API. ! The example also shows how to do multi-writes in ADIOS. ! How to run: mpirun -np adios_global_no_xml ! Output: adios_global_no_xml.bp ! ADIOS config file: None ! program adios_global use adios_write_mod implicit none include 'mpif.h' character(len=256) :: filename = "adios_global_no_xml.bp" integer :: rank, size, i, ierr integer,parameter :: NX=10 integer :: O, G real*8, dimension(NX) :: t integer :: comm integer :: adios_err integer*8 :: adios_groupsize, adios_totalsize integer*8 :: adios_handle integer*8 :: m_adios_group integer*8 :: varid call MPI_Init (ierr) call MPI_Comm_dup (MPI_COMM_WORLD, comm, ierr) call MPI_Comm_rank (comm, rank, ierr) call MPI_Comm_size (comm, size, ierr) call adios_init_noxml (comm, adios_err) call adios_allocate_buffer (10, adios_err) call adios_declare_group (m_adios_group, "restart", "iter", 1, adios_err) call adios_select_method (m_adios_group, "MPI", "", "", adios_err) ! This example doesn't use varid during writing. ! So we simply put 'varid' everywhere. ! define a integer call adios_define_var (m_adios_group, "NX" & ,"", 2 & ,"", "", "", varid) ! define a integer call adios_define_var (m_adios_group, "G" & ,"", 2 & ,"", "", "", varid) ! define a integer call adios_define_var (m_adios_group, "O" & ,"", 2 & ,"", "", "", varid) ! define a global array call adios_define_var (m_adios_group, "temperature" & ,"", 6 & ,"NX", "G", "O", varid) ! define a integer call adios_define_var (m_adios_group, "NX" & ,"", 2 & ,"", "", "", varid) ! define a integer call adios_define_var (m_adios_group, "G" & ,"", 2 & ,"", "", "", varid) ! define a integer call adios_define_var (m_adios_group, "O" & ,"", 2 & ,"", "", "", varid) ! define a global array call adios_define_var (m_adios_group, "temperature" & ,"", 6 & ,"NX", "G", "O", varid) call adios_open (adios_handle, "restart", filename, "w", comm, adios_err) adios_groupsize = 4 + 4 + 4 + NX * 8 & + 4 + 4 + 4 + NX * 8 call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) G = 2 * NX * size O = 2 * NX * rank do i = 1, NX t(i) = O + i - 1 enddo call adios_write (adios_handle, "NX", NX, adios_err) call adios_write (adios_handle, "G", G, adios_err) call adios_write (adios_handle, "O", O, adios_err) call adios_write (adios_handle, "temperature", t, adios_err) O = 2 * NX * rank + NX do i = 1, NX t(i) = O + i - 1 enddo call adios_write (adios_handle, "NX", NX, adios_err) call adios_write (adios_handle, "G", G, adios_err) call adios_write (adios_handle, "O", O, adios_err) call adios_write (adios_handle, "temperature", t, adios_err) call adios_close (adios_handle, adios_err) call MPI_Barrier (comm, ierr) call adios_finalize (rank, adios_err) call MPI_Finalize (ierr) end program adios-1.5.0/examples/Fortran/global-array/gwrite_temperature.fh0000644000175000017500000000063112251360163026007 0ustar amckinstryamckinstryadios_groupsize = 4 & + 4 & + 4 & + 8 * (NX) * (1) call adios_group_size (adios_handle, adios_groupsize, adios_totalsize, adios_err) call adios_write (adios_handle, "NX", NX, adios_err) call adios_write (adios_handle, "size", size, adios_err) call adios_write (adios_handle, "rank", rank, adios_err) call adios_write (adios_handle, "temperature", t, adios_err) adios-1.5.0/examples/Fortran/global-array/adios_global.xml0000644000175000017500000000117712251360163024721 0ustar amckinstryamckinstry adios-1.5.0/examples/CMakeLists.txt0000644000175000017500000000020212251360163020315 0ustar amckinstryamckinstryif(BUILD_WRITE) add_subdirectory(C) if(BUILD_FORTRAN) add_subdirectory(Fortran) endif(BUILD_FORTRAN) endif(BUILD_WRITE) adios-1.5.0/Makefile.in0000644000175000017500000007572112251360163016026 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_NSSI_TRUE@am__append_1 = scripts/create.nssi.config.sh \ @HAVE_NSSI_TRUE@ scripts/kill.nssi.staging.sh \ @HAVE_NSSI_TRUE@ scripts/start.nssi.staging.sh subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/adios_config.flags.in \ $(srcdir)/config.h.in $(top_srcdir)/configure \ $(top_srcdir)/utils/skel/lib/skel_have_adios_timing.py.in \ AUTHORS COPYING ChangeLog INSTALL NEWS TODO config/compile \ config/config.guess config/config.sub config/depcomp \ config/install-sh config/ltmain.sh config/missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = utils/skel/lib/skel_have_adios_timing.py \ adios_config.flags CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(bindir)" SCRIPTS = $(bin_SCRIPTS) SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I config SUBDIRS = src utils tests examples EXTRA_DIST = runconf \ KNOWN_BUGS \ adios_config \ scripts/create.nssi.config.sh \ scripts/kill.nssi.staging.sh \ scripts/start.nssi.staging.sh # wrappers/matlab/Makefile \ # wrappers/matlab/adios.m \ # wrappers/matlab/adiosclose.m \ # wrappers/matlab/adiosopen.m \ # wrappers/matlab/adiosread.m \ # wrappers/matlab/adiosclosec.c \ # wrappers/matlab/adiosopenc.c \ # wrappers/matlab/adiosreadc.c bin_SCRIPTS = adios_config $(am__append_1) all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 utils/skel/lib/skel_have_adios_timing.py: $(top_builddir)/config.status $(top_srcdir)/utils/skel/lib/skel_have_adios_timing.py.in cd $(top_builddir) && $(SHELL) ./config.status $@ adios_config.flags: $(top_builddir)/config.status $(srcdir)/adios_config.flags.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod u+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(SCRIPTS) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binSCRIPTS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binSCRIPTS .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-data-am install-strip \ tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-libtool distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-binSCRIPTS install-data \ install-data-am install-data-hook install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-binSCRIPTS #install-data-hook: # echo -n "VERSIONSTRING=\"$(PACKAGE) version $(VERSION) svn revision " >> adios_config.flags # if type svnversion &>/dev/null; then \ # echo `svnversion`\" >> adios_config.flags; \ # else \ # echo "unknown\"" >> adios_config.flags; \ # echo "Error: svnversion command not found"; \ # fi # cp adios_config.flags $(DESTDIR)$(bindir) install-data-hook: echo "SRCDIR=\"$(PWD)\"" >> adios_config.flags; \ if git rev-parse --git-dir &>/dev/null; then \ echo "GITLOG=\"`git log -n 1 --format=\"Last commit on %ad hash %h\"`\"" > git.status; \ echo "read -d '' GITSTAT <<'_EOF_'" >> git.status; \ git status -uno >> git.status; \ echo "_EOF_" >> git.status; \ else \ echo "GITLOG=\"git log not available\"" >> git.status; \ echo "GITSTAT=\"git status not available\"" >> git.status; \ echo "Note: git command not found or $(PWD) is not a git repository."; \ fi cp adios_config.flags $(DESTDIR)$(bindir) cp git.status $(DESTDIR)$(bindir) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/wrappers/0000755000175000017500000000000012251360163015610 5ustar amckinstryamckinstryadios-1.5.0/wrappers/matlab/0000755000175000017500000000000012251360163017050 5ustar amckinstryamckinstryadios-1.5.0/wrappers/matlab/adios.m0000644000175000017500000000515412251360163020332 0ustar amckinstryamckinstryfunction adios() %ADIOS Reader for the ADIOS BP file format % % ADIOS is a componentized I/O layer for high performance output combined % with an easy to use interface and a set of different data writing methods % so that everyone can choose the best method for a particular system. % % ADIOSREAD can be used in itself to read in a variable with a known name. % ADIOSOPEN returns a structure with information on all adios groups, % variables and attributes. The structure can be used to read many variables % without repeatedly opening and closing the file behind the scenes. % ADIOSCLOSE closes the file, opened by ADIOSOPEN. % % Organization of an ADIOS BP file % -------------------------------- % There is usually one adios group in a file, but there can be more. % An adios group is the set of all variables and attributes that have been % written by a (parallel) program at one place in the code. The programmer % may have decided to write more than one groups into the file. % Note that the adios group is not the same as HDF5 groups. Each variable in % the group has a path, which defines a logical hierarchy of the variables % within one adios group. This logical hierarchy is similar to the hierarchy % in a HDF5 file. % % Therefore, ADIOSREAD expects one of the info.Groups(idx) structure to % specify a group to read from, instead of the info structure itself, where % info is returned by ADIOSOPEN. % % Time dimension of a variable % ---------------------------- % Variables can be written several times from a program, if they have a time % dimension. The reader exposes the variables with an extra dimension, i.e. % a 2D variable written over time is seen as a 3D variable. In MATLAB, the % extra dimension is the last dimension (the slowest changing dimension). % Since the reader allows reading an arbitrary slice of a variable, data for % one timestep can be read in with slicing. % % Extra information provided by ADIOSOPEN % --------------------------------------- % The ADIOS BP format stores the min/max values in each variable. % The info structure therefore contains these min/max values. There is % practically no overhead to provide this information (along with the % values of all attributes) even for file sizes of several terabytes. % % Please read the file COPYING in the top directory of the ADIOS source % distribution for information on the copyrights. % % See also ADIOSOPEN, ADIOSREAD, ADIOSCLOSE. % Copyright 2009 UT-BATTELLE, LLC % $Revision: 1.0 $ $Date: 2009/08/05 12:53:41 $ % Author: Norbert Podhorszki help adios adios-1.5.0/wrappers/matlab/.gitignore0000644000175000017500000000001112251360163021030 0ustar amckinstryamckinstry*.mexa64 adios-1.5.0/wrappers/matlab/adiosreadc.c0000644000175000017500000003757112251360163021327 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /*================================================================= * adiosreadc.c - read a variable/attribute from an ADIOS file * * Input: File, Group, Path, Offset, Count, Verbose * File: string (name) or int64 (handler) * Group: string (name) or int64 (handler) or int32 (index) * Path: string (variable/attribute name with full path) * Offset: int32 array * Count: int32 array * Verbose: numeric (double) * Output: The variable/attribute as mxArray * * * $Revision: 1.0 $ $Date: 2009/08/05 12:53:41 $ * Author: Norbert Podhorszki *=================================================================*/ #include /* strlen */ #include "mex.h" #include "adios_read.h" #include "adios_types.h" static int verbose=0; mxArray* readdata( ADIOS_GROUP *gp, const char *path, int in_noffsets, const int64_t *in_offsets, const int64_t *in_counts); void errorCheck(int nlhs, int nrhs, const mxArray *prhs[]); char* getString(const mxArray *mxstr); mxClassID adiostypeToMatlabClass(enum ADIOS_DATATYPES type, mxComplexity *complexity); mxArray* createMatlabArray( enum ADIOS_DATATYPES adiostype, int ndims, uint64_t *dims); void recalc_offsets( int ndims, uint64_t *dims, mwSize in_noffsets, const int64_t *in_offsets, const int64_t *in_counts, uint64_t *offsets, uint64_t *counts); static void swap_order(int n, uint64_t *array); void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { char *fname; /* file name */ char *gname; /* group name */ char *path; /* name of variable or attribute */ mwSize in_noffsets; /* number of offsets provided, = number of counts */ int64_t *in_offsets; /* offset array provided */ int64_t *in_counts; /* count array provided */ int status; char msg[512]; /* error messages from function calls */ int64_t fh, gh, *int64p; /* file and group handlers and temp pointers */ int32_t *int32p; int haveToCloseFile, haveToCloseGroup, readAttributesToo; ADIOS_FILE *fp; ADIOS_GROUP *gp; int mpi_comm_dummy; int i; mxArray *out; /* output data array */ const char *field_names[] = {"name", "value"}; /* 2nd output arg's struct fields */ mwSize attr_struct_dims[2]; /* dimensions for 2nd arg struct array: 1-by-sth */ errorCheck(nlhs, nrhs, prhs); /*mexPrintf("nrhs=%d nlhs=%d\n", nrhs, nlhs);*/ /***********************/ /* 1. get verbose parameter first */ verbose = (int)mxGetScalar(prhs[5]); if (verbose) mexPrintf("Verbosity level: %d\n", verbose); /***********************/ /* 1. get file handler */ fp = NULL; haveToCloseFile = 0; if (mxIsChar(prhs[0])) { fname = getString( (mxArray *)prhs[0]); if (strlen(fname) > 0) { if (verbose) mexPrintf("File name: \"%s\"\n", fname); /* Open ADIOS file now */ fp = adios_fopen (fname, mpi_comm_dummy); if (fp == NULL) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:open",adios_errmsg()); } haveToCloseFile = 1; } } /************************/ /* 2. get group handler */ if (mxIsInt64(prhs[1])) { /* int64 group handler provided */ int64p = (int64_t *) mxGetData(prhs[1]); gp = (ADIOS_GROUP *) *int64p; mexPrintf("Group gp=%lld id=%d vcnt=%d\n", (int64_t)gp, gp->grpid, gp->vars_count); haveToCloseGroup = 0; } else { /* reference to a group in file */ if (fp == NULL) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:open", "Group argument must be an open group struct if File argument is not provided\n"); } if (mxIsChar(prhs[1])) { gname = getString( (mxArray *)prhs[1]); if (verbose) mexPrintf("Group name: \"%s\"\n", gname ); /* empty groupname -> first group in the file */ if ( strlen(gname)==0 || !strcmp(gname,"/") || !strcmp(gname," ")) { gp = adios_gopen_byid(fp, 0); if (gp == NULL) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:open",adios_errmsg()); } } else { /* Open group by name */ gp = adios_gopen(fp, gname); if (gp == NULL) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:open",adios_errmsg()); } } haveToCloseGroup = 1; } else if (mxIsInt32(prhs[1])) { /* group index provided */ int32p = (int32_t *) mxGetData(prhs[1]); if (verbose) mexPrintf("Group index: %d\n", *int32p); gname = NULL; /* group index in Matlab starts from 1, in adios starts from 0 */ /* Open group by index */ gp = adios_gopen_byid(fp, *int32p-1); if (gp == NULL) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:open",adios_errmsg()); } haveToCloseGroup = 1; } } /*****************************************************************************************/ /* 3. get other arguments: char variable name, int64 in_offsets[], int64 in_counts[] */ path = getString(prhs[2]); if (verbose) mexPrintf("Variable name: \"%s\"\n", path ); in_noffsets = mxGetNumberOfElements(prhs[3]); in_offsets = (int64_t *) mxGetData(prhs[3]); in_counts = (int64_t *) mxGetData(prhs[4]); /*********************************************************************/ /* 4. read in variable */ out = readdata( gp, path, in_noffsets, in_offsets, in_counts); if ( nlhs >= 1 ) { plhs[0] = out; } /********************************************************/ /* 5. read in all attributes of a variable if requested */ #if 0 if ( nlhs == 2 ) { if (!isvar) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:read", "Second output argument can be provided only for variables. Path %s refers to an attribute.", path); } else { /* Read all attributes directly under the given path (= path/name) */ if (verbose) mexPrintf("Read in attributes under the path %s\n", path); nattrs = adios_readutil_getdirectattributes(gh, path, &attrlist); if (verbose) mexPrintf("Found %d matching attributes\n", nattrs); attr_struct_dims[0] = 1; attr_struct_dims[1] = nattrs; /* Create a 1-by-n array of structs with fields {name,value}. */ plhs[1] = mxCreateStructArray(2, attr_struct_dims, 2, field_names); if (verbose) mexPrintf("Created struct array, 1-by-%d\n", attr_struct_dims[1]); i=0; attr=attrlist; while (attr != NULL) { mxSetFieldByNumber(plhs[1],i,0,mxCreateString(attr->name)); out = readdata( fh, gh, attr->name, 0, NULL, NULL, timestep, &isvar); mxSetFieldByNumber(plhs[1],i,1,out); if (verbose) mexPrintf("Added attr: %s\n", attr->name); i++; attr=attr->next; } adios_readutil_freenamelist(attrlist); } } #endif /**************************************************/ /* 6. close group and file if opened in this call */ if (haveToCloseGroup) { if (verbose) mexPrintf("Close group\n"); adios_gclose(gp); if (gname) mxFree(gname); } if (haveToCloseFile) { if (verbose) mexPrintf("Close file\n"); adios_fclose(fp); if (fname) mxFree(fname); } mxFree(path); } mxArray* readdata( ADIOS_GROUP *gp, const char *path, mwSize in_noffsets, const int64_t *in_offsets, const int64_t *in_counts) { /* FIXME: does not work for COMPLEX data because adios stores real and imaginary together as Fortran Complex type does, while matlab stores them as two separate float/double arrays */ void *data; /* content of variable read in */ uint64_t offsets[16], counts[16]; /* extended offsets/counts */ int64_t read_bytes; uint64_t arraysize; int status, i; mxArray * out; char msg[512]; ADIOS_VARINFO *vinfo; /* get type/size info on variable */ if (verbose) mexPrintf("Get info on var: %s\n", path); vinfo = adios_inq_var( gp, path); if (vinfo == NULL) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:varinfo",adios_errmsg()); } if (verbose) { mexPrintf("Var=%s type=%s C dimensions %dD [", path, adios_type_to_string(vinfo->type), vinfo->ndim); for (i=0; indim; i++) mexPrintf("%lld ", vinfo->dims[i]); mexPrintf("]\n"); } /* Flip dimensions from ADIOS-read-api/C/row-major order to Matlab/Fortran/column-major order */ swap_order(vinfo->ndim, vinfo->dims); /* extend offsets/counts if needed, change from 1..N to 0..N-1 indexing and interpret negative indices */ recalc_offsets( vinfo->ndim, vinfo->dims, in_noffsets, in_offsets, in_counts, offsets, counts); /* create Matlab array with the appropriate type and size */ if (vinfo->type == adios_string) { /* Matlab string != char array of C, so handle separately */ data = (void *) mxCalloc(vinfo->dims[0], sizeof(char)); } else { if (verbose) { mexPrintf("Create %d-D Matlab array [", vinfo->ndim); for (i=0; indim; i++) mexPrintf("%lld ", counts[i]); mexPrintf("]\n"); } out = createMatlabArray(vinfo->type, vinfo->ndim, counts); data = (void *) mxGetData(out); } /* Flip offsets/counts from Matlab/Fortran/column-major order to ADIOS-read-api/C/row-major order */ swap_order(vinfo->ndim, offsets); swap_order(vinfo->ndim, counts); /* read in data */ if (verbose) mexPrintf("Read in data\n"); read_bytes = adios_read_var_byid( gp, vinfo->varid, offsets, counts, data); if (read_bytes < 0) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:read",adios_errmsg()); } if (verbose) mexPrintf("Read in %lld bytes\n", read_bytes); if (vinfo->type == adios_string) { out = mxCreateString( (char *)data); mxFree(data); } adios_free_varinfo(vinfo); return out; } void errorCheck(int nlhs, int nrhs, const mxArray *prhs[]){ /* Assume that we are called from adiosread.m which checks the arguments already */ /* Check for proper number of arguments. */ if ( nrhs != 6 ) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:rhs","This function needs exactly 6 arguments: File, Group, Varpath, Offsets, Counts, Verbose"); } if ( !mxIsChar(prhs[0]) && !mxIsInt64(prhs[0]) ) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:rhs","First arg must be either a string or an int64 handler."); } if ( nlhs > 1 ) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:lhs","Too many output arguments."); } #if !defined(MX_COMPAT_32) /* Make sure that it is safe to cast dim to mwSize when using largeArrayDims.*/ if ( dim > MWSIZE_MAX ) { mexErrMsgIdAndTxt("MATLAB:adiosreadc:dimensionTooLarge", "The input dimension, %.0f, is larger than the maximum value of mwSize, %u, when built with largeArrayDims.", dim, MWSIZE_MAX); } #endif } /** Make a C char* string from a Matlab string */ char* getString(const mxArray *mxstr) { mwSize buflen; char *str; /* Allocate enough memory to hold the converted string. */ buflen = mxGetNumberOfElements(mxstr) + 1; str = mxCalloc(buflen, sizeof(char)); /* Copy the string data from string_array_ptr and place it into buf. */ if (mxGetString(mxstr, str, buflen) != 0) mexErrMsgTxt("Could not convert string data from the file name."); return str; } /** return the appropriate class for an adios type */ mxClassID adiostypeToMatlabClass(enum ADIOS_DATATYPES type, mxComplexity *complexity) { *complexity=mxREAL; switch( type ) { case adios_unsigned_byte: return mxUINT8_CLASS; case adios_byte: return mxINT8_CLASS; case adios_string: return mxCHAR_CLASS; case adios_unsigned_short: return mxUINT16_CLASS; case adios_short: return mxINT16_CLASS; case adios_unsigned_integer: return mxUINT32_CLASS; case adios_integer: return mxINT32_CLASS; case adios_unsigned_long: return mxUINT64_CLASS; case adios_long: return mxINT64_CLASS; case adios_real: return mxSINGLE_CLASS; case adios_double: return mxDOUBLE_CLASS; case adios_complex: /* 8 bytes */ *complexity = mxCOMPLEX; return mxSINGLE_CLASS; case adios_double_complex: /* 16 bytes */ *complexity = mxCOMPLEX; return mxDOUBLE_CLASS; case adios_long_double: /* 16 bytes */ default: mexErrMsgIdAndTxt("MATLAB:adiosreadc.c:dimensionTooLarge", "Adios type %d (%s) not supported in visit.\n", type, adios_type_to_string(type)); break; } return 0; /* just to avoid warnings. never executed */ } /* create an N-dim array with given type and dimensions */ mxArray* createMatlabArray( enum ADIOS_DATATYPES adiostype, int ndims, uint64_t *dims) { mxClassID mxtype; mxArray *arr; mwSize mNdims; mwSize mDims[16]; mxComplexity ComplexFlag; int i; int isTypeComplex; /* convert ints to mwSizes */ if (ndims > 0) { mNdims = (mwSize) ndims; for (i=0; i 1-by-1 Matlab array */ mNdims = 2; mDims[0] = 1; mDims[1] = 1; } /* get type */ mxtype = adiostypeToMatlabClass(adiostype, &ComplexFlag); /* create array */ arr = mxCreateNumericArray( mNdims, mDims, mxtype, ComplexFlag); if (verbose) mexPrintf("Array for adios type %s is created\n", adios_type_to_string(adiostype)); return arr; } /** - extend offset/count arrays to ndims if needed - recalculate "from 1" Matlab indices to "from 0" C indices - recalculate the negative indices !!! Provide the output arrays in the caller !!! */ void recalc_offsets( int ndims, uint64_t *dims, mwSize in_noffsets, const int64_t *in_offsets, const int64_t *in_counts, uint64_t *offsets, uint64_t *counts) { int i; for (i=0; i % % Process arguments. % checkArgCounts(varargin{:}); [args, msg] = parse_inputs(varargin{:}); if (~isempty(msg)) error('MATLAB:adiosread:inputParsing', '%s', msg); end if (isnumeric(args.Group)) if (isa(args.Group, 'int64')) gn=sprintf('Group handler=%lld',args.Group); else gn=sprintf('Group index=%d',args.Group); end else gn=sprintf('Group name=%s',args.Group); end offsets=sprintf('%d ', args.Offsets); counts=sprintf('%d ', args.Counts); verbose=sprintf('%d ', args.Verbose); input = sprintf('adiosreadc:\n File name=%s \n %s \n Var=%s\n Offsets=[%s] Counts=[%s] \n Verbose=%s', ... args.File, gn, args.Path, offsets, counts, verbose); if (args.Verbose > 0) CallArguments = input end if (nargout == 1) data = adiosreadc(args.File, args.Group, args.Path, args.Offsets, args.Counts, args.Verbose); else adiosreadc(args.File, args.Group, args.Path, args.Offsets, args.Counts, args.Verbose); end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FUNCTION: checkArgCounts % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function checkArgCounts(varargin) if (nargin < 2) error('MATLAB:adiosread:notEnoughInputs', ... 'ADIOSREAD requires at least two input arguments.') end if (nargout > 1) error('MATLAB:adiosread:tooManyOutputs', ... 'ADIOSREAD requires one or fewer output arguments.') end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FUNCTION: parse_inputs % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [args, msg] = parse_inputs(varargin) args.File = ''; args.Group = ''; args.Path = ''; args.Offsets = []; % start positions in each dimension for slicing args.Counts = []; % counts in each dimension for slicing args.Verbose = 0; % verbosity, default is off, i.e. 0 msg = ''; % Arg 1: file name or int64 group handler if ischar(varargin{1}) args.File = varargin{1}; % % Verify existence of filename % fid = fopen(args.File); if (fid == -1) % Look for filename with extensions. fid = fopen([args.File '.bp']); end if (fid == -1) error('MATLAB:hdf5read:fileOpen', ... 'Couldn''t open file (%s).', ... args.File) else % Get full filename args.File = fopen(fid); fclose(fid); end elseif (isa(varargin{1}, 'struct')) try grp = varargin{1}; args.Group = grp.GroupHandler; % int64 catch msg = ['Input is not a group struct of the info struct ' ... 'returned by ADIOSOPEN']; return end else msg = ['1st arg should be a string FILE argument to ADIOSREAD ' ... 'or a group struct from ADIOSOPEN']; return end % Arg 2 and maybe 3: group and varpath if (rem(nargin, 2) == 0) % even number of arguments: FILE, VARPATH, ... args.Path = varargin{2}; varargin = {varargin{3:end}}; else % odd number of arguments: FILE, GROUP, VARPATH, ... if (args.Group ~= '') msg = ['GROUPHANDLER, GROUP, VARPATH is not an accepted argument list']; return end args.Group = varargin{2}; args.Path = varargin{3}; varargin = {varargin{4:end}}; % check type of Group if ((~ischar(args.Group)) && (~isnumeric(args.Group))) msg = ['GROUP input argument to ADIOSREAD must be a string or a number']; return end if (isnumeric(args.Group)) % convert group index to int32 args.Group = int32(args.Group); end end % check type of Path if ~ischar(args.Path) msg = ['VARPATH input argument to ADIOSREAD must be string.']; return end % Parse optional arguments based on their number. if (length(varargin) > 0) paramStrings = {'slice', 'verbose'}; % For each pair for k = 1:2:length(varargin) param = lower(varargin{k}); if (~ischar(param)) msg = 'Parameter name must be a string.'; return end idx = strmatch(param, paramStrings); if (isempty(idx)) msg = sprintf('Unrecognized parameter name "%s".', param); return elseif (length(idx) > 1) msg = sprintf('Ambiguous parameter name "%s".', param); return end switch (paramStrings{idx}) % SLICE case 'slice' if (k == length(varargin)) msg = 'No slicing value specified for Slice option.'; return end slices = varargin{k+1}; if ((~isnumeric(slices)) || ... (~isempty(slices) && size(slices, 2) ~= 2) || ... (~isempty(find(rem(slices, 1) ~= 0)))) msg = 'Slice values must be n-by-2 array of integers.'; return end if (~isempty(slices)) args.Offsets = int64(fix(slices(:,1))); args.Counts = int64(fix(slices(:,2))); else args.Offsets = int64([]); args.Counts = int64([]); end % VERBOSE case 'verbose' if (k == length(varargin)) msg = 'No value specified for Verbose option.'; return end args.Verbose = varargin{k+1}; if ((~isnumeric(args.Verbose)) || ... (~isempty(find(rem(args.Verbose, 1) ~= 0)))) msg = sprintf('''VERBOSE'' must be an integer.'); return end if (args.Verbose < 0) msg = sprintf('''VERBOSE'' must be greater or equal to zero.'); return end end end end adios-1.5.0/wrappers/matlab/adiosopenc.c0000644000175000017500000004253512251360163021351 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /*================================================================= * adiosopenc.c - Open an ADIOS file * * Input: File, Verbose * File: string (name) or int64 (handler) * Verbose: numeric (double) * * Output: Information structure * Name file path * FileHandler int64 file handler * TimeStart First timestep in file (usually = 1) * TimeSteps Number of timesteps in file, always at least 1 * Groups Adios groups in the file. Usually 1 group is in a file. * This is a structure array of * * Name group name * GroupHandler int64 group handler * Variables structure array of variables * Name path of variable * Type Matlab type class of data * Dims Array of dimensions * Timedim The time dimension, 0 if there is no time varying * part of the variable * GlobalMin global minimum of the variable (1-by-1 mxArray) * GlobalMax global maximum of the variable * * Attributes structure array of attributes * Name path of attribute * Type Matlab type class of data * Value attribute value (mxArray) * * * * $Revision: 1.0 $ $Date: 2009/08/05 12:53:41 $ * Author: Norbert Podhorszki *=================================================================*/ #include /* memcpy */ #include "mex.h" #include "adios_types.h" #include "adios_read.h" #include "adios_types.h" static int verbose=0; mxClassID adiostypeToMatlabClass(int type, mxComplexity *complexity ); mxArray* valueToMatlabValue( void * data, mxClassID mxtype, mxComplexity complexFlag); void errorCheck(int nlhs, int nrhs, const mxArray *prhs[]); char* getString(const mxArray *mxstr); static void swap_order(int n, uint64_t *array); void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { char *fname; /* file name */ int status; char msg[512]; /* error messages from function calls */ int32_t *int32p; ADIOS_FILE *fp; /* File handler structure */ ADIOS_GROUP *gp; /* Group handler structure */ ADIOS_VARINFO *vinfo; /* Variable info structure */ int mpi_comm_dummy; /* ADIOS read API needs an MPI communicator */ int32_t timedim; /* time dimension is translated C 0.. -> Matlab 1.. */ int asize; /* Attribute size info */ enum ADIOS_DATATYPES adiostype; /* Attribute type info */ void *data; /* Attributes return their values */ mwSize mDims[] = {1}; /* dimensions to create a scalar mxArray */ int gi,vi,ai, i; /* loop variables for groups, vars and attrs */ mxArray *arr; /* temp array for constructions */ mxArray *groups, *vars, *attrs; /* struct arrays under top struct */ mxClassID mxtype; /* matlab type (of vars and attrs) */ mxComplexity complexFlag; /* Output structure definition */ const char *top_field_names[] = {"Name", "FileHandler", "TimeStart", "TimeSteps", "Groups"}; /* top level struct fields */ mwSize ntopfields = 5; mwSize top_struct_dims[] = {1,1}; /* dimensions for top level struct array: 1-by-1 */ int top_field_Name; int top_field_FileHandler; int top_field_TimeStart; int top_field_TimeSteps; int top_field_Groups; const char *group_field_names[] = {"Name", "GroupHandler", "Variables", "Attributes"}; /* group level struct fields */ mwSize ngroupfields = 4; mwSize group_struct_dims[2]; /* dimensions for group level struct array: 1-by-sth */ int group_field_Name; int group_field_GroupHandler; int group_field_Variables; int group_field_Attributes; const char *var_field_names[] = {"Name","Type","Dims", "Timedim", "GlobalMin", "GlobalMax"}; /* variable level struct fields */ mwSize nvarfields = 6; mwSize var_struct_dims[2]; /* dimensions for variable level struct array: 1-by-sth */ int var_field_Name; int var_field_Type; int var_field_Dims; int var_field_Timedim; int var_field_GlobalMin; int var_field_GlobalMax; const char *attr_field_names[] = {"Name","Type","Value"}; /* attribute level struct fields */ mwSize nattrfields = 3; mwSize attr_struct_dims[2]; /* dimensions for attribute level struct array: 1-by-sth */ int attr_field_Name; int attr_field_Type; int attr_field_Value; errorCheck(nlhs, nrhs, prhs); /*mexPrintf("nrhs=%d nlhs=%d\n", nrhs, nlhs);*/ /***********************/ /* 0. get verbose parameter first */ verbose = (int)mxGetScalar(prhs[1]); if (verbose) mexPrintf("Verbosity level: %d\n", verbose); /* 1. get file handler */ if (mxIsChar(prhs[0])) { fname = getString( (mxArray *)prhs[0]); if (verbose) mexPrintf("File name: \"%s\"\n", fname); } /**************************************/ /* Open ADIOS file now and get groups */ fp = adios_fopen (fname, mpi_comm_dummy); if (fp == NULL) { mexErrMsgIdAndTxt("MATLAB:adiosopenc:open",adios_errmsg()); } if (verbose) mexPrintf("Number of adios groups: %d, fp=%lld\n", fp->groups_count, (int64_t) fp); /******************************/ /* Create top level structure */ if (verbose) mexPrintf("Create top struct array, 1-by-1\n"); plhs[0] = mxCreateStructArray(2, top_struct_dims, ntopfields, top_field_names); top_field_Name = mxGetFieldNumber(plhs[0],"Name"); top_field_FileHandler = mxGetFieldNumber(plhs[0],"FileHandler"); top_field_TimeStart = mxGetFieldNumber(plhs[0],"TimeStart"); top_field_TimeSteps = mxGetFieldNumber(plhs[0],"TimeSteps"); top_field_Groups = mxGetFieldNumber(plhs[0],"Groups"); mxSetFieldByNumber(plhs[0],0,top_field_Name,mxCreateString(fname)); arr = valueToMatlabValue(&fp, mxINT64_CLASS, mxREAL); mxSetFieldByNumber(plhs[0],0,top_field_FileHandler,arr); arr = mxCreateNumericMatrix( 1, 1, mxINT32_CLASS, mxREAL); *(int32_t *)mxGetData(arr) = fp->tidx_start; mxSetFieldByNumber(plhs[0],0,top_field_TimeStart,arr); arr = mxCreateNumericMatrix( 1, 1, mxINT32_CLASS, mxREAL); *(int32_t *)mxGetData(arr) = fp->ntimesteps; mxSetFieldByNumber(plhs[0],0,top_field_TimeSteps,arr); /* Create top.Groups structure array */ if (verbose) mexPrintf("Create top.Groups struct array, 1-by-%d\n",fp->groups_count); group_struct_dims[0] = 1; group_struct_dims[1] = fp->groups_count; groups = mxCreateStructArray(2, group_struct_dims, ngroupfields, group_field_names); mxSetFieldByNumber(plhs[0],0,top_field_Groups,groups); /****************************/ /* Fill in Groups structure */ group_field_Name = mxGetFieldNumber(groups,"Name"); group_field_GroupHandler = mxGetFieldNumber(groups,"GroupHandler"); group_field_Variables = mxGetFieldNumber(groups,"Variables"); group_field_Attributes = mxGetFieldNumber(groups,"Attributes"); for (gi = 0; gi < fp->groups_count; gi++) { /* Get info of one group: handler, list of vars, list of attrs */ if (verbose) mexPrintf("Group %s: get info\n", fp->group_namelist[gi]); gp = adios_gopen_byid(fp, gi); if (gp == NULL) { mexErrMsgIdAndTxt("MATLAB:adiosopenc:groupinfo",adios_errmsg()); } if (verbose) mexPrintf(" %d variables and %d attributes\n", gp->vars_count, gp->attrs_count); /* Group fields for gi-th group */ mxSetFieldByNumber(groups,gi,group_field_Name,mxCreateString(fp->group_namelist[gi])); mexPrintf("Group gp=%lld id=%d vcnt=%d\n", (int64_t)gp, gp->grpid, gp->vars_count); arr = valueToMatlabValue(&gp, mxINT64_CLASS, mxREAL); mxSetFieldByNumber(groups,gi,group_field_GroupHandler,arr); /* Create top.Groups.Variables structure array */ var_struct_dims[0] = 1; var_struct_dims[1] = gp->vars_count; vars = mxCreateStructArray(2, var_struct_dims, nvarfields, var_field_names); mxSetFieldByNumber(groups,gi,group_field_Variables,vars); var_field_Name = mxGetFieldNumber(vars,"Name"); var_field_Type = mxGetFieldNumber(vars,"Type"); var_field_Dims = mxGetFieldNumber(vars,"Dims"); var_field_Timedim = mxGetFieldNumber(vars,"Timedim"); var_field_GlobalMin = mxGetFieldNumber(vars,"GlobalMin"); var_field_GlobalMax = mxGetFieldNumber(vars,"GlobalMax"); /* Create top.Groups.Attributes structure array */ attr_struct_dims[0] = 1; attr_struct_dims[1] = gp->attrs_count; attrs = mxCreateStructArray(2, attr_struct_dims, nattrfields, attr_field_names); mxSetFieldByNumber(groups,gi,group_field_Attributes,attrs); attr_field_Name = mxGetFieldNumber(attrs,"Name"); attr_field_Type = mxGetFieldNumber(attrs,"Type"); attr_field_Value = mxGetFieldNumber(attrs,"Value"); /******************************/ /* Add variables to the group */ if (verbose>1) mexPrintf(" Variables\n"); for (vi=0; vi < gp->vars_count; vi++) { vinfo = adios_inq_var_byid( gp, vi); if (vinfo == NULL) { mexErrMsgIdAndTxt("MATLAB:adiosopenc:varinfo",adios_errmsg()); } /* Flip dimensions from ADIOS-read-api/C/row-major order to Matlab/Fortran/column-major order */ swap_order(vinfo->ndim, vinfo->dims); if (verbose>1) { mexPrintf(" %s: ndims=%d, adios type=%s, timedim=%d dimensions [", gp->var_namelist[vi], vinfo->ndim, adios_type_to_string(vinfo->type), vinfo->timedim); for (i=0; indim; i++) mexPrintf("%lld ", vinfo->dims[i]); mexPrintf("]\n"); } /* field NAME */ mxSetFieldByNumber(vars,vi,var_field_Name,mxCreateString(gp->var_namelist[vi])); /* field TYPE */ mxtype = adiostypeToMatlabClass(vinfo->type, &complexFlag); arr = mxCreateNumericMatrix( 1, 1, mxtype, complexFlag); mxSetFieldByNumber(vars,vi,var_field_Type,mxCreateString(mxGetClassName(arr))); mxDestroyArray(arr); /* field DIMS */ if (vinfo->ndim > 0) { arr = mxCreateNumericMatrix( 1, vinfo->ndim, mxINT32_CLASS, mxREAL); int32p = (int32_t *)mxGetData(arr); for (i=0; indim; i++) int32p[i] = (int32_t) vinfo->dims[i]; } else { arr = mxCreateNumericMatrix( 0, 0, mxINT32_CLASS, mxREAL); } mxSetFieldByNumber(vars,vi,var_field_Dims,arr); /* field TIMEDIM */ /* Timedim is -1,0...ndim-1 in C, 0,1..ndim in Matlab */ timedim = vinfo->timedim + 1; arr = valueToMatlabValue((void *)(&timedim), mxINT32_CLASS, mxREAL); mxSetFieldByNumber(vars,vi,var_field_Timedim,arr); /* field GLOBALMIN */ arr = valueToMatlabValue(vinfo->gmin, mxtype, complexFlag); mxSetFieldByNumber(vars,vi,var_field_GlobalMin,arr); /* field GLOBALMAX */ arr = valueToMatlabValue(vinfo->gmax, mxtype, complexFlag); mxSetFieldByNumber(vars,vi,var_field_GlobalMax,arr); adios_free_varinfo(vinfo); } /******************************/ /* Add attributes to the group */ if (verbose>1) mexPrintf(" Attributes\n"); for (ai=0; ai < gp->attrs_count; ai++) { status = adios_get_attr_byid( gp, ai, &adiostype, &asize, &data); if (status != 0) { mexErrMsgIdAndTxt("MATLAB:adiosopenc:varinfo",adios_errmsg()); } if (verbose>1) mexPrintf(" %s: adios type=%s, size=%d\n", gp->attr_namelist[ai], adios_type_to_string(adiostype), asize); /* field NAME */ mxSetFieldByNumber(attrs,ai,attr_field_Name,mxCreateString(gp->attr_namelist[ai])); /* field TYPE */ mxtype = adiostypeToMatlabClass(adiostype, &complexFlag); arr = mxCreateNumericMatrix( 1, 1, mxtype, complexFlag); mxSetFieldByNumber(attrs,ai,attr_field_Type,mxCreateString(mxGetClassName(arr))); mxDestroyArray(arr); /* field VALUE */ arr = valueToMatlabValue(data, mxtype, complexFlag); mxSetFieldByNumber(attrs,ai,attr_field_Value,arr); free(data); /* we do not store attribute values yet */ } if (verbose>1) mexPrintf(" finished defining group\n"); } if (verbose) mexPrintf("return from adiosopenc\n"); } mxArray * valueToMatlabValue( void * data, mxClassID mxtype, mxComplexity complexFlag) { /* copies values in all cases, so one can free(data) later */ mxArray *arr; if (data == NULL) { arr = mxCreateString("undefined"); } else if (mxtype == mxCHAR_CLASS) { arr = mxCreateString((char *)data); } else if (complexFlag == mxCOMPLEX) { arr = mxCreateDoubleMatrix( 1, 1, mxCOMPLEX); if (mxtype == mxSINGLE_CLASS) { *(double *)mxGetPr(arr) = ((float *)data)[0]; *(double *)mxGetPi(arr) = ((float *)data)[1]; } else { *(double *)mxGetPr(arr) = ((double *)data)[0]; *(double *)mxGetPi(arr) = ((double *)data)[1]; } } else { arr = mxCreateNumericMatrix( 1, 1, mxtype, mxREAL); memcpy( mxGetData(arr), data, mxGetElementSize(arr)); } return arr; } void errorCheck(int nlhs, int nrhs, const mxArray *prhs[]){ /* Assume that we are called from adiosread.m which checks the arguments already */ /* Check for proper number of arguments. */ if ( nrhs != 2 ) { mexErrMsgIdAndTxt("MATLAB:adiosopenc:rhs","This function needs exactly 2 arguments: File, Verbose"); } if ( !mxIsChar(prhs[0]) ) { mexErrMsgIdAndTxt("MATLAB:adiosopenc:rhs","First arg must be a string."); } if ( !mxIsNumeric(prhs[1]) ) { mexErrMsgIdAndTxt("MATLAB:adiosopenc:rhs","Second arg must be a number."); } if ( nlhs > 1 ) { mexErrMsgIdAndTxt("MATLAB:adiosopenc:lhs","Too many output arguments."); } #if !defined(MX_COMPAT_32) /* Make sure that it is safe to cast dim to mwSize when using largeArrayDims.*/ if ( dim > MWSIZE_MAX ) { mexErrMsgIdAndTxt("MATLAB:adiosopenc:dimensionTooLarge", "The input dimension, %.0f, is larger than the maximum value of mwSize, %u, when built with largeArrayDims.", dim, MWSIZE_MAX); } #endif } /** Make a C char* string from a Matlab string */ char* getString(const mxArray *mxstr) { mwSize buflen; char *str; /* Allocate enough memory to hold the converted string. */ buflen = mxGetNumberOfElements(mxstr) + 1; str = mxCalloc(buflen, sizeof(char)); /* Copy the string data from string_array_ptr and place it into buf. */ if (mxGetString(mxstr, str, buflen) != 0) mexErrMsgTxt("Could not convert string data from the file name."); return str; } /** return the appropriate class for an adios type (and complexity too) */ mxClassID adiostypeToMatlabClass(enum ADIOS_DATATYPES type, mxComplexity *complexity ) { *complexity = mxREAL; switch( type ) { case adios_unsigned_byte: return mxUINT8_CLASS; case adios_byte: return mxINT8_CLASS; case adios_string: return mxCHAR_CLASS; case adios_unsigned_short: return mxUINT16_CLASS; case adios_short: return mxINT16_CLASS; case adios_unsigned_integer: return mxUINT32_CLASS; case adios_integer: return mxINT32_CLASS; case adios_unsigned_long: return mxUINT64_CLASS; case adios_long: return mxINT64_CLASS; case adios_real: return mxSINGLE_CLASS; case adios_double: return mxDOUBLE_CLASS; case adios_complex: /* 8 bytes */ *complexity = mxCOMPLEX; return mxSINGLE_CLASS; case adios_double_complex: /* 16 bytes */ *complexity = mxCOMPLEX; return mxDOUBLE_CLASS; case adios_long_double: /* 16 bytes */ default: mexErrMsgIdAndTxt("MATLAB:adiosopenc.c:dimensionTooLarge", "Adios type %d (%s) not supported in visit.\n", type, adios_type_to_string(type)); break; } return 0; /* just to avoid warnings. never executed */ } /* Reverse the order in an array in place. use swapping from Matlab/Fortran/column-major order to ADIOS-read-api/C/row-major order and back */ static void swap_order(int n, uint64_t *array) { int i, tmp; for (i=0; i *=================================================================*/ #include "mex.h" #include "adios_read.h" #include "adios_types.h" static int verbose=0; mxClassID adiostypeToMatlabClass(int type, mxComplexity *complexity ); void errorCheck(int nlhs, int nrhs, const mxArray *prhs[]); char* getString(const mxArray *mxstr); void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { int status; char msg[512]; /* error messages from function calls */ mwSize ngroups; int64_t *ghs, *int64p; /* file and group handlers and temp pointers */ int i; errorCheck(nlhs, nrhs, prhs); /*mexPrintf("nrhs=%d nlhs=%d\n", nrhs, nlhs);*/ /***********************/ /* 0. get verbose parameter first */ verbose = (int)mxGetScalar(prhs[2]); if (verbose) mexPrintf("Verbosity level: %d\n", verbose); /* 1. get file handler */ int64p = (int64_t *) mxGetData(prhs[0]); if (verbose) mexPrintf("File handler: \"%lld\"\n", *int64p); /* 2. get group handlers */ ghs = (int64_t *) mxGetData(prhs[1]); ngroups=mxGetNumberOfElements(prhs[1]); if (verbose) mexPrintf("Number of group handlers: \"%d\"\n", ngroups); for (i=0; i 0 ) { mexErrMsgIdAndTxt("MATLAB:adiosclosec:lhs","This function does not have output arguments."); } #if !defined(MX_COMPAT_32) /* Make sure that it is safe to cast dim to mwSize when using largeArrayDims.*/ if ( dim > MWSIZE_MAX ) { mexErrMsgIdAndTxt("MATLAB:adiosclosec:dimensionTooLarge", "The input dimension, %.0f, is larger than the maximum value of mwSize, %u, when built with largeArrayDims.", dim, MWSIZE_MAX); } #endif } /** Make a C char* string from a Matlab string */ char* getString(const mxArray *mxstr) { mwSize buflen; char *str; /* Allocate enough memory to hold the converted string. */ buflen = mxGetNumberOfElements(mxstr) + 1; str = mxCalloc(buflen, sizeof(char)); /* Copy the string data from string_array_ptr and place it into buf. */ if (mxGetString(mxstr, str, buflen) != 0) mexErrMsgTxt("Could not convert string data from the file name."); return str; } adios-1.5.0/wrappers/matlab/Makefile0000644000175000017500000000203712251360163020512 0ustar amckinstryamckinstryinclude ../../adios_config.flags MEXOPTS=-g -DDEBUG default: @echo "ADIOS reader methods for MATLAB" @echo "Have 'mex' compiler in the path and run" @echo "> make matlab" matlab: adiosopenc adiosclosec adiosreadc adiosopenc: mex adiosopenc.c ${MEXOPTS} -D_NOMPI -DADIOS_USE_READ_API_1 -I. -I../../src/public -L. -L../../src ${ADIOSREAD_SEQ_INC} ${ADIOSREAD_SEQ_CLIB} adiosreadc: mex adiosreadc.c ${MEXOPTS} -D_NOMPI -DADIOS_USE_READ_API_1 -I. -I../../src/public -L. -L../../src ${ADIOSREAD_SEQ_INC} ${ADIOSREAD_SEQ_CLIB} adiosclosec: mex adiosclosec.c ${MEXOPTS} -D_NOMPI -DADIOS_USE_READ_API_1 -I. -I../../src/public -L. -L../../src ${ADIOSREAD_SEQ_INC} ${ADIOSREAD_SEQ_CLIB} #adiosdbgc: # mex adiosdbgc.c ${MEXOPTS} -D_NOMPI -I. -I../../src/public -L. -L../../src ${ADIOSREAD_SEQ_INC} ${ADIOSREAD_SEQ_CLIB} clean: rm -f *.mexa64 core* *.o install: @echo "Install *.m and *.mexa64 into MATLABPATH" @echo "Do not have 'adios' anywhere in the path where you install the files" @echo "otherwise 'help adios' will not work in Matlab" adios-1.5.0/wrappers/matlab/adiosclose.m0000644000175000017500000000772712251360163021370 0ustar amckinstryamckinstryfunction adiosclose(varargin) %ADIOSCLOSE Close an ADIOS BP file. % % ADIOSCLOSE closes an ADIOS BP file that was opened by ADIOSOPEN. % Provide the structure returned by ADIOSOPEN as input. % % ADIOSCLOSE(STRUCT) % Close file and free internal data structures. % STRUCT is the output of ADIOSOPEN. % % ADIOSCLOSE(STRUCT, 'Verbose', LEVEL) % To get logging from the adiosclose code, set Verbose to 1 or higher. % Higher values cause more and more details to be printed. % % Please read the file adioscopyright.txt for more information. % % See also ADIOSOPEN, ADIOSREAD, ADIOS. % Copyright 2009 UT-BATTELLE, LLC % $Revision: 1.0 $ $Date: 2009/08/05 12:53:41 $ % Author: Norbert Podhorszki % % Process arguments. % checkArgCounts(varargin{:}); [args, msg] = parse_inputs(varargin{:}); if (~isempty(msg)) error('MATLAB:adiosopen:inputParsing', '%s', msg); end if (args.Verbose > 0) fn=sprintf('File handler=%lld',args.fh); gharr=sprintf('%lld ',args.ghs); ghs=sprintf('Group handlers=[%s]',gharr); CallArguments = sprintf('adiosclosec:\n %s\n %s\n Verbose=%d\n', fn, ghs, args.Verbose); end adiosclosec(args.fh, args.ghs, args.Verbose); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FUNCTION: checkArgCounts % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function checkArgCounts(varargin) if (nargin < 1) error('MATLAB:adiosopen:notEnoughInputs', ... 'ADIOSCLOSE requires at least one input argument.') end if (nargout > 0) error('MATLAB:adiosread:tooManyOutputs', ... 'ADIOSCLOSE has no output arguments.') end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FUNCTION: parse_inputs % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [args, msg] = parse_inputs(varargin) arg1 = ''; args.fh=int64(0); args.ngroups=0; args.ghs=int64([]); args.Verbose = 0; % verbosity, default is off, i.e. 0 msg = ''; % Arg 1: struct returned by ADIOSOPEN if isstruct(varargin{1}) arg1 = varargin{1}; % % Verify it is an adios struct from ADIOSOPEN % fnames = fieldnames(arg1); if ( ~strcmp(fnames{1},'Name') || ... ~strcmp(fnames{2},'FileHandler') || ... ~strcmp(fnames{3},'TimeStart') || ... ~strcmp(fnames{4},'TimeSteps') || ... ~strcmp(fnames{5},'Groups') ... ) msg = 'STRUCT input argument does not seem to be output of ADIOSOPEN'; return end args.fh = int64(arg1.FileHandler); args.ngroups = length(arg1.Groups); for i=1:length(arg1.Groups) args.ghs(i) = int64(arg1.Groups(i).GroupHandler); end varargin = {varargin{2:end}}; else msg = 'STRUCT input argument must be the output of ADIOSOPEN'; return end % Parse optional arguments based on their number. if (length(varargin) > 0) paramStrings = {'verbose'}; % For each pair for k = 1:2:length(varargin) param = lower(varargin{k}); if (~ischar(param)) msg = 'Parameter name must be a string.'; return end idx = strmatch(param, paramStrings); if (isempty(idx)) msg = sprintf('Unrecognized parameter name "%s".', param); return elseif (length(idx) > 1) msg = sprintf('Ambiguous parameter name "%s".', param); return end switch (paramStrings{idx}) % VERBOSE case 'verbose' if (k == length(varargin)) msg = 'No value specified for Verbose option.'; return end args.Verbose = varargin{k+1}; if ((~isnumeric(args.Verbose)) || ... (~isempty(find(rem(args.Verbose, 1) ~= 0)))) msg = sprintf('''VERBOSE'' must be an integer.'); return end if (args.Verbose < 0) msg = sprintf('''VERBOSE'' must be greater or equal to zero.'); return end end end end adios-1.5.0/wrappers/matlab/adiosopen.m0000644000175000017500000001241112251360163021206 0ustar amckinstryamckinstryfunction info = adiosopen(varargin) %ADIOSOPEN Open an ADIOS BP file and provide information on it. % % ADIOSOPEN opens an ADIOS BP file and returns a structure that % contains the file handler and information on all groups, % variables and attributes. % % If you have opened the file with ADIOSOPEN, you can supply the % file handler and the group handler to read in a variable/attribute % with ADIOSREAD. When finished reading all data, you need to close % the file with ADIOSCLOSE. % % Note: the adios group is not the same as HDF5 groups. Each variable has % a path, which defines a logical hierarchy of the variables within one % adios group. This logical hierarchy is what is similar to HDF5 groups. % % INFO = ADIOSOPEN(FILE) % Open FILE and return an information structure. % % The returned INFO structure is the following % % Name file path % FileHandler int64 file handler % TimeStart First timestep in file % TimeEnd Last timestep in file % Groups Adios groups in the file. Usually 1 group is in a file. % This is a structure array of % % Name group name % GroupHandler int64 group handler % Variables structure array of variables % Name path of variable % Type Matlab type class of data % Dims Array of dimensions % Timedim The time dimension, 0 if there is no time varying % part of the variable % GlobalMin global minimum of the variable (1-by-1 mxArray) % GlobalMax global maximum of the variable % % Attributes structure array of attributes % Name path of attribute % Type Matlab type class of data % Value attribute value % % % INFO = ADIOSOPEN(FILE, 'Verbose', LEVEL) % To get logging from the adiosopen code, set Verbose to 1 or higher. % Higher values cause more and more details to be printed. % % See also ADIOSREAD, ADIOSCLOSE, ADIOS. % Copyright 2009 UT-BATTELLE, LLC % $Revision: 1.0 $ $Date: 2009/08/05 12:53:41 $ % Author: Norbert Podhorszki % % Process arguments. % checkArgCounts(varargin{:}); [args, msg] = parse_inputs(varargin{:}); if (~isempty(msg)) error('MATLAB:adiosopen:inputParsing', '%s', msg); end if (isnumeric(args.File)) fn=sprintf('File handler=%lld',args.File); else fn=sprintf('File name=%s',args.File); end verbose=sprintf('%d ', args.Verbose); input = sprintf('adiosopenc:\n %s \n Verbose=%s', fn, verbose); if (args.Verbose > 0) CallArguments = input end if (nargout == 1) info = adiosopenc(args.File, args.Verbose); else adiosopenc(args.File, args.Verbose); end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FUNCTION: checkArgCounts % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function checkArgCounts(varargin) if (nargin < 1) error('MATLAB:adiosopen:notEnoughInputs', ... 'ADIOSOPEN requires at least one input argument.') end if (nargout > 1) error('MATLAB:adiosopen:tooManyOutputs', ... 'ADIOSOPEN requires one or zero output arguments.') end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FUNCTION: parse_inputs % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [args, msg] = parse_inputs(varargin) args.File = ''; args.Verbose = 0; % verbosity, default is off, i.e. 0 msg = ''; % Arg 1: file name if ischar(varargin{1}) args.File = varargin{1}; % % Verify existence of filename % fid = fopen(args.File); if (fid == -1) % Look for filename with extensions. fid = fopen([args.File '.bp']); end if (fid == -1) error('MATLAB:hdf5read:fileOpen', ... 'Couldn''t open file (%s).', ... args.File) else % Get full filename args.File = fopen(fid); fclose(fid); end varargin = {varargin{2:end}}; else msg = 'FILE input argument to ADIOSOPEN must be a string '; return end % Parse optional arguments based on their number. if (length(varargin) > 0) paramStrings = {'verbose'}; % For each pair for k = 1:2:length(varargin) param = lower(varargin{k}); if (~ischar(param)) msg = 'Parameter name must be a string.'; return end idx = strmatch(param, paramStrings); if (isempty(idx)) msg = sprintf('Unrecognized parameter name "%s".', param); return elseif (length(idx) > 1) msg = sprintf('Ambiguous parameter name "%s".', param); return end switch (paramStrings{idx}) % VERBOSE case 'verbose' if (k == length(varargin)) msg = 'No value specified for Verbose option.'; return end args.Verbose = varargin{k+1}; if ((~isnumeric(args.Verbose)) || ... (~isempty(find(rem(args.Verbose, 1) ~= 0)))) msg = sprintf('''VERBOSE'' must be an integer.'); return end if (args.Verbose < 0) msg = sprintf('''VERBOSE'' must be greater or equal to zero.'); return end end end end adios-1.5.0/wrappers/numpy/0000755000175000017500000000000012251360163016760 5ustar amckinstryamckinstryadios-1.5.0/wrappers/numpy/README0000644000175000017500000000155012251360163017641 0ustar amckinstryamckinstryADIOS Python/Numpy wrapper ----------------- This directory contains the codes for the ADIOS python/numpy wrapper to to call the native ADIOS library. This module is built by Cython. == Build == This program can be built with CMake (http://www.cmake.org/). You may want to a build directory and run cmake pointing the source directory containing CMakeLists.txt (this directory). For example, $ mkdir build; cd build $ cmake /dir/to/source CMake will search installed ADIOS library and Python/Numpy. Once completed, type make to build: $ make Or, $ make VERBOSE=1 if you need verbose output. After successful building, you can see adios.so. This file can be loaded in Python. == Test == This program contains a test program. To run testing after building, type the following command: $ make test If you need a verbose output, type the following $ ctest -V adios-1.5.0/wrappers/numpy/adios.pyx0000644000175000017500000004441112251360163020625 0ustar amckinstryamckinstry""" ADIOS is freely available under the terms of the BSD license described in the COPYING file in the top level directory of this source distribution. Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. """ import numpy as np cimport numpy as np import mpi4py.MPI as MPI cimport mpi4py.MPI as MPI import cython cimport cython ## ========== ## ADIOS Exported Functions ## ========== from libc.stdint cimport uint32_t, int64_t, uint64_t from libc.stdlib cimport malloc, free cdef extern from "adios_types.h": ctypedef enum ADIOS_DATATYPES: adios_unknown adios_byte adios_short adios_integer adios_long adios_unsigned_byte adios_unsigned_short adios_unsigned_integer adios_unsigned_long adios_real adios_double adios_long_double adios_string adios_complex adios_double_complex ctypedef enum ADIOS_BUFFER_ALLOC_WHEN: ADIOS_BUFFER_ALLOC_UNKNOWN ADIOS_BUFFER_ALLOC_NOW ADIOS_BUFFER_ALLOC_LATER ctypedef enum ADIOS_FLAG: pass cdef extern from "adios.h": ctypedef struct MPI_Comm: pass ctypedef char* const_char_ptr "const char*" cdef int adios_init (char * config, MPI_Comm) cdef int adios_finalize (int mype) cdef int adios_open (int64_t * fd, char * group_name, char * name, char * mode, void * comm) cdef int adios_group_size (int64_t fd_p, uint64_t data_size, uint64_t * total_size) cdef int adios_write (int64_t fd_p, char * name, void * var) cdef int adios_read (int64_t fd_p, char * name, void * buffer, uint64_t buffer_size) cdef int adios_close(int64_t fd_p) cdef int adios_init_noxml (MPI_Comm) cdef int adios_allocate_buffer (ADIOS_BUFFER_ALLOC_WHEN when, uint64_t buffer_size) cdef int adios_declare_group (int64_t * id, char * name, char * time_index, ADIOS_FLAG stats) cdef int adios_define_var (int64_t group_id, char * name, char * path, ADIOS_DATATYPES type, char * dimensions, char * global_dimensions, char * local_offsets) cdef int adios_define_attribute (int64_t group, char * name, char * path, ADIOS_DATATYPES type, char * value, char * var) cdef int adios_select_method (int64_t group, char * method, char * parameters, char * base_path) cdef extern from "adios_read.h": ctypedef struct MPI_Comm: pass ctypedef struct ADIOS_FILE: uint64_t fh int groups_count int vars_count int attrs_count int tidx_start int ntimesteps int version uint64_t file_size int endianness char ** group_namelist void * internal_data ctypedef struct ADIOS_GROUP: uint64_t gh int grpid int vars_count char ** var_namelist int attrs_count char ** attr_namelist ADIOS_FILE * fp int timestep int lasttimestep ctypedef struct ADIOS_VARINFO: int grpid int varid ADIOS_DATATYPES type int ndim uint64_t * dims int timedim int characteristics_count void * value void * gmin void * gmax double * gavg double * gstd_dev void ** mins void ** maxs double ** avgs double ** std_devs cdef ADIOS_FILE * adios_fopen (char *, MPI_Comm) cdef int adios_fclose (ADIOS_FILE *) cdef ADIOS_GROUP * adios_gopen (ADIOS_FILE *, char *) cdef ADIOS_GROUP * adios_gopen_byid (ADIOS_FILE *, int) cdef int adios_gclose (ADIOS_GROUP *) cdef ADIOS_VARINFO * adios_inq_var (ADIOS_GROUP *, char *) cdef ADIOS_VARINFO * adios_inq_var_byid (ADIOS_GROUP *, int) cdef void adios_free_varinfo(ADIOS_VARINFO *) cdef int64_t adios_read_var_byid (ADIOS_GROUP *, int, uint64_t *, uint64_t *, void *) cdef char * adios_errmsg() cdef int adios_errno ## ========== ## ADIOS Enum ## ========== class DATATYPE(object): unknown = -1 byte = 0 short = 1 integer = 2 long = 4 unsigned_byte = 50 unsigned_short = 51 unsigned_integer = 52 unsigned_long = 54 real = 5 double = 6 long_double = 7 string = 9 complex = 10 double_complex = 11 class FLAG(object): UNKNOWN = 0 YES = 1 NO = 2 class BUFFER_ALLOC_WHEN(object): UNKNOWN = 0 NOW = 1 LATER = 2 ## ========== ## ADIOS Write API ## ========== cpdef init(char * config, MPI.Comm comm = MPI.COMM_WORLD): return adios_init(config, comm.ob_mpi) cpdef int64_t open(char * group_name, char * name, char * mode, MPI.Comm comm = MPI.COMM_WORLD): cdef int64_t fd cdef int result result = adios_open(&fd, group_name, name, mode, comm.ob_mpi) return fd cpdef int64_t set_group_size(int64_t fd_p, uint64_t data_size): cdef uint64_t total_size cdef int result result = adios_group_size(fd_p, data_size, &total_size) return total_size cpdef int write (int64_t fd_p, char * name, np.ndarray val): cdef np.ndarray val_ if val.flags.contiguous: val_ = val else: val_ = np.array(val, copy=True) return adios_write (fd_p, name, val_.data) cpdef int write_int (int64_t fd_p, char * name, int val): return adios_write (fd_p, name, &val) cpdef int write_long (int64_t fd_p, char * name, long val): return adios_write (fd_p, name, &val) cpdef int write_float (int64_t fd_p, char * name, float val): return adios_write (fd_p, name, &val) cpdef int read(int64_t fd_p, char * name, np.ndarray val): assert val.flags.contiguous, 'Only contiguous arrays are supported.' print "Reading ... ", val.itemsize * val.size, "(bytes)" return adios_read(fd_p, name, val.data, val.itemsize * val.size) cpdef int close(int64_t fd_p): return adios_close(fd_p) cpdef finalize(int mype = 0): return adios_finalize(mype) ## ========== ## ADIOS No-XML API ## ========== cpdef int init_noxml(MPI.Comm comm = MPI.COMM_WORLD): return adios_init_noxml(comm.ob_mpi) cpdef int allocate_buffer(int when, uint64_t buffer_size): return adios_allocate_buffer( when, buffer_size) cpdef int64_t declare_group(char * name, char * time_index, int stats): cdef int64_t id = 0 adios_declare_group (&id, name, time_index, stats) return id cpdef int define_var(int64_t group_id, char * name, char * path, int type, char * dimensions, char * global_dimensions, char * local_offsets): return adios_define_var(group_id, name, path, type, dimensions, global_dimensions, local_offsets) cpdef int define_attribute (int64_t group, char * name, char * path, int type, char * value, char * var): return adios_define_attribute (group, name, path, type, value, var) cpdef int select_method (int64_t group, char * method, char * parameters, char * base_path): return adios_select_method (group, method, parameters, base_path) ## ========== ## ADIOS Read API ## ========== cpdef type adios2nptype(ADIOS_DATATYPES t): cdef type ntype = None if t == adios_byte: ntype = np.int8 elif t == adios_short: ntype = np.int16 elif t == adios_integer: ntype = np.int32 elif t == adios_long: ntype = np.int64 elif t == adios_unsigned_byte: ntype = np.uint8 elif t == adios_unsigned_short: ntype = np.uint16 elif t == adios_unsigned_integer: ntype = np.uint32 elif t == adios_unsigned_long: ntype = np.uint64 elif t == adios_real: ntype = np.float32 elif t == adios_double: ntype = np.float64 elif t == adios_long_double: ntype = np.float128 elif t == adios_complex: ntype = np.complex64 elif t == adios_double_complex: ntype = np.complex128 else: ntype = None return ntype """ cpdef int np2adiostype(np.dtype t): cdef int atype = -1 if t.type == np.float64: atype = DATATYPE.double else: atype = -1 return atype """ cdef printAdiosFile(ADIOS_FILE * f): print '%15s : %lu' % ('fh', f.fh) print '%15s : %d' % ('groups_count', f.groups_count) print '%15s : %d' % ('vars_count', f.vars_count) print '%15s : %d' % ('attrs_count', f.attrs_count) print '%15s : %d' % ('tidx_start', f.tidx_start) print '%15s : %d' % ('ntimesteps', f.ntimesteps) print '%15s : %d' % ('version', f.version) print '%15s : %lu' % ('file_size', f.file_size) print '%15s : %d' % ('endianness', f.endianness) print '%15s : %s' % ('group_namelist', [f.group_namelist[i] for i in range(f.groups_count)]) cdef printAdiosGroup(ADIOS_GROUP * g): print '%15s : %lu' % ('gh', g.gh) print '%15s : %d' % ('grpid', g.grpid) print '%15s : %d' % ('vars_count', g.vars_count) print '%15s : %s' % ('var_namelist', [g.var_namelist[i] for i in range(g.vars_count)]) print '%15s : %d' % ('attrs_count', g.attrs_count) print '%15s : %s' % ('attr_namelist', [g.attr_namelist[i] for i in range(g.attrs_count)]) print '%15s : %lu' % ('fp', g.fp) cdef printAdiosVariable(ADIOS_VARINFO * v): print '%15s : %d' % ('grpid', v.grpid) print '%15s : %d' % ('varid', v.varid) print '%15s : %s' % ('type', adios2nptype(v.type)) print '%15s : %d' % ('ndim', v.ndim) print '%15s : %s' % ('dims', [v.dims[i] for i in range(v.ndim)]) print '%15s : %d' % ('timedim', v.timedim) cdef adios2scalar(ADIOS_DATATYPES t, void * val): if t == adios_byte : return ( val)[0] elif t == adios_short: return ( val)[0] elif t == adios_integer: return ( val)[0] elif t == adios_long: return ( val)[0] elif t == adios_unsigned_byte: return ( val)[0] elif t == adios_unsigned_short: return ( val)[0] elif t == adios_unsigned_integer: return ( val)[0] elif t == adios_unsigned_long: return ( val)[0] elif t == adios_real: return ( val)[0] elif t == adios_double: return ( val)[0] elif t == adios_long_double: return ( val)[0] else: return None ## ========== ## ADIOS Class Definition ## ========== cdef class AdiosFile: """ Private Memeber """ cpdef ADIOS_FILE * fp """ Public Memeber """ cpdef public bytes name cpdef public int groups_count cpdef public int vars_count cpdef public int attrs_count cpdef public int tidx_start cpdef public int ntimesteps cpdef public int version cpdef public int file_size cpdef public int endianness cpdef public dict group def __init__(self, char * fname, MPI.Comm comm = MPI.COMM_WORLD): self.fp = NULL self.group = {} self.fp = adios_fopen(fname, comm.ob_mpi) assert self.fp != NULL, 'Not an open file' self.name = fname.split('/')[-1] ## basename self.groups_count = self.fp.groups_count self.vars_count = self.fp.vars_count self.attrs_count = self.fp.attrs_count self.tidx_start = self.fp.tidx_start self.ntimesteps = self.fp.ntimesteps self.version = self.fp.version self.file_size = self.fp.file_size self.endianness = self.fp.endianness cdef AdiosGroup g for grpname in [self.fp.group_namelist[i] for i in range(self.groups_count)]: g = AdiosGroup(self, grpname) self.group[grpname] = g def __del__(self): self.close() cpdef close(self): assert self.fp != NULL, 'Not an open file' for g in self.group.values(): g.close() adios_fclose(self.fp) self.fp = NULL cpdef printself(self): assert self.fp != NULL, 'Not an open file' print '=== AdiosFile ===' print '%15s : %lu' % ('fp', self.fp) printAdiosFile(self.fp) cdef class AdiosGroup: """ Private Memeber """ cdef AdiosFile file cdef ADIOS_GROUP * gp """ Public Memeber """ cpdef public bytes name cpdef public int grpid cpdef public int vars_count cpdef public int attrs_count cpdef public int timestep cpdef public int lasttimestep cpdef public dict var def __init__(self, AdiosFile file, char * name): self.file = file self.var = {} self.gp = adios_gopen(self.file.fp, name) assert self.gp != NULL, 'Not an open group' self.name = name self.grpid = self.gp.grpid self.vars_count = self.gp.vars_count self.attrs_count = self.gp.attrs_count self.timestep = self.gp.timestep self.lasttimestep = self.gp.lasttimestep cdef AdiosVariable v for varname in [self.gp.var_namelist[i] for i in range(self.vars_count)]: v = AdiosVariable(self, varname) self.var[varname] = v def __del__(self): self.close() cpdef close(self): assert self.gp != NULL, 'Not an open file' for v in self.var.values(): v.close() adios_gclose(self.gp) self.gp = NULL cpdef printself(self): assert self.gp != NULL, 'Not an open file' print '=== AdiosGroup ===' print '%15s : %lu' % ('gp', self.gp) printAdiosGroup(self.gp) cdef class AdiosVariable: """ Private Memeber """ cdef AdiosGroup group cdef ADIOS_VARINFO * vp """ Public Memeber """ cpdef public bytes name cpdef public int varid cpdef public type type cpdef public int ndim cpdef public tuple dims cpdef public int timedim cpdef public int characteristics_count def __init__(self, AdiosGroup group, char * name): self.group = group self.vp = NULL self.vp = adios_inq_var(self.group.gp, name) assert self.group.gp != NULL, 'Not an open group' self.name = name self.varid = self.vp.varid self.type = adios2nptype(self.vp.type) self.ndim = self.vp.ndim self.timedim = self.vp.timedim self.characteristics_count = self.vp.characteristics_count self.dims = tuple([self.vp.dims[i] for i in range(self.vp.ndim)]) def __del__(self): self.close() cpdef close(self): assert self.vp != NULL, 'Not an open file' adios_free_varinfo(self.vp) self.vp = NULL cpdef read(self, tuple offset = (), tuple count = ()): cdef type ntype = adios2nptype(self.vp.type) assert ntype is not None, 'Data type is not supported yet' cdef list lshape = [self.vp.dims[i] for i in range(self.vp.ndim)] cdef np.ndarray npshape = np.array(lshape, dtype=np.int64) cdef np.ndarray npoffset if len(offset) == 0: npoffset = npshape.copy() npoffset.fill(0) else: npoffset = np.array(offset, dtype=np.int64) assert npshape.ndim == npoffset.ndim, 'Offset dimension mismatch' cdef np.ndarray npcount if len(count) == 0: npcount = npshape - npoffset else: npcount = np.array(count, dtype=np.int64) npcount = npcount - npoffset assert npshape.ndim == npcount.ndim, 'Shape dimension mismatch.' assert (npshape - npoffset >= npcount).all(), 'Count is larger than shape.' cdef np.ndarray var = np.zeros(npcount, dtype=ntype) cdef int64_t nbytes = adios_read_var_byid( self.group.gp, self.vp.varid, npoffset.data, npcount.data, var.data ) if nbytes < 0: print "[WARNING] bytes read :", nbytes return var """ Print self """ cpdef printself(self): assert self.vp != NULL, 'Not an open file' print '=== AdiosVariable ===' print '%15s : %lu' % ('vp', self.vp) printAdiosVariable(self.vp) adios-1.5.0/wrappers/numpy/example/0000755000175000017500000000000012251360163020413 5ustar amckinstryamckinstryadios-1.5.0/wrappers/numpy/example/ncdf2bp.py0000755000175000017500000000663412251360163022317 0ustar amckinstryamckinstry#!/usr/bin/env python from adios import * from scipy.io import netcdf import numpy as np import sys import os import operator def usage(): print os.path.basename(sys.argv[0]), "netcdf_file" if len(sys.argv) < 2: usage() sys.exit(0) ##fname = "MERRA100.prod.assim.tavg3_3d_mst_Cp.19791010.SUB.nc" fname = sys.argv[1] fout = '.'.join(fname.split('.')[:-1]) + ".bp" tname = "time" if len(sys.argv) > 2: tname = sys.argv[2] ## Open NetCDF file f = netcdf.netcdf_file(fname, 'r') ## Check dimension assert (all(map(lambda x: x is not None, [ val for k, val in f.dimensions.items() if k != tname]))) ## Two types of variables : time-dependent or time-independent dimvar = {n:v for n,v in f.variables.items() if n in f.dimensions.keys()} var = {n:v for n,v in f.variables.items() if n not in f.dimensions.keys()} tdepvar = {n:v for n,v in var.items() if tname in v.dimensions} tindvar = {n:v for n,v in var.items() if tname not in v.dimensions} ## Time dimension assert (len(set([v.dimensions.index(tname) for v in tdepvar.values()]))==1) tdx = tdepvar.values()[0].dimensions.index(tname) assert (all([v.data.shape[tdx] for v in tdepvar.values()])) tdim = tdepvar.values()[0].shape[tdx] ## Init ADIOS without xml init_noxml() allocate_buffer(BUFFER_ALLOC_WHEN.NOW, 10) gid = declare_group ("group", tname, FLAG.YES) select_method (gid, "MPI", "", "") d1size = 0 for name, val in f.dimensions.items(): if name == tname: continue print "Dimension : %s (%d)" % (name, val) define_var (gid, name, "", DATATYPE.integer, "", "", "") d1size += 4 """ d2size = 0 for name, var in dimvar.items(): if name == tname: continue if name in f.dimensions.keys(): name = "v_" + name print "Variable : %s (%s)" % (name, ','.join(var.dimensions)) define_var (gid, name, "", DATATYPE.double, ','.join(var.dimensions), "", "") d2size += reduce(operator.mul, var.shape) * 8 v1size = 0 for name, var in tindvar.items(): print "Variable : %s (%s)" % (name, ','.join(var.dimensions)) define_var (gid, name, "", DATATYPE.double, ','.join(var.dimensions), "", "") v1size += reduce(operator.mul, var.shape) * 8 """ v2size = 0 for name, var in tdepvar.items(): print "Variable : %s (%s)" % (name, ','.join(var.dimensions)) define_var (gid, name, "", DATATYPE.double, ','.join(var.dimensions), ','.join([dname for dname in var.dimensions if dname != tname]), "0,0,0") v2size += reduce(operator.mul, var.shape) / tdim * 8 print "Count (dim, var) : ", (d1size, v2size) ## Clean old file if os.access(fout, os.F_OK): os.remove(fout) for it in range(tdim): print print "Time step : %d" % (it) fd = open("group", fout, "a") groupsize = d1size + v2size set_group_size(fd, groupsize) for name, val in f.dimensions.items(): if name == tname: continue print "Dimension writing : %s (%d)" % (name, val) write_int(fd, name, val) for name, var in tdepvar.items(): arr = np.array(var.data.take([it], axis=tdx), dtype=np.float64) print "Variable writing : %s %s" % (name, arr.shape) write(fd, name, arr) close(fd) f.close() finalize() print print "Done. Saved:", fout adios-1.5.0/wrappers/numpy/Modules/0000755000175000017500000000000012251360163020370 5ustar amckinstryamckinstryadios-1.5.0/wrappers/numpy/Modules/FindADIOS.cmake0000644000175000017500000001146312251360163023037 0ustar amckinstryamckinstry# - Find a ADIOS implementation # # === Variables === # # This module will set the following variables: # ADIOS_USE_MPI Can be set to ON to force the use of the MPI library # Defaults to ON. # ADIOS_FOUND TRUE if FindADIOS found ADIOS flags # ADIOS_COMPILE_FLAGS Compilation flags for ADIOS programs # ADIOS_INCLUDE_PATH Include path(s) for ADIOS header # ADIOS_LINK_FLAGS Linking flags for ADIOS programs # ADIOS_LIBRARIES All libraries to link ADIOS programs against # # === Example === # # set (ADIOS_USE_MPI OFF) # find_package (ADIOS) # if (ADIOS_FOUND) # add_definitions (${ADIOS_COMPILE_FLAGS}) # include_directories (${ADIOS_INCLUDE_PATH}) # target_link_libraries(foo ${ADIOS_LIBRARIES}) # endif () # # NOTE: # This module is written based FindMPI. Most routines are copied from FindMPI. # include this to handle the QUIETLY and REQUIRED arguments include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) include(GetPrerequisites) if(NOT DEFINED ADIOS_USE_MPI) set(ADIOS_USE_MPI TRUE) endif() if (ADIOS_USE_MPI) set(CONFIG_OPTION "") else () set(CONFIG_OPTION "-s") endif() execute_process( COMMAND adios_config -c ${CONFIG_OPTION} OUTPUT_VARIABLE ADIOS_COMPILE_CMDLINE OUTPUT_STRIP_TRAILING_WHITESPACE ) # Extract compile flags from the compile command line string(REGEX MATCHALL "(^| )-[Df]([^\" ]+|\"[^\"]+\")" ADIOS_ALL_COMPILE_FLAGS "${ADIOS_COMPILE_CMDLINE}") set(ADIOS_COMPILE_FLAGS_WORK) foreach(FLAG ${ADIOS_ALL_COMPILE_FLAGS}) if (ADIOS_COMPILE_FLAGS_WORK) set(ADIOS_COMPILE_FLAGS_WORK "${ADIOS_COMPILE_FLAGS_WORK} ${FLAG}") else() set(ADIOS_COMPILE_FLAGS_WORK ${FLAG}) endif() endforeach() # Extract include paths from compile command line string(REGEX MATCHALL "(^| )-I([^\" ]+|\"[^\"]+\")" ADIOS_ALL_INCLUDE_PATHS "${ADIOS_COMPILE_CMDLINE}") unset(ADIOS_INCLUDE_PATH_WORK) foreach(IPATH ${ADIOS_ALL_INCLUDE_PATHS}) string(REGEX REPLACE "^ ?-I" "" IPATH ${IPATH}) string(REGEX REPLACE "//" "/" IPATH ${IPATH}) list(APPEND ADIOS_INCLUDE_PATH_WORK ${IPATH}) endforeach() execute_process( COMMAND adios_config -l ${CONFIG_OPTION} OUTPUT_VARIABLE ADIOS_LINK_CMDLINE OUTPUT_STRIP_TRAILING_WHITESPACE ) # Extract linker paths from the link command line string(REGEX MATCHALL "(^| |-Wl,)-L([^\" ]+|\"[^\"]+\")" ADIOS_ALL_LINK_PATHS "${ADIOS_LINK_CMDLINE}") unset(ADIOS_LINK_PATH) foreach(LPATH ${ADIOS_ALL_LINK_PATHS}) string(REGEX REPLACE "^(| |-Wl,)-L" "" LPATH ${LPATH}) string(REGEX REPLACE "//" "/" LPATH ${LPATH}) list(APPEND ADIOS_LINK_PATH ${LPATH}) endforeach() # try using showme:libdirs if extracting didn't work. if (NOT ADIOS_LINK_PATH) set(ADIOS_LINK_PATH ${ADIOS_LIBDIRS}) separate_arguments(ADIOS_LINK_PATH) endif() # Extract linker flags from the link command line string(REGEX MATCHALL "(^| )-Wl,([^\" ]+|\"[^\"]+\")" ADIOS_ALL_LINK_FLAGS "${ADIOS_LINK_CMDLINE}") set(ADIOS_LINK_FLAGS_WORK) foreach(FLAG ${ADIOS_ALL_LINK_FLAGS}) if (ADIOS_LINK_FLAGS_WORK) set(ADIOS_LINK_FLAGS_WORK "${ADIOS_LINK_FLAGS_WORK} ${FLAG}") else() set(ADIOS_LINK_FLAGS_WORK ${FLAG}) endif() endforeach() # Extract the set of libraries to link against from the link command # line string(REGEX MATCHALL "(^| )-l([^\" ]+|\"[^\"]+\")" ADIOS_LIBNAMES "${ADIOS_LINK_CMDLINE}") # Determine full path names for all of the libraries that one needs # to link against in an MPI program unset(ADIOS_LIBRARIES_WORK) foreach(LIB ${ADIOS_LIBNAMES}) string(REGEX REPLACE "^ ?-l" "" LIB ${LIB}) # ADIOS_LIB is cached by find_library, but we don't want that. Clear it first. set(ADIOS_LIB "ADIOS_LIB-NOTFOUND" CACHE FILEPATH "Cleared" FORCE) find_library(ADIOS_LIB NAMES ${LIB} HINTS ${ADIOS_LINK_PATH}) if (ADIOS_LIB) list(APPEND ADIOS_LIBRARIES_WORK ${ADIOS_LIB}) elseif (NOT ADIOS_FIND_QUIETLY) message(WARNING "Unable to find ADIOS library ${LIB}") endif() endforeach() # Sanity check ADIOS_LIBRARIES to make sure there are enough libraries list(LENGTH ADIOS_LIBRARIES_WORK ADIOS_NUMLIBS) list(LENGTH ADIOS_LIBNAMES ADIOS_NUMLIBS_EXPECTED) if (NOT ADIOS_NUMLIBS EQUAL ADIOS_NUMLIBS_EXPECTED) message("Expected ${ADIOS_NUMLIBS_EXPECTED} but found ${ADIOS_NUMLIBS}") set(ADIOS_LIBRARIES_WORK "ADIOS_LIBRARIES-NOTFOUND") endif() # If we found MPI, set up all of the appropriate cache entries set(ADIOS_COMPILE_FLAGS ${ADIOS_COMPILE_FLAGS_WORK} CACHE STRING "ADIOS compilation flags" FORCE) set(ADIOS_INCLUDE_PATH ${ADIOS_INCLUDE_PATH_WORK} CACHE STRING "ADIOS include path" FORCE) set(ADIOS_LINK_FLAGS ${ADIOS_LINK_FLAGS_WORK} CACHE STRING "ADIOS linking flags" FORCE) set(ADIOS_LIBRARIES ${ADIOS_LIBRARIES_WORK} CACHE STRING "ADIOS libraries to link against" FORCE) find_package_handle_standard_args(ADIOS DEFAULT_MSG ADIOS_INCLUDE_PATH ADIOS_LIBRARIES) adios-1.5.0/wrappers/numpy/Modules/FindNumpy.cmake0000644000175000017500000000367112251360163023312 0ustar amckinstryamckinstry# # $Id: $ # # Author(s): Anton Deguet # Created on: 2010-01-20 # # (C) Copyright 2010 Johns Hopkins University (JHU), All Rights # Reserved. # # --- begin cisst license - do not edit --- # # This software is provided "as is" under an open source license, with # no warranty. The complete license can be found in license.txt and # http://www.cisst.org/cisst/license.txt. # # --- end cisst license --- # # File based on FindNUMARRAY distributed with ITK 3.4 (see itk.org) # # Main modifications: # - use Numpy instead of Numarray for all naming # - added path for Python 2.5 and 2.6 # - renamed python script generated (det_npp became determineNumpyPath) # - use lower case for CMake commands and keywords # - updated python script to use get_include, not get_numpy_include which is now deprecated # # --- # # Try to find numpy python package # Once done this will define # # PYTHON_NUMPY_FOUND - system has numpy development package and it should be used # PYTHON_NUMPY_INCLUDE_DIR - directory where the arrayobject.h header file can be found # # if(PYTHON_EXECUTABLE) file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/determineNumpyPath.py "try: import numpy; print numpy.get_include()\nexcept: pass\n") exec_program("${PYTHON_EXECUTABLE}" ARGS "\"${CMAKE_CURRENT_BINARY_DIR}/determineNumpyPath.py\"" OUTPUT_VARIABLE NUMPY_PATH ) endif(PYTHON_EXECUTABLE) find_path(PYTHON_NUMPY_INCLUDE_DIR numpy/arrayobject.h "${NUMPY_PATH}" "${PYTHON_INCLUDE_PATH}/numpy/" /usr/include/python2.6/numpy/ /usr/include/python2.5/numpy/ /usr/include/python2.4/numpy/ /usr/include/python2.3/numpy/ DOC "Directory where the arrayobject.h header file can be found. This file is part of the numpy package" ) if(PYTHON_NUMPY_INCLUDE_DIR) set(PYTHON_NUMPY_FOUND 1 CACHE INTERNAL "Python numpy development package is available") endif(PYTHON_NUMPY_INCLUDE_DIR) adios-1.5.0/wrappers/numpy/Modules/CMakeUtilityFunctions.cmake0000644000175000017500000000047712251360163025637 0ustar amckinstryamckinstryfunction (print VAR) set(NAME ${VAR}) list (APPEND VARS ${${VAR}}) set(MSG) set(IS_FIRST TRUE) foreach(ELM ${VARS}) if (IS_FIRST) set(MSG ${ELM}) set(IS_FIRST FALSE) else () set(MSG ${MSG}, ${ELM}) endif () endforeach() message("${NAME} = "${MSG}) endfunction(print VAR) adios-1.5.0/wrappers/numpy/Modules/FindMPI4Py.cmake0000644000175000017500000000434412251360163023222 0ustar amckinstryamckinstry# Copied from FindNumpy.cmake # --- # # $Id: $ # # Author(s): Anton Deguet # Created on: 2010-01-20 # # (C) Copyright 2010 Johns Hopkins University (JHU), All Rights # Reserved. # # --- begin cisst license - do not edit --- # # This software is provided "as is" under an open source license, with # no warranty. The complete license can be found in license.txt and # http://www.cisst.org/cisst/license.txt. # # --- end cisst license --- # # File based on FindNUMARRAY distributed with ITK 3.4 (see itk.org) # # Main modifications: # - use Numpy instead of Numarray for all naming # - added path for Python 2.5 and 2.6 # - renamed python script generated (det_npp became determineNumpyPath) # - use lower case for CMake commands and keywords # - updated python script to use get_include, not get_numpy_include which is now deprecated # # --- # # Try to find mpi4py python package # Once done this will define # # PYTHON_MPI4PY_FOUND - system has numpy development package and it should be used # PYTHON_MPI4PY_INCLUDE_DIR - directory where the arrayobject.h header file can be found # # # include this to handle the QUIETLY and REQUIRED arguments include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) include(GetPrerequisites) if(PYTHON_EXECUTABLE) file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/determineMPI4PyPath.py "try: import mpi4py; print mpi4py.get_include()\nexcept: pass\n") exec_program("${PYTHON_EXECUTABLE}" ARGS "\"${CMAKE_CURRENT_BINARY_DIR}/determineMPI4PyPath.py\"" OUTPUT_VARIABLE MPI4PY_PATH ) endif(PYTHON_EXECUTABLE) find_path(PYTHON_MPI4PY_INCLUDE_DIR mpi4py/mpi4py.h "${MPI4PY_PATH}" "${PYTHON_INCLUDE_PATH}/mpi4py/" /usr/include/python2.6/mpi4py/ /usr/include/python2.5/mpi4py/ /usr/include/python2.4/mpi4py/ /usr/include/python2.3/mpi4py/ DOC "Directory where the mpi4py.h header file can be found. This file is part of the mpi4py package" ) ##if(PYTHON_MPI4PY_INCLUDE_DIR) ## set(PYTHON_MPI4PY_FOUND 1 CACHE INTERNAL "Python mpi4py development package is available") ##endif(PYTHON_MPI4PY_INCLUDE_DIR) find_package_handle_standard_args(PYTHON_MPI4PY DEFAULT_MSG PYTHON_MPI4PY_INCLUDE_DIR) adios-1.5.0/wrappers/numpy/Modules/FindPackageHandleStandardArgs.cmake0000644000175000017500000002631112251360163027143 0ustar amckinstryamckinstry# FIND_PACKAGE_HANDLE_STANDARD_ARGS( ... ) # # This function is intended to be used in FindXXX.cmake modules files. # It handles the REQUIRED, QUIET and version-related arguments to FIND_PACKAGE(). # It also sets the _FOUND variable. # The package is considered found if all variables ... listed contain # valid results, e.g. valid filepaths. # # There are two modes of this function. The first argument in both modes is # the name of the Find-module where it is called (in original casing). # # The first simple mode looks like this: # FIND_PACKAGE_HANDLE_STANDARD_ARGS( (DEFAULT_MSG|"Custom failure message") ... ) # If the variables to are all valid, then _FOUND # will be set to TRUE. # If DEFAULT_MSG is given as second argument, then the function will generate # itself useful success and error messages. You can also supply a custom error message # for the failure case. This is not recommended. # # The second mode is more powerful and also supports version checking: # FIND_PACKAGE_HANDLE_STANDARD_ARGS(NAME [REQUIRED_VARS ...] # [VERSION_VAR # [CONFIG_MODE] # [FAIL_MESSAGE "Custom failure message"] ) # # As above, if through are all valid, _FOUND # will be set to TRUE. # After REQUIRED_VARS the variables which are required for this package are listed. # Following VERSION_VAR the name of the variable can be specified which holds # the version of the package which has been found. If this is done, this version # will be checked against the (potentially) specified required version used # in the find_package() call. The EXACT keyword is also handled. The default # messages include information about the required version and the version # which has been actually found, both if the version is ok or not. # Use the option CONFIG_MODE if your FindXXX.cmake module is a wrapper for # a find_package(... NO_MODULE) call, in this case all the information # provided by the config-mode of find_package() will be evaluated # automatically. # Via FAIL_MESSAGE a custom failure message can be specified, if this is not # used, the default message will be displayed. # # Example for mode 1: # # FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2 DEFAULT_MSG LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) # # LibXml2 is considered to be found, if both LIBXML2_LIBRARY and # LIBXML2_INCLUDE_DIR are valid. Then also LIBXML2_FOUND is set to TRUE. # If it is not found and REQUIRED was used, it fails with FATAL_ERROR, # independent whether QUIET was used or not. # If it is found, success will be reported, including the content of . # On repeated Cmake runs, the same message won't be printed again. # # Example for mode 2: # # FIND_PACKAGE_HANDLE_STANDARD_ARGS(BISON REQUIRED_VARS BISON_EXECUTABLE # VERSION_VAR BISON_VERSION) # In this case, BISON is considered to be found if the variable(s) listed # after REQUIRED_VAR are all valid, i.e. BISON_EXECUTABLE in this case. # Also the version of BISON will be checked by using the version contained # in BISON_VERSION. # Since no FAIL_MESSAGE is given, the default messages will be printed. # # Another example for mode 2: # # FIND_PACKAGE(Automoc4 QUIET NO_MODULE HINTS /opt/automoc4) # FIND_PACKAGE_HANDLE_STANDARD_ARGS(Automoc4 CONFIG_MODE) # In this case, FindAutmoc4.cmake wraps a call to FIND_PACKAGE(Automoc4 NO_MODULE) # and adds an additional search directory for automoc4. # The following FIND_PACKAGE_HANDLE_STANDARD_ARGS() call produces a proper # success/error message. #============================================================================= # Copyright 2007-2009 Kitware, Inc. # # Distributed under the OSI-approved BSD License (the "License"); # see accompanying file Copyright.txt for details. # # This software is distributed WITHOUT ANY WARRANTY; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # See the License for more information. #============================================================================= # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) INCLUDE(FindPackageMessage) INCLUDE(CMakeParseArguments) # internal helper macro MACRO(_FPHSA_FAILURE_MESSAGE _msg) IF (${_NAME}_FIND_REQUIRED) MESSAGE(FATAL_ERROR "${_msg}") ELSE (${_NAME}_FIND_REQUIRED) IF (NOT ${_NAME}_FIND_QUIETLY) MESSAGE(STATUS "${_msg}") ENDIF (NOT ${_NAME}_FIND_QUIETLY) ENDIF (${_NAME}_FIND_REQUIRED) ENDMACRO(_FPHSA_FAILURE_MESSAGE _msg) # internal helper macro to generate the failure message when used in CONFIG_MODE: MACRO(_FPHSA_HANDLE_FAILURE_CONFIG_MODE) # _CONFIG is set, but FOUND is false, this means that some other of the REQUIRED_VARS was not found: IF(${_NAME}_CONFIG) _FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE}: missing: ${MISSING_VARS} (found ${${_NAME}_CONFIG} ${VERSION_MSG})") ELSE(${_NAME}_CONFIG) # If _CONSIDERED_CONFIGS is set, the config-file has been found, but no suitable version. # List them all in the error message: IF(${_NAME}_CONSIDERED_CONFIGS) SET(configsText "") LIST(LENGTH ${_NAME}_CONSIDERED_CONFIGS configsCount) MATH(EXPR configsCount "${configsCount} - 1") FOREACH(currentConfigIndex RANGE ${configsCount}) LIST(GET ${_NAME}_CONSIDERED_CONFIGS ${currentConfigIndex} filename) LIST(GET ${_NAME}_CONSIDERED_VERSIONS ${currentConfigIndex} version) SET(configsText "${configsText} ${filename} (version ${version})\n") ENDFOREACH(currentConfigIndex) _FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE} ${VERSION_MSG}, checked the following files:\n${configsText}") ELSE(${_NAME}_CONSIDERED_CONFIGS) # Simple case: No Config-file was found at all: _FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE}: found neither ${_NAME}Config.cmake nor ${_NAME_LOWER}-config.cmake ${VERSION_MSG}") ENDIF(${_NAME}_CONSIDERED_CONFIGS) ENDIF(${_NAME}_CONFIG) ENDMACRO(_FPHSA_HANDLE_FAILURE_CONFIG_MODE) FUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FIRST_ARG) # set up the arguments for CMAKE_PARSE_ARGUMENTS and check whether we are in # new extended or in the "old" mode: SET(options CONFIG_MODE) SET(oneValueArgs FAIL_MESSAGE VERSION_VAR) SET(multiValueArgs REQUIRED_VARS) SET(_KEYWORDS_FOR_EXTENDED_MODE ${options} ${oneValueArgs} ${multiValueArgs} ) LIST(FIND _KEYWORDS_FOR_EXTENDED_MODE "${_FIRST_ARG}" INDEX) IF(${INDEX} EQUAL -1) SET(FPHSA_FAIL_MESSAGE ${_FIRST_ARG}) SET(FPHSA_REQUIRED_VARS ${ARGN}) SET(FPHSA_VERSION_VAR) ELSE(${INDEX} EQUAL -1) CMAKE_PARSE_ARGUMENTS(FPHSA "${options}" "${oneValueArgs}" "${multiValueArgs}" ${_FIRST_ARG} ${ARGN}) IF(FPHSA_UNPARSED_ARGUMENTS) MESSAGE(FATAL_ERROR "Unknown keywords given to FIND_PACKAGE_HANDLE_STANDARD_ARGS(): \"${FPHSA_UNPARSED_ARGUMENTS}\"") ENDIF(FPHSA_UNPARSED_ARGUMENTS) IF(NOT FPHSA_FAIL_MESSAGE) SET(FPHSA_FAIL_MESSAGE "DEFAULT_MSG") ENDIF(NOT FPHSA_FAIL_MESSAGE) ENDIF(${INDEX} EQUAL -1) # now that we collected all arguments, process them IF("${FPHSA_FAIL_MESSAGE}" STREQUAL "DEFAULT_MSG") SET(FPHSA_FAIL_MESSAGE "Could NOT find ${_NAME}") ENDIF("${FPHSA_FAIL_MESSAGE}" STREQUAL "DEFAULT_MSG") # In config-mode, we rely on the variable _CONFIG, which is set by find_package() # when it successfully found the config-file, including version checking: IF(FPHSA_CONFIG_MODE) LIST(INSERT FPHSA_REQUIRED_VARS 0 ${_NAME}_CONFIG) LIST(REMOVE_DUPLICATES FPHSA_REQUIRED_VARS) SET(FPHSA_VERSION_VAR ${_NAME}_VERSION) ENDIF(FPHSA_CONFIG_MODE) IF(NOT FPHSA_REQUIRED_VARS) MESSAGE(FATAL_ERROR "No REQUIRED_VARS specified for FIND_PACKAGE_HANDLE_STANDARD_ARGS()") ENDIF(NOT FPHSA_REQUIRED_VARS) LIST(GET FPHSA_REQUIRED_VARS 0 _FIRST_REQUIRED_VAR) STRING(TOUPPER ${_NAME} _NAME_UPPER) STRING(TOLOWER ${_NAME} _NAME_LOWER) # collect all variables which were not found, so they can be printed, so the # user knows better what went wrong (#6375) SET(MISSING_VARS "") SET(DETAILS "") SET(${_NAME_UPPER}_FOUND TRUE) # check if all passed variables are valid FOREACH(_CURRENT_VAR ${FPHSA_REQUIRED_VARS}) IF(NOT ${_CURRENT_VAR}) SET(${_NAME_UPPER}_FOUND FALSE) SET(MISSING_VARS "${MISSING_VARS} ${_CURRENT_VAR}") ELSE(NOT ${_CURRENT_VAR}) SET(DETAILS "${DETAILS}[${${_CURRENT_VAR}}]") ENDIF(NOT ${_CURRENT_VAR}) ENDFOREACH(_CURRENT_VAR) # version handling: SET(VERSION_MSG "") SET(VERSION_OK TRUE) SET(VERSION ${${FPHSA_VERSION_VAR}} ) IF (${_NAME}_FIND_VERSION) IF(VERSION) IF(${_NAME}_FIND_VERSION_EXACT) # exact version required IF (NOT "${${_NAME}_FIND_VERSION}" VERSION_EQUAL "${VERSION}") SET(VERSION_MSG "Found unsuitable version \"${VERSION}\", but required is exact version \"${${_NAME}_FIND_VERSION}\"") SET(VERSION_OK FALSE) ELSE (NOT "${${_NAME}_FIND_VERSION}" VERSION_EQUAL "${VERSION}") SET(VERSION_MSG "(found suitable exact version \"${VERSION}\")") ENDIF (NOT "${${_NAME}_FIND_VERSION}" VERSION_EQUAL "${VERSION}") ELSE(${_NAME}_FIND_VERSION_EXACT) # minimum version specified: IF ("${${_NAME}_FIND_VERSION}" VERSION_GREATER "${VERSION}") SET(VERSION_MSG "Found unsuitable version \"${VERSION}\", but required is at least \"${${_NAME}_FIND_VERSION}\"") SET(VERSION_OK FALSE) ELSE ("${${_NAME}_FIND_VERSION}" VERSION_GREATER "${VERSION}") SET(VERSION_MSG "(found suitable version \"${VERSION}\", required is \"${${_NAME}_FIND_VERSION}\")") ENDIF ("${${_NAME}_FIND_VERSION}" VERSION_GREATER "${VERSION}") ENDIF(${_NAME}_FIND_VERSION_EXACT) ELSE(VERSION) # if the package was not found, but a version was given, add that to the output: IF(${_NAME}_FIND_VERSION_EXACT) SET(VERSION_MSG "(Required is exact version \"${${_NAME}_FIND_VERSION}\")") ELSE(${_NAME}_FIND_VERSION_EXACT) SET(VERSION_MSG "(Required is at least version \"${${_NAME}_FIND_VERSION}\")") ENDIF(${_NAME}_FIND_VERSION_EXACT) ENDIF(VERSION) ELSE (${_NAME}_FIND_VERSION) IF(VERSION) SET(VERSION_MSG "(found version \"${VERSION}\")") ENDIF(VERSION) ENDIF (${_NAME}_FIND_VERSION) IF(VERSION_OK) SET(DETAILS "${DETAILS}[v${VERSION}(${${_NAME}_FIND_VERSION})]") ELSE(VERSION_OK) SET(${_NAME_UPPER}_FOUND FALSE) ENDIF(VERSION_OK) # print the result: IF (${_NAME_UPPER}_FOUND) FIND_PACKAGE_MESSAGE(${_NAME} "Found ${_NAME}: ${${_FIRST_REQUIRED_VAR}} ${VERSION_MSG}" "${DETAILS}") ELSE (${_NAME_UPPER}_FOUND) IF(FPHSA_CONFIG_MODE) _FPHSA_HANDLE_FAILURE_CONFIG_MODE() ELSE(FPHSA_CONFIG_MODE) IF(NOT VERSION_OK) _FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE}: ${VERSION_MSG} (found ${${_FIRST_REQUIRED_VAR}})") ELSE(NOT VERSION_OK) _FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE} (missing: ${MISSING_VARS}) ${VERSION_MSG}") ENDIF(NOT VERSION_OK) ENDIF(FPHSA_CONFIG_MODE) ENDIF (${_NAME_UPPER}_FOUND) SET(${_NAME_UPPER}_FOUND ${${_NAME_UPPER}_FOUND} PARENT_SCOPE) ENDFUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _FIRST_ARG) adios-1.5.0/wrappers/numpy/test/0000755000175000017500000000000012251360163017737 5ustar amckinstryamckinstryadios-1.5.0/wrappers/numpy/test/adios_write_test.py0000644000175000017500000000067112251360163023665 0ustar amckinstryamckinstry#!/usr/bin/env python import adios import numpy as np adios.init("config.xml") fd = adios.open("temperature", "adios_test.bp", "w") NX = 10 size = 1 rank = 0 groupsize = 4 + 4 + 4 + 8 * 1 * NX t = np.array(range(NX), dtype=np.float64) adios.set_group_size(fd, groupsize) adios.write_int(fd, "NX", NX) adios.write_int(fd, "size", size) adios.write_int(fd, "rank", rank) adios.write(fd, "temperature", t) adios.close(fd) adios.finalize() adios-1.5.0/wrappers/numpy/test/test_adios_read.sh0000755000175000017500000000146712251360163023437 0ustar amckinstryamckinstry#!/bin/bash function usage { echo "USAGE : `basename $0`" } if [ $# -lt 1 ] ; then usage exit 1 fi SRCDIR=$1 cat << EOF > config.xml EOF PYTHONPATH=.:$PYTHONPATH python $SRCDIR/adios_read_test.py exit $? adios-1.5.0/wrappers/numpy/test/adios_read_test.py0000644000175000017500000000032712251360163023444 0ustar amckinstryamckinstry#!/usr/bin/env python from adios import * import numpy as np f = AdiosFile("adios_test.bp") f.printself() g = f.group["temperature"] g.printself() v = g.var["/temperature"] v.printself() print v.read() f.close() adios-1.5.0/wrappers/numpy/test/test_adios_noxml.sh0000755000175000017500000000030212251360163023644 0ustar amckinstryamckinstry#!/bin/bash function usage { echo "USAGE : `basename $0`" } if [ $# -lt 1 ] ; then usage exit 1 fi SRCDIR=$1 PYTHONPATH=.:$PYTHONPATH python $SRCDIR/adios_noxml_test.py exit $? adios-1.5.0/wrappers/numpy/test/adios_noxml_test.py0000644000175000017500000000140112251360163023660 0ustar amckinstryamckinstry#!/usr/bin/env python from adios import * import numpy as np init_noxml() allocate_buffer(BUFFER_ALLOC_WHEN.NOW, 10) gid = declare_group ("temperature", "", FLAG.YES) select_method (gid, "MPI", "", "") define_var (gid, "NX", "", DATATYPE.integer, "", "", "") define_var (gid, "size", "", DATATYPE.integer, "", "", "") define_var (gid, "rank", "", DATATYPE.integer, "", "", "") define_var (gid, "temperature", "", DATATYPE.double, "1,NX", "size,NX", "") fd = open("temperature", "adios_noxml.bp", "w") NX = 10 size = 1 rank = 0 groupsize = 4 + 4 + 4 + 8 * 1 * NX t = np.array(range(NX), dtype=np.float64) set_group_size(fd, groupsize) write_int(fd, "NX", NX) write_int(fd, "size", size) write_int(fd, "rank", rank) write(fd, "temperature", t) close(fd) finalize() adios-1.5.0/wrappers/numpy/test/test_adios_write.sh0000755000175000017500000000146612251360163023655 0ustar amckinstryamckinstry#!/bin/bash function usage { echo "USAGE : `basename $0`" } if [ $# -lt 1 ] ; then usage exit 1 fi SRCDIR=$1 cat << EOF > config.xml EOF PYTHONPATH=.:$PYTHONPATH python $SRCDIR/adios_write_test.py exit $? adios-1.5.0/wrappers/numpy/CMakeLists.txt0000644000175000017500000000320212251360163021515 0ustar amckinstryamckinstrycmake_minimum_required (VERSION 2.8) set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Modules) include(${CMAKE_CURRENT_SOURCE_DIR}/Modules/CMakeUtilityFunctions.cmake) project (AdiosPython CXX) find_package (PythonInterp REQUIRED) find_package (PythonLibs REQUIRED) include_directories (${PYTHON_INCLUDE_DIRS}) find_package (Numpy REQUIRED) include_directories (${PYTHON_NUMPY_INCLUDE_DIR}) find_package (MPI4Py REQUIRED) option (ADIOS_USE_MPI "Use parallel ADIOS" ON) find_package (ADIOS REQUIRED) add_definitions (${ADIOS_COMPILE_FLAGS}) add_definitions (-DADIOS_USE_READ_API_1) include_directories (${ADIOS_INCLUDE_PATH}) find_package (MPI REQUIRED) include_directories (${MPI_CXX_INCLUDE_PATH}) set (PSRCS adios.pyx ) foreach (FILE ${PSRCS}) string (REGEX REPLACE ".pyx" ".cpp" OUTFILE ${FILE}) add_custom_command ( OUTPUT ${OUTFILE} COMMAND cython -o ${CMAKE_CURRENT_BINARY_DIR}/${OUTFILE} -I${PYTHON_MPI4PY_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${FILE} DEPENDS ${FILE} ) list (APPEND SRCS ${OUTFILE}) endforeach () add_library (adios MODULE ${SRCS} ) target_link_libraries (adios ${ADIOS_LIBRARIES} ${PYTHON_LIBRARIES} ${MPI_CXX_LIBRARIES} ) set_target_properties (adios PROPERTIES OUTPUT_NAME adios PREFIX "" ##LINK_FLAGS "-undefined dynamic_lookup" ) ENABLE_TESTING() add_test (test_write ${CMAKE_CURRENT_SOURCE_DIR}/test/test_adios_write.sh ${CMAKE_CURRENT_SOURCE_DIR}/test) add_test (test_read ${CMAKE_CURRENT_SOURCE_DIR}/test/test_adios_read.sh ${CMAKE_CURRENT_SOURCE_DIR}/test) add_test (test_noxml ${CMAKE_CURRENT_SOURCE_DIR}/test/test_adios_noxml.sh ${CMAKE_CURRENT_SOURCE_DIR}/test) adios-1.5.0/wrappers/java/0000755000175000017500000000000012251360163016531 5ustar amckinstryamckinstryadios-1.5.0/wrappers/java/gov_ornl_ccs_AdiosDatatype.cxx0000644000175000017500000000000012251360163024533 0ustar amckinstryamckinstryadios-1.5.0/wrappers/java/gov/0000755000175000017500000000000012251360163017324 5ustar amckinstryamckinstryadios-1.5.0/wrappers/java/gov/ornl/0000755000175000017500000000000012251360163020276 5ustar amckinstryamckinstryadios-1.5.0/wrappers/java/gov/ornl/ccs/0000755000175000017500000000000012251360163021046 5ustar amckinstryamckinstryadios-1.5.0/wrappers/java/gov/ornl/ccs/AdiosGroup.java0000644000175000017500000000365612251360163023777 0ustar amckinstryamckinstrypackage gov.ornl.ccs; import java.util.ArrayList; public class AdiosGroup { // Declaration of the Native (C) function private native int adios_gopen (long fp, String grpname); private native int adios_gclose (); AdiosFile file; public long gp; public long gh; public int grpid; public int vars_count; public int attrs_count; public String[] var_namelist; public String[] attr_namelist; static { // The runtime system executes a class's static // initializer when it loads the class. System.loadLibrary("AdiosJava"); } public AdiosGroup(AdiosFile file) { this.file = file; } public int open(String grpname) { return adios_gopen(file.fp, grpname); } public int close() { return adios_gclose(); } public String toString() { StringBuilder result = new StringBuilder(); String NEW_LINE = System.getProperty("line.separator"); result.append(this.getClass().getName() + " Object {" + NEW_LINE); result.append(" gp: " + gp + NEW_LINE); result.append(" gh: " + gh + NEW_LINE); result.append(" vars_count: " + vars_count + NEW_LINE); result.append(" attrs_count: " + attrs_count + NEW_LINE); if (var_namelist != null) { result.append(" var_namelist.length: " + var_namelist.length + NEW_LINE); for (int i = 0; i < var_namelist.length; i++) { result.append(" var_namelist[" + i + "]: " + var_namelist[i] + NEW_LINE); } } if (attr_namelist != null) { result.append(" attr_namelist.length: " + attr_namelist.length + NEW_LINE); for (int i = 0; i < attr_namelist.length; i++) { result.append(" attr_namelist[" + i + "]: " + attr_namelist[i] + NEW_LINE); } } result.append("}"); return result.toString(); } }adios-1.5.0/wrappers/java/gov/ornl/ccs/Adios.java0000644000175000017500000002163212251360163022754 0ustar amckinstryamckinstry// The AdiosJava.java file package gov.ornl.ccs; import java.nio.ByteBuffer; import java.nio.DoubleBuffer; public class Adios { // Declaration of the Native (C) function private static native int adios_init (String xml_fname, long comm); private static native long adios_open (String group_name, String file_name, String mode, long comm); private static native long adios_group_size (long fh, long group_size); private static native int adios_write (long fh, String var_name, byte val); private static native int adios_write (long fh, String var_name, int val); private static native int adios_write (long fh, String var_name, long val); private static native int adios_write (long fh, String var_name, float val); private static native int adios_write (long fh, String var_name, double val); private static native int adios_write (long fh, String var_name, byte[] val); private static native int adios_write (long fh, String var_name, int[] val); private static native int adios_write (long fh, String var_name, long[] val); private static native int adios_write (long fh, String var_name, float[] val); private static native int adios_write (long fh, String var_name, double[] val); // Note: adios_read is a delayed operation // Only non-buffered method will populate the data private static native byte adios_read_byte_value (long fh, String var_name); private static native int adios_read_int_value (long fh, String var_name); private static native long adios_read_long_value (long fh, String var_name); private static native float adios_read_float_value (long fh, String var_name); private static native double adios_read_double_value (long fh, String var_name); private static native int adios_read (long fh, String var_name, byte[] val); private static native int adios_read (long fh, String var_name, int[] val); private static native int adios_read (long fh, String var_name, long[] val); private static native int adios_read (long fh, String var_name, float[] val); private static native int adios_read (long fh, String var_name, double[] val); private static native int adios_close (long fh); private static native int adios_finalize (int id); private static native int adios_mpi_init(String[] args); private static native int adios_mpi_comm_rank(long comm); private static native int adios_mpi_comm_size(long comm); private static native int adios_mpi_finalize(); private static native long adios_mpi_comm_world(); private static native long adios_open_and_set_group_size (String group_name, String file_name, String mode, long group_size, long comm); private static native int adios_init_noxml(long comm); private static native int adios_allocate_buffer(int when, long size); private static native long adios_declare_group(String name, String time_index, int stats); private static native int adios_define_var(long group_id, String name, String path, int type, String dimensions, String global_dimensions, String local_offsets); private static native int adios_define_attribute(long group_id, String name, String path, int type, String value, String var); private static native int adios_select_method(long group_id, String method, String parameters, String base_path); static { // The runtime system executes a class's static // initializer when it loads the class. System.loadLibrary("AdiosJava"); } /* Call adios_init */ public static int Init(String xml_fname, long comm) { return adios_init(xml_fname, comm); } /* Call adios_open. Return a group handler */ public static long Open(String group_name, String file_name, String mode, long comm) { return adios_open(group_name, file_name, mode, comm); } /* Call adios_group_size and return the total size */ public static long SetGroupSize(long fh, long group_size) { return adios_group_size (fh, group_size); } /* Call adios_write and return the total size */ public static long Write (long fh, String var_name, byte value) { return adios_write (fh, var_name, value); } public static long Write (long fh, String var_name, int value) { return adios_write (fh, var_name, value); } public static long Write (long fh, String var_name, long value) { return adios_write (fh, var_name, value); } public static long Write (long fh, String var_name, float value) { return adios_write (fh, var_name, value); } public static long Write (long fh, String var_name, double value) { return adios_write (fh, var_name, value); } public static long Write (long fh, String var_name, byte[] value) { return adios_write (fh, var_name, value); } public static long Write (long fh, String var_name, int[] value) { return adios_write (fh, var_name, value); } public static long Write (long fh, String var_name, long[] value) { return adios_write (fh, var_name, value); } public static long Write (long fh, String var_name, float[] value) { return adios_write (fh, var_name, value); } public static long Write (long fh, String var_name, double[] value) { return adios_write (fh, var_name, value); } public static byte ReadByteValue (long fh, String var_name) { return adios_read_byte_value(fh, var_name); } public static int ReadIntValue (long fh, String var_name) { return adios_read_int_value(fh, var_name); } public static long ReadLongValue (long fh, String var_name) { return adios_read_long_value(fh, var_name); } public static float ReadFloatValue (long fh, String var_name) { return adios_read_float_value(fh, var_name); } public static double ReadDoubleValue (long fh, String var_name) { return adios_read_double_value(fh, var_name); } public static long Read (long fh, String var_name, byte[] value) { return adios_read (fh, var_name, value); } public static long Read (long fh, String var_name, int[] value) { return adios_read (fh, var_name, value); } public static long Read (long fh, String var_name, long[] value) { return adios_read (fh, var_name, value); } public static long Read (long fh, String var_name, float[] value) { return adios_read (fh, var_name, value); } public static long Read (long fh, String var_name, double[] value) { return adios_read (fh, var_name, value); } /* Call adios_close */ public static int Close (long fh) { return adios_close (fh); } /* Call adios_finalize */ public static int Finalize (int id) { return adios_finalize(id); } /* Call MPI_Init */ public static int MPI_Init(String[] args) { return adios_mpi_init(args); } /* Call MPI_Comm_rank */ public static int MPI_Comm_rank(long comm) { return adios_mpi_comm_rank(comm); } /* Call MPI_Comm_size */ public static int MPI_Comm_size(long comm) { return adios_mpi_comm_size(comm); } /* Call MPI_Finalize */ public static int MPI_Finalize() { return adios_mpi_finalize(); } /* Get MPI_COMM_WORLD */ public static long MPI_COMM_WORLD() { return adios_mpi_comm_world(); } public static long OpenAndSetGroupSize(String group_name, String file_name, String mode, long group_size, long comm) { return adios_open_and_set_group_size(group_name, file_name, mode, group_size, comm); } /* Call adios_init_noxml */ public static int Init_Noxml(long comm) { return adios_init_noxml(comm); } /* Call adios_allocate_buffer */ public static int AllocateBuffer(AdiosBufferAllocWhen when, long size) { return adios_allocate_buffer(when.getCode(), size); } /* Call adios_declare_group */ public static long DeclareGroup(String name, String time_index, AdiosFlag stats) { return adios_declare_group(name, time_index, stats.getCode()); } /* Call adios_define_var */ public static int DefineVar(long group_id, String name, String path, AdiosDatatype type, String dimensions, String global_dimensions, String local_offsets) { return adios_define_var(group_id, name, path, type.getCode(), dimensions, global_dimensions, local_offsets); } /* Call adios_define_attribute */ public static int DefineAttribute(long group_id, String name, String path, AdiosDatatype type, String value, String var) { return adios_define_attribute(group_id, name, path, type.getCode(), value, var); } /* Call adios_select_method */ public static int SelectMethod(long group_id, String method, String parameters, String base_path) { return adios_select_method(group_id, method, parameters, base_path); } } adios-1.5.0/wrappers/java/gov/ornl/ccs/AdiosVarinfo.java0000644000175000017500000001011412251360163024272 0ustar amckinstryamckinstry// The AdiosJava.java file package gov.ornl.ccs; import java.nio.ByteBuffer; import java.nio.ByteOrder; public class AdiosVarinfo { // Declaration of the Native (C) function private native int adios_inq_var(long gp, String varname); private native int adios_free_varinfo(); //private native double[] adios_read_var_byid(long gp, int varid, long[] start, long[] count); private native int adios_read(long gp, int varid, long[] start, long[] count, byte[] out); private native int adios_read(long gp, int varid, long[] start, long[] count, int[] out); private native int adios_read(long gp, int varid, long[] start, long[] count, long[] out); private native int adios_read(long gp, int varid, long[] start, long[] count, float[] out); private native int adios_read(long gp, int varid, long[] start, long[] count, double[] out); AdiosGroup group; public long vp; public int grpid; public int varid; public int type; public int ndim; public long[] dims; public int timedim; public byte[] value; static { // The runtime system executes a class's static // initializer when it loads the class. System.loadLibrary("AdiosJava"); } public AdiosVarinfo(AdiosGroup group) { this.group = group; } public int inq(String varname) { return adios_inq_var(group.gp, varname); } public int close() { return adios_free_varinfo(); } public int read(long[] start, long[] count, byte[] out) { return adios_read(group.gp, varid, start, count, out); } public int read(long[] start, long[] count, int[] out) { return adios_read(group.gp, varid, start, count, out); } public int read(long[] start, long[] count, long[] out) { return adios_read(group.gp, varid, start, count, out); } public int read(long[] start, long[] count, float[] out) { return adios_read(group.gp, varid, start, count, out); } public int read(long[] start, long[] count, double[] out) { return adios_read(group.gp, varid, start, count, out); } public byte[] read() { return value; } public int readIntValue() { ByteBuffer bb = ByteBuffer.wrap(value); if (group.file.endianness == 0) bb.order(ByteOrder.LITTLE_ENDIAN); else bb.order(ByteOrder.BIG_ENDIAN); return bb.getInt(); } public long readLongValue() { ByteBuffer bb = ByteBuffer.wrap(value); if (group.file.endianness == 0) bb.order(ByteOrder.LITTLE_ENDIAN); else bb.order(ByteOrder.BIG_ENDIAN); return bb.getLong(); } public float readFloatValue() { ByteBuffer bb = ByteBuffer.wrap(value); if (group.file.endianness == 0) bb.order(ByteOrder.LITTLE_ENDIAN); else bb.order(ByteOrder.BIG_ENDIAN); return bb.getFloat(); } public double readDoubleValue() { ByteBuffer bb = ByteBuffer.wrap(value); if (group.file.endianness == 0) bb.order(ByteOrder.LITTLE_ENDIAN); else bb.order(ByteOrder.BIG_ENDIAN); return bb.getDouble(); } public String toString() { StringBuilder result = new StringBuilder(); String NEW_LINE = System.getProperty("line.separator"); result.append(this.getClass().getName() + " Object {" + NEW_LINE); result.append(" vp: " + vp + NEW_LINE); result.append(" grpid: " + grpid + NEW_LINE); result.append(" varid: " + varid + NEW_LINE); result.append(" type: " + type + NEW_LINE); result.append(" ndim: " + ndim + NEW_LINE); result.append(" dims.length: " + dims.length + NEW_LINE); if (dims.length > 0) { for (int i = 0; i < dims.length; i++) { result.append(" dims[" + i + "]: " + dims[i] + NEW_LINE); } } result.append(" timedim: " + timedim + NEW_LINE); result.append("}"); return result.toString(); } } adios-1.5.0/wrappers/java/gov/ornl/ccs/AdiosFile.java0000644000175000017500000000365312251360163023557 0ustar amckinstryamckinstry// The AdiosJava.java file package gov.ornl.ccs; public class AdiosFile { // Declaration of the Native (C) function private native int adios_fopen (String path, long comm); private native int adios_fclose (); public long fp; public long fh; public int groups_count; public int vars_count; public int attrs_count; public int tidx_start; public int ntimesteps; public int version; public long file_size; public int endianness; public String[] group_namelist; static { // The runtime system executes a class's static // initializer when it loads the class. System.loadLibrary("AdiosJava"); } public int open(String path, long comm) { return adios_fopen(path, comm); } public int close() { return adios_fclose(); } public String toString() { StringBuilder result = new StringBuilder(); String NEW_LINE = System.getProperty("line.separator"); result.append(this.getClass().getName() + " Object {" + NEW_LINE); result.append(" fp: " + fp + NEW_LINE); result.append(" fh: " + fh + NEW_LINE); result.append(" groups_count: " + groups_count + NEW_LINE); result.append(" vars_count: " + vars_count + NEW_LINE); result.append(" attrs_count: " + attrs_count + NEW_LINE); result.append(" tidx_start: " + tidx_start + NEW_LINE); result.append(" ntimesteps: " + ntimesteps + NEW_LINE); result.append(" version: " + version + NEW_LINE); result.append(" file_size: " + file_size + NEW_LINE); result.append(" endianness: " + endianness + NEW_LINE); if (group_namelist != null) { for (int i = 0; i < groups_count; i++) { result.append(" group_namelist[" + i + "]: " + group_namelist[i] + NEW_LINE); } } result.append("}"); return result.toString(); } } adios-1.5.0/wrappers/java/gov/ornl/ccs/AdiosBufferAllocWhen.java0000644000175000017500000000040312251360163025674 0ustar amckinstryamckinstrypackage gov.ornl.ccs; public enum AdiosBufferAllocWhen { UNKNOWN (0), NOW (1), LATER (2); private int code; AdiosBufferAllocWhen(int code) { this.code = code; } public int getCode() { return this.code; } } adios-1.5.0/wrappers/java/gov/ornl/ccs/AdiosFlag.java0000644000175000017500000000035312251360163023543 0ustar amckinstryamckinstrypackage gov.ornl.ccs; public enum AdiosFlag { UNKNOWN (0), YES (1), NO (2); private int code; AdiosFlag(int code) { this.code = code; } public int getCode() { return this.code; } } adios-1.5.0/wrappers/java/gov/ornl/ccs/AdiosDatatype.java0000644000175000017500000000145512251360163024451 0ustar amckinstryamckinstrypackage gov.ornl.ccs; public enum AdiosDatatype { UNKNOWN(-1) /* (SIZE) */ ,BYTE(0) /* (1) */ ,SHORT(1) /* (2) */ ,INTEGER(2) /* (4) */ ,LONG(4) /* (8) */ ,UNSIGNED_BYTE(50) /* (1) */ ,UNSIGNED_SHORT(51) /* (2) */ ,UNSIGNED_INTEGER(52) /* (4) */ ,UNSIGNED_LONG(54) /* (8) */ ,REAL(5) /* (4) */ ,DOUBLE(6) /* (8) */ ,LONG_DOUBLE(7) /* (16) */ ,STRING(9) /* (?) */ ,COMPLEX(10) /* (8) */ ,DOUBLE_COMPLEX(11) /* (16) */; private int code; AdiosDatatype(int code) { this.code = code; } public int getCode() { return this.code; } } adios-1.5.0/wrappers/java/gov/ornl/ccs/AdiosTest.java0000644000175000017500000000236012251360163023611 0ustar amckinstryamckinstrypackage gov.ornl.ccs; import gov.ornl.ccs.Adios; import gov.ornl.ccs.AdiosFile; import gov.ornl.ccs.AdiosGroup; public class AdiosTest { // The main program public static void main(String[] args) { System.out.println("Hello"); //Adios adios = new Adios(); //adios.init(); AdiosFile file = new AdiosFile(); file.open("adios_global.bp"); AdiosGroup group = new AdiosGroup(file); group.open("temperature"); AdiosVarinfo var = new AdiosVarinfo(group); var.inq("temperature"); long[] start = {0, 0}; long[] count = {1, 10}; double[] output = var.read(start, count); //double[] output = var.read(start, count); System.out.println("output.length = " + output.length); for (int i = 0; i < output.length; i++) { System.out.println("output[" + i + "] = " + output[i]); } var.close(); group.close(); file.close(); //AdiosGroup group = new AdiosGroup(); //group.open("adios_global.bp"); //group.open("temperature"); System.out.println(); System.out.println(file); System.out.println(group); System.out.println(var); } } adios-1.5.0/wrappers/java/README0000644000175000017500000000244712251360163017420 0ustar amckinstryamckinstryADIOS Java wrapper ----------------- This directory contains the codes for the ADIOS java wrapper, a Java Native Interface (JNI) program to call the native ADIOS library. == Build == This program can be built with CMake (http://www.cmake.org/). You may want to a build directory and run cmake pointing the source directory containing CMakeLists.txt (this directory). For example, $ mkdir build; cd build $ cmake /dir/to/source CMake will search installed ADIOS library, Java, JNI, MPI library (if needed), etc. Once completed, type make to build: $ make If you need verbose output, you may add an option: $ make VERBOSE=1 After successful building, you can see libAdiosJava.so (or libAdiosJava.dylib in Mac) and AdiosJava.jar. Those two files are needed to call in Java. Then, you can install the library by, $ make install The default install directory is /usr/local. You can change by specifying CMAKE_INSTALL_PREFIX value; $ cmake -DCMAKE_INSTALL_PREFIX=/path/to/install /dir/to/source Or, you can use the ccmake command, the CMake curses interface. Refer to the CMake documentation for more detailed instructions. == Test == This program contains a test program. To run testing after building, type the following command: $ make test If you need a verbose output, type the following $ ctest -V adios-1.5.0/wrappers/java/gov_ornl_ccs_AdiosFile.cxx0000644000175000017500000000526212251360163023656 0ustar amckinstryamckinstry#include "gov_ornl_ccs_AdiosFile.h" #include /* * Class: gov_ornl_ccs_AdiosFile * Method: adios_fopen * Signature: (Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_AdiosFile_adios_1fopen (JNIEnv * env, jobject obj, jstring path, jlong comm) { //std::cout << __FUNCTION__ << "..." << std::endl; const char *str; int result; jboolean isCopy; jclass cls; jfieldID fid; ADIOS_FILE* fp; str = env->GetStringUTFChars(path, &isCopy); if (str == NULL) return -1; /* OutOfMemoryError already thrown */ fp = adios_fopen(str, (MPI_Comm) comm); env->ReleaseStringUTFChars(path, str); cls = env->GetObjectClass(obj); if (cls == NULL) { return -1; } fid = env->GetFieldID(cls, "fp", "J"); env->SetLongField(obj, fid, (jlong)fp); fid = env->GetFieldID(cls, "fh", "J"); env->SetLongField(obj, fid, fp->fh); fid = env->GetFieldID(cls, "groups_count", "I"); env->SetIntField(obj, fid, fp->groups_count); fid = env->GetFieldID(cls, "vars_count", "I"); env->SetIntField(obj, fid, fp->vars_count); fid = env->GetFieldID(cls, "attrs_count", "I"); env->SetIntField(obj, fid, fp->attrs_count); fid = env->GetFieldID(cls, "tidx_start", "I"); env->SetIntField(obj, fid, fp->tidx_start); fid = env->GetFieldID(cls, "ntimesteps", "I"); env->SetIntField(obj, fid, fp->ntimesteps); fid = env->GetFieldID(cls, "version", "I"); env->SetIntField(obj, fid, fp->version); fid = env->GetFieldID(cls, "file_size", "J"); env->SetIntField(obj, fid, fp->file_size); fid = env->GetFieldID(cls, "endianness", "I"); env->SetIntField(obj, fid, fp->endianness); jclass stringClass = env->FindClass("java/lang/String"); jobjectArray group_namelist = env->NewObjectArray(fp->groups_count, stringClass, NULL); for (int i = 0; i < fp->groups_count; i++) { jstring group_name = env->NewStringUTF(fp->group_namelist[i]); env->SetObjectArrayElement(group_namelist, i, group_name); } fid = env->GetFieldID(cls, "group_namelist", "[Ljava/lang/String;"); env->SetObjectField(obj, fid, group_namelist); return 0; } /* * Class: gov_ornl_ccs_AdiosFile * Method: adios_fclose * Signature: ()I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_AdiosFile_adios_1fclose (JNIEnv * env, jobject obj) { jclass cls; jfieldID fid; jlong fp; jint result; cls = env->GetObjectClass(obj); fid = env->GetFieldID(cls, "fp", "J"); fp = env->GetLongField(obj, fid); result = adios_fclose((ADIOS_FILE*)fp); fid = env->GetFieldID(cls, "fp", "J"); env->SetLongField(obj, fid, 0); return result; } adios-1.5.0/wrappers/java/Modules/0000755000175000017500000000000012251360163020141 5ustar amckinstryamckinstryadios-1.5.0/wrappers/java/Modules/FindADIOS.cmake0000644000175000017500000001146312251360163022610 0ustar amckinstryamckinstry# - Find a ADIOS implementation # # === Variables === # # This module will set the following variables: # ADIOS_USE_MPI Can be set to ON to force the use of the MPI library # Defaults to ON. # ADIOS_FOUND TRUE if FindADIOS found ADIOS flags # ADIOS_COMPILE_FLAGS Compilation flags for ADIOS programs # ADIOS_INCLUDE_PATH Include path(s) for ADIOS header # ADIOS_LINK_FLAGS Linking flags for ADIOS programs # ADIOS_LIBRARIES All libraries to link ADIOS programs against # # === Example === # # set (ADIOS_USE_MPI OFF) # find_package (ADIOS) # if (ADIOS_FOUND) # add_definitions (${ADIOS_COMPILE_FLAGS}) # include_directories (${ADIOS_INCLUDE_PATH}) # target_link_libraries(foo ${ADIOS_LIBRARIES}) # endif () # # NOTE: # This module is written based FindMPI. Most routines are copied from FindMPI. # include this to handle the QUIETLY and REQUIRED arguments include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) include(GetPrerequisites) if(NOT DEFINED ADIOS_USE_MPI) set(ADIOS_USE_MPI TRUE) endif() if (ADIOS_USE_MPI) set(CONFIG_OPTION "") else () set(CONFIG_OPTION "-s") endif() execute_process( COMMAND adios_config -c ${CONFIG_OPTION} OUTPUT_VARIABLE ADIOS_COMPILE_CMDLINE OUTPUT_STRIP_TRAILING_WHITESPACE ) # Extract compile flags from the compile command line string(REGEX MATCHALL "(^| )-[Df]([^\" ]+|\"[^\"]+\")" ADIOS_ALL_COMPILE_FLAGS "${ADIOS_COMPILE_CMDLINE}") set(ADIOS_COMPILE_FLAGS_WORK) foreach(FLAG ${ADIOS_ALL_COMPILE_FLAGS}) if (ADIOS_COMPILE_FLAGS_WORK) set(ADIOS_COMPILE_FLAGS_WORK "${ADIOS_COMPILE_FLAGS_WORK} ${FLAG}") else() set(ADIOS_COMPILE_FLAGS_WORK ${FLAG}) endif() endforeach() # Extract include paths from compile command line string(REGEX MATCHALL "(^| )-I([^\" ]+|\"[^\"]+\")" ADIOS_ALL_INCLUDE_PATHS "${ADIOS_COMPILE_CMDLINE}") unset(ADIOS_INCLUDE_PATH_WORK) foreach(IPATH ${ADIOS_ALL_INCLUDE_PATHS}) string(REGEX REPLACE "^ ?-I" "" IPATH ${IPATH}) string(REGEX REPLACE "//" "/" IPATH ${IPATH}) list(APPEND ADIOS_INCLUDE_PATH_WORK ${IPATH}) endforeach() execute_process( COMMAND adios_config -l ${CONFIG_OPTION} OUTPUT_VARIABLE ADIOS_LINK_CMDLINE OUTPUT_STRIP_TRAILING_WHITESPACE ) # Extract linker paths from the link command line string(REGEX MATCHALL "(^| |-Wl,)-L([^\" ]+|\"[^\"]+\")" ADIOS_ALL_LINK_PATHS "${ADIOS_LINK_CMDLINE}") unset(ADIOS_LINK_PATH) foreach(LPATH ${ADIOS_ALL_LINK_PATHS}) string(REGEX REPLACE "^(| |-Wl,)-L" "" LPATH ${LPATH}) string(REGEX REPLACE "//" "/" LPATH ${LPATH}) list(APPEND ADIOS_LINK_PATH ${LPATH}) endforeach() # try using showme:libdirs if extracting didn't work. if (NOT ADIOS_LINK_PATH) set(ADIOS_LINK_PATH ${ADIOS_LIBDIRS}) separate_arguments(ADIOS_LINK_PATH) endif() # Extract linker flags from the link command line string(REGEX MATCHALL "(^| )-Wl,([^\" ]+|\"[^\"]+\")" ADIOS_ALL_LINK_FLAGS "${ADIOS_LINK_CMDLINE}") set(ADIOS_LINK_FLAGS_WORK) foreach(FLAG ${ADIOS_ALL_LINK_FLAGS}) if (ADIOS_LINK_FLAGS_WORK) set(ADIOS_LINK_FLAGS_WORK "${ADIOS_LINK_FLAGS_WORK} ${FLAG}") else() set(ADIOS_LINK_FLAGS_WORK ${FLAG}) endif() endforeach() # Extract the set of libraries to link against from the link command # line string(REGEX MATCHALL "(^| )-l([^\" ]+|\"[^\"]+\")" ADIOS_LIBNAMES "${ADIOS_LINK_CMDLINE}") # Determine full path names for all of the libraries that one needs # to link against in an MPI program unset(ADIOS_LIBRARIES_WORK) foreach(LIB ${ADIOS_LIBNAMES}) string(REGEX REPLACE "^ ?-l" "" LIB ${LIB}) # ADIOS_LIB is cached by find_library, but we don't want that. Clear it first. set(ADIOS_LIB "ADIOS_LIB-NOTFOUND" CACHE FILEPATH "Cleared" FORCE) find_library(ADIOS_LIB NAMES ${LIB} HINTS ${ADIOS_LINK_PATH}) if (ADIOS_LIB) list(APPEND ADIOS_LIBRARIES_WORK ${ADIOS_LIB}) elseif (NOT ADIOS_FIND_QUIETLY) message(WARNING "Unable to find ADIOS library ${LIB}") endif() endforeach() # Sanity check ADIOS_LIBRARIES to make sure there are enough libraries list(LENGTH ADIOS_LIBRARIES_WORK ADIOS_NUMLIBS) list(LENGTH ADIOS_LIBNAMES ADIOS_NUMLIBS_EXPECTED) if (NOT ADIOS_NUMLIBS EQUAL ADIOS_NUMLIBS_EXPECTED) message("Expected ${ADIOS_NUMLIBS_EXPECTED} but found ${ADIOS_NUMLIBS}") set(ADIOS_LIBRARIES_WORK "ADIOS_LIBRARIES-NOTFOUND") endif() # If we found MPI, set up all of the appropriate cache entries set(ADIOS_COMPILE_FLAGS ${ADIOS_COMPILE_FLAGS_WORK} CACHE STRING "ADIOS compilation flags" FORCE) set(ADIOS_INCLUDE_PATH ${ADIOS_INCLUDE_PATH_WORK} CACHE STRING "ADIOS include path" FORCE) set(ADIOS_LINK_FLAGS ${ADIOS_LINK_FLAGS_WORK} CACHE STRING "ADIOS linking flags" FORCE) set(ADIOS_LIBRARIES ${ADIOS_LIBRARIES_WORK} CACHE STRING "ADIOS libraries to link against" FORCE) find_package_handle_standard_args(ADIOS DEFAULT_MSG ADIOS_INCLUDE_PATH ADIOS_LIBRARIES) adios-1.5.0/wrappers/java/Modules/CMakeUtilityFunctions.cmake0000644000175000017500000000047712251360163025410 0ustar amckinstryamckinstryfunction (print VAR) set(NAME ${VAR}) list (APPEND VARS ${${VAR}}) set(MSG) set(IS_FIRST TRUE) foreach(ELM ${VARS}) if (IS_FIRST) set(MSG ${ELM}) set(IS_FIRST FALSE) else () set(MSG ${MSG}, ${ELM}) endif () endforeach() message("${NAME} = "${MSG}) endfunction(print VAR) adios-1.5.0/wrappers/java/Modules/FindPackageHandleStandardArgs.cmake0000644000175000017500000002631112251360163026714 0ustar amckinstryamckinstry# FIND_PACKAGE_HANDLE_STANDARD_ARGS( ... ) # # This function is intended to be used in FindXXX.cmake modules files. # It handles the REQUIRED, QUIET and version-related arguments to FIND_PACKAGE(). # It also sets the _FOUND variable. # The package is considered found if all variables ... listed contain # valid results, e.g. valid filepaths. # # There are two modes of this function. The first argument in both modes is # the name of the Find-module where it is called (in original casing). # # The first simple mode looks like this: # FIND_PACKAGE_HANDLE_STANDARD_ARGS( (DEFAULT_MSG|"Custom failure message") ... ) # If the variables to are all valid, then _FOUND # will be set to TRUE. # If DEFAULT_MSG is given as second argument, then the function will generate # itself useful success and error messages. You can also supply a custom error message # for the failure case. This is not recommended. # # The second mode is more powerful and also supports version checking: # FIND_PACKAGE_HANDLE_STANDARD_ARGS(NAME [REQUIRED_VARS ...] # [VERSION_VAR # [CONFIG_MODE] # [FAIL_MESSAGE "Custom failure message"] ) # # As above, if through are all valid, _FOUND # will be set to TRUE. # After REQUIRED_VARS the variables which are required for this package are listed. # Following VERSION_VAR the name of the variable can be specified which holds # the version of the package which has been found. If this is done, this version # will be checked against the (potentially) specified required version used # in the find_package() call. The EXACT keyword is also handled. The default # messages include information about the required version and the version # which has been actually found, both if the version is ok or not. # Use the option CONFIG_MODE if your FindXXX.cmake module is a wrapper for # a find_package(... NO_MODULE) call, in this case all the information # provided by the config-mode of find_package() will be evaluated # automatically. # Via FAIL_MESSAGE a custom failure message can be specified, if this is not # used, the default message will be displayed. # # Example for mode 1: # # FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2 DEFAULT_MSG LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) # # LibXml2 is considered to be found, if both LIBXML2_LIBRARY and # LIBXML2_INCLUDE_DIR are valid. Then also LIBXML2_FOUND is set to TRUE. # If it is not found and REQUIRED was used, it fails with FATAL_ERROR, # independent whether QUIET was used or not. # If it is found, success will be reported, including the content of . # On repeated Cmake runs, the same message won't be printed again. # # Example for mode 2: # # FIND_PACKAGE_HANDLE_STANDARD_ARGS(BISON REQUIRED_VARS BISON_EXECUTABLE # VERSION_VAR BISON_VERSION) # In this case, BISON is considered to be found if the variable(s) listed # after REQUIRED_VAR are all valid, i.e. BISON_EXECUTABLE in this case. # Also the version of BISON will be checked by using the version contained # in BISON_VERSION. # Since no FAIL_MESSAGE is given, the default messages will be printed. # # Another example for mode 2: # # FIND_PACKAGE(Automoc4 QUIET NO_MODULE HINTS /opt/automoc4) # FIND_PACKAGE_HANDLE_STANDARD_ARGS(Automoc4 CONFIG_MODE) # In this case, FindAutmoc4.cmake wraps a call to FIND_PACKAGE(Automoc4 NO_MODULE) # and adds an additional search directory for automoc4. # The following FIND_PACKAGE_HANDLE_STANDARD_ARGS() call produces a proper # success/error message. #============================================================================= # Copyright 2007-2009 Kitware, Inc. # # Distributed under the OSI-approved BSD License (the "License"); # see accompanying file Copyright.txt for details. # # This software is distributed WITHOUT ANY WARRANTY; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # See the License for more information. #============================================================================= # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) INCLUDE(FindPackageMessage) INCLUDE(CMakeParseArguments) # internal helper macro MACRO(_FPHSA_FAILURE_MESSAGE _msg) IF (${_NAME}_FIND_REQUIRED) MESSAGE(FATAL_ERROR "${_msg}") ELSE (${_NAME}_FIND_REQUIRED) IF (NOT ${_NAME}_FIND_QUIETLY) MESSAGE(STATUS "${_msg}") ENDIF (NOT ${_NAME}_FIND_QUIETLY) ENDIF (${_NAME}_FIND_REQUIRED) ENDMACRO(_FPHSA_FAILURE_MESSAGE _msg) # internal helper macro to generate the failure message when used in CONFIG_MODE: MACRO(_FPHSA_HANDLE_FAILURE_CONFIG_MODE) # _CONFIG is set, but FOUND is false, this means that some other of the REQUIRED_VARS was not found: IF(${_NAME}_CONFIG) _FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE}: missing: ${MISSING_VARS} (found ${${_NAME}_CONFIG} ${VERSION_MSG})") ELSE(${_NAME}_CONFIG) # If _CONSIDERED_CONFIGS is set, the config-file has been found, but no suitable version. # List them all in the error message: IF(${_NAME}_CONSIDERED_CONFIGS) SET(configsText "") LIST(LENGTH ${_NAME}_CONSIDERED_CONFIGS configsCount) MATH(EXPR configsCount "${configsCount} - 1") FOREACH(currentConfigIndex RANGE ${configsCount}) LIST(GET ${_NAME}_CONSIDERED_CONFIGS ${currentConfigIndex} filename) LIST(GET ${_NAME}_CONSIDERED_VERSIONS ${currentConfigIndex} version) SET(configsText "${configsText} ${filename} (version ${version})\n") ENDFOREACH(currentConfigIndex) _FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE} ${VERSION_MSG}, checked the following files:\n${configsText}") ELSE(${_NAME}_CONSIDERED_CONFIGS) # Simple case: No Config-file was found at all: _FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE}: found neither ${_NAME}Config.cmake nor ${_NAME_LOWER}-config.cmake ${VERSION_MSG}") ENDIF(${_NAME}_CONSIDERED_CONFIGS) ENDIF(${_NAME}_CONFIG) ENDMACRO(_FPHSA_HANDLE_FAILURE_CONFIG_MODE) FUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FIRST_ARG) # set up the arguments for CMAKE_PARSE_ARGUMENTS and check whether we are in # new extended or in the "old" mode: SET(options CONFIG_MODE) SET(oneValueArgs FAIL_MESSAGE VERSION_VAR) SET(multiValueArgs REQUIRED_VARS) SET(_KEYWORDS_FOR_EXTENDED_MODE ${options} ${oneValueArgs} ${multiValueArgs} ) LIST(FIND _KEYWORDS_FOR_EXTENDED_MODE "${_FIRST_ARG}" INDEX) IF(${INDEX} EQUAL -1) SET(FPHSA_FAIL_MESSAGE ${_FIRST_ARG}) SET(FPHSA_REQUIRED_VARS ${ARGN}) SET(FPHSA_VERSION_VAR) ELSE(${INDEX} EQUAL -1) CMAKE_PARSE_ARGUMENTS(FPHSA "${options}" "${oneValueArgs}" "${multiValueArgs}" ${_FIRST_ARG} ${ARGN}) IF(FPHSA_UNPARSED_ARGUMENTS) MESSAGE(FATAL_ERROR "Unknown keywords given to FIND_PACKAGE_HANDLE_STANDARD_ARGS(): \"${FPHSA_UNPARSED_ARGUMENTS}\"") ENDIF(FPHSA_UNPARSED_ARGUMENTS) IF(NOT FPHSA_FAIL_MESSAGE) SET(FPHSA_FAIL_MESSAGE "DEFAULT_MSG") ENDIF(NOT FPHSA_FAIL_MESSAGE) ENDIF(${INDEX} EQUAL -1) # now that we collected all arguments, process them IF("${FPHSA_FAIL_MESSAGE}" STREQUAL "DEFAULT_MSG") SET(FPHSA_FAIL_MESSAGE "Could NOT find ${_NAME}") ENDIF("${FPHSA_FAIL_MESSAGE}" STREQUAL "DEFAULT_MSG") # In config-mode, we rely on the variable _CONFIG, which is set by find_package() # when it successfully found the config-file, including version checking: IF(FPHSA_CONFIG_MODE) LIST(INSERT FPHSA_REQUIRED_VARS 0 ${_NAME}_CONFIG) LIST(REMOVE_DUPLICATES FPHSA_REQUIRED_VARS) SET(FPHSA_VERSION_VAR ${_NAME}_VERSION) ENDIF(FPHSA_CONFIG_MODE) IF(NOT FPHSA_REQUIRED_VARS) MESSAGE(FATAL_ERROR "No REQUIRED_VARS specified for FIND_PACKAGE_HANDLE_STANDARD_ARGS()") ENDIF(NOT FPHSA_REQUIRED_VARS) LIST(GET FPHSA_REQUIRED_VARS 0 _FIRST_REQUIRED_VAR) STRING(TOUPPER ${_NAME} _NAME_UPPER) STRING(TOLOWER ${_NAME} _NAME_LOWER) # collect all variables which were not found, so they can be printed, so the # user knows better what went wrong (#6375) SET(MISSING_VARS "") SET(DETAILS "") SET(${_NAME_UPPER}_FOUND TRUE) # check if all passed variables are valid FOREACH(_CURRENT_VAR ${FPHSA_REQUIRED_VARS}) IF(NOT ${_CURRENT_VAR}) SET(${_NAME_UPPER}_FOUND FALSE) SET(MISSING_VARS "${MISSING_VARS} ${_CURRENT_VAR}") ELSE(NOT ${_CURRENT_VAR}) SET(DETAILS "${DETAILS}[${${_CURRENT_VAR}}]") ENDIF(NOT ${_CURRENT_VAR}) ENDFOREACH(_CURRENT_VAR) # version handling: SET(VERSION_MSG "") SET(VERSION_OK TRUE) SET(VERSION ${${FPHSA_VERSION_VAR}} ) IF (${_NAME}_FIND_VERSION) IF(VERSION) IF(${_NAME}_FIND_VERSION_EXACT) # exact version required IF (NOT "${${_NAME}_FIND_VERSION}" VERSION_EQUAL "${VERSION}") SET(VERSION_MSG "Found unsuitable version \"${VERSION}\", but required is exact version \"${${_NAME}_FIND_VERSION}\"") SET(VERSION_OK FALSE) ELSE (NOT "${${_NAME}_FIND_VERSION}" VERSION_EQUAL "${VERSION}") SET(VERSION_MSG "(found suitable exact version \"${VERSION}\")") ENDIF (NOT "${${_NAME}_FIND_VERSION}" VERSION_EQUAL "${VERSION}") ELSE(${_NAME}_FIND_VERSION_EXACT) # minimum version specified: IF ("${${_NAME}_FIND_VERSION}" VERSION_GREATER "${VERSION}") SET(VERSION_MSG "Found unsuitable version \"${VERSION}\", but required is at least \"${${_NAME}_FIND_VERSION}\"") SET(VERSION_OK FALSE) ELSE ("${${_NAME}_FIND_VERSION}" VERSION_GREATER "${VERSION}") SET(VERSION_MSG "(found suitable version \"${VERSION}\", required is \"${${_NAME}_FIND_VERSION}\")") ENDIF ("${${_NAME}_FIND_VERSION}" VERSION_GREATER "${VERSION}") ENDIF(${_NAME}_FIND_VERSION_EXACT) ELSE(VERSION) # if the package was not found, but a version was given, add that to the output: IF(${_NAME}_FIND_VERSION_EXACT) SET(VERSION_MSG "(Required is exact version \"${${_NAME}_FIND_VERSION}\")") ELSE(${_NAME}_FIND_VERSION_EXACT) SET(VERSION_MSG "(Required is at least version \"${${_NAME}_FIND_VERSION}\")") ENDIF(${_NAME}_FIND_VERSION_EXACT) ENDIF(VERSION) ELSE (${_NAME}_FIND_VERSION) IF(VERSION) SET(VERSION_MSG "(found version \"${VERSION}\")") ENDIF(VERSION) ENDIF (${_NAME}_FIND_VERSION) IF(VERSION_OK) SET(DETAILS "${DETAILS}[v${VERSION}(${${_NAME}_FIND_VERSION})]") ELSE(VERSION_OK) SET(${_NAME_UPPER}_FOUND FALSE) ENDIF(VERSION_OK) # print the result: IF (${_NAME_UPPER}_FOUND) FIND_PACKAGE_MESSAGE(${_NAME} "Found ${_NAME}: ${${_FIRST_REQUIRED_VAR}} ${VERSION_MSG}" "${DETAILS}") ELSE (${_NAME_UPPER}_FOUND) IF(FPHSA_CONFIG_MODE) _FPHSA_HANDLE_FAILURE_CONFIG_MODE() ELSE(FPHSA_CONFIG_MODE) IF(NOT VERSION_OK) _FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE}: ${VERSION_MSG} (found ${${_FIRST_REQUIRED_VAR}})") ELSE(NOT VERSION_OK) _FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE} (missing: ${MISSING_VARS}) ${VERSION_MSG}") ENDIF(NOT VERSION_OK) ENDIF(FPHSA_CONFIG_MODE) ENDIF (${_NAME_UPPER}_FOUND) SET(${_NAME_UPPER}_FOUND ${${_NAME_UPPER}_FOUND} PARENT_SCOPE) ENDFUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _FIRST_ARG) adios-1.5.0/wrappers/java/test/0000755000175000017500000000000012251360163017510 5ustar amckinstryamckinstryadios-1.5.0/wrappers/java/test/test1.sh0000755000175000017500000000214712251360163021113 0ustar amckinstryamckinstry#!/bin/bash function usage { echo "USAGE : `basename $0` ADIOSJAR SRCDIR TARGET" } if [ $# -lt 3 ] ; then usage exit 1 fi ADIOSJAR=$1 SRCDIR=$2 TARGET=$3 cat << EOF > config.xml stripe_count=1;stripe_size=10485760;num_aggregators=2;merging_pgs=0 EOF rm -f adios_global.bp javac -classpath $ADIOSJAR -d . $SRCDIR/$TARGET.java java -Djava.library.path=. -classpath $ADIOSJAR:. $TARGET exit $? adios-1.5.0/wrappers/java/test/test2.sh0000755000175000017500000000046712251360163021117 0ustar amckinstryamckinstry#!/bin/bash function usage { echo "USAGE : `basename $0` ADIOSJAR SRCDIR TARGET" } if [ $# -lt 3 ] ; then usage exit 1 fi ADIOSJAR=$1 SRCDIR=$2 TARGET=$3 rm -f adios_noxml.bp javac -classpath $ADIOSJAR -d . $SRCDIR/$TARGET.java java -Djava.library.path=. -classpath $ADIOSJAR:. $TARGET exit $? adios-1.5.0/wrappers/java/test/AdiosTest.java0000644000175000017500000000657512251360163022267 0ustar amckinstryamckinstryimport gov.ornl.ccs.Adios; import gov.ornl.ccs.AdiosFile; import gov.ornl.ccs.AdiosGroup; import gov.ornl.ccs.AdiosVarinfo; import java.nio.ByteBuffer; public class AdiosTest { // The main program public static void main(String[] args) { System.out.println(">>> AdiosJava Test Drive"); System.out.println(">>> ADIOS Write API ... "); Adios.MPI_Init(new String[0]); long comm = Adios.MPI_COMM_WORLD(); int rank = Adios.MPI_Comm_rank(comm); int size = Adios.MPI_Comm_size(comm); System.out.println("MPI rank/size = " + rank + " / " + size); System.out.println("MPI &comm = " + comm); Adios.Init("config.xml", comm); long adios_handle = Adios.Open ("temperature", "adios_global.bp", "w", comm); int NX = 10; double[] t = new double[NX]; for (int i = 0; i < NX; i++) { t[i] = (double) i; } byte[] b = new byte[NX]; for (int i = 0; i < NX; i++) { b[i] = (byte) (i + 65); // ASCII code } long groupsize = 4 + 4 + 4 + 2 * 8 * (1) * (NX); long adios_totalsize = Adios.SetGroupSize(adios_handle, groupsize); //adios_handle = Adios.OpenAndSetGroupSize("temperature", "adios_global.bp", "w", groupsize, comm); Adios.Write (adios_handle, "NX", NX); Adios.Write (adios_handle, "size", size); Adios.Write (adios_handle, "rank", rank); Adios.Write (adios_handle, "temperature", t); Adios.Write (adios_handle, "ascii", b); Adios.Close (adios_handle); Adios.Finalize (rank); System.out.println(">>> ADIOS Read API ... "); System.out.println(">>> AdiosFile.open ... "); AdiosFile file = new AdiosFile(); file.open("adios_global.bp", comm); System.out.println(">>> AdiosGroup.open ... "); AdiosGroup group = new AdiosGroup(file); group.open("temperature"); System.out.println(">>> AdiosVarinfo.inq ... "); AdiosVarinfo var = new AdiosVarinfo(group); var.inq("temperature"); long[] start = {0, 0}; long[] count = {1, NX}; System.out.println(">>> AdiosVarinfo.read ... "); double[] output = new double[NX]; var.read(start, count, output); System.out.println("temperature.length = " + output.length); for (int i = 0; i < output.length; i++) { System.out.println("temperature[" + i + "] = " + output[i]); } System.out.println(">>> AdiosVarinfo.inq ... "); AdiosVarinfo var2 = new AdiosVarinfo(group); var2.inq("NX"); System.out.println("NX = " + var2.readIntValue()); System.out.println(">>> AdiosVarinfo.inq ... "); AdiosVarinfo var3 = new AdiosVarinfo(group); var3.inq("ascii"); byte[] output3 = new byte[NX]; var3.read(start, count, output3); System.out.println("ascii.length = " + output3.length); for (int i = 0; i < output3.length; i++) { System.out.println("ascii[" + i + "] = " + output3[i]); } var.close(); var2.close(); var3.close(); group.close(); file.close(); System.out.println(); System.out.println(file); System.out.println(group); System.out.println(var); System.out.println(var2); } } adios-1.5.0/wrappers/java/test/AdiosNoxmlTest.java0000644000175000017500000000371712251360163023300 0ustar amckinstryamckinstryimport gov.ornl.ccs.*; import java.nio.ByteBuffer; public class AdiosNoxmlTest { // The main program public static void main(String[] args) { System.out.println(">>> AdiosJava Noxml Test Drive"); System.out.println(">>> ADIOS NOXML API ... "); Adios.MPI_Init(new String[0]); long comm = Adios.MPI_COMM_WORLD(); int rank = Adios.MPI_Comm_rank(comm); int size = Adios.MPI_Comm_size(comm); System.out.println("[DEBUG] MPI rank/size = " + rank + " / " + size); System.out.println("[DEBUG] MPI &comm = " + comm); Adios.Init_Noxml(comm); Adios.AllocateBuffer(AdiosBufferAllocWhen.NOW, 10); long group_id = Adios.DeclareGroup("restart", "iter", AdiosFlag.YES); Adios.SelectMethod(group_id, "MPI", "", ""); Adios.DefineVar(group_id, "NX", "", AdiosDatatype.INTEGER, "", "", ""); Adios.DefineVar(group_id, "G", "", AdiosDatatype.INTEGER, "", "", ""); Adios.DefineVar(group_id, "O", "", AdiosDatatype.INTEGER, "", "", ""); Adios.DefineVar(group_id, "temperature", "", AdiosDatatype.DOUBLE, "NX", "G", "O"); System.out.println(">>> ADIOS Write API ... "); long adios_handle = Adios.Open ("restart", "adios_noxml.bp", "w", comm); int NX = 10; int G = NX * size; int O = NX * rank; double[] t = new double[NX]; for (int i = 0; i < NX; i++) { t[i] = rank * NX + (double) i; } long groupsize = 4 + 4 + 4 + 8 * (1) * (NX); long adios_totalsize = Adios.SetGroupSize(adios_handle, groupsize); Adios.Write (adios_handle, "NX", NX); Adios.Write (adios_handle, "G", G); Adios.Write (adios_handle, "O", O); Adios.Write (adios_handle, "temperature", t); Adios.Close (adios_handle); Adios.Finalize (rank); Adios.MPI_Finalize(); System.out.println(">>> Done."); } } adios-1.5.0/wrappers/java/gov_ornl_ccs_AdiosVarinfo.cxx0000644000175000017500000001250212251360163024376 0ustar amckinstryamckinstry#include "gov_ornl_ccs_AdiosVarinfo.h" #include #include /* * Class: gov_ornl_ccs_AdiosVarinfo * Method: adios_inq_var * Signature: (JJLjava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_AdiosVarinfo_adios_1inq_1var (JNIEnv * env, jobject obj, jlong gp, jstring varname) { const char *str; jboolean isCopy; jclass cls; jfieldID fid; ADIOS_VARINFO* vp; str = env->GetStringUTFChars(varname, &isCopy); if (str == NULL) return -1; /* OutOfMemoryError already thrown */ vp = adios_inq_var((ADIOS_GROUP *)gp, str); env->ReleaseStringUTFChars(varname, str); cls = env->GetObjectClass(obj); if (cls == NULL) { return -1; } fid = env->GetFieldID(cls, "vp", "J"); env->SetLongField(obj, fid, (jlong)vp); fid = env->GetFieldID(cls, "grpid", "I"); env->SetIntField(obj, fid, vp->grpid); fid = env->GetFieldID(cls, "varid", "I"); env->SetIntField(obj, fid, vp->varid); fid = env->GetFieldID(cls, "type", "I"); env->SetIntField(obj, fid, vp->type); fid = env->GetFieldID(cls, "ndim", "I"); env->SetIntField(obj, fid, vp->ndim); fid = env->GetFieldID(cls, "timedim", "I"); env->SetIntField(obj, fid, vp->timedim); jlongArray dims = env->NewLongArray(vp->ndim); env->SetLongArrayRegion(dims, 0, vp->ndim, (jlong *) vp->dims); fid = env->GetFieldID(cls, "dims", "[J"); env->SetObjectField(obj, fid, dims); if (vp->ndim == 0) { int size = adios_type_size(vp->type, NULL); jbyteArray value = env->NewByteArray(size); env->SetByteArrayRegion(value, 0, size, (jbyte *) vp->value); fid = env->GetFieldID(cls, "value", "[B"); env->SetObjectField(obj, fid, value); } return 0; } /* * Class: gov_ornl_ccs_AdiosVarinfo * Method: adios_free_varinfo * Signature: ()I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_AdiosVarinfo_adios_1free_1varinfo (JNIEnv * env, jobject obj) { jclass cls; jfieldID fid; jlong vp; cls = env->GetObjectClass(obj); fid = env->GetFieldID(cls, "vp", "J"); vp = env->GetLongField(obj, fid); adios_free_varinfo((ADIOS_VARINFO*)vp); env->SetLongField(obj, fid, 0); return 0; } /* * Class: gov_ornl_ccs_AdiosVarinfo * Method: adios_read_var_byid * Signature: (JI[J[J)[D */ JNIEXPORT jdoubleArray JNICALL Java_gov_ornl_ccs_AdiosVarinfo_adios_1read_1var_1byid (JNIEnv * env, jobject obj, jlong gp, jint varid, jlongArray start, jlongArray count) { jint len = env->GetArrayLength(count); if (len != env->GetArrayLength(start)) return NULL; jlong *startarr = env->GetLongArrayElements(start, NULL); jlong *countarr = env->GetLongArrayElements(count, NULL); jlong ncount = 1; for (jint i = 0; i < len; i++) ncount *= countarr[i]; jdoubleArray result = env->NewDoubleArray(ncount); jdouble *data = env->GetDoubleArrayElements(result, NULL); int64_t nbytes = adios_read_var_byid((ADIOS_GROUP*)gp, (int) varid, (uint64_t *)startarr, (uint64_t *)countarr, (void *)data); env->ReleaseLongArrayElements(start, startarr, 0); env->ReleaseLongArrayElements(count, countarr, 0); env->ReleaseDoubleArrayElements(result, data, 0); return result; } #define READ_ARRAY(JTYPE, CTYPE) \ /* std::cout << __FUNCTION__ << "..." << std::endl; */ \ int result; \ jint len = env->GetArrayLength(count); \ if (len != env->GetArrayLength(start)) return 0; \ jlong *startarr = env->GetLongArrayElements(start, NULL); \ jlong *countarr = env->GetLongArrayElements(count, NULL); \ jlong ncount = 1; \ for (jint i = 0; i < len; i++) ncount *= countarr[i]; \ JTYPE *data = env->Get ##CTYPE ##ArrayElements(val, NULL); \ result = adios_read_var_byid((ADIOS_GROUP*)gp, (int) varid, (uint64_t *)startarr, (uint64_t *)countarr, (void *)data); \ env->ReleaseLongArrayElements(start, startarr, 0); \ env->ReleaseLongArrayElements(count, countarr, 0); \ env->Release ##CTYPE ##ArrayElements(val, data, 0); \ return result; #define FUNC_READ_ARRAY(FNAME, JTYPE, CTYPE) \ JNIEXPORT jint JNICALL FNAME \ (JNIEnv * env, jobject obj, jlong gp, jint varid, jlongArray start, jlongArray count, JTYPE ##Array val) \ { \ READ_ARRAY(JTYPE, CTYPE); \ } /* * Class: gov_ornl_ccs_AdiosVarinfo * Method: adios_read * Signature: (JI[J[J[B)I */ FUNC_READ_ARRAY ( Java_gov_ornl_ccs_AdiosVarinfo_adios_1read__JI_3J_3J_3B, jbyte, Byte) FUNC_READ_ARRAY ( Java_gov_ornl_ccs_AdiosVarinfo_adios_1read__JI_3J_3J_3I, jint, Int) FUNC_READ_ARRAY ( Java_gov_ornl_ccs_AdiosVarinfo_adios_1read__JI_3J_3J_3J, jlong, Long) FUNC_READ_ARRAY ( Java_gov_ornl_ccs_AdiosVarinfo_adios_1read__JI_3J_3J_3F, jfloat, Float) FUNC_READ_ARRAY ( Java_gov_ornl_ccs_AdiosVarinfo_adios_1read__JI_3J_3J_3D, jdouble, Double) adios-1.5.0/wrappers/java/gov_ornl_ccs_AdiosBufferAllocWhen.cxx0000644000175000017500000000000012251360163025766 0ustar amckinstryamckinstryadios-1.5.0/wrappers/java/CMakeLists.txt0000644000175000017500000000517412251360163021300 0ustar amckinstryamckinstrycmake_minimum_required (VERSION 2.8) set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Modules) include(${CMAKE_CURRENT_SOURCE_DIR}/Modules/CMakeUtilityFunctions.cmake) project (AdiosJava CXX Java) include_directories (${CMAKE_CURRENT_BINARY_DIR}) find_package (Java REQUIRED) include_directories (${JNI_INCLUDE_DIRS}) find_package (JNI REQUIRED) include_directories (${JNI_INCLUDE_DIRS}) option (ADIOS_USE_MPI "Use parallel ADIOS" ON) find_package (ADIOS REQUIRED) add_definitions (${ADIOS_COMPILE_FLAGS}) add_definitions (-DADIOS_USE_READ_API_1) include_directories (${ADIOS_INCLUDE_PATH}) if (ADIOS_USE_MPI) find_package (MPI REQUIRED) include_directories (${MPI_CXX_INCLUDE_PATH}) add_definitions (-DADIOS_USE_MPI) else () find_package (MPI REQUIRED) endif() set (SRC gov_ornl_ccs_AdiosDatatype.cxx gov_ornl_ccs_AdiosFlag.cxx gov_ornl_ccs_AdiosBufferAllocWhen.cxx gov_ornl_ccs_Adios.cxx gov_ornl_ccs_AdiosFile.cxx gov_ornl_ccs_AdiosGroup.cxx gov_ornl_ccs_AdiosVarinfo.cxx ) foreach (FILE ${SRC}) string (REGEX REPLACE ".cxx" ".h" FILE ${FILE}) list (APPEND HEADERS ${FILE}) endforeach () add_library (AdiosJava SHARED ${HEADERS} ${SRC} ) set (CMAKE_JNI_TARGET TRUE) set (CMAKE_JAVA_TARGET_VERSION 1.2.0) target_link_libraries (AdiosJava ${ADIOS_LIBRARIES} ${MPI_CXX_LIBRARIES} ) foreach (FILE ${HEADERS}) string (REGEX REPLACE "_" "/" JAVA_FILE ${FILE}) string (REGEX REPLACE "\\.h" ".java" JAVA_FILE ${JAVA_FILE}) string (REGEX REPLACE "_" "." JAVA_OBJ ${FILE}) string (REGEX REPLACE "\\.h" "" JAVA_OBJ ${JAVA_OBJ}) add_custom_command ( OUTPUT ${FILE} COMMAND ${Java_JAVAC_EXECUTABLE} -d ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${JAVA_FILE} COMMAND ${Java_JAVAH_EXECUTABLE} -jni -d ${CMAKE_CURRENT_BINARY_DIR} ${JAVA_OBJ} DEPENDS ${JAVA_FILE} ${PREV} ) list (APPEND PREV ${FILE}) endforeach () foreach (FILE ${SRC}) string (REGEX REPLACE "_" "/" FILE ${FILE}) string (REGEX REPLACE "\\.cxx" ".java" FILE ${FILE}) list (APPEND JAVA_SRC ${FILE}) endforeach () add_custom_command (TARGET AdiosJava POST_BUILD COMMAND cmake -E echo "Creating jar file..." COMMAND jar cvf AdiosJava.jar gov ) install (TARGETS AdiosJava RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib ) install (FILES ${CMAKE_CURRENT_BINARY_DIR}/AdiosJava.jar DESTINATION lib) ENABLE_TESTING() add_test (test1 ${CMAKE_CURRENT_SOURCE_DIR}/test/test1.sh ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/test AdiosTest) add_test (test2 ${CMAKE_CURRENT_SOURCE_DIR}/test/test2.sh ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/test AdiosNoxmlTest) adios-1.5.0/wrappers/java/gov_ornl_ccs_Adios.cxx0000644000175000017500000004243312251360163023057 0ustar amckinstryamckinstry#include "gov_ornl_ccs_Adios.h" #include #include #include #include #define STR(A) #A #define CONCAT2(A, B) A ## B #define CONCAT3(A, B, C) CONCAT2(CONCAT2(A, B), C) #define GET_ARRAY_ELEMENT(TYPE) CONCAT3(Get, TYPE, ArrayElements) #define WRITE_ONE(JTYPE) \ /* std::cout << __FUNCTION__ << "..." << std::endl; */ \ int result; \ const char *str_var_name; \ str_var_name = env->GetStringUTFChars(var_name, NULL); \ if (str_var_name == NULL) return -1; \ result = adios_write ((int64_t) fh, str_var_name, &val); \ env->ReleaseStringUTFChars(var_name, str_var_name); \ return result; #define WRITE_ARRAY(JTYPE, CTYPE) \ /* std::cout << __FUNCTION__ << " ..." << std::endl;*/ \ int result; \ const char *str_var_name; \ JTYPE *valarr = env->Get ##CTYPE ##ArrayElements(val, NULL); \ str_var_name = env->GetStringUTFChars(var_name, NULL); \ if (str_var_name == NULL) return -1; \ result = adios_write ((int64_t) fh, str_var_name, (void *) valarr); \ env->ReleaseStringUTFChars(var_name, str_var_name); \ env->Release ##CTYPE ##ArrayElements(val, valarr, 0); \ return result; #define FUNC_WRITE_ONE(FNAME, JTYPE) \ JNIEXPORT jint JNICALL FNAME \ (JNIEnv * env, jclass cls, jlong fh, jstring var_name, JTYPE val) \ { \ WRITE_ONE(JTYPE); \ } #define FUNC_WRITE_ARRAY(FNAME, JTYPE, CTYPE) \ JNIEXPORT jint JNICALL FNAME \ (JNIEnv * env, jclass cls, jlong fh, jstring var_name, JTYPE ##Array val) \ { \ WRITE_ARRAY(JTYPE, CTYPE); \ } #define STR_ALLOC(var) \ const char *str_##var = env->GetStringUTFChars(var, NULL); \ if (str_##var == NULL) return -1; #define STR_ALLOC2(var) \ const char *str_##var = env->GetStringUTFChars(var, NULL); \ if (str_##var == NULL) goto end; #define STR_FREE(var) \ env->ReleaseStringUTFChars(var, str_##var); /* * Class: gov_ornl_ccs_Adios * Method: adios_init * Signature: (Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1init (JNIEnv *env, jclass cls, jstring xml_fname, jlong comm) { //std::cout << __FUNCTION__ << "..." << std::endl; int result; jboolean isCopy; STR_ALLOC(xml_fname); result = adios_init(str_xml_fname, (MPI_Comm) comm); //std::cout << "result = " << result << std::endl; STR_FREE(xml_fname); return result; } /* * Class: gov_ornl_ccs_Adios * Method: adios_open * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)J */ JNIEXPORT jlong JNICALL Java_gov_ornl_ccs_Adios_adios_1open (JNIEnv * env, jclass cls, jstring group_name, jstring file_name, jstring mode, jlong comm) { //std::cout << __FUNCTION__ << "..." << std::endl; int result; int64_t fd_p = 0; STR_ALLOC(group_name); STR_ALLOC(file_name); STR_ALLOC(mode); //std::cout << "[IN] fd_p = " << (int64_t) fd_p << std::endl; //std::cout << "[IN] str_group_name = " << str_group_name << std::endl; //std::cout << "[IN] str_file_name = " << str_file_name << std::endl; //std::cout << "[IN] str_mode = " << str_mode << std::endl; //std::cout << "[IN] comm = " << (long) comm << std::endl; result = adios_open(&fd_p, str_group_name, str_file_name, str_mode, (MPI_Comm) comm); //std::cout << "[OUT] fd_p = " << fd_p << std::endl; //std::cout << "[OUT] result = " << result << std::endl; STR_FREE(group_name); STR_FREE(file_name); STR_FREE(mode); return (jlong) fd_p; } JNIEXPORT jlong JNICALL Java_gov_ornl_ccs_Adios_adios_1group_1size (JNIEnv * env, jclass cls, jlong fh, jlong group_size) { //std::cout << __FUNCTION__ << "..." << std::endl; uint64_t total_size = 0; int result; //std::cout << "[IN] fh = " << (int64_t) fh << std::endl; //std::cout << "[IN] group_size = " << (uint64_t) group_size << std::endl; result = adios_group_size ((int64_t) fh, (uint64_t) group_size, (uint64_t *) &total_size); //std::cout << "[OUT] fh = " << (int64_t) fh << std::endl; //std::cout << "[OUT] total size = " << total_size << std::endl; //std::cout << "[OUT] result = " << result << std::endl; return total_size; } /* * Class: gov_ornl_ccs_Adios * Method: adios_write * Signature: (JLjava/lang/String;B)I * Signature: (JLjava/lang/String;I)I * Signature: (JLjava/lang/String;J)I * Signature: (JLjava/lang/String;F)I * Signature: (JLjava/lang/String;D)I */ FUNC_WRITE_ONE ( Java_gov_ornl_ccs_Adios_adios_1write__JLjava_lang_String_2B, jbyte) FUNC_WRITE_ONE ( Java_gov_ornl_ccs_Adios_adios_1write__JLjava_lang_String_2I, jint) FUNC_WRITE_ONE ( Java_gov_ornl_ccs_Adios_adios_1write__JLjava_lang_String_2J, jlong) FUNC_WRITE_ONE ( Java_gov_ornl_ccs_Adios_adios_1write__JLjava_lang_String_2F, jfloat) FUNC_WRITE_ONE ( Java_gov_ornl_ccs_Adios_adios_1write__JLjava_lang_String_2D, jdouble) /* * Class: gov_ornl_ccs_Adios * Method: adios_write * Signature: (JLjava/lang/String;[B)I * Signature: (JLjava/lang/String;[I)I * Signature: (JLjava/lang/String;[J)I * Signature: (JLjava/lang/String;[F)I * Signature: (JLjava/lang/String;[D)I */ FUNC_WRITE_ARRAY ( Java_gov_ornl_ccs_Adios_adios_1write__JLjava_lang_String_2_3B, jbyte, Byte) FUNC_WRITE_ARRAY ( Java_gov_ornl_ccs_Adios_adios_1write__JLjava_lang_String_2_3I, jint, Int) FUNC_WRITE_ARRAY ( Java_gov_ornl_ccs_Adios_adios_1write__JLjava_lang_String_2_3J, jlong, Long) FUNC_WRITE_ARRAY ( Java_gov_ornl_ccs_Adios_adios_1write__JLjava_lang_String_2_3F, jfloat, Float) FUNC_WRITE_ARRAY ( Java_gov_ornl_ccs_Adios_adios_1write__JLjava_lang_String_2_3D, jdouble, Double) /* * Class: gov_ornl_ccs_Adios * Method: adios_close * Signature: (J)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1close (JNIEnv * env, jclass cls, jlong fh) { //std::cout << __FUNCTION__ << "..." << std::endl; //std::cout << "[IN] fh = " << fh << std::endl; return adios_close ((int64_t) fh); } /* * Class: gov_ornl_ccs_Adios * Method: adios_finalize * Signature: (I)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1finalize (JNIEnv * env, jclass cls, jint id) { //std::cout << __FUNCTION__ << "..." << std::endl; return adios_finalize (id); } #ifdef ADIOS_USE_MPI /* * Class: gov_ornl_ccs_Adios * Method: adios_mpi_init * Signature: ([Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1mpi_1init (JNIEnv * env, jclass cls, jobjectArray args) { int argc = env->GetArrayLength(args); char **argv; int result; for (int i = 0; i < argc; i++) { jstring jstr = (jstring) env->GetObjectArrayElement(args, i); const char *chr = env->GetStringUTFChars(jstr, 0); //argv[i] = (char *) malloc(env->GetStringLength(jstr) + 1); argv[i] = new char[env->GetStringLength(jstr) + 1]; strcpy(argv[i], chr); env->ReleaseStringUTFChars(jstr, chr); } result = MPI_Init(&argc, &argv); for (int i = 0; i < argc; i++) { //free(argv[i]); delete[] argv[i]; } return result; } /* * Class: gov_ornl_ccs_Adios * Method: adios_mpi_comm_rank * Signature: (I)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1mpi_1comm_1rank (JNIEnv * env, jclass cls, jlong comm) { int rank; MPI_Comm_rank((MPI_Comm) comm, &rank); return rank; } /* * Class: gov_ornl_ccs_Adios * Method: adios_mpi_comm_size * Signature: (I)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1mpi_1comm_1size (JNIEnv * env, jclass cls, jlong comm) { int size; MPI_Comm_size((MPI_Comm) comm, &size); return size; } /* * Class: gov_ornl_ccs_Adios * Method: adios_mpi_finalize * Signature: ()I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1mpi_1finalize (JNIEnv * env, jclass cls) { return MPI_Finalize(); } /* * Class: gov_ornl_ccs_Adios * Method: adios_mpi_comm_world * Signature: ()I */ JNIEXPORT jlong JNICALL Java_gov_ornl_ccs_Adios_adios_1mpi_1comm_1world (JNIEnv * env, jclass cls) { return (jlong) MPI_COMM_WORLD; } #endif /* * Class: gov_ornl_ccs_Adios * Method: adios_open_and_set_group_size * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJ)J */ JNIEXPORT jlong JNICALL Java_gov_ornl_ccs_Adios_adios_1open_1and_1set_1group_1size (JNIEnv * env, jclass cls, jstring group_name, jstring file_name, jstring mode, jlong group_size, jlong comm) { // Doesn't work, either //jlong fh = Java_gov_ornl_ccs_Adios_adios_1open(env, cls, group_name, file_name, mode, comm); //Java_gov_ornl_ccs_Adios_adios_1group_1size(env, cls, fh, group_size); //std::cout << __FUNCTION__ << "..." << std::endl; int result; int64_t fd_p = 0; STR_ALLOC(group_name); STR_ALLOC(file_name); STR_ALLOC(mode); //std::cout << "[IN] fd_p = " << (int64_t) fd_p << std::endl; //std::cout << "[IN] str_group_name = " << str_group_name << std::endl; //std::cout << "[IN] str_file_name = " << str_file_name << std::endl; //std::cout << "[IN] str_mode = " << str_mode << std::endl; //std::cout << "[IN] comm = " << (long) comm << std::endl; result = adios_open(&fd_p, str_group_name, str_file_name, str_mode, (MPI_Comm) comm); //std::cout << "[OUT] fd_p = " << fd_p << std::endl; //std::cout << "[OUT] result = " << result << std::endl; STR_FREE(group_name); STR_FREE(file_name); STR_FREE(mode); uint64_t total_size; //std::cout << "[IN] fd_p = " << (int64_t) fd_p << std::endl; adios_group_size (fd_p, group_size, (uint64_t *) &total_size); //std::cout << "[OUT] total size = " << total_size << std::endl; return (jlong) fd_p; } /* * Class: gov_ornl_ccs_Adios * Method: adios_init_noxml * Signature: ()I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1init_1noxml (JNIEnv *env, jclass cls, jlong comm) { return adios_init_noxml((MPI_Comm) comm); } /* * Class: gov_ornl_ccs_Adios * Method: adios_allocate_buffer * Signature: (IJ)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1allocate_1buffer (JNIEnv * env, jclass cls, jint when, jlong size) { return adios_allocate_buffer((ADIOS_BUFFER_ALLOC_WHEN) when, size); } /* * Class: gov_ornl_ccs_Adios * Method: adios_declare_group * Signature: (Ljava/lang/String;Ljava/lang/String;I)J */ JNIEXPORT jlong JNICALL Java_gov_ornl_ccs_Adios_adios_1declare_1group (JNIEnv * env, jclass cls, jstring name, jstring time_index, jint stats) { int64_t id_p; int result; STR_ALLOC(name); STR_ALLOC(time_index); result = adios_declare_group(&id_p, str_name, str_time_index, (ADIOS_FLAG) stats); STR_FREE(name); STR_FREE(time_index); return (jlong) id_p; } /* * Class: gov_ornl_ccs_Adios * Method: adios_define_var * Signature: (JLjava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1define_1var (JNIEnv * env, jclass cls, jlong group_id, jstring name, jstring path, jint type, jstring dimensions, jstring global_dimensions, jstring local_offsets) { int result; STR_ALLOC(name); STR_ALLOC(path); STR_ALLOC(dimensions); STR_ALLOC(global_dimensions); STR_ALLOC(local_offsets); result = adios_define_var((int64_t) group_id, str_name, str_path, (ADIOS_DATATYPES) type, str_dimensions, str_global_dimensions, str_local_offsets); STR_FREE(name); STR_FREE(path); STR_FREE(dimensions); STR_FREE(global_dimensions); STR_FREE(local_offsets); return result; } /* * Class: gov_ornl_ccs_Adios * Method: adios_define_attribute * Signature: (JLjava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1define_1attribute (JNIEnv * env, jclass cls, jlong group_id, jstring name, jstring path, jint type, jstring value, jstring var) { int result; STR_ALLOC(name); STR_ALLOC(path); STR_ALLOC(value); STR_ALLOC(var); result = adios_define_attribute((int64_t) group_id, str_name, str_path, (ADIOS_DATATYPES) type, str_value, str_var); STR_FREE(name); STR_FREE(path); STR_FREE(value); STR_FREE(var); return result; } /* * Class: gov_ornl_ccs_Adios * Method: adios_select_method * Signature: (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_Adios_adios_1select_1method (JNIEnv * env, jclass cls, jlong group_id, jstring method, jstring parameters, jstring base_path) { int result; STR_ALLOC(method); STR_ALLOC(parameters); STR_ALLOC(base_path); result = adios_select_method((int64_t) group_id, str_method, str_parameters, str_base_path); STR_FREE(method); STR_FREE(parameters); STR_FREE(base_path); return result; } #define READ_ONE(JTYPE) \ /* std::cout << __FUNCTION__ << " ..." << std::endl; */ \ int result; \ JTYPE val; \ const char *str_var_name; \ uint64_t read_size = sizeof(JTYPE); \ str_var_name = env->GetStringUTFChars(var_name, NULL); \ if (str_var_name == NULL) return -1; \ result = adios_read ((int64_t) fh, str_var_name, &val, sizeof(JTYPE)); \ env->ReleaseStringUTFChars(var_name, str_var_name); \ return val; #define FUNC_READ_ONE(FNAME, JTYPE) \ JNIEXPORT JTYPE JNICALL FNAME \ (JNIEnv * env, jclass cls, jlong fh, jstring var_name) \ { \ READ_ONE(JTYPE); \ } /* * Class: gov_ornl_ccs_Adios * Method: adios_read_byte_value * Signature: (JLjava/lang/String;)B * Signature: (JLjava/lang/String;)I * Signature: (JLjava/lang/String;)J * Signature: (JLjava/lang/String;)F * Signature: (JLjava/lang/String;)D */ FUNC_READ_ONE( Java_gov_ornl_ccs_Adios_adios_1read_1byte_1value, jbyte); FUNC_READ_ONE( Java_gov_ornl_ccs_Adios_adios_1read_1int_1value, jint); FUNC_READ_ONE( Java_gov_ornl_ccs_Adios_adios_1read_1long_1value, jlong); FUNC_READ_ONE( Java_gov_ornl_ccs_Adios_adios_1read_1float_1value, jfloat); FUNC_READ_ONE( Java_gov_ornl_ccs_Adios_adios_1read_1double_1value, jdouble); #define READ_ARRAY(JTYPE, CTYPE) \ /* std::cout << __FUNCTION__ << " ..." << std::endl; */ \ int result; \ const char *str_var_name; \ JTYPE *valarr = env->Get ##CTYPE ##ArrayElements(val, NULL); \ uint64_t read_size = env->GetArrayLength(val) * sizeof(JTYPE); \ str_var_name = env->GetStringUTFChars(var_name, NULL); \ if (str_var_name == NULL) return -1; \ result = adios_read ((int64_t) fh, str_var_name, (void *) valarr, read_size); \ env->ReleaseStringUTFChars(var_name, str_var_name); \ env->Release ##CTYPE ##ArrayElements(val, valarr, 0); \ return result; #define FUNC_READ_ARRAY(FNAME, JTYPE, CTYPE) \ JNIEXPORT jint JNICALL FNAME \ (JNIEnv * env, jclass cls, jlong fh, jstring var_name, JTYPE ##Array val) \ { \ READ_ARRAY(JTYPE, CTYPE); \ } /* * Class: gov_ornl_ccs_Adios * Method: adios_read * Signature: (JLjava/lang/String;[B)I * Signature: (JLjava/lang/String;[I)I * Signature: (JLjava/lang/String;[J)I * Signature: (JLjava/lang/String;[F)I * Signature: (JLjava/lang/String;[D)I */ FUNC_READ_ARRAY( Java_gov_ornl_ccs_Adios_adios_1read__JLjava_lang_String_2_3B, jbyte, Byte); FUNC_READ_ARRAY( Java_gov_ornl_ccs_Adios_adios_1read__JLjava_lang_String_2_3I, jint, Int); FUNC_READ_ARRAY( Java_gov_ornl_ccs_Adios_adios_1read__JLjava_lang_String_2_3J, jlong, Long); FUNC_READ_ARRAY( Java_gov_ornl_ccs_Adios_adios_1read__JLjava_lang_String_2_3F, jfloat, Float); FUNC_READ_ARRAY( Java_gov_ornl_ccs_Adios_adios_1read__JLjava_lang_String_2_3D, jdouble, Double); adios-1.5.0/wrappers/java/gov_ornl_ccs_AdiosFlag.cxx0000644000175000017500000000000012251360163023631 0ustar amckinstryamckinstryadios-1.5.0/wrappers/java/gov_ornl_ccs_AdiosGroup.cxx0000644000175000017500000000474512251360163024100 0ustar amckinstryamckinstry#include "gov_ornl_ccs_AdiosGroup.h" #include /* * Class: gov_ornl_ccs_AdiosGroup * Method: adios_gopen * Signature: (JLjava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_AdiosGroup_adios_1gopen (JNIEnv * env, jobject obj, jlong fp, jstring grpname) { const char *str; jboolean isCopy; jclass cls; jfieldID fid; ADIOS_GROUP* gp; str = env->GetStringUTFChars(grpname, &isCopy); if (str == NULL) return -1; /* OutOfMemoryError already thrown */ gp = adios_gopen((ADIOS_FILE *)fp, str); env->ReleaseStringUTFChars(grpname, str); cls = env->GetObjectClass(obj); if (cls == NULL) { return -1; } fid = env->GetFieldID(cls, "gp", "J"); env->SetLongField(obj, fid, (jlong)gp); fid = env->GetFieldID(cls, "gh", "J"); env->SetLongField(obj, fid, gp->gh); fid = env->GetFieldID(cls, "grpid", "I"); env->SetIntField(obj, fid, gp->grpid); fid = env->GetFieldID(cls, "vars_count", "I"); env->SetIntField(obj, fid, gp->vars_count); fid = env->GetFieldID(cls, "attrs_count", "I"); env->SetIntField(obj, fid, gp->attrs_count); jclass stringClass = env->FindClass("java/lang/String"); jobjectArray var_namelist = env->NewObjectArray(gp->vars_count, stringClass, NULL); for (int i = 0; i < gp->vars_count; i++) { jstring var_name = env->NewStringUTF(gp->var_namelist[i]); env->SetObjectArrayElement(var_namelist, i, var_name); } fid = env->GetFieldID(cls, "var_namelist", "[Ljava/lang/String;"); env->SetObjectField(obj, fid, var_namelist); jobjectArray attr_namelist = env->NewObjectArray(gp->attrs_count, stringClass, NULL); for (int i = 0; i < gp->attrs_count; i++) { jstring attr_name = env->NewStringUTF(gp->attr_namelist[i]); env->SetObjectArrayElement(attr_namelist, i, attr_name); } fid = env->GetFieldID(cls, "attr_namelist", "[Ljava/lang/String;"); env->SetObjectField(obj, fid, attr_namelist); return 0; } /* * Class: gov_ornl_ccs_AdiosGroup * Method: adios_gclose * Signature: ()I */ JNIEXPORT jint JNICALL Java_gov_ornl_ccs_AdiosGroup_adios_1gclose (JNIEnv * env, jobject obj) { jclass cls; jfieldID fid; jlong gp; jint result; cls = env->GetObjectClass(obj); fid = env->GetFieldID(cls, "gp", "J"); gp = env->GetLongField(obj, fid); result = adios_gclose((ADIOS_GROUP*)gp); env->SetLongField(obj, fid, 0); return result; } adios-1.5.0/config/0000755000175000017500000000000012251360163015212 5ustar amckinstryamckinstryadios-1.5.0/config/ac_pablo.m40000644000175000017500000000355412251360163017223 0ustar amckinstryamckinstrydnl @synopsis AC_PABLO([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl dnl This macro tries to find out how to compile programs that dnl use the Pablo API. dnl dnl On success, it defines HAVE_PABLO and sets PABLO_LIBS dnl to any libraries that are needed for linking dnl Pablo (e.g. -lp3utcp, -lp3lib,...). dnl dnl If you want to compile everything with Pablo, you should set: dnl dnl LIBS="$PABLO_LIBS $LIBS" dnl dnl ACTION-IF-FOUND is a list of shell commands to run if a Portals dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands dnl to run it if it is not found. If ACTION-IF-FOUND is not specified, dnl the default action will define HAVE_PORTALS. dnl dnl @version $Id: acx_mpi.m4 676 2006-05-16 20:44:08Z raoldfi $ dnl @author Ron A. Oldfield AC_DEFUN([AC_PABLO], [ AM_CONDITIONAL(HAVE_PABLO,true) AC_ARG_WITH(pablo, [ --with-pablo=DIR Location of Pablo library], [PABLO_LDFLAGS="-L$withval/lib"; PABLO_CPPFLAGS="-I$withval/include";]) dnl AC_LANG_PUSH([C++]) save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS -lPablo" LDFLAGS="$LDFLAGS $PABLO_LDFLAGS" CPPFLAGS="$CPPFLAGS $PABLO_CPPFLAGS" if test -z "${HAVE_PABLO_TRUE}"; then AC_CHECK_HEADERS(Attributes.h, , [AM_CONDITIONAL(HAVE_PABLO,false)]) fi # Check for the Pablo library and headers for SDDF AC_TRY_COMPILE([#include ], [Attributes attr;attr.clearEntries();], [PABLO_LIBS="-lPablo"], [AM_CONDITIONAL(HAVE_PABLO,false)]) LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" AC_SUBST(PABLO_LIBS) AC_SUBST(PABLO_LDFLAGS) AC_SUBST(PABLO_CPPFLAGS) dnl AC_LANG_POP([C++]) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_PABLO_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_PABLO,1,[Define if you have the Pablo.])],[$1]) : else $2 : fi ])dnl AC_PABLO adios-1.5.0/config/acx_mpi.m40000644000175000017500000001512012251360163017073 0ustar amckinstryamckinstry# =========================================================================== # http://autoconf-archive.cryp.to/acx_mpi.html # =========================================================================== # # SYNOPSIS # # ACX_MPI([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) # # DESCRIPTION # # This macro tries to find out how to compile programs that use MPI # (Message Passing Interface), a standard API for parallel process # communication (see http://www-unix.mcs.anl.gov/mpi/) # # On success, it sets the MPICC, MPICXX, MPIF77, or MPIFC output variable # to the name of the MPI compiler, depending upon the current language. # (This may just be $CC/$CXX/$F77/$FC, but is more often something like # mpicc/mpiCC/mpif77/mpif90.) It also sets MPILIBS to any libraries that # are needed for linking MPI (e.g. -lmpi or -lfmpi, if a special # MPICC/MPICXX/MPIF77/MPIFC was not found). # # If you want to compile everything with MPI, you should set: # # CC="MPICC" #OR# CXX="MPICXX" #OR# F77="MPIF77" #OR# FC="MPIFC" # LIBS="$MPILIBS $LIBS" # # NOTE: The above assumes that you will use $CC (or whatever) for linking # as well as for compiling. (This is the default for automake and most # Makefiles.) # # The user can force a particular library/compiler by setting the # MPICC/MPICXX/MPIF77/MPIFC and/or MPILIBS environment variables. # # ACTION-IF-FOUND is a list of shell commands to run if an MPI library is # found, and ACTION-IF-NOT-FOUND is a list of commands to run if it is not # found. If ACTION-IF-FOUND is not specified, the default action will # define HAVE_MPI. # # LAST MODIFICATION # # 2008-04-12 # # COPYLEFT # # Copyright (c) 2008 Steven G. Johnson # Copyright (c) 2008 Julian C. Cummings # # This program 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 3 of the License, or (at your # option) any later version. # # This program 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 this program. If not, see . # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Macro Archive. When you make and # distribute a modified version of the Autoconf Macro, you may extend this # special exception to the GPL to apply to your modified version as well. AC_DEFUN([ACX_MPI], [ AC_PREREQ(2.50) dnl for AC_LANG_CASE AM_CONDITIONAL(HAVE_MPI,true) AC_ARG_WITH(mpi, [ --with-mpi=], [MPI_DIR=$withval]) AC_LANG_CASE([C], [ AC_REQUIRE([AC_PROG_CC]) AC_ARG_VAR(MPICC,[MPI C compiler command]) AC_CHECK_PROGS(MPICC, mpicc hcc mpxlc_r mpxlc mpcc cmpicc, $CC) acx_mpi_save_CC="$CC" CC="$MPICC" AC_SUBST(MPICC) ], [C++], [ AC_REQUIRE([AC_PROG_CXX]) AC_ARG_VAR(MPICXX,[MPI C++ compiler command]) AC_CHECK_PROGS(MPICXX, mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++, $CXX) acx_mpi_save_CXX="$CXX" CXX="$MPICXX" AC_SUBST(MPICXX) ], [Fortran 77], [ AC_REQUIRE([AC_PROG_F77]) AC_ARG_VAR(MPIF77,[MPI Fortran 77 compiler command]) AC_CHECK_PROGS(MPIF77, mpif77 hf77 mpxlf_r mpxlf mpf77 cmpifc, $F77) acx_mpi_save_F77="$F77" F77="$MPIF77" AC_SUBST(MPIF77) ], [Fortran], [ AC_REQUIRE([AC_PROG_FC]) AC_ARG_VAR(MPIFC,[MPI Fortran compiler command]) AC_CHECK_PROGS(MPIFC, mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c, $FC) acx_mpi_save_FC="$FC" FC="$MPIFC" AC_SUBST(MPIFC) ]) if test x = x"$MPILIBS"; then AC_LANG_CASE([C], [AC_CHECK_FUNC(MPI_Init, [MPILIBS=" "])], [C++], [AC_CHECK_FUNC(MPI_Init, [MPILIBS=" "])], [Fortran 77], [AC_MSG_CHECKING([for MPI_Init]) AC_LINK_IFELSE([AC_LANG_PROGRAM([],[ call MPI_Init])],[MPILIBS=" " AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])], [Fortran], [AC_MSG_CHECKING([for MPI_Init]) AC_LINK_IFELSE([AC_LANG_PROGRAM([],[ call MPI_Init])],[MPILIBS=" " AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])]) fi AC_LANG_CASE([Fortran 77], [ if test x = x"$MPILIBS"; then AC_CHECK_LIB(fmpi, MPI_Init, [MPILIBS="-lfmpi"]) fi if test x = x"$MPILIBS"; then AC_CHECK_LIB(fmpich, MPI_Init, [MPILIBS="-lfmpich"]) fi ], [Fortran], [ if test x = x"$MPILIBS"; then AC_CHECK_LIB(fmpi, MPI_Init, [MPILIBS="-lfmpi"]) fi if test x = x"$MPILIBS"; then AC_CHECK_LIB(mpichf90, MPI_Init, [MPILIBS="-lmpichf90"]) fi ]) if test x = x"$MPILIBS"; then AC_CHECK_LIB(mpi, MPI_Init, [MPILIBS="-lmpi"]) fi if test x = x"$MPILIBS"; then AC_CHECK_LIB(mpich, MPI_Init, [MPILIBS="-lmpich"]) fi dnl We have to use AC_TRY_COMPILE and not AC_CHECK_HEADER because the dnl latter uses $CPP, not $CC (which may be mpicc). AC_LANG_CASE([C], [if test x != x"$MPILIBS"; then AC_MSG_CHECKING([for mpi.h]) AC_TRY_COMPILE([#include ],[],[AC_MSG_RESULT(yes)], [MPILIBS="" AC_MSG_RESULT(no)]) fi], [C++], [if test x != x"$MPILIBS"; then AC_MSG_CHECKING([for mpi.h]) AC_TRY_COMPILE([#include ],[],[AC_MSG_RESULT(yes)], [MPILIBS="" AC_MSG_RESULT(no)]) fi], [Fortran 77], [if test x != x"$MPILIBS"; then AC_MSG_CHECKING([for mpif.h]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[ include 'mpif.h'])],[AC_MSG_RESULT(yes)], [MPILIBS="" AC_MSG_RESULT(no)]) fi], [Fortran], [if test x != x"$MPILIBS"; then AC_MSG_CHECKING([for mpif.h]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[ include 'mpif.h'])],[AC_MSG_RESULT(yes)], [MPILIBS="" AC_MSG_RESULT(no)]) fi]) AC_LANG_CASE([C], [CC="$acx_mpi_save_CC"], [C++], [CXX="$acx_mpi_save_CXX"], [Fortran 77], [F77="$acx_mpi_save_F77"], [Fortran], [FC="$acx_mpi_save_FC"]) AC_SUBST(MPILIBS) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x = x"$MPILIBS"; then $2 : else ifelse([$1],,[AC_DEFINE(HAVE_MPI,1,[Define if you have the MPI library.])],[$1]) : fi ])dnl ACX_MPI adios-1.5.0/config/ac_mxml.m40000644000175000017500000000602012251360163017072 0ustar amckinstryamckinstry# # # AC_PROG_MXML # # Test for Mini-XML # and set $MXML to the correct value. # # dnl @synopsis AC_PROG_MXML dnl dnl This macro test if mini-XML is installed. If mini-XML dnl is installed, it set $MXML to the right value dnl dnl @version 1.0 dnl @author Jay Lofstead lofstead@cc.gatech.edu dnl AC_DEFUN([AC_PROG_MXML],[ AM_CONDITIONAL(HAVE_MXML,true) AC_ARG_WITH(mxml, [ --with-mxml=DIR Location of Mini-XML library], [MXML_LDFLAGS="-L$withval/lib"; MXML_CPPFLAGS="-I$withval/include";]) save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS -lmxml" if test -n "$MXML_LDFLAGS"; then LDFLAGS="$LDFLAGS $MXML_LDFLAGS" elif test -n "$MXML_LIB"; then LDFLAGS="$LDFLAGS $MXML_LIB" MXML_LDFLAGS="$MXML_LIB" fi if test -n "$MXML_CPPFLAGS"; then CPPFLAGS="$CPPFLAGS $MXML_CPPFLAGS" elif test -n "$MXML_INC"; then CPPFLAGS="$CPPFLAGS $MXML_INC" MXML_CPPFLAGS="$MXML_INC" fi if test -z "${HAVE_MXML_TRUE}"; then AC_CHECK_HEADERS(mxml.h, , [AM_CONDITIONAL(HAVE_MXML,false)]) fi if test -z "${HAVE_MXML_TRUE}"; then # Check for the Mini-XML library and headers AC_MSG_CHECKING([if mxml code can be linked]) AC_TRY_LINK([#include "mxml.h"], [mxml_node_t * n; char *buffer; char *value; n = mxmlLoadString (0, buffer, MXML_TEXT_CALLBACK); mxmlWalkNext (n, n, MXML_DESCEND); value = mxmlElementGetAttr (n, "value"); mxmlRelease (n); ], [MXML_LIBS="-lmxml" AC_MSG_RESULT(yes) ], [AM_CONDITIONAL(HAVE_MXML,false) AC_MSG_RESULT(no) ]) dnl If Linking above failed, one reason might be that mxml uses pthreads and dnl the compiler does not use it by default. Try getting phtreads if test -z "${HAVE_MXML_FALSE}"; then # Check for the Mini-XML library and headers AC_REQUIRE([ACX_PTHREAD]) LDFLAGS="$LDFLAGS $PTHREAD_LDFLAGS $PTHREAD_LIBS" AC_MSG_CHECKING([if mxml code can be linked using pthreads]) AC_TRY_LINK([#include "mxml.h"], [mxml_node_t * n; char *buffer; char *value; n = mxmlLoadString (0, buffer, MXML_TEXT_CALLBACK); mxmlWalkNext (n, n, MXML_DESCEND); value = mxmlElementGetAttr (n, "value"); mxmlRelease (n); ], [MXML_LDFLAGS="$MXML_LDFLAGS $PTHREAD_LDFLAGS" MXML_LIBS="-lmxml $PTHREAD_LIBS" AM_CONDITIONAL(HAVE_MXML,true) AC_MSG_RESULT(yes) ], [AM_CONDITIONAL(HAVE_MXML,false) AC_MSG_RESULT(no) ]) fi fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" AC_SUBST(MXML_LIBS) AC_SUBST(MXML_LDFLAGS) AC_SUBST(MXML_CPPFLAGS) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_MXML_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_MXML,1,[Define if you have the MXML.])],[$1]) : else $2 : fi ])dnl AC_MXML adios-1.5.0/config/ac_dcmf.m40000644000175000017500000000331412251360163017031 0ustar amckinstryamckinstrydnl ###################################################################### dnl dnl Finds IBM_DCMF dnl dnl ###################################################################### AC_DEFUN([AC_DCMF],[ ac_dcmf_lib_ok=no DCMF_CFLAGS="" DCMF_CPPFLAGS="" DCMF_LDFLAGS="" DCMF_LIBS="" AC_MSG_NOTICE([=== checking for IBM DCMF ===]) AM_CONDITIONAL(HAVE_DCMF,true) AC_ARG_WITH(dcmf, [ --with-dcmf=DIR Location of IBM DCMF], [ DCMF_CPPFLAGS="-I$withval/arch/include -I$withval/comm/include"; DCMF_LDFLAGS="-L$withval/comm/lib -L$withval/runtime/SPI"; DCMF_LIBS="-ldcmf.cnk -ldcmfcoll.cnk -lpthread -lrt -lSPI.cna";]) save_CPPFLAGS="$CPPFLAGS" save_LDFLAGS="$LDFLAGS" save_LIBS="$LIBS" CPPFLAGS="$CPPFLAGS $DCMF_CPPFLAGS" LDFLAGS="$LDFLAGS $DCMF_LDFLAGS" LIBS="$LIBS $DCMF_LIBS" dnl Check for the header file. if test -z "${HAVE_DCMF_TRUE}"; then AC_CHECK_HEADERS(dcmf.h, , [AM_CONDITIONAL(HAVE_DCMF,false)]) fi dnl Check for the library. if test -z "${HAVE_DCMF_TRUE}"; then AC_MSG_CHECKING([if dcmf code can be linked]) AC_TRY_LINK([#include "dcmf.h"], [unsigned ret; ret = DCMF_Messager_initialize(); ret = DCMF_Messager_finalize();], [DCMF_LIBS="-ldcmf.cnk -ldcmfcoll.cnk -lpthread -lrt -lSPI.cna" AC_MSG_RESULT(yes)], [AM_CONDITIONAL(HAVE_DCMF, false) AC_MSG_RESULT(no)]) fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" AC_SUBST(DCMF_CFLAGS) AC_SUBST(DCMF_CPPFLAGS) AC_SUBST(DCMF_LDFLAGS) AC_SUBST(DCMF_LIBS) dnl Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_DCMF_TRUE}"; then ac_dcmf_lib_ok=yes ifelse([$1],,[AC_DEFINE(HAVE_DCMF,1,[Define if you have the DCMF.])],[$1]) : else $2 : fi ])dnl AC_DCMF adios-1.5.0/config/config.sub0000755000175000017500000010535412251360163017205 0ustar amckinstryamckinstry#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-08-10' # 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 # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program 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 this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches with a ChangeLog entry to config-patches@gnu.org. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | 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/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 \ | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | 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 \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | 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-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or1k-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: adios-1.5.0/config/ac_lustre.m40000644000175000017500000000341112251360163017434 0ustar amckinstryamckinstry# # # AC_LUSTRE # # # dnl @synopsis AC_LUSTRE dnl dnl This macro test if dmalloc is to be used. dnl Use in C code: dnl #ifdef DMALLOC dnl #include "dmalloc.h" dnl #endif dnl dnl @version 1.0 dnl @author Qing Liu, UT dnl AC_DEFUN([AC_LUSTRE],[ AC_MSG_NOTICE([=== checking for Lustre ===]) AM_CONDITIONAL(HAVE_LUSTRE,true) AC_ARG_WITH(lustre, [ --with-lustre=DIR Location of lustre library], [LUSTRE_LDFLAGS="-L$withval/lib"; LUSTRE_LIBS="-llustreapi"; LUSTRE_CPPFLAGS="-I$withval/include";], [with_lustre=no]) if test "x$with_lustre" == "xno"; then AM_CONDITIONAL(HAVE_LUSTRE,false) else save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS -llustreapi" LDFLAGS="$LDFLAGS $LUSTRE_LDFLAGS" CPPFLAGS="$CPPFLAGS $LUSTRE_CPPFLAGS" dnl if test -z "${HAVE_DMALLOC_TRUE}"; then dnl AC_CHECK_HEADERS(dmalloc.h, dnl , dnl [AM_CONDITIONAL(HAVE_DMALLOC,false)]) dnl fi # Check for the lustre library and headers dnl AC_TRY_COMPILE([struct obd_uuid {char uuid[40];};int fd, num_ost;struct obd_uuid uuids[1024];], dnl [llapi_lov_get_uuids(fd, uuids, &num_ost);], dnl [LUSTRE_LIBS="-llustreapi"], dnl [AM_CONDITIONAL(HAVE_LUSTRE,false)]) LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" AC_SUBST(LUSTRE_LIBS) AC_SUBST(LUSTRE_LDFLAGS) AC_SUBST(LUSTRE_CPPFLAGS) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_LUSTRE_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_LUSTRE,1,[Define if you have LUSTRE.])],[$1]) : else $2 : fi fi ])dnl AC_LUSTRE adios-1.5.0/config/cercs.m40000644000175000017500000002113512251360163016555 0ustar amckinstryamckinstrydnl Mon Jan 28 13:01:16 EST 2008 dnl dnl cercs_require_package(package, include_file, library_file) dnl either include file or library_file may be left off if not needed dnl this macro searches for the files using find_cercs_file(). If dnl found, it adds directory in which the found file resides to either dnl CPPFLAGS (with a -I prefix) or LDFLAGS (with a -L prefix) dnl AC_DEFUN([CERCS_REQUIRE_PACKAGE], [ AC_REQUIRE([CERCS_SET_ARCHIVE]) AC_REQUIRE([CERCS_HAS_CYGPATH]) if test -z "$with_local_specified"; then CERCS_REQUIRE_OTHER_PACKAGE($1,$2,$3) else CERCS_REQUIRE_OTHER_PACKAGE($1,$2,$3,1) fi ]) dnl dnl AC_DEFUN([CERCS_REQUIRE_OTHER_PACKAGE], [ AC_REQUIRE([CERCS_SET_ARCHIVE]) AC_REQUIRE([CERCS_HAS_CYGPATH]) AC_ARG_WITH(translit($1, `/',`_'), translit([ --with-$1=DIR Where to find $1 package], `/',`_')) define([with_translit], translit(with_$1, `/',`_')) if test -n "$with_translit"; then dnl dnl if they did a with, kill the cache variables dnl translit(unset cercs_cv_$1_include_arg, `/',`_') translit(unset cercs_cv_$1_link_arg, `/',`_') if test `echo $with_translit | sed 's/\(.\).*/\1/g'` != "/"; then with_translit=`pwd`/$with_translit fi fi ifelse([$2], , , dnl dnl if arg2 (include_file) is specified dnl AC_MSG_CHECKING(needed include args for $1 package) AC_CACHE_VAL(translit(cercs_cv_$1_include_arg, `/',`_'), [ ifelse([$4],1,[ search_list="$PWD/../$1 $PWD/../../$1 $PWD/../../../$1" CERCS_SEARCH($search_list) if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi ], CERCS_FIND_FILE($1, $2, cercs_tmp, $with_translit, include)) if test -n "$cercs_tmp" -a "$cercs_tmp" != "/usr/include/$2"; then translit(cercs_cv_$1_include_arg, `/',`_')=-I`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s#.$2##g"` fi ]) AC_MSG_RESULT(translit($cercs_cv_$1_include_arg, `/',`_')) dnl dnl add the result to CPPFLAGS if it is absent dnl translit(if test -n "$cercs_cv_$1_include_arg"; then, `/',`_') translit(arg="$cercs_cv_$1_include_arg", `/',`_') no_dash_arg=`echo $arg | sed 's/^-//g'` [if test `echo $DT_CPPFLAGS | grep -c "$no_dash_arg"` -eq 0; then if test `echo $arg | grep -c "$1"` -eq 0; then DT_CPPFLAGS="$DT_CPPFLAGS $arg"; else DT_CPPFLAGS="$arg $DT_CPPFLAGS" fi fi] fi ) ifelse([$3], , , dnl dnl if arg3 (library_file) is specified dnl AC_MSG_CHECKING(needed link args for $1 package) AC_CACHE_VAL(translit(cercs_cv_$1_link_dir, `/',`_'), [ ifelse([$4],1,[ search_list="$PWD/../$1 $PWD/../../$1 $PWD/../../../$1" CERCS_SEARCH($search_list) if test -n "$tmp_search_results"; then cercs_tmp=$tmp_search_results fi ], CERCS_FIND_FILE($1, $3, cercs_tmp, $with_translit, lib)) if test -n "$cercs_tmp" -a "$cercs_tmp" != "$3"; then translit(cercs_cv_$1_link_dir, `/',`_')=`$PATHPROG $cercs_tmp | sed 's#\\\\#/#g' | sed "s/.$3//g"` else translit(cercs_cv_$1_link_dir="", `/',`_') fi ]) AC_MSG_RESULT(translit($cercs_cv_$1_link_dir, `/',`_')) ld_arg="-L" new_flags=$LDFLAGS dnl dnl add the result to LDFLAGS if it is absent dnl translit(cercs_cv_$1_link_arg=`echo $cercs_cv_$1_link_dir, `/',`_') | sed "/./ s/^/$ld_arg/1"` translit(if test -n "$cercs_cv_$1_link_arg"; then, `/',`_') translit(arg=$cercs_cv_$1_link_arg, `/',`_') no_dash_arg=`echo $arg | sed 's/^-//g'` [if test `echo $new_flags | grep -c "$no_dash_arg"` -eq 0; then root=`echo $3 | sed 's/\..*//'` translit(if test ! -r $cercs_cv_$1_link_dir, `/`, `_`)/$root.la; then if eval "test \"\${LIBTOOL+set}\" = set"; then translit(arg="$cercs_cv_$1_link_arg "`echo $cercs_cv_$1_link_dir, `/',`_') | sed "/./ s/^/-R/1"` fi fi if test `echo $arg | grep -c "$1"` -eq 0; then dnl if arg does not includes a project spec add it at the end new_flags="$new_flags $arg" else new_flags="$arg $new_flags" fi fi] DT_LDFLAGS=$new_flags fi ) ])dnl dnl dnl cercs_find_file(package, file_to_find, variable_to_set, suggestion, dir_name) dnl search a set of standard directories to find file_to_find. When found, dnl set $variable_to_set to the path of the file. Use package and dnl suggestions to help search. Mostly this searches ~chaos (if it exists) dnl and the usual suspects like: dnl /usr/{include,lib} /usr/local/{include,lib} /opt//{include,lib} dnl /opt/misc/{include,lib}. dnl AC_DEFUN([CERCS_FIND_FILE], [ AC_REQUIRE([CERCS_HAS_CSH]) AC_REQUIRE([CERCS_SET_ARCHIVE]) $3="" search_list="./$2" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$4"; then if test `echo $4 | cut -c1` = "~"; then EXPANDED=`echo "echo $4" | csh -sf 2>/dev/null` || EXPANDED="" else EXPANDED=$4 fi echo "Datatap = $datatap_dir" search_list="$datatap_dir/$2 $datatap_dir/lib/$2 $datatap_dir/include/$2 $search_list $EXPANDED/$2 $EXPANDED/$5/$2 $EXPANDED/share/$2 $EXPANDED/$cercs_cv_archive/$2 $EXPANDED/$cercs_cv_archive/$5/$2 $EXPANDED/$1/$2 $EXPANDED/$1/$cercs_cv_archive/$2 $EXPANDED/$1/$5/$2 $EXPANDED/$1/$5/$cercs_cv_archive/$2" fi if test -z "$with_installed_specified"; then search_list="$search_list `pwd`/../$1/$2 `pwd`/../$5/$2 `pwd`/../share/$2" if test "$CHAOS_HOMEDIR" != "$HOME"; then search_list="$search_list $HOME/$1/$2 $HOME/$cercs_cv_archive/$5/$2 $HOME/$5/$2" fi fi if test -n "$CHAOS_HOMEDIR" -a -n "$cercs_cv_archive"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/$1/$5/$2 $CHAOS_HOMEDIR/$cercs_cv_archive/$5/$2 $CHAOS_HOMEDIR/$1/$cercs_cv_archive/$5/$2 $CHAOS_HOMEDIR/$1/$5/$2 $CHAOS_HOMEDIR/$5/$2" fi if test "$libdir" != '${exec_prefix}/lib'; then tmpdir=`echo ${libdir} | sed 's%/$%%'` search_list="$tmpdir/$2 $search_list" fi if test "$exec_prefix" != "NONE"; then tmpdir=`echo ${exec_prefix} | sed 's%/$%%'` search_list="$tmpdir/lib/$2 $search_list" fi if test "$includedir" != '${prefix}/include'; then tmpdir=`echo ${includedir} | sed 's%/$%%'` search_list="$tmpdir/$2 $search_list" fi if test "$prefix" != "NONE"; then tmpdir=`echo ${prefix} | sed 's%/$%%'` search_list="$tmpdir/$5/$2 $search_list" fi if test "$5" == "lib"; then for tmp_lib_value in $sys_lib_search_path_spec; do search_list="$search_list $tmp_lib_value/$2" done fi search_list="$datatap_dir/$2 $datatap_dir/lib/$2 $datatap_dir/include/$2 $search_list /usr/$5/$2 /usr/local/$5/$2 /opt/$1/$5/$2 /opt/misc/$5/$2 /opt/misc/$5/$cercs_cv_archive/$2" CERCS_SEARCH($search_list) if test -n "$tmp_search_results"; then $3=$tmp_search_results fi ])dnl AC_DEFUN([CERCS_SET_INSTALLED],[AC_ARG_WITH(installed, [ --with-installed Don't use local copies of CERCS packages],with_installed_specified=1)]) AC_DEFUN([CERCS_SET_LOCAL],[AC_ARG_WITH(local, [ --with-local Use only local copies of CERCS packages],with_local_specified=1)]) dnl dnl CERCS_SET_ARCHIVE() dnl set the $cercs_cv_machine_target variable to a standard archive name dnl AC_DEFUN([CERCS_SET_ARCHIVE],[ AC_REQUIRE([CERCS_SET_INSTALLED]) AC_REQUIRE([CERCS_SET_LOCAL]) AC_REQUIRE([CERCS_HAS_CSH]) CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test "$cross_compiling" = yes ; then cpu=$host_cpu vendor=$host_vendot os=$host_os else cpu= vendor= os= fi if test -x $CHAOS_HOMEDIR/bin/cercs_arch; then cercs_cv_archive=`$CHAOS_HOMEDIR/bin/cercs_arch "$cpu" "$vendor" "$os"` else cercs_cv_archive=${cercs_cv_archive-`cercs_arch 2>/dev/null`} || cercs_cv_archive="" fi ])dnl dnl dnl CERCS_SEARCH(variable to define, options to try) define(CERCS_SEARCH, [tmp_search_results="" echo "configure:__oline__: searching for $1 " >&5 for tmp_search_value in $1; do if test -r $tmp_search_value; then tmp_search_results=$tmp_search_value echo "configure:__oline__: first found $tmp_search_results " >&5 break fi done ])dnl dnl dnl dnl CERCS_LIB_PREFIX dnl this macro tries to set a reasonable default for the prefix value dnl call with two arguments, project name and library name dnl AC_DEFUN([CERCS_LIB_PREFIX], [if test "x$prefix" = xNONE; then AC_REQUIRE([CERCS_SET_ARCHIVE]) search_list="" CHAOS_HOMEDIR="" if test -n "$CSH"; then CHAOS_HOMEDIR=`echo "echo ~chaos" | csh -sf 2>/dev/null | sed 's%/$%%'` || CHAOS_HOMEDIR="" fi if test -n "$CHAOS_HOMEDIR"; then search_list="$search_list $CHAOS_HOMEDIR/$cercs_cv_archive/lib/$2 $CHAOS_HOMEDIR/lib/$2" fi search_list="$search_list /usr/lib/$2 /usr/local/lib/$2 /opt/$1/lib/$2 /opt/misc/lib/$2" CERCS_SEARCH($search_list) if test -n "$tmp_search_results"; then prefix=`echo $tmp_search_results|sed "s%$cercs_cv_archive/lib/$2%%g;s%lib/$2%%g;s%/[^/][^/]*//*[^/][^/]*$%%"` exec_prefix=`echo $tmp_search_results|sed 's%lib/$2%%g;s%/[^/][^/]*//*[^/][^/]*$%%'` fi fi ])dnl AC_DEFUN([CERCS_HAS_CSH], [AC_PATH_PROG(CSH,csh)])dnl AC_DEFUN([CERCS_HAS_CYGPATH], [AC_CHECK_PROG(PATHPROG,cygpath,[cygpath -w],[echo])])dnl adios-1.5.0/config/ac_dataspaces.m40000644000175000017500000001252712251360163020236 0ustar amckinstryamckinstry# # # AC_PROG_DATASPACES # # Test for DATASPACES installation # and set $DATASPACES to the correct value. # # dnl @synopsis AC_PROG_DATASPACES dnl dnl This macro test if DATASPACES is installed. If DATASPACES dnl is installed, it set $DATASPACES to the right value dnl dnl @version 1.0 dnl @author Norbert Podhorszki, pnorbert@ornl.gov dnl AC_DEFUN([AC_PROG_DATASPACES],[ AC_REQUIRE([AC_INFINIBAND]) dnl AC_REQUIRE([AC_PORTALS]) dnl AC_REQUIRE([AC_GNI]) AM_CONDITIONAL(HAVE_DATASPACES,true) AC_ARG_WITH(dataspaces, [AS_HELP_STRING([--with-dataspaces=DIR], [Build the DATASPACES transport method. Point to the DATASPACES installation.])], [DATASPACES_LDFLAGS="-L$withval/lib"; DATASPACES_CPPFLAGS="-I$withval/include";], [with_dataspaces=check]) dnl If --without-dataspaces was given set HAVE_DATASPACES to false and do nothing more if test "x$with_dataspaces" == "xno"; then AM_CONDITIONAL(HAVE_DATASPACES,false) else dnl allow args --with-dataspaces incdir and --with-dataspaces-libdir AC_ARG_WITH(dataspaces-incdir, [ --with-dataspaces-incdir=], [DATASPACES_INCDIR=$withval with_dataspaces=detailed]) AC_ARG_WITH(dataspaces-libdir, [ --with-dataspaces-libdir=], [DATASPACES_LIBDIR=$withval with_dataspaces=detailed]) dnl If we know DATASPACES_DIR, then we can know DATASPACES_INCDIR. dnl We don't overwrite DATASPACES_INCDIR. if test -n "${DATASPACES_DIR}" -a -z "${DATASPACES_INCDIR}"; then DATASPACES_INCDIR="${DATASPACES_DIR}/include"; dnl We may have DATASPACES denoting the dir (e.g. on ewok BUT on franklin it contains all flags) elif test -n "${DATASPACES}" -a -d "${DATASPACES}"; then DATASPACES_INCDIR="${DATASPACES}/include" fi dnl If we know DATASPACES_DIR, then we can know DATASPACES_LIBDIR. dnl We don't overwrite DATASPACES_LIBDIR. if test -n "${DATASPACES_DIR}" -a -z "${DATASPACES_LIBDIR}"; then DATASPACES_LIBDIR="${DATASPACES_DIR}/lib"; dnl We may have DATASPACES denoting the dir (e.g. on ewok BUT on franklin it contains all flags) elif test -n "${DATASPACES}" -a -d "${DATASPACES}"; then DATASPACES_LIBDIR="${DATASPACES}/lib" fi dnl Add "-I" to DATASPACES_INCDIR. if test -n "${DATASPACES_INCDIR}"; then DATASPACES_CPPFLAGS="-I${DATASPACES_INCDIR}" else ac_dataspaces_ok=no fi dnl Add "-L" to DATASPACES_LIBDIR. if test -n "${DATASPACES_LIBDIR}"; then DATASPACES_LDFLAGS="-L${DATASPACES_LIBDIR}" else ac_dataspaces_ok=no fi save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" if test "x${ac_infiniband_lib_ok}" == "xyes"; then dnl LIBS="$LIBS -ldart -ldataspaces" LIBS="$LIBS -ldspaces -ldscommon -ldart" elif test "x${ac_portals_lib_ok}" == "xyes"; then LIBS="$LIBS -ldart2 -lspaces" elif test "x${ac_dmcf_lib_ok}" == "xyes"; then LIBS="$LIBS -ldspaces -ldscommon -ldart" else LIBS="$LIBS -ldspaces -ldscommon -ldart" fi dnl LIBS="$LIBS -ldspaces -ldscommon -ldart" LDFLAGS="$LDFLAGS $DATASPACES_LDFLAGS" CPPFLAGS="$CPPFLAGS $DATASPACES_CPPFLAGS" if test -z "${HAVE_DATASPACES_TRUE}"; then AC_CHECK_HEADERS(dataspaces.h, , [AM_CONDITIONAL(HAVE_DATASPACES,false)]) fi if test -z "${HAVE_DATASPACES_TRUE}"; then # Check for the DataSpaces library and headers if test "x${ac_portals_lib_ok}" == "xyes"; then AC_TRY_COMPILE([#include "dataspaces.h"], [int err; err = dspaces_init(1,1);], [DATASPACES_LIBS="-ldart2 -lspaces"], [AM_CONDITIONAL(HAVE_DATASPACES,false)]) elif test "x${ac_infiniband_lib_ok}" == "xyes"; then AC_TRY_COMPILE([#include "dataspaces.h"], [int err; err = dspaces_init(1,1);], [DATASPACES_LIBS="-ldspaces -ldscommon -ldart -lrdmacm"], [AM_CONDITIONAL(HAVE_DATASPACES,false)]) elif test -z "${HAVE_CRAY_PMI_TRUE}" -a -z "${HAVE_CRAY_UGNI_TRUE}"; then AC_TRY_COMPILE([#include "dataspaces.h"], [int err; err = dspaces_init(1,1);], [DATASPACES_LIBS="-ldspaces -ldscommon -ldart"], [AM_CONDITIONAL(HAVE_DATASPACES,false)]) elif test "x${ac_dcmf_lib_ok}" == "xyes"; then AC_TRY_COMPILE([#include "dataspaces.h"], [int err; err = dspaces_init(1,1);], [DATASPACES_LIBS="-ldspaces -ldscommon -ldart"], [AM_CONDITIONAL(HAVE_DATASPACES,false)]) else AM_CONDITIONAL(HAVE_DATASPACES,false) fi fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" AC_SUBST(DATASPACES_LIBS) AC_SUBST(DATASPACES_LDFLAGS) AC_SUBST(DATASPACES_CPPFLAGS) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_DATASPACES_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_DATASPACES,1,[Define if you have the DATASPACES.])],[$1]) : else $2 : fi fi ])dnl AC_DATASPACES adios-1.5.0/config/ac_flexpath.m40000644000175000017500000000712212251360163017734 0ustar amckinstryamckinstry AC_DEFUN([AC_FLEXPATH], [ AC_MSG_NOTICE([=== checking for FLEXPATH ===]) FP_SRCDIR="" FP_CPPFLAGS="" FP_LDFLAGS="" FP_LIBS="" ac_flexpath_ok=yes temptest=enable flexpath_dir="" AC_ARG_WITH(flexpath, [ --with-flexpath=DIR Location of FlexPath], [ ac_with_flexpath=$withval], [with_flexpath=no]) if test "x$with_flexpath" = "xno"; then ac_flexpath_ok=no temptest=disable elif test x"$with_flexpath" != xyes -a x"$with_flexpath" != xcheck; then AC_MSG_CHECKING(got with flexpath argument $with_flexpath) # with_evpath=$with_flexpath fi if test "x$ac_flexpath_ok" != "xno"; then flexpath_dir=$withval datatap_dir=$withval CERCS_REQUIRE_PACKAGE(evpath, evpath.h, libevpath.a) CERCS_REQUIRE_PACKAGE(ffs, ffs.h,libffs.a) CERCS_REQUIRE_PACKAGE(atl, atl.h,libatl.a) CERCS_REQUIRE_PACKAGE(gen_thread, gen_thread.h,libgen_thread.a) CERCS_REQUIRE_PACKAGE(dill, dill.h, libdill.a) CERCS_REQUIRE_PACKAGE(cercs_env, cercs_env.h, libcercs_env.a) if test -n "$cercs_cv_evpath_link_dir" -a -n "$cercs_cv_evpath_include_arg";then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_evpath_link_dir" FP_LIBS="$FP_LIBS -levpath" FP_CFLAGS="$FP_CFLAGS $cercs_cv_evpath_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_evpath_include_arg" else echo "FLEXPATH couldn't find evpath - Not building flexpath" ac_flexpath_ok=no fi if test -n "$cercs_cv_ffs_link_dir" -a -n "$cercs_cv_ffs_include_arg"; then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_ffs_link_dir" FP_LIBS="$FP_LIBS -lffs" FP_CFLAGS="$FP_CFLAGS $cercs_cv_ffs_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_ffs_include_arg" else echo "FLEXPATH couldn't find ffs - Not building flexpath" ac_flexpath_ok=no fi if test -n "$cercs_cv_atl_link_dir" -a -n "$cercs_cv_atl_include_arg"; then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_atl_link_dir" FP_LIBS="$FP_LIBS -latl" FP_CFLAGS="$FP_CFLAGS $cercs_cv_atl_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_atl_include_arg" else ac_flexpath_ok=no echo "FLEXPATH couldn't find atl - Not building flexpath" fi if test -n "$cercs_cv_dill_link_dir" -a -n "$cercs_cv_dill_include_arg"; then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_dill_link_dir" FP_LIBS="$FP_LIBS -ldill" FP_CFLAGS="$FP_CFLAGS $cercs_cv_dill_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_dill_include_arg" else ac_flexpath_ok=no echo "FLEXPATH couldn't find dill - Not building flexpath" fi if test -n "$cercs_cv_gen_thread_link_dir" -a -n "$cercs_cv_gen_thread_include_arg"; then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_gen_thread_link_dir" FP_LIBS="$FP_LIBS -lgen_thread" FP_CFLAGS="$FP_CFLAGS $cercs_cv_gen_thread_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_gen_thread_include_arg" else ac_flexpath_ok=no echo "FLEXPATH couldn't find gen_thread - Not building flexpath" fi if test -n "$cercs_cv_cercs_env_link_dir" -a -n "$cercs_cv_cercs_env_include_arg"; then FP_LDFLAGS="$FP_LDFLAGS -L$cercs_cv_cercs_env_link_dir" FP_LIBS="$FP_LIBS -lcercs_env" FP_CFLAGS="$FP_CFLAGS $cercs_cv_cercs_env_include_arg" FP_CPPFLAGS="$FP_CPPFLAGS $cercs_cv_cercs_env_include_arg" else ac_flexpath_ok=no echo "FLEXPATH couldn't find cercs_env - Not building flexpath" fi fi AC_SUBST(FP_LIBS) AC_SUBST(FP_CPPFLAGS) AC_SUBST(FP_LDFLAGS) if test "x$ac_flexpath_ok" = "xyes"; then HAVE_FLEXPATH=1 NO_FLEXPATH=0 else HAVE_FLEXPATH=0 NO_FLEXPATH=1 fi AM_CONDITIONAL(HAVE_FLEXPATH, test "x$ac_flexpath_ok" = "xyes") AC_DEFINE_UNQUOTED(NO_FLEXPATH, $NO_FLEXPATH, [Flexpath is disabled]) AC_DEFINE_UNQUOTED(HAVE_FLEXPATH, $HAVE_FLEXPATH, [Flexpath is enabled]) ]) dnl AC_FLEXPATH adios-1.5.0/config/ac_dimes.m40000644000175000017500000001107712251360163017226 0ustar amckinstryamckinstry# # # AC_PROG_DIMES # # Test for DIMES installation # and set $DIMES to the correct value. # # dnl @synopsis AC_PROG_DIMES dnl dnl This macro test if DIMES is installed. If DIMES dnl is installed, it set $DIMES to the right value dnl dnl @version 1.0 dnl @author Fan Zhang, zhangfan@cac.rutgers.edu dnl @author Norbert Podhorszki, pnorbert@ornl.gov dnl AC_DEFUN([AC_PROG_DIMES],[ AM_CONDITIONAL(HAVE_DIMES,true) AC_ARG_WITH(dimes, [AS_HELP_STRING([--with-dimes=DIR], [Build the DIMES transport method. Point to the DIMES installation.])], [DIMES_LDFLAGS="-L$withval/lib"; DIMES_CPPFLAGS="-I$withval/include";], [with_dimes=check]) dnl If --without-dimes was given set HAVE_DIMES to false and do nothing more if test "x$with_dimes" == "xno"; then AM_CONDITIONAL(HAVE_DIMES,false) else dnl allow args --with-dimes incdir and --with-dimes-libdir AC_ARG_WITH(dimes-incdir, [ --with-dimes-incdir=], [DIMES_INCDIR=$withval with_dimes=detailed]) AC_ARG_WITH(dimes-libdir, [ --with-dimes-libdir=], [DIMES_LIBDIR=$withval with_dimes=detailed]) dnl If we know DIMES_DIR, then we can know DIMES_INCDIR. dnl We don't overwrite DIMES_INCDIR. if test -n "${DIMES_DIR}" -a -z "${DIMES_INCDIR}"; then DIMES_INCDIR="${DIMES_DIR}/include"; dnl We may have DIMES denoting the dir (e.g. on ewok BUT on franklin it contains all flags) elif test -n "${DIMES}" -a -d "${DIMES}"; then DIMES_INCDIR="${DIMES}/include" fi dnl If we know DIMES_DIR, then we can know DIMES_LIBDIR. dnl We don't overwrite DIMES_LIBDIR. if test -n "${DIMES_DIR}" -a -z "${DIMES_LIBDIR}"; then DIMES_LIBDIR="${DIMES_DIR}/lib"; dnl We may have DIMES denoting the dir (e.g. on ewok BUT on franklin it contains all flags) elif test -n "${DIMES}" -a -d "${DIMES}"; then DIMES_LIBDIR="${DIMES}/lib" fi dnl Add "-I" to DIMES_INCDIR. if test -n "${DIMES_INCDIR}"; then DIMES_CPPFLAGS="-I${DIMES_INCDIR}" else ac_dimes_ok=no fi dnl Add "-L" to DIMES_LIBDIR. if test -n "${DIMES_LIBDIR}"; then DIMES_LDFLAGS="-L${DIMES_LIBDIR}" else ac_dimes_ok=no fi save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" if test "x${ac_infiniband_lib_ok}" == "xyes"; then dnl LIBS="$LIBS -ldspaces -ldscommon -ldart" echo "DIMES currently NOT supported for Infiniband!" AM_CONDITIONAL(HAVE_DIMES, false) elif test "x${ac_portals_lib_ok}" == "xyes"; then dnl LIBS="$LIBS -ldart2 -lspaces" echo "DIMES currently NOT supported for Cray Portals!" AM_CONDITIONAL(HAVE_DIMES, false) elif test "x${ac_dcmf_lib_ok}" == "xyes"; then LIBS="$LIBS -ldspaces -ldscommon -ldart" else LIBS="$LIBS -ldspaces -ldscommon -ldart" fi LDFLAGS="$LDFLAGS $DIMES_LDFLAGS" CPPFLAGS="$CPPFLAGS $DIMES_CPPFLAGS" if test -z "${HAVE_DIMES_TRUE}"; then AC_CHECK_HEADERS(dimes_interface.h, , [AM_CONDITIONAL(HAVE_DIMES,false)]) fi if test -z "${HAVE_DIMES_TRUE}"; then # Check for the DataSpaces/DIMES library and headers if test -z "${HAVE_CRAY_PMI_TRUE}" -a -z "${HAVE_CRAY_UGNI_TRUE}"; then AC_TRY_LINK([#include "dimes_interface.h"], [int err; dimes_set_storage_type(1);], [DIMES_LIBS="-ldspaces -ldscommon -ldart"], [AM_CONDITIONAL(HAVE_DIMES,false)]) elif test "x${ac_dcmf_lib_ok}" == "xyes"; then AC_TRY_COMPILE([#include "dimes_interface.h"], [int err; dimes_set_storage_type(1);], [DIMES_LIBS="-ldspaces -ldscommon -ldart"], [AM_CONDITIONAL(HAVE_DIMES,false)]) else AM_CONDITIONAL(HAVE_DIMES,false) fi fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" AC_SUBST(DIMES_LIBS) AC_SUBST(DIMES_LDFLAGS) AC_SUBST(DIMES_CPPFLAGS) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_DIMES_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_DIMES,1,[Define if you have the DIMES.])],[$1]) : else $2 : fi fi ])dnl AC_DIMES adios-1.5.0/config/ac_netcdf.m40000644000175000017500000001124112251360163017361 0ustar amckinstryamckinstrydnl ###################################################################### dnl dnl Finds netCDF dnl dnl ###################################################################### AC_DEFUN([AC_NETCDF], [ AC_MSG_NOTICE([=== checking for NetCDF ===]) AM_CONDITIONAL(HAVE_NETCDF,true) AC_ARG_WITH(netcdf, [ --with-netcdf=], [NETCDF_DIR=$withval], [with_netcdf=check]) dnl If --without-netcdf was given set HAVE_NETCDF to false and do nothing more if test "x$with_netcdf" == "xno"; then AM_CONDITIONAL(HAVE_NETCDF,false) else ac_use_cray_netcdf=no dnl allow args --with-netcdf incdir and --with-netcdf-libdir AC_ARG_WITH(netcdf-incdir, [ --with-netcdf-incdir=], [NETCDF_INCDIR=$withval with_netcdf=detailed]) AC_ARG_WITH(netcdf-libdir, [ --with-netcdf-libdir=], [NETCDF_LIBDIR=$withval with_netcdf=detailed]) AC_ARG_WITH(netcdf-libs, [ --with-netcdf-libs=, e.g. -lnetcdf>], [NETCDF_LIBS=$withval with_netcdf=detailed]) dnl If we know NETCDF_DIR, then we can know NETCDF_INCDIR. dnl If we know CRAY_NETCDF_DIR, then we leave NETCDF_INCDIR empty. dnl We may have NETCDF denoting the dir (e.g. on ewok BUT on franklin it contains all flags) dnl We don't overwrite NETCDF_INCDIR. if test -z "${NETCDF_INCDIR}"; then if test -n "${NETCDF_DIR}"; then NETCDF_INCDIR="${NETCDF_DIR}/include"; elif test -n "${CRAY_NETCDF_DIR}"; then NETCDF_INCDIR=""; ac_use_cray_netcdf=yes elif test -n "${NETCDF}" -a -d "${NETCDF}"; then NETCDF_INCDIR="${NETCDF}/include" fi fi dnl If we know NETCDF_DIR, then we can know NETCDF_LIBDIR. dnl If we know CRAY_NETCDF_DIR, then we leave NETCDF_LIBDIR empty. dnl We may have NETCDF denoting the dir (e.g. on ewok BUT on franklin it contains all flags) dnl We don't overwrite NETCDF_LIBDIR. if test -z "${NETCDF_LIBDIR}"; then if test -n "${NETCDF_DIR}"; then NETCDF_LIBDIR="${NETCDF_DIR}/lib"; elif test -n "${CRAY_NETCDF_DIR}"; then NETCDF_LIBDIR=""; ac_use_cray_netcdf=yes elif test -n "${NETCDF}" -a -d "${NETCDF}"; then NETCDF_LIBDIR="${NETCDF}/lib" fi fi dnl Add "-I" to NETCDF_INCDIR. if test -n "${NETCDF_INCDIR}"; then NETCDF_CPPFLAGS="-I${NETCDF_INCDIR}" else ac_netcdf_ok=no fi dnl Add "-L" to NETCDF_LIBDIR. if test -n "${NETCDF_LIBDIR}"; then NETCDF_LDFLAGS="-L${NETCDF_LIBDIR}" else ac_netcdf_ok=no fi dnl if netcdf libs are not defined (and not Cray netcdf lib), then guess and define it if test -z "${NETCDF_LIBS}"; then if test "${ac_use_cray_netcdf}" != "yes"; then NETCDF_LIBS="-lnetcdf" fi fi save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $NETCDF_LDFLAGS" LDFLAGS="$LDFLAGS $NETCDF_LDFLAGS" CPPFLAGS="$CPPFLAGS $NETCDF_CPPFLAGS" if test -z "${HAVE_NETCDF_TRUE}"; then AC_CHECK_HEADERS(netcdf.h, , [if test "x$with_netcdf" != xcheck; then AC_MSG_FAILURE( [--with-netcdf was given, but test for netcdf.h failed]) fi AM_CONDITIONAL(HAVE_NETCDF,false)]) fi if test -z "${HAVE_NETCDF_TRUE}"; then AC_MSG_CHECKING([if netcdf code can be compiled]) AC_TRY_COMPILE([#include "netcdf.h"], [int ncid; nc_create("a.nc", NC_CLOBBER, &ncid); nc_close(ncid); ], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) if test "x$with_netcdf" != xcheck; then AC_MSG_FAILURE( [--with-netcdf was given, but compile test failed]) fi AM_CONDITIONAL(HAVE_NETCDF,false) ]) AC_SUBST(NETCDF_LIBS) AC_SUBST(NETCDF_LDFLAGS) AC_SUBST(NETCDF_CPPFLAGS) fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_NETCDF_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_NETCDF,1,[Define if you have NETCDF.])],[$1]) : else $2 : fi fi ]) adios-1.5.0/config/install-sh0000755000175000017500000003253712251360163017230 0ustar amckinstryamckinstry#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: adios-1.5.0/config/depcomp0000755000175000017500000004426712251360163016604 0ustar amckinstryamckinstry#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program 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, or (at your option) # any later version. # This program 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 this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u="sed s,\\\\\\\\,/,g" depmode=msvisualcpp fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: adios-1.5.0/config/ac_infiniband.m40000644000175000017500000000767612251360163020240 0ustar amckinstryamckinstrydnl @synopsis AC_INFINIBAND([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl dnl This macro tries to find out how to compile programs that dnl use the Infiniband ibverbs API. dnl dnl On success, it defines HAVE_INFINIBAND and sets INFINIBAND_LIBS dnl to any libraries that are needed for linking dnl Infiniband (e.g. -libverbs,...). dnl dnl If you want to compile everything with Portals, you should set: dnl dnl LIBS="$PTL_LIBS $LIBS" dnl dnl ACTION-IF-FOUND is a list of shell commands to run if a Infiniband dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands dnl to run it if it is not found. If ACTION-IF-FOUND is not specified, dnl the default action will define HAVE_INFINIBAND. dnl dnl @version $Id: ac_infiniband.m4 676 2006-05-16 20:44:08Z thkorde $ dnl @author Todd H. Kordenbrock AC_DEFUN([AC_INFINIBAND], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([ACX_PTHREAD]) AC_LANG_SAVE AC_LANG_C ac_infiniband_hdr_ok=no ac_infiniband_lib_ok=no ac_with_infiniband=no INFINIBAND_CFLAGS="" INFINIBAND_CPPFLAGS="" INFINIBAND_LDFLAGS="" INFINIBAND_LIBS="" AC_ARG_WITH(infiniband, [ --with-infiniband=DIR Location of Infiniband], [ ac_with_infiniband=yes;]) if test x"$withval" = xno; then ac_with_infiniband=no; elif test x"$withval" = xyes -o x"$withval" = x; then INFINIBAND_CPPFLAGS=""; INFINIBAND_LDFLAGS=""; ac_with_infiniband=yes; else INFINIBAND_CPPFLAGS="-I$withval/include"; INFINIBAND_LDFLAGS="-L$withval/lib64 -L$withval/lib"; ac_with_infiniband=yes; fi AM_CONDITIONAL(HAVE_INFINIBAND,test x$ac_with_infiniband = xyes) dnl Check for command-line disable if test x"$ac_with_infiniband" = xyes; then dnl Look for Infiniband header files save_CPPFLAGS=$CPPFLAGS; save_LDFLAGS=$LDFLAGS; CPPFLAGS="$CPPFLAGS $INFINIBAND_CPPFLAGS" LDFLAGS="$LDFLAGS $INFINIBAND_LDFLAGS" if test x"$ac_infiniband_hdr_ok" = xno; then AC_CHECK_HEADER(infiniband/verbs.h, [AC_DEFINE(HAVE_IBVERBS_H, 1, [Define to 1 if you have .]) ac_infiniband_hdr_ok=yes; INFINIBAND_CFLAGS="$INFINIBAND_CFLAGS $EXTRA_CFLAGS"; INFINIBAND_CPPFLAGS="$INFINIBAND_CPPFLAGS $EXTRA_CFLAGS"], [ac_infiniband_hdr_ok=no]) fi if test x"$ac_infiniband_hdr_ok" = xno; then CPPFLAGS=$save_CPPFLAGS fi dnl Look for -libverbs if test x"$ac_infiniband_lib_ok" = xno -a x$ac_infiniband_hdr_ok = xyes; then save_LIBS=$LIBS; LIBS="" AC_SEARCH_LIBS(ibv_alloc_pd,[ibverbs], [ac_infiniband_lib_ok=yes], [ac_infiniband_lib_ok=no], [$save_LIBS $PTHREAD_LDFLAGS $PTHREAD_LIBS]) if test -n $LIBS; then INFINIBAND_LIBS="$INFINIBAND_LIBS $LIBS"; fi LIBS=$save_LIBS; fi if test x"$ac_infiniband_hdr_ok" = xno -o x$ac_infiniband_lib_ok = xno; then AM_CONDITIONAL(HAVE_INFINIBAND,false) INFINIBAND_CFLAGS="" INFINIBAND_CPPFLAGS="" INFINIBAND_LDFLAGS="" INFINIBAND_LIBS="" ac_with_infiniband=no else AM_CONDITIONAL(HAVE_INFINIBAND,true) fi CPPFLAGS=$save_CPPFLAGS; LDFLAGS=$save_LDFLAGS; AC_SUBST(INFINIBAND_CPPFLAGS) AC_SUBST(INFINIBAND_CFLAGS) AC_SUBST(INFINIBAND_LDFLAGS) AC_SUBST(INFINIBAND_LIBS) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$ac_infiniband_lib_ok" = xyes; then ifelse([$1],,[AC_DEFINE(HAVE_INFINIBAND,1,[Define if you have the Infiniband.])],[$1]) : else $2 : fi fi AC_LANG_RESTORE ])dnl AC_INFINIBAND adios-1.5.0/config/acx_pthread.m40000644000175000017500000002367312251360163017751 0ustar amckinstryamckinstrydnl dnl ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl dnl Description dnl dnl This macro figures out how to build C programs using POSIX threads. It dnl sets the PTHREAD_LIBS output variable to the threads library and linker dnl flags, and the PTHREAD_CFLAGS output variable to any special C compiler dnl flags that are needed. (The user can also force certain compiler dnl flags/libs to be tested by setting these environment variables.) dnl dnl Also sets PTHREAD_CC to any special C compiler that is needed for dnl multi-threaded programs (defaults to the value of CC otherwise). (This is dnl necessary on AIX to use the special cc_r compiler alias.) dnl dnl NOTE: You are assumed to not only compile your program with these flags, dnl but also link it with them as well. e.g. you should link with $PTHREAD_CC dnl $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS dnl dnl If you are only building threads programs, you may wish to use these dnl variables in your default LIBS, CFLAGS, and CC: dnl dnl LIBS="$PTHREAD_LIBS $LIBS" dnl CFLAGS="$CFLAGS $PTHREAD_CFLAGS" dnl CC="$PTHREAD_CC" dnl dnl In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant dnl has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name dnl (e.g. PTHREAD_CREATE_UNDETACHED on AIX). dnl dnl ACTION-IF-FOUND is a list of shell commands to run if a threads library dnl is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it dnl is not found. If ACTION-IF-FOUND is not specified, the default action dnl will define HAVE_PTHREAD. dnl dnl Please let the authors know if this macro fails on any platform, or if dnl you have any other suggestions or comments. This macro was based on work dnl by SGJ on autoconf scripts for FFTW (www.fftw.org) (with help from M. dnl Frigo), as well as ac_pthread and hb_pthread macros posted by AFC to the dnl autoconf macro repository. We are also grateful for the helpful feedback dnl of numerous users. dnl dnl Version: 1.8 (last modified: 2003-05-21) dnl Author: Steven G. Johnson and dnl Alejandro Forero Cuervo dnl dnl from http://www.gnu.org/software/ac-archive/htmldoc/index.html dnl dnl License: dnl GNU General Public License dnl [http://www.gnu.org/software/ac-archive/htmldoc/COPYING.html] dnl with this special exception dnl [http://www.gnu.org/software/ac-archive/htmldoc/COPYING-Exception.html]. dnl AC_DEFUN([ACX_PTHREAD], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_LANG_SAVE AC_LANG_C acx_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on True64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes) AC_MSG_RESULT($acx_pthread_ok) if test x"$acx_pthread_ok" = xno; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items starting with a "-" are # C compiler flags, and other items are library names, except for "none" # which indicates that we try without any flags at all. #acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt" acx_pthread_flags="pthreads none -Kthread -kthread lthread pthread -pthread -pthreads -mthreads pthread --thread-safe -mt" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) # -pthreads: Solaris/gcc # -mthreads: Mingw32/gcc, Lynx/gcc # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads too; # also defines -D_REENTRANT) # pthread: Linux, etcetera # --thread-safe: KAI C++ case "${host_cpu}-${host_os}" in *solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (We need to link with -pthread or # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather # a function called by this macro, so we could check for that, but # who knows whether they'll stub that too in a future libc.) So, # we'll just look for -pthreads and -lpthread first: acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" ;; esac if test x"$acx_pthread_ok" = xno; then for flag in $acx_pthread_flags; do case $flag in none) AC_MSG_CHECKING([whether pthreads work without any flags]) ;; -*) AC_MSG_CHECKING([whether pthreads work with $flag]) PTHREAD_CFLAGS="$flag" ;; *) AC_MSG_CHECKING([for the pthreads library -l$flag]) PTHREAD_LIBS="-l$flag" ;; esac save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. dnl AC_TRY_LINK([#include ], dnl [pthread_t th; pthread_join(th, 0); dnl pthread_attr_init(0); pthread_cleanup_push(0, 0); dnl pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], dnl [acx_pthread_ok=yes]) AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ] [void *start(void *arg){return NULL;}] ], [[pthread_attr_t attr;] [pthread_t th;] [pthread_join(th, 0);] [pthread_attr_init(&attr);] [pthread_cleanup_push(NULL, NULL);] [pthread_create(&th,&attr,start,0);] [pthread_cleanup_pop(0);] ])], [acx_pthread_ok=yes], []) LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" AC_MSG_RESULT($acx_pthread_ok) if test "x$acx_pthread_ok" = xyes; then break; fi PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Various other checks: if test "x$acx_pthread_ok" = xyes; then save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Detect AIX lossage: threads are created detached by default # and the JOINABLE attribute has a nonstandard name (UNDETACHED). AC_MSG_CHECKING([for joinable pthread attribute]) AC_TRY_LINK([#include ], [int attr; attr=PTHREAD_CREATE_JOINABLE;], ok=PTHREAD_CREATE_JOINABLE, ok=unknown) if test x"$ok" = xunknown; then AC_TRY_LINK([#include ], [int attr; attr=PTHREAD_CREATE_UNDETACHED;], ok=PTHREAD_CREATE_UNDETACHED, ok=unknown) fi if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then AC_DEFINE(PTHREAD_CREATE_JOINABLE, $ok, [Define to the necessary symbol if this constant uses a non-standard name on your system.]) fi AC_MSG_RESULT(${ok}) if test x"$ok" = xunknown; then AC_MSG_WARN([we do not know how to create joinable pthreads]) fi AC_MSG_CHECKING([if more special flags are required for pthreads]) flag=no case "${host_cpu}-${host_os}" in *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; esac AC_MSG_RESULT(${flag}) if test "x$flag" != xno; then PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" # More AIX lossage: must compile with cc_r AC_CHECK_PROG(PTHREAD_CC, cc_r, cc_r, ${CC}) else PTHREAD_CC="$CC" fi AC_SUBST(PTHREAD_LIBS) AC_SUBST(PTHREAD_CFLAGS) AC_SUBST(PTHREAD_CC) if test x"$acx_pthread_ok" = xyes; then AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads]) fi # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_pthread_ok" = xyes; then ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) : else acx_pthread_ok=no $2 fi AC_LANG_RESTORE ])dnl ACX_PTHREAD adios-1.5.0/config/ac_hdf5.m40000644000175000017500000000770512251360163016756 0ustar amckinstryamckinstrydnl ###################################################################### dnl dnl Finds HDF5 dnl dnl ###################################################################### AC_DEFUN([AC_HDF5], [ AC_MSG_NOTICE([=== checking for HDF5 ===]) AM_CONDITIONAL(HAVE_HDF5,true) dnl Automatic checking for HDF5 is disabled now. AC_ARG_WITH(hdf5, [ --with-hdf5=], [HDF5_DIR=$withval], [with_hdf5=no]) AC_ARG_WITH(hdf5-incdir, [ --with-hdf5-incdir=], [HDF5_INCDIR=$withval with_hdf5=detailed]) AC_ARG_WITH(hdf5-libdir, [ --with-hdf5-libdir=], [HDF5_LIBDIR=$withval with_hdf5=detailed]) AC_ARG_WITH(hdf5-libs, [ --with-hdf5-libs=, e.g. -lhdf5 -lhdf5_hl -lz>], [HDF5_LIBS=$withval with_hdf5=detailed]) dnl If --without-hdf5 was given set HAVE_HDF5 to false and do nothing more dnl If nothing was given, then too, do nothing if test "x$with_hdf5" == "xno"; then AM_CONDITIONAL(HAVE_HDF5,false) else dnl If we know HDF5_DIR, then we can know HDF5_INCDIR. dnl We don't overwrite HDF5_INCDIR. if test -z "${HDF5_INCDIR}"; then if test -n "${HDF5_DIR}"; then HDF5_INCDIR="${HDF5_DIR}/include"; fi fi dnl If we know HDF5_DIR, then we can know HDF5_LIBDIR. dnl We don't overwrite HDF5_LIBDIR. if test -z "${HDF5_LIBDIR}"; then if test -n "${HDF5_DIR}"; then HDF5_LIBDIR="${HDF5_DIR}/lib"; fi fi dnl Add "-I" to HDF5_INCDIR. HDF5_CPPFLAGS="-I${HDF5_INCDIR}" dnl Add "-L" to HDF5_LIBDIR. HDF5_LDFLAGS="-L${HDF5_LIBDIR}" dnl if hdf5 libs are not defined then guess and define it if test -z "${HDF5_LIBS}"; then dnl default HDF5 lib is usually just -lhdf5 -lz HDF5_LIBS="-lhdf5_hl -lhdf5 -lz" fi save_CC="$CC" save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $HDF5_LIBS" LDFLAGS="$LDFLAGS $HDF5_LDFLAGS" CPPFLAGS="$CPPFLAGS $HDF5_CPPFLAGS" CC="$MPICC" if test -z "${HAVE_HDF5_TRUE}"; then dnl AC_CHECK_HEADERS(hdf5.h, dnl , dnl [if test "x$with_hdf5" != xcheck; then dnl AC_MSG_FAILURE( [--with-hdf5 was given, but test for hdf5.h failed]) dnl fi dnl AM_CONDITIONAL(HAVE_HDF5,false)]) AC_MSG_CHECKING([for hdf5.h]) if test -f ${HDF5_INCDIR}/hdf5.h; then AC_MSG_RESULT(yes) else AM_CONDITIONAL(HAVE_HDF5,false) AC_MSG_RESULT(no) AC_MSG_FAILURE( [--with-hdf5 was given, but test for ${HDF5_INCDIR}/hdf5.h failed]) fi fi if test -z "${HAVE_HDF5_TRUE}"; then AC_MSG_CHECKING([if hdf5 code can be compiled]) AC_TRY_COMPILE([#include "hdf5.h"], [hid_t file_id; herr_t status; file_id = H5Fcreate("a.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); status = H5Fclose(file_id); ], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) if test "x$with_hdf5" != xcheck; then AC_MSG_FAILURE( [--with-hdf5 was given, but compile test failed]) fi AM_CONDITIONAL(HAVE_HDF5,false) ]) AC_SUBST(HDF5_LIBS) AC_SUBST(HDF5_LDFLAGS) AC_SUBST(HDF5_CPPFLAGS) fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" CC="$save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_HDF5_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_HDF5,1,[Define if you have HDF5.])],[$1]) : else $2 : fi fi ]) adios-1.5.0/config/ac_datatap.m40000644000175000017500000000716312251360163017544 0ustar amckinstryamckinstry AC_DEFUN([AC_DATATAP], [ AC_REQUIRE([AC_INFINIBAND]) AC_REQUIRE([AC_PORTALS]) dnl give an option to the user to enable datatap (with either ib or portals) dnl by default datatap will be disabled DT_SRCDIR="" DT_CPPFLAGS="" DT_LDFLAGS="" DT_LIBS="" datatap=disable temptest=enable datatap_dir="" AC_ARG_WITH(datatap, [ --with-datatap=DIR Location of DataTap], [ ac_with_datatap=$withval], [with_datatap=no]) if test "x$with_datatap" = "xno"; then AC_DEFINE(NO_DATATAP, 1, [Datatap is disabled]) datatap=disable temptest=disable elif test x"$with_datatap" = xyes -o x"$with_datatap" = xcheck; then AC_DEFINE(NO_DATATAP, 0, [Datatap is disabled]) if test x"$ac_with_infiniband" = xyes; then CERCS_REQUIRE_PACKAGE(ibpbio, thin_ib.h, libibclient.la) CERCS_REQUIRE_PACKAGE(ffs, ffs.h, libffs.la) CERCS_REQUIRE_PACKAGE(gen_thread, gen_thread.h, libgen_thread.la) if test -n "$cercs_cv_ibpbio_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ibpbio_link_dir" DT_LIBS="$DT_LIBS -libclient" datatap=ibverbs else temptest=disable fi if test -n "$cercs_cv_ffs_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ffs_link_dir" DT_LIBS="$DT_LIBS -lgen_thread" datatap=ibverbs else temptest=disable fi if test -n "$cercs_cv_gen_thread_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_gen_thread_link_dir" DT_LIBS="$DT_LIBS -lgen_thread" datatap=ibverbs else temptest=disable fi elif test x"$ac_with_portals" = xyes; then CERCS_REQUIRE_PACKAGE(ptlpbio, thin_portal.h, libptlclient.a) if test -n "$cercs_cv_ptlpbio_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ptlpbio_link_dir" DT_LIBS="$DT_LIBS -lptlclient -lptlserver -lbench -ldl" datatap=portals else temptest=disable fi else echo "Neither portals nor infiniband found. Disabling datatap" AC_DEFINE(NO_DATATAP, 1, [Datatap is disabled]) datatap=disable temptest=disable fi else dnl directory given .. add it to search path with CERCS_REQUIRE_PACKAGE AC_MSG_NOTICE([Datatap with custom library path: $withval]) datatap_dir=$withval AC_DEFINE(NO_DATATAP, 0, [Datatap is disabled]) if test x"$ac_with_infiniband" = xyes; then CERCS_REQUIRE_PACKAGE(ibpbio, thin_ib.h, libibclient.la) CERCS_REQUIRE_PACKAGE(ffs, ffs.h, libffs.la) CERCS_REQUIRE_PACKAGE(gen_thread, gen_thread.h, libgen_thread.la) if test -n "$cercs_cv_ibpbio_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ibpbio_link_dir" DT_LIBS="$DT_LIBS -libclient" datatap=ibverbs else temptest=disable fi if test -n "$cercs_cv_ffs_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ffs_link_dir" DT_LIBS="$DT_LIBS -lgen_thread" datatap=ibverbs else temptest=disable fi if test -n "$cercs_cv_gen_thread_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_gen_thread_link_dir" DT_LIBS="$DT_LIBS -lgen_thread" datatap=ibverbs else temptest=disable fi elif test x"$ac_with_portals" = xyes; then CERCS_REQUIRE_PACKAGE(ptlpbio, thin_portal.h, libptlclient.a) if test -n "$cercs_cv_ptlpbio_link_dir";then DT_LDFLAGS="$DT_LDFLAGS -L$cercs_cv_ptlpbio_link_dir" DT_LIBS="$DT_LIBS -lptlclient -lptlserver -lbench -ldl" datatap=portals else temptest=disable fi else echo "Neither portals nor infiniband found. Disabling datatap" AC_DEFINE(NO_DATATAP, 1, [Datatap is disabled]) datatap=disable temptest=disable fi fi if test x"$temptest" = xdisable; then datatap=disable echo "Datatap dependency check failed" AC_DEFINE(NO_DATATAP, 1, [Datatap is disabled]) fi AC_SUBST(DT_LIBS) AC_SUBST(DT_CPPFLAGS) AC_SUBST(DT_LDFLAGS) ]) dnl AC_DATATAP adios-1.5.0/config/ac_phdf5.m40000644000175000017500000001140312251360163017124 0ustar amckinstryamckinstrydnl ###################################################################### dnl dnl Finds PHDF5 dnl dnl ###################################################################### AC_DEFUN([AC_PHDF5], [ AC_MSG_NOTICE([=== checking for Parallel HDF5 ===]) AM_CONDITIONAL(HAVE_PHDF5,true) AC_ARG_WITH([phdf5], [ --with-phdf5=], [PHDF5_DIR=$withval], [with_phdf5=check]) dnl allow args --with-phdf5 incdir and --with-phdf5-libdir AC_ARG_WITH(phdf5-incdir, [ --with-phdf5-incdir=], [PHDF5_INCDIR=$withval with_phdf5=detailed]) AC_ARG_WITH(phdf5-libdir, [ --with-phdf5-libdir=], [PHDF5_LIBDIR=$withval with_phdf5=detailed]) AC_ARG_WITH(phdf5-libs, [ --with-phdf5-libs=, e.g. -lhdf5 -lhdf5_hl -lz>], [PHDF5_LIBS=$withval with_phdf5=detailed]) dnl If --without-phdf5 was given set HAVE_PHDF5 to false and do nothing more if test "x$with_phdf5" == "xno"; then AM_CONDITIONAL(HAVE_PHDF5,false) else ac_use_cray_hdf5=no dnl will set to yes if we will use CRAY_HDF5_DIR below dnl If we know PHDF5_DIR, then we can know PHDF5_INCDIR. dnl If we know CRAY_HDF5_DIR, then we leave PHDF5_INCDIR empty. dnl We don't overwrite PHDF5_INCDIR. if test -z "${PHDF5_INCDIR}"; then if test -n "${CRAY_HDF5_DIR}"; then PHDF5_INCDIR=""; ac_use_cray_hdf5=yes elif test -n "${PHDF5_DIR}"; then PHDF5_INCDIR="${PHDF5_DIR}/include"; dnl echo "PHDF5_INCDIR set to PHDF5_DIR/include = ${PHDF5_DIR}/include" else ac_phdf5_ok=no fi fi dnl If we know PHDF5_DIR, then we can know PHDF5_LIBDIR. dnl If we know CRAY_HDF5_DIR, then we leave PHDF5_LIBDIR empty. dnl We don't overwrite PHDF5_LIBDIR. if test -z "${PHDF5_LIBDIR}"; then if test -n "${CRAY_HDF5_DIR}"; then PHDF5_LIBDIR=""; ac_use_cray_hdf5=yes elif test -n "${PHDF5_DIR}"; then PHDF5_LIBDIR="${PHDF5_DIR}/lib"; dnl echo "PHDF5_LIBDIR set to PHDF5_DIR/lib = ${PHDF5_DIR}/lib" else ac_phdf5_ok=no fi fi if test -n "${PHDF5_INCDIR}"; then dnl Add "-I" to PHDF5_INCDIR. PHDF5_CPPFLAGS="-I${PHDF5_INCDIR}" else ac_use_cray_hdf5=no fi if test -n "${PHDF5_LIBDIR}"; then dnl Add "-L" to PHDF5_LIBDIR. PHDF5_LDFLAGS="-L${PHDF5_LIBDIR}" else ac_use_cray_hdf5=no fi dnl if hdf5 libs are not defined (and not Cray hdf5 lib), then guess and define it if test -z "${PHDF5_LIBS}"; then if test "${ac_use_cray_hdf5}" != "yes"; then dnl default PHDF5 lib is usually just -lhdf5_hl -lhdf -lz PHDF5_LIBS="-lhdf5_hl -lhdf5 -lz" else AC_MSG_NOTICE([Environment CRAY_HDF5_DIR defined, so we use Cray's settings]) fi fi save_CC="$CC" save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $PHDF5_LIBS" LDFLAGS="$LDFLAGS $PHDF5_LDFLAGS" CPPFLAGS="$CPPFLAGS $PHDF5_CPPFLAGS" CC="$MPICC" dnl echo "---------------------------------" dnl echo "Test PHDF5 with settings:" dnl echo " PHDF5_CPPFLAGS=$PHDF5_CPPFLAGS" dnl echo " PHDF5_LDFLAGS=$PHDF5_LDFLAGS" dnl echo " PHDF5_LIBS=$PHDF5_LIBS" dnl echo "---------------------------------" if test -z "${HAVE_PHDF5_TRUE}"; then AC_CHECK_HEADERS(hdf5.h, , [ AM_CONDITIONAL(HAVE_PHDF5,false) ]) fi if test -z "${HAVE_PHDF5_TRUE}"; then AC_MSG_CHECKING([if phdf5 code can be compiled]) AC_TRY_COMPILE([#include "hdf5.h"], [hid_t file_id; herr_t status; #ifdef H5_HAVE_PARALLEL file_id = H5Fcreate("a.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); status = H5Fclose(file_id); #else /* This must deliberately fail */ file_id = THE_HDF5_INSTALLATION_FOUND_IS_NOT_PARALLEL_HDF5 #endif ], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) AM_CONDITIONAL(HAVE_PHDF5,false) ]) AC_SUBST(PHDF5_LIBS) AC_SUBST(PHDF5_LDFLAGS) AC_SUBST(PHDF5_CPPFLAGS) fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" CC="$save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_PHDF5_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_PHDF5,1,[Define if you have PHDF5.])],[$1]) : else $2 : fi fi ]) adios-1.5.0/config/ac_nssi.m40000644000175000017500000001312412251360163017074 0ustar amckinstryamckinstrydnl @synopsis AC_NSSI([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl dnl This macro tries to find out how to compile programs that dnl use the NSSI API. dnl dnl On success, it defines HAVE_NSSI and sets NSSI_LIBS dnl to any libraries that are needed for linking dnl NSSI (e.g. -lp3utcp, -lp3lib,...). dnl dnl If you want to compile everything with NSSI, you should set: dnl dnl LIBS="$NSSI_LIBS $LIBS" dnl dnl ACTION-IF-FOUND is a list of shell commands to run if a NSSI dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands dnl to run it if it is not found. If ACTION-IF-FOUND is not specified, dnl the default action will define HAVE_NSSI. dnl dnl @version $Id: acx_mpi.m4 676 2006-05-16 20:44:08Z raoldfi $ dnl @author Ron A. Oldfield AC_DEFUN([AC_NSSI], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PORTALS]) AC_REQUIRE([AC_INFINIBAND]) AC_REQUIRE([AC_PABLO]) AC_LANG_PUSH([C++]) dnl AC_LANG_SAVE dnl AC_LANG_CPP ac_nssi_ok=yes ac_nssi_path="." AM_CONDITIONAL(HAVE_NSSI,false) NSSI_SRCDIR="" NSSI_BUILDDIR="" NSSI_CPPFLAGS="" NSSI_LDFLAGS="" NSSI_LIBS="-lnssi_client -lnssi_support" NSSI_SERVER_LIBS="-lnssi_server -lnssi_support" AC_ARG_WITH(nssi, [ --with-nssi=DIR Location of NSSI], [NSSI_LDFLAGS="-L$withval/lib"; NSSI_CPPFLAGS="-I$withval/include"; ac_nssi_path=$withval]) dnl Look for a header file if test x"$ac_nssi_ok" = xyes; then save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="${CPPFLAGS} ${NSSI_CPPFLAGS}" AC_CHECK_HEADER(nssi_client.h, [], [ac_nssi_ok=no]) CPPFLAGS="$save_CPPFLAGS" fi if test x"$ac_nssi_ok" = xyes; then AC_CHECK_LIB(rt, clock_gettime) AC_CHECK_FUNCS(clock_gettime gettimeofday fdatasync pthread_yield sched_yield) ac_nssi_ok=no dnl Determine which rpc libs to use with NSSI ac_nssi_flags="none" if test x"$ac_with_portals" = xyes; then ac_nssi_flags="$ac_nssi_flags all_portals portals_plus_libcpp portals_plus_pablo" fi if test x"$ac_with_infiniband" = xyes; then ac_nssi_flags="$ac_nssi_flags infiniband" fi for flag in $ac_nssi_flags; do case $flag in none) AC_MSG_CHECKING([whether nssi works without any additional flags]) ;; -l*) AC_MSG_CHECKING([whether nssi works with library $flag]) EXTRA_LIBS="$flag" ;; -*) AC_MSG_CHECKING([whether nssi works with $flag]) EXTRA_LIBS="$flag" ;; all_portals) AC_MSG_CHECKING([whether nssi works with ${PORTALS_LIBS}]) EXTRA_LIBS="${PORTALS_LIBS}" ;; portals_plus_libcpp) AC_MSG_CHECKING([whether nssi works with ${PORTALS_LIBS}]) EXTRA_LIBS="${PORTALS_LIBS}" ;; portals_plus_pablo) AC_MSG_CHECKING([whether nssi works with ${PORTALS_LIBS} ${PABLO_LIBS}]) EXTRA_LIBS="${PORTALS_LIBS} ${PABLO_LIBS}" ;; infiniband) AC_MSG_CHECKING([whether nssi works with ${INFINIBAND_LIBS}]) EXTRA_LIBS="${INFINIBAND_LIBS}" ;; esac save_LDFLAGS="$LDFLAGS" save_LIBS="$LIBS" save_CPPFLAGS="$CPPFLAGS" save_CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS $NSSI_LDFLAGS" LIBS="$LIBS $NSSI_LIBS $EXTRA_LIBS" CPPFLAGS="$CPPFLAGS $NSSI_CPPFLAGS" CFLAGS="$CFLAGS $NSSI_CFLAGS $EXTRA_FLAGS" dnl AC_MSG_CHECKING([CPPFLAGS=$CPPFLAGS]) dnl AC_MSG_CHECKING([LDFLAGS=$LDFLAGS]) dnl AC_MSG_CHECKING([LIBS=$LIBS]) dnl Check for various functions. AC_LINK_IFELSE(AC_LANG_PROGRAM( [[#include "nssi_client.h"]], [[nssi_remote_pid server_id;] [uint64_t timeout;] [nssi_service svc;] [nssi_get_service(server_id, timeout, &svc);]]), [ac_nssi_ok=yes;], [ac_nssi_ok=no;]) LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" CPPFLAGS="$save_CPPFLAGS" AC_MSG_RESULT($ac_nssi_ok) if test "x$ac_nssi_ok" = xyes; then NSSI_LIBS="$NSSI_LIBS $EXTRA_LIBS"; NSSI_SERVER_LIBS="$NSSI_SERVER_LIBS $EXTRA_LIBS" NSSI_CFLAGS="$NSSI_CFLAGS $EXTRA_CFLAGS"; break; fi EXTRA_LIBS="" EXTRA_CFLAGS="" done fi AM_CONDITIONAL(HAVE_NSSI, test x$ac_nssi_ok = xyes) AC_SUBST(NSSI_LIBS) AC_SUBST(NSSI_SERVER_LIBS) AC_SUBST(NSSI_CFLAGS) AC_SUBST(NSSI_CPPFLAGS) AC_SUBST(NSSI_LDFLAGS) AC_SUBST(NSSI_SRCDIR) AC_SUBST(NSSI_BUILDDIR) AC_LANG_POP([C++]) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$ac_nssi_ok" = xyes; then ifelse([$1],,[AC_DEFINE(HAVE_NSSI,1,[Define if you have NSSI.])],[$1]) : else $2 : fi dnl AC_LANG_RESTORE ])dnl AC_NSSI adios-1.5.0/config/compile0000755000175000017500000000727112251360163016577 0ustar amckinstryamckinstry#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2009-10-06.20; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software # Foundation, Inc. # Written by Tom Tromey . # # This program 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, or (at your option) # any later version. # # This program 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 this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand `-c -o'. Remove `-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file `INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; esac ofile= cfile= eat= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as `compile cc -o foo foo.c'. # So we strip `-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no `-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # `.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use `[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: adios-1.5.0/config/ac_cray_pmi.m40000644000175000017500000001053112251360163017722 0ustar amckinstryamckinstrydnl ###################################################################### dnl dnl Finds CRAY_PMI dnl dnl ###################################################################### AC_DEFUN([AC_CRAY_PMI], [ ac_cray_pmi_lib_ok=no AC_MSG_NOTICE([=== checking for CRAY PMI ===]) AM_CONDITIONAL(HAVE_CRAY_PMI,true) dnl Automatic checking for CRAY_PMI is disabled now. AC_ARG_WITH(cray-pmi, [ --with-cray-pmi=], [CRAY_PMI_DIR=$withval], [with_cray_pmi=no]) AC_ARG_WITH(cray-pmi-incdir, [ --with-cray-pmi-incdir=], [CRAY_PMI_INCDIR=$withval with_cray_pmi=detailed]) AC_ARG_WITH(cray-pmi-libdir, [ --with-cray-pmi-libdir=], [CRAY_PMI_LIBDIR=$withval with_cray_pmi=detailed]) AC_ARG_WITH(cray-pmi-libs, [ --with-cray-pmi-libs=, e.g. -lpmi], [CRAY_PMI_LIBS=$withval with_cray_pmi=detailed]) dnl If --without-cray-pmi was given set HAVE_CRAY_PMI to false and do nothing more dnl If nothing was given, then too, do nothing if test "x$with_cray_pmi" == "xno"; then AM_CONDITIONAL(HAVE_CRAY_PMI,false) else dnl If we know CRAY_PMI_DIR, then we can know CRAY_PMI_INCDIR. dnl We don't overwrite CRAY_PMI_INCDIR. if test -z "${CRAY_PMI_INCDIR}"; then if test -n "${CRAY_PMI_DIR}"; then CRAY_PMI_INCDIR="${CRAY_PMI_DIR}/include"; fi fi dnl If we know CRAY_PMI_DIR, then we can know CRAY_PMI_LIBDIR. dnl We don't overwrite CRAY_PMI_LIBDIR. if test -z "${CRAY_PMI_LIBDIR}"; then if test -n "${CRAY_PMI_DIR}"; then if test -d "${CRAY_PMI_DIR}/lib64"; then CRAY_PMI_LIBDIR="${CRAY_PMI_DIR}/lib64"; else CRAY_PMI_LIBDIR="${CRAY_PMI_DIR}/lib"; fi fi fi dnl Add "-I" to CRAY_PMI_INCDIR. CRAY_PMI_CPPFLAGS="-I${CRAY_PMI_INCDIR}" dnl Add "-L" to CRAY_PMI_LIBDIR. CRAY_PMI_LDFLAGS="-L${CRAY_PMI_LIBDIR}" dnl if hdf5 libs are not defined then guess and define it if test -z "${CRAY_PMI_LIBS}"; then dnl default CRAY_PMI lib is usually just -lpmi CRAY_PMI_LIBS="-lpmi" fi save_CC="$CC" save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $CRAY_PMI_LIBS" LDFLAGS="$LDFLAGS $CRAY_PMI_LDFLAGS" CPPFLAGS="$CPPFLAGS $CRAY_PMI_CPPFLAGS" CC="$MPICC" if test -z "${HAVE_CRAY_PMI_TRUE}"; then dnl AC_CHECK_HEADERS(pmi.h, dnl , dnl [if test "x$with_cray_pmi" != xcheck; then dnl AC_MSG_FAILURE( [--with-cray-pmi was given, but test for pmi.h failed]) dnl fi dnl AM_CONDITIONAL(HAVE_CRAY_PMI,false)]) AC_MSG_CHECKING([for Cray's pmi.h]) if test -f ${CRAY_PMI_INCDIR}/pmi.h; then AC_MSG_RESULT(yes) else AM_CONDITIONAL(HAVE_CRAY_PMI,false) AC_MSG_RESULT(no) AC_MSG_FAILURE( [--with-cray-pmi was given, but test for ${CRAY_PMI_INCDIR}/pmi.h failed]) fi fi if test -z "${HAVE_CRAY_PMI_TRUE}"; then AC_MSG_CHECKING([if pmi code can be compiled]) AC_TRY_COMPILE([#include "pmi.h"], [int size; int rank; PMI_Get_size(&size); PMI_Get_rank(&rank); ], [AC_MSG_RESULT(yes) ac_cray_pmi_lib_ok=yes], [AC_MSG_RESULT(no) if test "x$with_cray_pmi" != xcheck; then AC_MSG_FAILURE( [--with-cray-pmi was given, but compile test failed]) fi AM_CONDITIONAL(HAVE_CRAY_PMI,false) ]) AC_SUBST(CRAY_PMI_LIBS) AC_SUBST(CRAY_PMI_LDFLAGS) AC_SUBST(CRAY_PMI_CPPFLAGS) fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" CC="$save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_CRAY_PMI_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_CRAY_PMI,1,[Define if you have CRAY_PMI.])],[$1]) : else $2 : fi fi ]) adios-1.5.0/config/ltmain.sh0000755000175000017500000073306012251360163017046 0ustar amckinstryamckinstry# Generated from ltmain.m4sh. # ltmain.sh (GNU libtool) 2.2.6b # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # 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. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print informational messages (default) # --version print version information # -h, --help print short or long help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.2.6b # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . PROGRAM=ltmain.sh PACKAGE=libtool VERSION=2.2.6b TIMESTAMP="" package_revision=1.3017 # Be Bourne compatible 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # NLS nuisances: We save the old values to restore during execute mode. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done $lt_unset CDPATH : ${CP="cp -f"} : ${ECHO="echo"} : ${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="/bin/sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # 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 () { # 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_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # Generated shell functions inserted here. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: # In the unlikely event $progname began with a '-', it would play havoc with # func_echo (imagine progname=-n), so we prepend ./ in that case: func_dirname_and_basename "$progpath" progname=$func_basename_result case $progname in -*) progname=./$progname ;; esac # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=: for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname${mode+: }$mode: $*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` done my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "X$my_tmpdir" | $Xsed } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "X$1" | $Xsed \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_version # Echo version message to standard output and exit. func_version () { $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $SED -n '/^# Usage:/,/# -h/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" $ECHO $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help # Echo long help message to standard output and exit. func_help () { $SED -n '/^# Usage:/,/# Report bugs to/ { s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p }' < "$progpath" exit $? } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { func_error "missing argument for $1" exit_cmd=exit } exit_cmd=: # Check that we have a working $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, and then maybe $ECHO will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # Parse options once, thoroughly. This comes as soon as possible in # the script to make things like `libtool --version' happen quickly. { # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Parse non-mode specific arguments: while test "$#" -gt 0; do opt="$1" shift case $opt in --config) func_config ;; --debug) preserve_args="$preserve_args $opt" func_echo "enabling shell trace mode" opt_debug='set -x' $opt_debug ;; -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break execute_dlfiles="$execute_dlfiles $1" shift ;; --dry-run | -n) opt_dry_run=: ;; --features) func_features ;; --finish) mode="finish" ;; --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break case $1 in # Valid mode arguments: clean) ;; compile) ;; execute) ;; finish) ;; install) ;; link) ;; relink) ;; uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac mode="$1" shift ;; --preserve-dup-deps) opt_duplicate_deps=: ;; --quiet|--silent) preserve_args="$preserve_args $opt" opt_silent=: ;; --verbose| -v) preserve_args="$preserve_args $opt" opt_silent=false ;; --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break preserve_args="$preserve_args $opt $1" func_enable_tag "$1" # tagname is set here shift ;; # Separate optargs to long options: -dlopen=*|--mode=*|--tag=*) func_opt_split "$opt" set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} shift ;; -\?|-h) func_usage ;; --help) opt_help=: ;; --version) func_version ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) nonopt="$opt" break ;; esac done case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_duplicate_deps ;; esac # Having warned about all mis-specified options, bail out if # anything was wrong. $exit_cmd $EXIT_FAILURE } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } ## ----------- ## ## Main. ## ## ----------- ## $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi test -z "$mode" && func_fatal_error "error: you must specify a MODE." # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$mode' for more information." } # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_ltwrapper_scriptname_result="" if func_ltwrapper_executable_p "$1"; then func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" fi } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case "$@ " in " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T <?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi removelist="$removelist $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist removelist="$removelist $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir command="$command -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then command="$command -o $obj" fi # Suppress compiler output if we already did a PIC compilation. command="$command$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$mode'" ;; esac $ECHO $ECHO "Try \`$progname --help' for more information about other modes." exit $? } # Now that we've collected a possible --mode arg, show help if necessary $opt_help && func_mode_help # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $execute_dlfiles; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_quote_for_eval "$file" args="$args $func_quote_for_eval_result" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" $ECHO "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS $ECHO "X----------------------------------------------------------------------" | $Xsed $ECHO "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done $ECHO $ECHO "If you ever happen to want to link against installed libraries" $ECHO "in a given directory, LIBDIR, you must either use libtool, and" $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" $ECHO "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" $ECHO " during execution" fi if test -n "$runpath_var"; then $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" $ECHO " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $ECHO $ECHO "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" $ECHO "pages." ;; *) $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac $ECHO "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS } test "$mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $ECHO "X$nonopt" | $GREP shtool >/dev/null; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" install_prog="$install_prog$func_quote_for_eval_result" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" install_prog="$install_prog $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for progfile in $progfiles; do func_verbose "extracting global C symbols from \`$progfile'" $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" } done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" fi $ECHO >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; " case $host in *cygwin* | *mingw* | *cegcc* ) $ECHO >> "$output_objdir/$my_dlsyms" "\ /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */" lt_dlsym_const= ;; *osf5*) echo >> "$output_objdir/$my_dlsyms" "\ /* This system does not cope well with relocations in const data */" lt_dlsym_const= ;; *) lt_dlsym_const=const ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ extern $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) symtab_cflags="$symtab_cflags $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper_part1 [arg=no] # # Emit the first part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part1 () { func_emit_wrapper_part1_arg1=no if test -n "$1" ; then func_emit_wrapper_part1_arg1=$1 fi $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # 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 relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then ECHO=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then # Yippee, \$ECHO works! : else # Restart under the correct shell, and then maybe \$ECHO will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $ECHO "\ # Find the directory that this script lives in. thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done " } # end: func_emit_wrapper_part1 # func_emit_wrapper_part2 [arg=no] # # Emit the second part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part2 () { func_emit_wrapper_part2_arg1=no if test -n "$1" ; then func_emit_wrapper_part2_arg1=$1 fi $ECHO "\ # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # end: func_emit_wrapper_part2 # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=no if test -n "$1" ; then func_emit_wrapper_arg1=$1 fi # split this up so that func_emit_cwrapperexe_src # can call each part independently. func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" } # func_to_host_path arg # # Convert paths to host format when used with build tools. # Intended for use with "native" mingw (where libtool itself # is running under the msys shell), or in the following cross- # build environments: # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # where wine is equipped with the `winepath' executable. # In the native mingw case, the (msys) shell automatically # converts paths for any non-msys applications it launches, # but that facility isn't available from inside the cwrapper. # Similar accommodations are necessary for $host mingw and # $build cygwin. Calling this function does no harm for other # $host/$build combinations not listed above. # # ARG is the path (on $build) that should be converted to # the proper representation for $host. The result is stored # in $func_to_host_path_result. func_to_host_path () { func_to_host_path_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' case $build in *mingw* ) # actually, msys # awkward: cmd appends spaces to result lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_path_tmp1=`( cmd //c echo "$1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_path_tmp1=`cygpath -w "$1"` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # Unfortunately, winepath does not exit with a non-zero # error code, so we are forced to check the contents of # stdout. On the other hand, if the command is not # found, the shell will set an exit code of 127 and print # *an error message* to stdout. So we must check for both # error code of zero AND non-empty stdout, which explains # the odd construction: func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` else # Allow warning below. func_to_host_path_result="" fi ;; esac if test -z "$func_to_host_path_result" ; then func_error "Could not determine host path corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_path_result="$1" fi ;; esac fi } # end: func_to_host_path # func_to_host_pathlist arg # # Convert pathlists to host format when used with build tools. # See func_to_host_path(), above. This function supports the # following $build/$host combinations (but does no harm for # combinations not listed here): # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # # Path separators are also converted from $build format to # $host format. If ARG begins or ends with a path separator # character, it is preserved (but converted to $host format) # on output. # # ARG is a pathlist (on $build) that should be converted to # the proper representation on $host. The result is stored # in $func_to_host_pathlist_result. func_to_host_pathlist () { func_to_host_pathlist_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_to_host_pathlist_tmp2="$1" # Once set for this call, this variable should not be # reassigned. It is used in tha fallback case. func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e 's|^:*||' -e 's|:*$||'` case $build in *mingw* ) # Actually, msys. # Awkward: cmd appends spaces to result. lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # unfortunately, winepath doesn't convert pathlists func_to_host_pathlist_result="" func_to_host_pathlist_oldIFS=$IFS IFS=: for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do IFS=$func_to_host_pathlist_oldIFS if test -n "$func_to_host_pathlist_f" ; then func_to_host_path "$func_to_host_pathlist_f" if test -n "$func_to_host_path_result" ; then if test -z "$func_to_host_pathlist_result" ; then func_to_host_pathlist_result="$func_to_host_path_result" else func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" fi fi fi IFS=: done IFS=$func_to_host_pathlist_oldIFS ;; esac if test -z "$func_to_host_pathlist_result" ; then func_error "Could not determine the host path(s) corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This may break if $1 contains DOS-style drive # specifications. The fix is not to complicate the expression # below, but for the user to provide a working wine installation # with winepath so that path translation in the cross-to-mingw # case works properly. lt_replace_pathsep_nix_to_dos="s|:|;|g" func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_replace_pathsep_nix_to_dos"` fi # Now, add the leading and trailing path separators back case "$1" in :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" ;; esac case "$1" in *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" ;; esac ;; esac fi } # end: func_to_host_pathlist # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include # define setmode _setmode #else # include # include # ifdef __CYGWIN__ # include # define HAVE_SETENV # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif # endif #endif #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif #ifdef _MSC_VER # define S_IXUSR _S_IEXEC # define stat _stat # ifndef _INTPTR_T_DEFINED # define intptr_t int # endif #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifdef __CYGWIN__ # define FOPEN_WB "wb" #endif #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #undef LTWRAPPER_DEBUGPRINTF #if defined DEBUGWRAPPER # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args static void ltwrapper_debugprintf (const char *fmt, ...) { va_list args; va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } #else # define LTWRAPPER_DEBUGPRINTF(args) #endif const char *program_name = NULL; void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_fatal (const char *message, ...); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_opt_process_env_set (const char *arg); void lt_opt_process_env_prepend (const char *arg); void lt_opt_process_env_append (const char *arg); int lt_split_name_value (const char *arg, char** name, char** value); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); static const char *script_text_part1 = EOF func_emit_wrapper_part1 yes | $SED -e 's/\([\\"]\)/\\\1/g' \ -e 's/^/ "/' -e 's/$/\\n"/' echo ";" cat <"))); for (i = 0; i < newargc; i++) { LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : ""))); } EOF case $host_os in mingw*) cat <<"EOF" /* execv doesn't actually work on mingw as expected on unix */ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); if (rval == -1) { /* failed to start process */ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); return 127; } return rval; EOF ;; *) cat <<"EOF" execv (lt_argv_zero, newargz); return rval; /* =127, but avoids unused variable warning */ EOF ;; esac cat <<"EOF" } void * xmalloc (size_t num) { void *p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char) name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable (const char *path) { struct stat st; LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", tmp_pathspec)); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { char *errstr = strerror (errno); lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal ("Could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } void lt_setenv (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", (name ? name : ""), (value ? value : ""))); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } int lt_split_name_value (const char *arg, char** name, char** value) { const char *p; int len; if (!arg || !*arg) return 1; p = strchr (arg, (int)'='); if (!p) return 1; *value = xstrdup (++p); len = strlen (arg) - strlen (*value); *name = XMALLOC (char, len); strncpy (*name, arg, len-1); (*name)[len - 1] = '\0'; return 0; } void lt_opt_process_env_set (const char *arg) { char *name = NULL; char *value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); } lt_setenv (name, value); XFREE (name); XFREE (value); } void lt_opt_process_env_prepend (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); } new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_opt_process_env_append (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); } new_value = lt_extend_str (getenv (name), value, 1); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_update_exe_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", (name ? name : ""), (value ? value : ""))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", (name ? name : ""), (value ? value : ""))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF } # end: func_emit_cwrapperexe_src # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) deplibs="$deplibs $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) weak_libs="$weak_libs $arg" prev= continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname '-L' '' "$arg" dir=$func_stripname_result if test -z "$dir"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" linker_flags="$linker_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" compiler_flags="$compiler_flags $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_duplicate_deps ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= case $lib in *.la) func_source "$lib" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` case " $weak_libs " in *" $deplib_base "*) ;; *) deplibs="$deplibs $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" dir=$func_stripname_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $ECHO $ECHO "*** Warning: Trying to link with static lib archive $deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because the file extensions .$libext of this argument makes me believe" $ECHO "*** that it is just a static archive that I should not use here." else $ECHO $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) temp_rpath="$temp_rpath$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded notinst_deplibs="$notinst_deplibs $lib" need_relink=no ;; *) if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then $ECHO if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $ECHO $ECHO "*** And there doesn't seem to be a static archive available" $ECHO "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $ECHO $ECHO "*** Warning: This system can not link to static lib archive $lib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $ECHO "*** But as you try to build a module library, libtool will still create " $ECHO "*** a static module, that should work as long as the dlopening application" $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) func_dirname "$deplib" "" "." dir="$func_dirname_result" # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else $ECHO $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" libobjs="$libobjs $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` done fi if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | $GREP . >/dev/null; then $ECHO if test "X$deplibs_check_method" = "Xnone"; then $ECHO "*** Warning: inter-library dependencies are not supported in this platform." else $ECHO "*** Warning: inter-library dependencies are not known to be supported." fi $ECHO "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $ECHO $ECHO "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" $ECHO "*** a static module, that should work as long as the dlopening" $ECHO "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $ECHO "*** The inter-library dependencies that have been dropped here will be" $ECHO "*** automatically added whenever a program is linked with this library" $ECHO "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $ECHO $ECHO "*** Since this library must not contain undefined symbols," $ECHO "*** because either the platform does not support them or" $ECHO "*** it was explicitly requested with -no-undefined," $ECHO "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" delfiles="$delfiles $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" func_len " $cmd" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then func_show_eval "$cmd" 'exit $?' skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$ECHO "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" $ECHO 'INPUT (' > $output for obj in $save_libobjs do $ECHO "$obj" >> $output done $ECHO ')' >> $output delfiles="$delfiles $output" elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do $ECHO "$obj" >> $output done delfiles="$delfiles $output" output=$firstobj\"$file_list_spec$output\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=$obj func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi delfiles="$delfiles $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *cegcc) # Disable wrappers for cegcc, we are cross compiling anyway. wrappers_required=no ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $ECHO for shipping. if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then oldobjs="$oldobjs $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles oldobjs="$oldobjs $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else $ECHO "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlfiles="$newdlfiles $libdir/$name" ;; *) newdlfiles="$newdlfiles $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlprefiles="$newdlprefiles $libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$mode" = link || test "$mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) RM="$RM $arg"; rmforce=yes ;; -*) RM="$RM $arg" ;; *) files="$files $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= origobjdir="$objdir" for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then objdir="$origobjdir" else objdir="$dir/$origobjdir" fi func_basename "$file" name="$func_basename_result" test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result rmfiles="$rmfiles $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$mode" = uninstall || test "$mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 adios-1.5.0/config/ac_cray_ugni.m40000644000175000017500000001127212251360163020102 0ustar amckinstryamckinstrydnl ###################################################################### dnl dnl Finds CRAY_UGNI dnl dnl ###################################################################### AC_DEFUN([AC_CRAY_UGNI], [ ac_cray_ugni_lib_ok=no AC_MSG_NOTICE([=== checking for CRAY UGNI ===]) AM_CONDITIONAL(HAVE_CRAY_UGNI,true) dnl Automatic checking for CRAY_UGNI is disabled now. AC_ARG_WITH(cray-ugni, [ --with-cray-ugni=], [CRAY_UGNI_DIR=$withval], [with_cray_ugni=no]) AC_ARG_WITH(cray-ugni-incdir, [ --with-cray-ugni-incdir=], [CRAY_UGNI_INCDIR=$withval with_cray_ugni=detailed]) AC_ARG_WITH(cray-ugni-libdir, [ --with-cray-ugni-libdir=], [CRAY_UGNI_LIBDIR=$withval with_cray_ugni=detailed]) AC_ARG_WITH(cray-ugni-libs, [ --with-cray-ugni-libs=, e.g. -lugni], [CRAY_UGNI_LIBS=$withval with_cray_ugni=detailed]) dnl If --without-cray-ugni was given set HAVE_CRAY_UGNI to false and do nothing more dnl If nothing was given, then too, do nothing if test "x$with_cray_ugni" == "xno"; then AM_CONDITIONAL(HAVE_CRAY_UGNI,false) else dnl If we know CRAY_UGNI_DIR, then we can know CRAY_UGNI_INCDIR. dnl We don't overwrite CRAY_UGNI_INCDIR. if test -z "${CRAY_UGNI_INCDIR}"; then if test -n "${CRAY_UGNI_DIR}"; then CRAY_UGNI_INCDIR="${CRAY_UGNI_DIR}/include"; fi fi dnl If we know CRAY_UGNI_DIR, then we can know CRAY_UGNI_LIBDIR. dnl We don't overwrite CRAY_UGNI_LIBDIR. if test -z "${CRAY_UGNI_LIBDIR}"; then if test -n "${CRAY_UGNI_DIR}"; then if test -d "${CRAY_UGNI_DIR}/lib64"; then CRAY_UGNI_LIBDIR="${CRAY_UGNI_DIR}/lib64"; else CRAY_UGNI_LIBDIR="${CRAY_UGNI_DIR}/lib"; fi fi fi dnl Add "-I" to CRAY_UGNI_INCDIR. CRAY_UGNI_CPPFLAGS="-I${CRAY_UGNI_INCDIR}" dnl Add "-L" to CRAY_UGNI_LIBDIR. CRAY_UGNI_LDFLAGS="-L${CRAY_UGNI_LIBDIR}" dnl if hdf5 libs are not defined then guess and define it if test -z "${CRAY_UGNI_LIBS}"; then dnl default CRAY_UGNI lib is usually just -lugni CRAY_UGNI_LIBS="-lugni" fi save_CC="$CC" save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $CRAY_UGNI_LIBS" LDFLAGS="$LDFLAGS $CRAY_UGNI_LDFLAGS" CPPFLAGS="$CPPFLAGS $CRAY_UGNI_CPPFLAGS" CC="$MPICC" if test -z "${HAVE_CRAY_UGNI_TRUE}"; then dnl AC_CHECK_HEADERS(ugni.h, dnl , dnl [if test "x$with_cray_ugni" != xcheck; then dnl AC_MSG_FAILURE( [--with-cray-ugni was given, but test for ugni.h failed]) dnl fi dnl AM_CONDITIONAL(HAVE_CRAY_UGNI,false)]) AC_MSG_CHECKING([for Cray's ugni.h]) if test -f ${CRAY_UGNI_INCDIR}/gni_pub.h; then AC_MSG_RESULT(yes) else AM_CONDITIONAL(HAVE_CRAY_UGNI,false) AC_MSG_RESULT(no) AC_MSG_FAILURE( [--with-cray-ugni was given, but test for ${CRAY_UGNI_INCDIR}/gni_pub.h failed]) fi fi if test -z "${HAVE_CRAY_UGNI_TRUE}"; then AC_MSG_CHECKING([if ugni code can be compiled]) AC_TRY_COMPILE( [#include #include #include "gni_pub.h" ], [uint32_t inst_id; uint8_t ptag; uint32_t cookie; uint32_t modes; gni_cdm_handle_t * cdm_hndl; gni_return_t status; status = GNI_CdmCreate(inst_id, ptag, cookie, modes, cdm_hndl); ], [AC_MSG_RESULT(yes) ac_cray_ugni_lib_ok=yes], [AC_MSG_RESULT(no) if test "x$with_cray_ugni" != xcheck; then AC_MSG_FAILURE( [--with-cray-ugni was given, but compile test failed]) fi AM_CONDITIONAL(HAVE_CRAY_UGNI,false) ]) AC_SUBST(CRAY_UGNI_LIBS) AC_SUBST(CRAY_UGNI_LDFLAGS) AC_SUBST(CRAY_UGNI_CPPFLAGS) fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" CC="$save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_CRAY_UGNI_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_CRAY_UGNI,1,[Define if you have CRAY_UGNI.])],[$1]) : else $2 : fi fi ]) adios-1.5.0/config/ac_dmalloc.m40000644000175000017500000000334212251360163017534 0ustar amckinstryamckinstry# # # AC_DMALLOC # # # dnl @synopsis AC_DMALLOC dnl dnl This macro test if dmalloc is to be used. dnl Use in C code: dnl #ifdef DMALLOC dnl #include "dmalloc.h" dnl #endif dnl dnl @version 1.0 dnl @author Norbert Podhorszki, ORNL dnl AC_DEFUN([AC_DMALLOC],[ AM_CONDITIONAL(HAVE_DMALLOC,true) AC_ARG_WITH(dmalloc, [ --with-dmalloc=DIR Location of dmalloc library], [DMALLOC_LDFLAGS="-L$withval/lib"; DMALLOC_CPPFLAGS="-I$withval/include";], [with_dmalloc=no]) dnl If --without-hdf5 was given set HAVE_HDF5 to false and do nothing more dnl If nothing was given, then too, do nothing if test "x$with_dmalloc" == "xno"; then AM_CONDITIONAL(HAVE_DMALLOC,false) else save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS -ldmalloc" LDFLAGS="$LDFLAGS $DMALLOC_LDFLAGS" CPPFLAGS="$CPPFLAGS $DMALLOC_CPPFLAGS" if test -z "${HAVE_DMALLOC_TRUE}"; then AC_CHECK_HEADERS(dmalloc.h, , [AM_CONDITIONAL(HAVE_DMALLOC,false)]) fi # Check for the dmalloc library and headers AC_TRY_COMPILE([#include "dmalloc.h"], [char * s; s=malloc(sizeof(char)*10); free(s);], [DMALLOC_LIBS="-ldmallocth"], [AM_CONDITIONAL(HAVE_DMALLOC,false)]) LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" AC_SUBST(DMALLOC_LIBS) AC_SUBST(DMALLOC_LDFLAGS) AC_SUBST(DMALLOC_CPPFLAGS) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_DMALLOC_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_DMALLOC,1,[Define if you have DMALLOC.])],[$1]) : else $2 : fi fi ])dnl AC_DMALLOC adios-1.5.0/config/missing0000755000175000017500000002623312251360163016617 0ustar amckinstryamckinstry#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program 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, or (at your option) # any later version. # This program 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 this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: adios-1.5.0/config/ac_nc4par.m40000644000175000017500000001154512251360163017314 0ustar amckinstryamckinstrydnl ###################################################################### dnl dnl Finds netCDF 4 parallel dnl dnl ###################################################################### AC_DEFUN([AC_NC4PAR], [ AC_MSG_NOTICE([=== checking NetCDF 4 Parallel ===]) AM_CONDITIONAL(HAVE_NC4PAR,true) AC_ARG_WITH(nc4par, [ --with-nc4par=], [NC4PAR_DIR=$withval], [with_nc4par=check]) dnl If --without-nc4par was given set HAVE_NC4PAR to false and do nothing more if test "x$with_nc4par" == "xno"; then AM_CONDITIONAL(HAVE_NC4PAR,false) else ac_use_cray_netcdf=no dnl allow args --with-nc4par incdir and --with-nc4par-libdir AC_ARG_WITH(nc4par-incdir, [ --with-nc4par-incdir=], [NC4PAR_INCDIR=$withval with_nc4par=detailed]) AC_ARG_WITH(nc4par-libdir, [ --with-nc4par-libdir=], [NC4PAR_LIBDIR=$withval with_nc4par=detailed]) AC_ARG_WITH(nc4par-libs, [ --with-nc4par-libs=, e.g. -lnetcdf>], [NC4PAR_LIBS=$withval with_nc4par=detailed]) dnl If we know NC4PAR_DIR, then we can know NC4PAR_INCDIR. dnl If we know CRAY_NETCDF_DIR, then we leave NC4PAR_INCDIR empty. dnl Or, if we know NETCDF_DIR, then we can know NC4PAR_INCDIR. dnl We don't overwrite NC4PAR_INCDIR. if test -z "${NC4PAR_INCDIR}"; then if test -n "${NC4PAR_DIR}"; then NC4PAR_INCDIR="${NC4PAR_DIR}/include"; elif test -n "${CRAY_NETCDF_DIR}"; then NC4PAR_INCDIR=""; ac_use_cray_netcdf=yes elif test -n "${NETCDF_DIR}"; then NC4PAR_INCDIR="${NETCDF_DIR}/include"; fi fi dnl If we know NC4PAR_DIR, then we can know NC4PAR_LIBDIR. dnl If we know CRAY_NETCDF_DIR, then we leave NC4PAR_LIBDIR empty. dnl Or, if we know NETCDF_DIR, then we may know NC4PAR_LIBDIR. dnl We don't overwrite NC4PAR_LIBDIR. if test -z "${NC4PAR_LIBDIR}"; then if test -n "${NC4PAR_DIR}"; then NC4PAR_LIBDIR="${NC4PAR_DIR}/lib"; elif test -n "${CRAY_NETCDF_DIR}"; then NC4PAR_LIBDIR=""; ac_use_cray_netcdf=yes elif test -n "${NETCDF_DIR}"; then NC4PAR_LIBDIR="${NETCDF_DIR}/lib" fi fi dnl Add "-I" to NC4PAR_INCDIR. if test -n "${NC4PAR_INCDIR}"; then NC4PAR_CPPFLAGS="-I${NC4PAR_INCDIR}" else ac_nc4par=no fi dnl Add "-L" to NC4PAR_LIBDIR + NC4PAR_LIBS. if test -n "${NC4PAR_LIBDIR}"; then NC4PAR_LDFLAGS="-L${NC4PAR_LIBDIR}" else ac_nc4par=no fi dnl if nc4 libs are not defined (and not Cray nc4 lib), then guess and define it if test -z "${NC4PAR_LIBS}"; then if test "${ac_use_cray_netcdf}" != "yes"; then NC4PAR_LIBS="-lnetcdf" fi fi save_CC="$CC" save_CPPFLAGS="$CPPFLAGS" save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $NC4PAR_LIBS" LDFLAGS="$LDFLAGS $NC4PAR_LDFLAGS" CPPFLAGS="$CPPFLAGS $NC4PAR_CPPFLAGS" CC="$MPICC" if test -z "${HAVE_NC4PAR_TRUE}"; then AC_CHECK_HEADERS(netcdf.h, , [if test "x$with_nc4par" != xcheck; then AC_MSG_FAILURE( [--with-nc4par was given, but test for netcdf.h failed]) fi AM_CONDITIONAL(HAVE_NC4PAR,false)]) fi if test -z "${HAVE_NC4PAR_TRUE}"; then AC_MSG_CHECKING([if nc4 parallel code can be compiled]) AC_TRY_COMPILE( [#include "mpi.h" #include "netcdf.h" ], [int ncid; MPI_Info info; MPI_Comm comm; nc_create_par("a.nc", NC_NOCLOBBER|NC_MPIIO|NC_NETCDF4, comm, info, ncid); nc_close(ncid); ], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) if test "x$with_nc4par" != xcheck; then AC_MSG_FAILURE( [--with-nc4par was given, but compile test failed]) fi AM_CONDITIONAL(HAVE_NC4PAR,false) ]) AC_SUBST(NC4PAR_LIBS) AC_SUBST(NC4PAR_LDFLAGS) AC_SUBST(NC4PAR_CPPFLAGS) fi LIBS="$save_LIBS" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" CC="$save_CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test -z "${HAVE_NC4PAR_TRUE}"; then ifelse([$1],,[AC_DEFINE(HAVE_NC4PAR,1,[Define if you have NC4PAR.])],[$1]) : else $2 : fi fi ]) adios-1.5.0/config/config.guess0000755000175000017500000013036112251360163017536 0ustar amckinstryamckinstry#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-06-10' # 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 # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program 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 this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # # Please send patches with a ChangeLog entry to config-patches@gnu.org. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} 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/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; or1k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' 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; } ;; 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 ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; 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 ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp 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` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: adios-1.5.0/config/ac_portals.m40000644000175000017500000003004312251360163017603 0ustar amckinstryamckinstrydnl @synopsis AC_PORTALS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl dnl This macro tries to find out how to compile programs that dnl use the Portals API. dnl dnl On success, it defines HAVE_PORTALS and sets PORTALS_LIBS dnl to any libraries that are needed for linking dnl Portals (e.g. -lp3utcp, -lp3lib,...). dnl dnl If you want to compile everything with Portals, you should set: dnl dnl LIBS="$PTL_LIBS $LIBS" dnl dnl ACTION-IF-FOUND is a list of shell commands to run if a Portals dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands dnl to run it if it is not found. If ACTION-IF-FOUND is not specified, dnl the default action will define HAVE_PORTALS. dnl dnl @version $Id: acx_mpi.m4 676 2006-05-16 20:44:08Z raoldfi $ dnl @author Ron A. Oldfield AC_DEFUN([AC_PORTALS], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([ACX_PTHREAD]) AC_LANG_SAVE AC_LANG_C ac_portals_hdr_ok=no ac_portals_lib_ok=no ac_with_portals=no AM_CONDITIONAL(HAVE_PORTALS,true) AM_CONDITIONAL(NEED_DARWIN_SINGLE_MODULE,false) PORTALS_CFLAGS="" PORTALS_CPPFLAGS="" PORTALS_LDFLAGS="" PORTALS_LIBS="" dnl PtlInit dnl PtlFini AC_ARG_WITH(portals, [ --with-portals=DIR Location of Portals (yes/no/path_to_portals)], [ ac_with_portals=yes; ]) if test x"$withval" = xno; then AM_CONDITIONAL(HAVE_PORTALS,false) ac_with_portals=no; elif test x"$withval" = xyes -o x"$withval" = x; then PORTALS_LDFLAGS=""; PORTALS_CPPFLAGS=""; ac_with_portals=yes; else PORTALS_LDFLAGS="-L$withval/lib"; PORTALS_CPPFLAGS="-I$withval/include"; ac_with_portals=yes; fi if test x"$ac_with_portals" = xyes; then dnl Look for portals header files save_CPPFLAGS=$CPPFLAGS; CPPFLAGS="$CPPFLAGS $PORTALS_CPPFLAGS" LDFLAGS="$LDFLAGS $PORTALS_LDFLAGS" if test x"$ac_portals_hdr_ok" = xno; then AC_CHECK_HEADER(portals3.h, [AC_DEFINE(HAVE_PORTALS3_H, 1, [Define to 1 if you have .]) ac_portals_hdr_ok=yes; PORTALS_CFLAGS="$PORTALS_CFLAGS $EXTRA_CFLAGS"; PORTALS_CPPFLAGS="$PORTALS_CPPFLAGS $EXTRA_CFLAGS"], [ac_portals_hdr_ok=no]) fi if test x"$ac_portals_hdr_ok" = xno; then AC_CHECK_HEADER(portals/portals3.h, [AC_DEFINE(HAVE_PORTALS_PORTALS3_H, 1, [Define to 1 if you have .]) ac_portals_hdr_ok=yes; PORTALS_CFLAGS="$PORTALS_CFLAGS $EXTRA_CFLAGS"; PORTALS_CPPFLAGS="$PORTALS_CPPFLAGS $EXTRA_CFLAGS"], [ac_portals_hdr_ok=no]) fi dnl Look for other portals files AC_CHECK_HEADERS([p3nal_utcp.h p3rt/p3rt.h], , , [ [#if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_H) #include #endif] ]) if test x"$ac_portals_hdr_ok" = xno; then CPPFLAGS=$save_CPPFLAGS fi dnl Look for -lportals if test x"$ac_portals_lib_ok" = xno -a x$ac_portals_hdr_ok = xyes; then save_LIBS=$LIBS; LIBS="" AC_SEARCH_LIBS(PtlInit,[portals], [ac_portals_lib_ok=yes], [ac_portals_lib_ok=no], [$save_LIBS $PTHREAD_LDFLAGS $PTHREAD_LIBS]) if test -n $LIBS; then PORTALS_LIBS=$LIBS; fi LIBS=$save_LIBS; fi dnl Check for Portals UTCP libraries (Schutt's implementation) dnl Look for PtlInit in -lp3api -lp3lib -lp3rt -lp3utcp if test x"$ac_portals_lib_ok" = xno -a x$ac_portals_hdr_ok = xyes; then save_LIBS=$LIBS; save_LDFLAGS=$LDFLAGS; save_CFLAGS=$CFLAGS; extra_LIBS="-lp3api -lp3lib -lp3rt -lp3utcp" LDFLAGS="$LDFLAGS $PORTALS_LDFLAGS" LIBS="$LIBS $extra_LIBS $PTHREAD_LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" AC_MSG_CHECKING([if portals links with $LDFLAGS $LIBS]) AC_LINK_IFELSE(AC_LANG_CALL([],[PtlInit]), [PORTALS_LIBS=$extra_LIBS; ac_portals_lib_ok=yes; AC_MSG_RESULT(yes)], [ac_portals_lib_ok=no; AC_MSG_RESULT(no)]) LIBS=$save_LIBS; LDFLAGS=$save_LDFLAGS; CDFLAGS=$save_CFLAGS; fi dnl See if PTHREADS is really necessary if test x"$ac_portals_lib_ok" = xyes; then ac_portals_flags="none ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}" ac_portals_lib_ok=no for flag in $ac_portals_flags; do case $flag in none) AC_MSG_CHECKING([whether portals works without any additional flags]) ;; -l*) AC_MSG_CHECKING([whether portals works with library $flag]) EXTRA_LIBS="$flag" ;; -*) AC_MSG_CHECKING([whether portals works with library -l$flag]) EXTRA_LIBS="$flag" ;; esac save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" save_CPPFLAGS="$CPPFLAGS" save_LDFLAGS="$LDFLAGS" LIBS="$LIBS $PORTALS_LIBS $EXTRA_LIBS" CFLAGS="$CFLAGS $PORTALS_CFLAGS $EXTRA_CFLAGS" CPPFLAGS="$CPPFLAGS $PORTALS_CPPFLAGS" LDFLAGS="$LDFLAGS $PORTALS_LDFLAGS" dnl See if Portals will link with the provided flags AC_LINK_IFELSE(AC_LANG_CALL([],[PtlInit]), [PORTALS_CFLAGS="$PORTALS_CFLAGS $EXTRA_CFLAGS"; PORTALS_CPPFLAGS="$PORTALS_CPPFLAGS $EXTRA_CPPFLAGS"; PORTALS_LIBS="$PORTALS_LIBS $EXTRA_LIBS"; ac_portals_lib_ok=yes], [ac_portals_lib_ok=no]) AC_MSG_RESULT($ac_portals_lib_ok) if test "x$ac_portals_lib_ok" = xyes; then PORTALS_LIBS="$PORTALS_LIBS $EXTRA_LIBS"; PORTALS_CFLAGS="$PORTALS_CFLAGS $EXTRA_CFLAGS"; PORTALS_CPPFLAGS="$PORTALS_CPPFLAGS $EXTRA_CFLAGS"; if test `uname -s` = "Darwin"; then AM_CONDITIONAL(NEED_DARWIN_SINGLE_MODULE,true) fi fi dnl Restore environment variables LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" done fi if test x"$ac_portals_hdr_ok" = xno -o x$ac_portals_lib_ok = xno; then AM_CONDITIONAL(HAVE_PORTALS,false) PORTALS_CFLAGS="" PORTALS_CPPFLAGS="" PORTALS_LDFLAGS="" PORTALS_LIBS="" else ac_portals_lib_ok=yes; AM_CONDITIONAL(HAVE_PORTALS,true) fi dnl Create definitions for the include files dnl AC_DEFINE_UNQUOTED([PORTALS_HEADER], ["$PORTALS_HEADER"], dnl ["Path to portals3.h"]) dnl AC_DEFINE_UNQUOTED([PORTALS_RT_HEADER], ["$PORTALS_RT_HEADER"], dnl ["Path to Portals runtime definitions"]) dnl AC_DEFINE_UNQUOTED([PORTALS_NAL_HEADER], ["$PORTALS_NAL_HEADER"], dnl ["Path to portals NAL definitions"]) dnl Check for portals types and functions defined in the 3.1 specification if test x"$ac_portals_lib_ok" = xyes; then save_CFLAGS=$CFLAGS save_CPPFLAGS=$CPPFLAGS save_LDFLAGS=$LDFLAGS save_LIBS=$LIBS CFLAGS="$CFLAGS $PORTALS_CFLAGS" CPPFLAGS="$CPPFLAGS $PORTALS_CPPFLAGS" LDFLAGS="$LDFLAGS $PORTALS_LDFLAGS" LIBS="$LIBS $PORTALS_LIBS" dnl See if we have PTL_NO_ACK_REQ or PTL_NOACK_REQ AC_MSG_CHECKING([whether portals uses PTL_NO_ACK_REQ]) AC_LINK_IFELSE(AC_LANG_PROGRAM( [#if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_H) #include #else #error Cound not find include file #endif ],[int a = PTL_NO_ACK_REQ;]), [# Success AC_DEFINE(HAVE_PTL_NO_ACK_REQ,1,[Define if you have PTL_NO_ACK_REQ.]) AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) AC_MSG_CHECKING([whether portals uses PTL_NOACK_REQ]) AC_LINK_IFELSE(AC_LANG_PROGRAM( [#if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_H) #include #else #error Cound not find include file #endif ],[int a = PTL_NOACK_REQ;]), [# Success AC_DEFINE(HAVE_PTL_NOACK_REQ,1,[Define if you have PTL_NOACK_REQ.]) AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) ]) ]) AC_CHECK_TYPES([ptl_time_t, ptl_eq_handler_t], , , [#if defined(HAVE_PORTALS3_H) #include #elif defined(HAVE_PORTALS_PORTALS3_H) #include #endif]) AC_CHECK_FUNCS([PtlErrorStr \ PtlNIFailStr \ PtlEventKindStr \ PtlGetJid \ PtlACEntry]) CFLAGS=$save_CFLAGS CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS fi # This is a big hack. This is fragile. Try to determine if we are # using Cray Portals. Cray Portals generates more data movement # events than Schutt (standard) Portals. This requires a memory # descriptor threshold adjustment. Cannot be determined at runtime. # # This test relies on a priori knowledge of specific types and # functions that are (un)defined. If this list changes, this # test will quickly crumble. # if test x"$ac_cv_func_PtlErrorStr" = xno -a \ x"$ac_cv_type_ptl_eq_handler_t" = xyes -a \ x"$ac_cv_func_PtlNIFailStr" = xno -a \ x"$ac_cv_func_PtlEventKindStr" = xno -a \ x"$ac_cv_func_PtlGetJid" = xyes -a \ x"$ac_cv_func_PtlACEntry" = xyes; then AC_DEFINE(HAVE_CRAY_PORTALS,1,[Define if you have Cray Portals.]) fi AC_SUBST(PORTALS_CPPFLAGS) AC_SUBST(PORTALS_CFLAGS) AC_SUBST(PORTALS_LDFLAGS) AC_SUBST(PORTALS_LIBS) AC_SUBST(PORTALS_HEADER) AC_SUBST(PORTALS_NAL_HEADER) AC_SUBST(PORTALS_RT_HEADER) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$ac_portals_lib_ok" = xyes; then ifelse([$1],,[AC_DEFINE(HAVE_PORTALS,1,[Define if you have the Portals.])],[$1]) : else $2 : fi fi AC_LANG_RESTORE ])dnl AC_PORTALS adios-1.5.0/utils/0000755000175000017500000000000012251360163015105 5ustar amckinstryamckinstryadios-1.5.0/utils/Makefile.am0000644000175000017500000000026512251360163017144 0ustar amckinstryamckinstrySUBDIRS= gpp bpdump bp2ascii bpsplit bpls if BUILD_WRITE SUBDIRS += adios_lint bp2bp endif if HAVE_HDF5 SUBDIRS += bp2h5 endif if HAVE_NETCDF SUBDIRS +=bp2ncd endif SUBDIRS +=skel adios-1.5.0/utils/adios_lint/0000755000175000017500000000000012251360163017232 5ustar amckinstryamckinstryadios-1.5.0/utils/adios_lint/Makefile.am0000644000175000017500000000102212251360163021261 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public -I$(top_builddir)/src/core AUTOMAKE_OPTIONS = no-dependencies bin_PROGRAMS=adios_lint adios_lint_SOURCES = adios_lint.c adios_lint_CPPFLAGS = $(ADIOSLIB_EXTRA_CPPFLAGS) $(ADIOSLIB_INT_CPPFLAGS) $(ADIOSLIB_INT_CFLAGS) adios_lint_LDFLAGS = $(ADIOSLIB_INT_LDFLAGS) adios_lint_LDADD = $(top_builddir)/src/libadios_internal_nompi.a adios_lint_LDADD += $(ADIOSLIB_INT_LDADD) if USE_PARALLEL_COMPILER CC=$(MPICC) CXX=$(MPICXX) endif adios-1.5.0/utils/adios_lint/adios_lint.c0000644000175000017500000000277012251360163021531 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include #include #include // mpi //#include "mpi.h" // xml parser #include // dart #include #include "adios.h" #include "adios_transport_hooks.h" #include "adios_internals.h" #define STR_LEN 1000 //***************************************** // Check the groups as follows: //***************************************** void check_groups (struct adios_group_list_struct * groups) { // no extra checks needed } //***************************************** // Check the groups as follows: // 1. Make sure all method groups match real groups //***************************************** void check_methods (struct adios_method_list_struct * methods ,struct adios_group_list_struct * groups ) { // no extra checks needed } int main (int argc, char ** argv) { struct adios_method_list_struct * methods = 0; struct adios_group_list_struct * groups = 0; char * filename; if (argc < 2) filename = "config.xml"; else filename = argv [1]; if (!adios_parse_config (filename)) return 1; methods = adios_get_methods (); groups = adios_get_groups (); check_groups (groups); check_methods (methods, groups); adios_cleanup (); return 0; } adios-1.5.0/utils/adios_lint/Makefile.in0000644000175000017500000004711212251360163021304 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = adios_lint$(EXEEXT) subdir = utils/adios_lint DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_adios_lint_OBJECTS = adios_lint-adios_lint.$(OBJEXT) adios_lint_OBJECTS = $(am_adios_lint_OBJECTS) am__DEPENDENCIES_1 = adios_lint_DEPENDENCIES = \ $(top_builddir)/src/libadios_internal_nompi.a \ $(am__DEPENDENCIES_1) adios_lint_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(adios_lint_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(adios_lint_SOURCES) DIST_SOURCES = $(adios_lint_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ @USE_PARALLEL_COMPILER_TRUE@CC = $(MPICC) CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ @USE_PARALLEL_COMPILER_TRUE@CXX = $(MPICXX) CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public -I$(top_builddir)/src/core AUTOMAKE_OPTIONS = no-dependencies adios_lint_SOURCES = adios_lint.c adios_lint_CPPFLAGS = $(ADIOSLIB_EXTRA_CPPFLAGS) $(ADIOSLIB_INT_CPPFLAGS) $(ADIOSLIB_INT_CFLAGS) adios_lint_LDFLAGS = $(ADIOSLIB_INT_LDFLAGS) adios_lint_LDADD = $(top_builddir)/src/libadios_internal_nompi.a \ $(ADIOSLIB_INT_LDADD) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu utils/adios_lint/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu utils/adios_lint/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list adios_lint$(EXEEXT): $(adios_lint_OBJECTS) $(adios_lint_DEPENDENCIES) @rm -f adios_lint$(EXEEXT) $(adios_lint_LINK) $(adios_lint_OBJECTS) $(adios_lint_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< adios_lint-adios_lint.o: adios_lint.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(adios_lint_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o adios_lint-adios_lint.o `test -f 'adios_lint.c' || echo '$(srcdir)/'`adios_lint.c adios_lint-adios_lint.obj: adios_lint.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(adios_lint_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o adios_lint-adios_lint.obj `if test -f 'adios_lint.c'; then $(CYGPATH_W) 'adios_lint.c'; else $(CYGPATH_W) '$(srcdir)/adios_lint.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/utils/adios_lint/CMakeLists.txt0000644000175000017500000000133612251360163021775 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src/core) include_directories(${PROJECT_SOURCE_DIR}/utils/adios_lint) include_directories(${PROJECT_BINARY_DIR}) link_directories(${PROJECT_BINARY_DIR}/utils/adios_lint) add_executable(adios_lint adios_lint.c) target_link_libraries(adios_lint adios_internal_nompi ${ADIOSLIB_INT_LDADD}) set_target_properties(adios_lint PROPERTIES COMPILE_FLAGS "${ADIOSLIB_EXTRA_CPPFLAGS} ${ADIOSLIB_INT_CPPFLAGS} ${ADIOSLIB_INT_CFLAGS}") #install(FILES config.xml DESTINATION ${PROJECT_BINARY_DIR}/utils/adios_lint) install(PROGRAMS ${CMAKE_BINARY_DIR}/utils/adios_lint/adios_lint DESTINATION ${bindir}) adios-1.5.0/utils/bpls/0000755000175000017500000000000012251360163016045 5ustar amckinstryamckinstryadios-1.5.0/utils/bpls/Makefile.am0000644000175000017500000000071312251360163020102 0ustar amckinstryamckinstryINCLUDES = $(all_includes) INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies bin_PROGRAMS = bpls bpls_SOURCES = bpls.c bpls_CPPFLAGS = $(ADIOSLIB_EXTRA_CPPFLAGS) $(ADIOSREADLIB_SEQ_CPPFLAGS) $(ADIOSREADLIB_SEQ_CFLAGS) bpls_LDFLAGS = $(ADIOSREADLIB_SEQ_LDFLAGS) bpls_LDADD = $(top_builddir)/src/libadiosread_nompi.a bpls_LDADD += $(ADIOSREADLIB_SEQ_LDADD) EXTRA_DIST = bpls.h #CC=$(MPICC) #CXX=$(MPICXX) adios-1.5.0/utils/bpls/Makefile.in0000644000175000017500000004641312251360163020122 0ustar amckinstryamckinstry# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = bpls$(EXEEXT) subdir = utils/bpls DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/ac_cray_pmi.m4 \ $(top_srcdir)/config/ac_cray_ugni.m4 \ $(top_srcdir)/config/ac_dataspaces.m4 \ $(top_srcdir)/config/ac_datatap.m4 \ $(top_srcdir)/config/ac_dcmf.m4 \ $(top_srcdir)/config/ac_dimes.m4 \ $(top_srcdir)/config/ac_dmalloc.m4 \ $(top_srcdir)/config/ac_flexpath.m4 \ $(top_srcdir)/config/ac_hdf5.m4 \ $(top_srcdir)/config/ac_infiniband.m4 \ $(top_srcdir)/config/ac_lustre.m4 \ $(top_srcdir)/config/ac_mxml.m4 \ $(top_srcdir)/config/ac_nc4par.m4 \ $(top_srcdir)/config/ac_netcdf.m4 \ $(top_srcdir)/config/ac_nssi.m4 \ $(top_srcdir)/config/ac_pablo.m4 \ $(top_srcdir)/config/ac_phdf5.m4 \ $(top_srcdir)/config/ac_portals.m4 \ $(top_srcdir)/config/acx_mpi.m4 \ $(top_srcdir)/config/acx_pthread.m4 \ $(top_srcdir)/config/cercs.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_bpls_OBJECTS = bpls-bpls.$(OBJEXT) bpls_OBJECTS = $(am_bpls_OBJECTS) am__DEPENDENCIES_1 = bpls_DEPENDENCIES = $(top_builddir)/src/libadiosread_nompi.a \ $(am__DEPENDENCIES_1) bpls_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(bpls_LDFLAGS) \ $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(bpls_SOURCES) DIST_SOURCES = $(bpls_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADIOSLIB_CFLAGS = @ADIOSLIB_CFLAGS@ ADIOSLIB_CPPFLAGS = @ADIOSLIB_CPPFLAGS@ ADIOSLIB_EXTRA_CPPFLAGS = @ADIOSLIB_EXTRA_CPPFLAGS@ ADIOSLIB_INT_CFLAGS = @ADIOSLIB_INT_CFLAGS@ ADIOSLIB_INT_CPPFLAGS = @ADIOSLIB_INT_CPPFLAGS@ ADIOSLIB_INT_LDADD = @ADIOSLIB_INT_LDADD@ ADIOSLIB_INT_LDFLAGS = @ADIOSLIB_INT_LDFLAGS@ ADIOSLIB_LDADD = @ADIOSLIB_LDADD@ ADIOSLIB_LDFLAGS = @ADIOSLIB_LDFLAGS@ ADIOSLIB_SEQ_CFLAGS = @ADIOSLIB_SEQ_CFLAGS@ ADIOSLIB_SEQ_CPPFLAGS = @ADIOSLIB_SEQ_CPPFLAGS@ ADIOSLIB_SEQ_LDADD = @ADIOSLIB_SEQ_LDADD@ ADIOSLIB_SEQ_LDFLAGS = @ADIOSLIB_SEQ_LDFLAGS@ ADIOSREADLIB_CFLAGS = @ADIOSREADLIB_CFLAGS@ ADIOSREADLIB_CPPFLAGS = @ADIOSREADLIB_CPPFLAGS@ ADIOSREADLIB_LDADD = @ADIOSREADLIB_LDADD@ ADIOSREADLIB_LDFLAGS = @ADIOSREADLIB_LDFLAGS@ ADIOSREADLIB_SEQ_CFLAGS = @ADIOSREADLIB_SEQ_CFLAGS@ ADIOSREADLIB_SEQ_CPPFLAGS = @ADIOSREADLIB_SEQ_CPPFLAGS@ ADIOSREADLIB_SEQ_LDADD = @ADIOSREADLIB_SEQ_LDADD@ ADIOSREADLIB_SEQ_LDFLAGS = @ADIOSREADLIB_SEQ_LDFLAGS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CRAY_PMI_CPPFLAGS = @CRAY_PMI_CPPFLAGS@ CRAY_PMI_LDFLAGS = @CRAY_PMI_LDFLAGS@ CRAY_PMI_LIBS = @CRAY_PMI_LIBS@ CRAY_UGNI_CPPFLAGS = @CRAY_UGNI_CPPFLAGS@ CRAY_UGNI_LDFLAGS = @CRAY_UGNI_LDFLAGS@ CRAY_UGNI_LIBS = @CRAY_UGNI_LIBS@ CSH = @CSH@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATASPACES_CPPFLAGS = @DATASPACES_CPPFLAGS@ DATASPACES_LDFLAGS = @DATASPACES_LDFLAGS@ DATASPACES_LIBS = @DATASPACES_LIBS@ DCMF_CFLAGS = @DCMF_CFLAGS@ DCMF_CPPFLAGS = @DCMF_CPPFLAGS@ DCMF_LDFLAGS = @DCMF_LDFLAGS@ DCMF_LIBS = @DCMF_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIMES_CPPFLAGS = @DIMES_CPPFLAGS@ DIMES_LDFLAGS = @DIMES_LDFLAGS@ DIMES_LIBS = @DIMES_LIBS@ DMALLOC_CPPFLAGS = @DMALLOC_CPPFLAGS@ DMALLOC_LDFLAGS = @DMALLOC_LDFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ DSYMUTIL = @DSYMUTIL@ DT_CPPFLAGS = @DT_CPPFLAGS@ DT_LDFLAGS = @DT_LDFLAGS@ DT_LIBS = @DT_LIBS@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FGREP = @FGREP@ FP_CPPFLAGS = @FP_CPPFLAGS@ FP_LDFLAGS = @FP_LDFLAGS@ FP_LIBS = @FP_LIBS@ GREP = @GREP@ HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ HDF5_LDFLAGS = @HDF5_LDFLAGS@ HDF5_LIBS = @HDF5_LIBS@ INFINIBAND_CFLAGS = @INFINIBAND_CFLAGS@ INFINIBAND_CPPFLAGS = @INFINIBAND_CPPFLAGS@ INFINIBAND_LDFLAGS = @INFINIBAND_LDFLAGS@ INFINIBAND_LIBS = @INFINIBAND_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUSTRE_CPPFLAGS = @LUSTRE_CPPFLAGS@ LUSTRE_LDFLAGS = @LUSTRE_LDFLAGS@ LUSTRE_LIBS = @LUSTRE_LIBS@ MACRODEFFLAG = @MACRODEFFLAG@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPICC = @MPICC@ MPICXX = @MPICXX@ MPIFC = @MPIFC@ MPILIBS = @MPILIBS@ MXML_CPPFLAGS = @MXML_CPPFLAGS@ MXML_LDFLAGS = @MXML_LDFLAGS@ MXML_LIBS = @MXML_LIBS@ NC4PAR_CPPFLAGS = @NC4PAR_CPPFLAGS@ NC4PAR_LDFLAGS = @NC4PAR_LDFLAGS@ NC4PAR_LIBS = @NC4PAR_LIBS@ NETCDF_CPPFLAGS = @NETCDF_CPPFLAGS@ NETCDF_LDFLAGS = @NETCDF_LDFLAGS@ NETCDF_LIBS = @NETCDF_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ NSSI_BUILDDIR = @NSSI_BUILDDIR@ NSSI_CFLAGS = @NSSI_CFLAGS@ NSSI_CPPFLAGS = @NSSI_CPPFLAGS@ NSSI_LDFLAGS = @NSSI_LDFLAGS@ NSSI_LIBS = @NSSI_LIBS@ NSSI_SERVER_LIBS = @NSSI_SERVER_LIBS@ NSSI_SRCDIR = @NSSI_SRCDIR@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PABLO_CPPFLAGS = @PABLO_CPPFLAGS@ PABLO_LDFLAGS = @PABLO_LDFLAGS@ PABLO_LIBS = @PABLO_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATHPROG = @PATHPROG@ PATH_SEPARATOR = @PATH_SEPARATOR@ PHDF5_CPPFLAGS = @PHDF5_CPPFLAGS@ PHDF5_LDFLAGS = @PHDF5_LDFLAGS@ PHDF5_LIBS = @PHDF5_LIBS@ PORTALS_CFLAGS = @PORTALS_CFLAGS@ PORTALS_CPPFLAGS = @PORTALS_CPPFLAGS@ PORTALS_HEADER = @PORTALS_HEADER@ PORTALS_LDFLAGS = @PORTALS_LDFLAGS@ PORTALS_LIBS = @PORTALS_LIBS@ PORTALS_NAL_HEADER = @PORTALS_NAL_HEADER@ PORTALS_RT_HEADER = @PORTALS_RT_HEADER@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SKEL_HAVE_ADIOS_TIMING = @SKEL_HAVE_ADIOS_TIMING@ SKEL_TIMING = @SKEL_TIMING@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(all_includes) -I$(top_builddir)/src \ -I$(top_builddir)/src/public AUTOMAKE_OPTIONS = no-dependencies bpls_SOURCES = bpls.c bpls_CPPFLAGS = $(ADIOSLIB_EXTRA_CPPFLAGS) $(ADIOSREADLIB_SEQ_CPPFLAGS) $(ADIOSREADLIB_SEQ_CFLAGS) bpls_LDFLAGS = $(ADIOSREADLIB_SEQ_LDFLAGS) bpls_LDADD = $(top_builddir)/src/libadiosread_nompi.a \ $(ADIOSREADLIB_SEQ_LDADD) EXTRA_DIST = bpls.h all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu utils/bpls/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu utils/bpls/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list bpls$(EXEEXT): $(bpls_OBJECTS) $(bpls_DEPENDENCIES) @rm -f bpls$(EXEEXT) $(bpls_LINK) $(bpls_OBJECTS) $(bpls_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< bpls-bpls.o: bpls.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bpls_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bpls-bpls.o `test -f 'bpls.c' || echo '$(srcdir)/'`bpls.c bpls-bpls.obj: bpls.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bpls_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bpls-bpls.obj `if test -f 'bpls.c'; then $(CYGPATH_W) 'bpls.c'; else $(CYGPATH_W) '$(srcdir)/bpls.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS #CC=$(MPICC) #CXX=$(MPICXX) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: adios-1.5.0/utils/bpls/CMakeLists.txt0000644000175000017500000000120012251360163020576 0ustar amckinstryamckinstryinclude_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/utils/bpls) include_directories(${PROJECT_SOURCE_DIR}/src/public) include_directories(${PROJECT_SOURCE_DIR}/src/core) link_directories(${PROJECT_BINARY_DIR}/utils/bpls) add_executable(bpls bpls.c) target_link_libraries(bpls adiosread_nompi ${ADIOSREADLIB_SEQ_LDADD}) set_target_properties(bpls PROPERTIES COMPILE_FLAGS "${ADIOSLIB_EXTRA_CPPFLAGS} ${ADIOSREADLIB_SEQ_CPPFLAGS} ${ADIOSREADLIB_SEQ_CFLAGS}") #install(FILES bpls.h DESTINATION ${PROJECT_BINARY_DIR}/utils/bpls) install(PROGRAMS ${CMAKE_BINARY_DIR}/utils/bpls/bpls DESTINATION ${bindir}) adios-1.5.0/utils/bpls/bpls.h0000644000175000017500000000304712251360163017162 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include #include "adios_read.h" /* definitions for bpls.c */ #define myfree(p) if (p) { free(p); p=NULL; } #ifndef HAVE_STRNDUP # define strndup(str,len) strdup(str) #endif typedef int bool; #define false 0 #define true 1 #define CUT_TO_BYTE(x) (x < 0 ? 0 : (x > 255 ? 255 : x)) #define MAX_DIMS 16 #define MAX_MASKS 10 #define MAX_BUFFERSIZE (10*1024*1024) // how to print one data item of an array //enum PrintDataType {STRING, INT, FLOAT, DOUBLE, COMPLEX}; void init_globals(void); void processDimSpecs(void); void parseDimSpec(char *str, int *dims); int compile_regexp_masks(void); void printSettings(void); int doList(const char *path); void mergeLists(int nV, char **listV, int nA, char **listA, char **mlist, bool *isVar); int readVar(ADIOS_FILE *fp, ADIOS_VARINFO *vi, const char *name, bool timed); int cmpstringp(const void *p1, const void *p2); bool grpMatchesMask(char *name); bool matchesAMask(char *name); int print_start(const char *fname); void print_slice_info(int ndim, uint64_t *dims, int timed, int nsteps, uint64_t *s, uint64_t *c); int print_data(void *data, int item, enum ADIOS_DATATYPES adiosvartype, bool allowformat); int print_dataset(void *data, enum ADIOS_DATATYPES adiosvartype, uint64_t *s, uint64_t *c, int tdims); void print_endline(void); void print_stop(void); adios-1.5.0/utils/bpls/bpls.c0000644000175000017500000016146412251360163017165 0ustar amckinstryamckinstry/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /* * List the content of a BP file. * * Author: Norbert Podhorszki, pnorbert@ornl.gov * **/ #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include #include #include #include #include #include #include #include #include #include // LONG_MAX #include // NAN #include // basename #include // regular expression matching #include // shell pattern matching #include "bpls.h" #include "adios_read.h" #include "adios_types.h" #ifdef DMALLOC #include "dmalloc.h" #endif // global variables // Values from the arguments or defaults char *outpath; // output files' starting path (can be extended with subdirs, names, indexes) char *varmask[MAX_MASKS]; // can have many -var masks (either shell patterns or extended regular expressions) char *grpmask; // list only groups matching the mask int nmasks; // number of masks specified char *vfile; // file name to bpls char *start; // dimension spec starting points char *count; // dimension spec counts char format[32]; // format string for one data element (e.g. %6.2f) bool formatgiven; // true if format string is provided as argument // Flags from arguments or defaults bool dump; // dump data not just list info bool output_xml; bool use_regexp; // use varmasks as regular expressions bool sortnames; // sort names before listing bool listattrs; // do list attributes too bool attrsonly; // do list attributes only bool readattrs; // also read all attributes and print bool longopt; // -l is turned on bool timestep; bool noindex; // do no print array indices with data bool printByteAsChar; // print 8 bit integer arrays as string bool plot; // dump histogram related information bool hidden_attrs; // show hidden attrs in BP file // other global variables char *prgname; /* argv[0] */ //long timefrom, timeto; int istart[MAX_DIMS], icount[MAX_DIMS], ndimsspecified=0; regex_t varregex[MAX_MASKS]; // compiled regular expressions of varmask regex_t grpregex; // compiled regular expressions of grpmask int ncols = 6; // how many values to print in one row (only for -p) int verbose = 0; FILE *outf; // file to print to or stdout char commentchar; struct option options[] = { {"help", no_argument, NULL, 'h'}, {"verbose", no_argument, NULL, 'v'}, {"dump", no_argument, NULL, 'd'}, {"group", no_argument, NULL, 'g'}, {"regexp", no_argument, NULL, 'e'}, {"plot", no_argument, NULL, 'p'}, {"output", required_argument, NULL, 'o'}, {"xml", no_argument, NULL, 'x'}, {"start", required_argument, NULL, 's'}, {"count", required_argument, NULL, 'c'}, {"noindex", no_argument, NULL, 'y'}, // {"sort", no_argument, NULL, 'r'}, {"timestep", no_argument, NULL, 't'}, {"attrs", no_argument, NULL, 'a'}, {"attrsonly", no_argument, NULL, 'A'}, {"long", no_argument, NULL, 'l'}, {"string", no_argument, NULL, 'S'}, {"columns", required_argument, NULL, 'n'}, {"format", required_argument, NULL, 'f'}, {"hidden_attrs", no_argument, &hidden_attrs, true}, // {"time", required_argument, NULL, 't'}, {NULL, 0, NULL, 0} }; static const char *optstring = "hvepyrtaAldSg:o:x:s:c:n:f:"; // help function void display_help() { //printf( "Usage: %s \n", prgname); printf("usage: bpls [OPTIONS] file [mask1 mask2 ...]\n" "\nList/dump content of a BP file. \n" "A mask can be a shell pattern like with 'ls' e.g. \"*/x?\".\n" "Variables with multiple timesteps are reported with an extra dimensions.\n" "The time dimension is the first dimension then.\n" "\n" " --long | -l Print values of all scalars and attributes and\n" " min/max values of arrays (no overhead to get them!)\n" " --attrs | -a List/match attributes too\n" " --attrsonly | -A List attributes only\n" /* " --sort | -r Sort names before listing\n" */ " --timestep | -t Print values of timestep elements\n" " --group | -g List/dump groups matching the mask only\n" " --dump | -d Dump matched variables/attributes\n" " To match attributes too, add option -a\n" " --regexp | -e Treat masks as extended regular expressions\n" " --plot | -p Dumps the histogram information that can be read by gnuplot\n" " --output | -o Print to a file instead of stdout\n" /* " --xml | -x # print as xml instead of ascii text\n" */ " --start | -s \"spec\" Offset indices in each dimension \n" " (default is 0 for all dimensions) \n" " <0 is handled as in python (-1 is last)\n" " --count | -c \"spec\" Number of elements in each dimension\n" " -1 denotes 'until end' of dimension\n" " (default is -1 for all dimensions)\n" " --noindex | -y Print data without array indices\n" " --string | -S Print 8bit integer arrays as strings\n" " --columns | -n \"cols\" Number of data elements per row to print\n" " --format | -f \"str\" Format string to use for one data item in print\n" " instead of the default. E.g. \"%%6.3f\"\n" " --hidden_attrs Show hidden ADIOS attributes in the file\n" /* " --time | -t N [M] # print data for timesteps N..M only (or only N)\n" " default is to print all available timesteps\n" */ "\n" " Examples for slicing:\n" " -s \"0,0,0\" -c \"1,99,1\": Print 100 elements (of the 2nd dimension).\n" " -s \"0,0\" -c \"1,-1\": Print the whole 2nd dimension however large it is.\n" " -s \"-1,-1\" -c \"1,1\": Print the very last element (of a 2D array)\n" "\n" "Help options\n" " --help | -h Print this help.\n" " --verbose | -v Print log about what this program is doing.\n" " Use multiple -v to increase logging level.\n" "Typical use: bpls -lavr \n" ); } /** Main */ int main( int argc, char *argv[] ) { int retval = 0; int i, timearg=false; long int tmp; init_globals(); ////prgname = strdup(argv[0]); /* other variables */ int c, last_c='_'; int last_opt = -1; /* Process the arguments */ while ((c = getopt_long(argc, argv, optstring, options, NULL)) != -1) { switch (c) { case 'a': listattrs=true; break; case 'A': listattrs=true; attrsonly=true; break; case 'c': count = strndup(optarg,256); break; case 'd': dump = true; break; case 'e': use_regexp = true; break; case 'f': snprintf(format, sizeof(format), "%s", optarg); formatgiven = true; break; case 'g': grpmask = strndup(optarg,256); break; case 'h': display_help(); return 0; case 'r': //sortnames = true; break; case 'l': longopt = true; readattrs = true; break; case 'n': errno = 0; tmp = strtol(optarg, (char **)NULL, 0); if (errno) { fprintf(stderr, "Error: could not convert --columns value: %s\n", optarg); return 1; } ncols=tmp; break; case 'o': outpath = strndup(optarg,256); break; case 'p': plot = true; break; case 's': start = strndup(optarg,256); break; case 'S': printByteAsChar = true; break; case 't': timestep = true; break; case 'x': output_xml = true; break; case 'y': noindex = true; break; case 'v': verbose++; break; /* case 't': errno = 0; tmp = strtol(optarg, (char **)NULL, 0); if (errno) { fprintf(stderr, "Error: could not convert --time value: %s\n", optarg); return 1; } timefrom = tmp; // 1st arg to --time lastopt = 't'; // maybe there is a a 2nd arg too break; */ //case 200: // hidden_attrs = true; // break; case 1: /* This means a field is unknown, or could be multiple arg or bad arg*/ /* if (last_c=='t') { // --time 2nd arg (or not if not a number) errno = 0; tmp = strtol(optarg, (char **)NULL, 0); if (!errno) { timeto = tmp; printf("Time set to %d - %d\n", timefrom, timeto); timearg=true; } } */ if (!timearg) { fprintf(stderr, "Unrecognized argument: %s\n", optarg); return 1; } break; default: printf("Processing default: %c\n", c); break; } /* end switch */ last_c = c; } /* end while */ /* Check if we have a file defined */ if (optind >= argc) { fprintf(stderr,"Missing file name\n"); return 1; } vfile = strdup(argv[optind++]); while (optind < argc) { varmask[nmasks] = strndup(argv[optind++],256); nmasks++; } /* Process dimension specifications */ if (start != NULL) parseDimSpec(start, istart); if (count != NULL) parseDimSpec(count, icount); // process the regular expressions if (use_regexp) { retval = compile_regexp_masks(); if (retval) return retval; } if (noindex) commentchar = ';'; else commentchar = ' '; if (verbose>1) printSettings(); retval = print_start(outpath); if (retval) return retval; /* Start working */ retval = doList(vfile); print_stop(); /* Free allocated memories */ //myfree(prgname); myfree(outpath); for (i=0; i