summaryrefslogtreecommitdiff
path: root/lib/make/CCTK_Functions.sh
Commit message (Collapse)AuthorAge
* Use "rm -rf" instead of "rm" when removing temporary filesschnetter2008-01-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4454 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Indent the "Looking in" message as printed in CCTK_Search() by two spaces.tradke2003-08-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3386 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added function CCTK_WriteFiles which compares file against old version andgoodale2001-06-25
| | | | | | | | | | | | | | | | | only overwrites if the new version is genuinely new. Now CCTK_CreateFile saves a list of files it has created. Changed the stuff in configure.in to use CCTK_CreateFile to create the architecture and extras files and to always use CCTK_WriteLine to write to a file. Now if you reconfigure with precisely the same config options you don't end up rebuilding the whole configuration if you have MPI or HDF5. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2248 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Escape characters being written to file in casegoodale2000-12-12
| | | | | | | | | of metacharacters. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1927 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New functions to help checking for functions and libraries.goodale2000-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In CCTK_Functions.sh: CCTK_AddPrefix(prefix, list) CCTK_AddSuffix(suffix, list) CCTK_Wrap(prefix, suffix, list) which manipulate the list in the obvious way. In aclocal.m4: CCTK_CHECK_FUNCS CCTK_CHECK_LIB with same functionality as the equivalent AC ones, except they use LIBS and LIBDIRS as used in the rest of the cactus make system. CCTK_CHECK_LIB_FUNC which checks for a function in a particular library, and defined both HAVE_LIB[LIB] and HAVE_FUNC. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1881 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Small bug fix evaluating function argumentstradke1999-07-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@836 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Another change the the sh function declarations. Hopefully thisgoodale1999-07-21
| | | | | | | | | time all architectures will be happy 8-) Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@757 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed a shell syntax error.goodale1999-07-21
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@753 17b73243-c579-4c4c-a9d2-2d5706c11dac
* I've re-done the MPI stuff to make it more flexible. It is now easy to add ↵goodale1999-07-21
other extra packages, e.g. PVM, without having to rerun autoconf. Basically 'configure' now looks in a directory called 'extras', and for every subdirectory of that is checks for the presence of an executable file call 'setup.sh' which can do configuration stuff. 'setup.sh' should put extra definitions in a file called 'cctk_extradefs.h' and extra make stuff in 'make.extra.defn'. To help this process there is a function CCTK_WriteLine which takes two arguments, the name of the file, and what to write. E.g. CCTK_WriteLine cctk_extradefs.h "#define MPI" and CCTK_WriteLine make.extra.defn 'LIBS += $(MPI_LIBS)' with the usual shell expansions happening. To help search for files and things there is function CCTK_Search which takes four arguments - the name of a variable - a list of names - a filename - an (optional) basename E.g. CCTK_Search MPI_DEVICE "ch_shmem ch_p4 globus" lib $MPICH_DIR/build would look for directories called ch_shmem or ch_p4 or globus containing a file or directory called 'lib' and all this would be done in the directory $MPICH_DIR/build. On return from the function the value of MPI_DEVICE would be ch_shmem, ch_p4, globus, or empty depending on which one was found first. So, to add an optional extra package: - add a directory with its name under lib/make/extras - in this directory add an executable shell file called setup.sh - in this file check if the extra thing is enabled, check for any configuration things and add them to cctk_extradefs.h or make.extra.defn as necessary. Note you will need to do a cvs update -d to get the new directories I've just added. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@752 17b73243-c579-4c4c-a9d2-2d5706c11dac