Changeset 41 for sources/configure.ac
- Timestamp:
- Aug 24, 2009, 1:11:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/configure.ac
r39 r41 2 2 # Process this file with autoconf to produce a configure script. 3 3 4 AC_PREREQ(2.6 0)5 AC_INIT( SystemCASS, 1.0.0)4 AC_PREREQ(2.63) 5 AC_INIT([SystemCASS],[1.0.0]) 6 6 AC_CANONICAL_TARGET 7 7 … … 18 18 AC_PROG_MAKE_SET 19 19 AC_PROG_LIBTOOL 20 21 AC_CHECK_PROG(has_latex, latex, yes) 22 AC_CHECK_PROG(has_bibtex, bibtex, yes) 23 AC_CHECK_PROG(has_fig2dev, fig2dev, yes) 24 AC_CHECK_PROG(has_ps2pdf, ps2pdf, yes) 25 AC_CHECK_PROG(has_dvips, dvips, yes) 26 20 27 21 28 # User choices … … 39 46 # Also set -DNDEBUG when not debugging, this disables assert()s 40 47 AS_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"]) 42 49 43 50 case $target_os in … … 63 70 # Checks for libraries. 64 71 AS_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" 69 73 [AC_CHECK_HEADER([pat.h],, 70 74 [AC_MSG_ERROR([You asked for PAT trace format but no pat.h dnl … … 75 79 can be found. Try --with-pat=/search/dir/]), 76 80 [-lMut -lPpt -lPgn])] 77 ALLIANCE_CFLAGS="$CFLAGS"78 CFLAGS="$saved_CFLAGS"79 LIBS="$saved_LIBS"80 81 AC_SUBST(ALLIANCE_PATH, $withval) 81 82 AC_SUBST(ALLIANCE_CFLAGS) … … 91 92 AM_CONDITIONAL(HAS_SOCLIB, test x$with_soclib != xno) 92 93 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 95 AC_OPENMP([C]) 98 96 99 97 AM_CONDITIONAL(BUILD_DOCS,
Note: See TracChangeset
for help on using the changeset viewer.