Commit acb55602 authored by prudhomm's avatar prudhomm
Browse files

use LIFEV_CHECK_COMPILERS

parent 8f015645
...@@ -35,12 +35,8 @@ AC_CANONICAL_SYSTEM ...@@ -35,12 +35,8 @@ AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([foreign check-news 1.7.8 dist-bzip2]) AM_INIT_AUTOMAKE([foreign check-news 1.7.8 dist-bzip2])
AM_CONFIG_HEADER(lifeconfig.h) AM_CONFIG_HEADER(lifeconfig.h)
# checks for a C compiler LIFEV_CHECK_COMPILERS
AC_PROG_CC( gcc-3.3 gcc-3.2 gcc )
AC_PROG_CC_C_O
AC_PROG_CXX( g++-3.3 g++-3.2 g++ )
AC_PROG_F77( g77-3.3 g77-3.2 g77 )
AC_PROG_F77_C_O
# no need for static libs # no need for static libs
AC_DISABLE_STATIC AC_DISABLE_STATIC
...@@ -54,45 +50,6 @@ AC_CHECK_PROG(DOXYGEN, doxygen, [doxygen], [no-doxygen] ) ...@@ -54,45 +50,6 @@ AC_CHECK_PROG(DOXYGEN, doxygen, [doxygen], [no-doxygen] )
AC_CHECK_PROG(LIFE_HAS_DOT, dot, [yes] ) AC_CHECK_PROG(LIFE_HAS_DOT, dot, [yes] )
dnl Check debugging mode for compilation.
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],[enables debugging mode (default=no)]),
[
if test $enableval = "no";
then ac_use_debug_code="no"
else ac_use_debug_code="yes"
fi
], [ac_use_debug_code="no"])
AC_ARG_ENABLE(opt,
AC_HELP_STRING([--enable-opt],[enables optimization mode (default=no)]),
[
if test $enableval = "no";
then ac_use_opt_code="no"
else ac_use_opt_code="yes"
fi
], [ac_use_opt_code="no"])
if test $ac_use_debug_code = "yes" -a $ac_use_opt_code = "yes"
then
AC_MSG_ERROR(Cannot use --enable-debug and --enable-opt at the same time!)
fi
#CXXFLAGS="-Wall -Wno-long-long -ansi -pedantic"
#CXXFLAGS="-Wall -Wno-long-long -pedantic"
CXXFLAGS="-Wall -Wno-long-long"
if test $ac_use_debug_code = "yes"; then
CPPFLAGS="-DLIFEV_CHECK_ALL ${CPPFLAGS}"
CXXFLAGS="-g3 -O0 ${CXXFLAGS}"
CFLAGS="-g3 -O0 ${CFLAGS}"
else
if test $ac_use_opt_code = "yes"; then
CXXFLAGS="-O2 -funroll-all-loops -fargument-noalias-global -fno-gcse ${CXXFLAGS}"
CFLAGS="-O2 -funroll-all-loops -fargument-noalias-global -fno-gcse ${CFLAGS}"
CPPFLAGS="-DNDEBUG ${CPPFLAGS}"
fi
fi
AC_CHECK_BOOST AC_CHECK_BOOST
AC_CHECK_BOOST_GRAPH AC_CHECK_BOOST_GRAPH
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment