configure.ac 2.9 KB
Newer Older
Mu Wang's avatar
Mu Wang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/************************************************************************************
    Copyright (C) 2005-2008 Assefaw H. Gebremedhin, Arijit Tarafdar, Duc Nguyen,
    Alex Pothen

    This file is part of ColPack.

    ColPack is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.GraphColoring::GraphColoring()

    ColPack 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 Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with ColPack.  If not, see <http://www.gnu.org/licenses/>.
************************************************************************************/

define([COLPACK_VER], [1])
define([COLPACK_SUB], [0])
23
define([COLPACK_LVL], [10])
Mu Wang's avatar
Mu Wang committed
24 25


26 27 28 29
AC_INIT([ColPack],[COLPACK_VER.COLPACK_SUB.COLPACK_LVL],[assefaw@eecs.wsu.edu],[ColPack],[http://cscapes.cs.purdue.edu/coloringpage/])
AC_PREREQ([2.57])
AC_CONFIG_SRCDIR([Main/ColPackHeaders.h])
AC_CONFIG_MACRO_DIR([m4])
Mu Wang's avatar
Mu Wang committed
30
AM_INIT_AUTOMAKE([foreign 1.10 no-define subdir-objects -Wall])
31
AM_SILENT_RULES([yes])
Mu Wang's avatar
Mu Wang committed
32 33
AC_CONFIG_HEADERS(config.h)
AC_PROG_CXX
34
AX_CXXFLAGS_WARN_ALL
Mu Wang's avatar
Mu Wang committed
35
AC_CONFIG_FILES(Makefile)
36 37
AM_PROG_AR
LT_INIT
Mu Wang's avatar
Mu Wang committed
38

39
AC_MSG_CHECKING([Build examples])
Mu Wang's avatar
Mu Wang committed
40
AC_ARG_ENABLE([examples],
41
     [AS_HELP_STRING([--enable-examples],[Build examples])],
42 43 44 45 46 47 48
     [AS_CASE([${enableval}],
       [yes],[examples=true],
       [no],[examples=false],
       [AC_MSG_ERROR([bad value ${enableval} for --enable-examples])])],
     [examples=false])
AM_CONDITIONAL([EXAMPLES], [test x$examples = xtrue])
AC_MSG_RESULT([$examples])
Mu Wang's avatar
Mu Wang committed
49

50
AC_MSG_CHECKING([OpenMP])
Mu Wang's avatar
Mu Wang committed
51
AC_ARG_ENABLE([openmp],
52
     [AS_HELP_STRING([--disable-openmp],[Disable OpenMP])],
53 54 55 56 57 58 59
     [AS_CASE([${enableval}],
       [yes],[openmp=true],
       [no],[openmp=false],
       [AC_MSG_ERROR([bad value ${enableval} for --disable-openmp])])],
     [openmp=true])
AM_CONDITIONAL([ENABLE_OPENMP], [test x$openmp = xtrue])
AC_MSG_RESULT([$openmp])
Mu Wang's avatar
Mu Wang committed
60 61 62 63

AC_OUTPUT

# echo configuration
64 65 66 67 68 69 70 71 72 73 74 75 76 77
AS_ECHO(["-----------------------------------------------------------------------------"])
AS_ECHO(["Configuration:"])
AS_ECHO([""])
AS_ECHO(["  C compiler:                       ${CC}"])
AS_ECHO(["  C++ compiler:                     ${CXX}"])
AS_ECHO(["  Linker:                           ${LD}"])
AS_ECHO(["  Source code location:             `pwd`"])
AS_ECHO(["  Install path:                     ${prefix}"])
AS_ECHO([""])
AS_ECHO(["  CFLAGS:                           ${CFLAGS}"])
AS_ECHO(["  CXXFLAGS:                         ${CXXFLAGS}"])
AS_ECHO([""])
AS_ECHO(["  Use OpenMP:                       ${openmp}"])
AS_ECHO(["  Build examples:                   ${examples}"])