~ubuntu-branches/ubuntu/utopic/nwchem/utopic

« back to all changes in this revision

Viewing changes to src/tools/ga-5-2/comex/m4/comex_arg_parse.m4

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# COMEX_ARG_PARSE(ARG, VAR_LIBS, VAR_LDFLAGS, VAR_CPPFLAGS)
 
2
# ------------------------------------------------------
 
3
# Parse whitespace-separated ARG into appropriate LIBS, LDFLAGS, and
 
4
# CPPFLAGS variables.
 
5
# some examples (not exhaustive):
 
6
# $arg="/apps/mpi/hp/2.03.01.00/include/64 /apps/mpi/hp/2.03.01.00/lib/linux_amd64 -lmtmpi"
 
7
# $arg="/usr/local"
 
8
# $arg="-I/usr/local/include -L/usr/local/lib -lsomelib"
 
9
# $arg="/usr/lib/mpich-shmem -lfmpich-shmem -lmpich-shmem -lpmpich-shmem"
 
10
# $arg="/usr/lib/mpich-shmem/include /usr/lib/mpich-shmem/lib -lfmpich-shmem -lmpich-shmem -lpmpich-shmem"
 
11
# $arg="/usr/local/lib64 /usr/local/include64"
 
12
#
 
13
# Special Cases:
 
14
# -mkl[=arg]    Intel compiler with special -mkl flag for headers and linking
 
15
AC_DEFUN([COMEX_ARG_PARSE],
 
16
[AC_COMPUTE_INT([comex_arg_parse_sizeof_voidp], [(long int) (sizeof (void*))])
 
17
for arg in $$1 ; do
 
18
    AS_CASE([$arg],
 
19
        [yes],          [],
 
20
        [no],           [],
 
21
        [-l*],          [$2="$$2 $arg"],
 
22
        [-L*],          [$3="$$3 $arg"],
 
23
        [-WL*],         [$3="$$3 $arg"],
 
24
        [-Wl*],         [$3="$$3 $arg"],
 
25
        [-I*],          [$4="$$4 $arg"],
 
26
        [*.a],          [$2="$$2 $arg"],
 
27
        [*.so],         [$2="$$2 $arg"],
 
28
        [*lib],         [AS_IF([test -d $arg], [$3="$$3 -L$arg"],
 
29
                            [AC_MSG_WARN([$arg of $1 not parsed])])],
 
30
        [*lib/],        [AS_IF([test -d $arg], [$3="$$3 -L$arg"],
 
31
                            [AC_MSG_WARN([$arg of $1 not parsed])])],
 
32
        [*lib64],       [AS_IF([test -d $arg], [$3="$$3 -L$arg"],
 
33
                            [AC_MSG_WARN([$arg of $1 not parsed])])],
 
34
        [*lib64/],      [AS_IF([test -d $arg], [$3="$$3 -L$arg"],
 
35
                            [AC_MSG_WARN([$arg of $1 not parsed])])],
 
36
        [*include],     [AS_IF([test -d $arg], [$4="$$4 -I$arg"],
 
37
                            [AC_MSG_WARN([$arg of $1 not parsed])])],
 
38
        [*include/],    [AS_IF([test -d $arg], [$4="$$4 -I$arg"],
 
39
                            [AC_MSG_WARN([$arg of $1 not parsed])])],
 
40
        [*include64],   [AS_IF([test -d $arg], [$4="$$4 -I$arg"],
 
41
                            [AC_MSG_WARN([$arg of $1 not parsed])])],
 
42
        [*include64/],  [AS_IF([test -d $arg], [$4="$$4 -I$arg"],
 
43
                            [AC_MSG_WARN([$arg of $1 not parsed])])],
 
44
        [-mkl*],        [$2="$$2 $arg"],
 
45
        [comex_arg_parse_ok=no])
 
46
# $arg didn't fit the most common cases
 
47
# check for subdirectories e.g. lib,include
 
48
    AS_IF([test "x$comex_arg_parse_ok" = xno],
 
49
        [AS_IF([test "x$comex_arg_parse_sizeof_voidp" = x8],
 
50
            [AS_IF([test -d $arg/lib64],    [$3="$$3 -L$arg/lib64"; comex_arg_parse_ok=yes],
 
51
                   [test -d $arg/lib],      [$3="$$3 -L$arg/lib"; comex_arg_parse_ok=yes])
 
52
             AS_IF([test -d $arg/include64],[$4="$$4 -I$arg/include64"; comex_arg_parse_ok=yes],
 
53
                   [test -d $arg/include],  [$4="$$4 -I$arg/include"; comex_arg_parse_ok=yes])],
 
54
            [AS_IF([test -d $arg/lib],      [$3="$$3 -L$arg/lib"; comex_arg_parse_ok=yes])
 
55
             AS_IF([test -d $arg/include],  [$4="$$4 -I$arg/include"; comex_arg_parse_ok=yes])])])
 
56
# $arg still unknown, look for "lib" and "include" anywhere...
 
57
    AS_IF([test "x$comex_arg_parse_ok" = xno],
 
58
        [AS_CASE([$arg],
 
59
            [*lib*],    [AS_IF([test -d $arg], [$3="$$3 -L$arg"; comex_arg_parse_ok=yes])],
 
60
            [*include*],[AS_IF([test -d $arg], [$4="$$4 -I$arg"; comex_arg_parse_ok=yes])])])
 
61
# warn user that $arg fell through
 
62
     AS_IF([test "x$comex_arg_parse_ok" = xno],
 
63
        [AC_MSG_WARN([$arg of $1 not parsed])])
 
64
done])dnl