Changeset 41 for sources/configure.ac


Ignore:
Timestamp:
Aug 24, 2009, 1:11:00 PM (15 years ago)
Author:
buchmann
Message:

Add:

  • openmp support:
    • add flags to test_regression makefile
    • configure.ac now checks for openmp
    • Makefile.am add openmp flags
    • a new testbench to check benefits due to openmp
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/configure.ac

    r39 r41  
    22# Process this file with autoconf to produce a configure script.
    33
    4 AC_PREREQ(2.60)
    5 AC_INIT(SystemCASS, 1.0.0)
     4AC_PREREQ(2.63)
     5AC_INIT([SystemCASS],[1.0.0])
    66AC_CANONICAL_TARGET
    77
     
    1818AC_PROG_MAKE_SET
    1919AC_PROG_LIBTOOL
     20
     21AC_CHECK_PROG(has_latex, latex, yes)
     22AC_CHECK_PROG(has_bibtex, bibtex, yes)
     23AC_CHECK_PROG(has_fig2dev, fig2dev, yes)
     24AC_CHECK_PROG(has_ps2pdf, ps2pdf, yes)
     25AC_CHECK_PROG(has_dvips, dvips, yes)
     26
    2027
    2128# User choices
     
    3946# Also set -DNDEBUG when not debugging, this disables assert()s
    4047AS_IF([test "x$do_debug"  = "xyes"], [CXXFLAGS="-g"         ],
    41       [test "x$do_debug" != "xyes"], [CXXFLAGS="-O2 -NDEBUG"])
     48      [test "x$do_debug" != "xyes"], [CXXFLAGS="-O2 -DNDEBUG"])
    4249
    4350case $target_os in
     
    6370# Checks for libraries.
    6471AS_IF([test "x$with_pat" != "xno"],
    65           saved_CFLAGS="$CFLAGS"
    66           saved_LIBS="$LIBS"
    67           LIBS="$LIBS -L$with_pat/lib"
    68           CFLAGS="$CFLAGS -I$with_pat/include"
     72          ALLIANCE_CFLAGS="-I$with_pat/include"
    6973          [AC_CHECK_HEADER([pat.h],,
    7074                   [AC_MSG_ERROR([You asked for PAT trace format but no pat.h dnl
     
    7579can be found. Try --with-pat=/search/dir/]),
    7680                   [-lMut -lPpt -lPgn])]
    77           ALLIANCE_CFLAGS="$CFLAGS"
    78           CFLAGS="$saved_CFLAGS"
    79           LIBS="$saved_LIBS"
    8081          AC_SUBST(ALLIANCE_PATH, $withval)
    8182          AC_SUBST(ALLIANCE_CFLAGS)
     
    9192AM_CONDITIONAL(HAS_SOCLIB, test x$with_soclib != xno)
    9293
    93 AC_CHECK_PROG(has_latex, latex, yes)
    94 AC_CHECK_PROG(has_bibtex, bibtex, yes)
    95 AC_CHECK_PROG(has_fig2dev, fig2dev, yes)
    96 AC_CHECK_PROG(has_ps2pdf, ps2pdf, yes)
    97 AC_CHECK_PROG(has_dvips, dvips, yes)
     94# OpenMP
     95AC_OPENMP([C])
    9896
    9997AM_CONDITIONAL(BUILD_DOCS,
Note: See TracChangeset for help on using the changeset viewer.