configure.ac
changeset 305 069f27927ba9
parent 273 5d12d5c80ac9
child 310 a9e8f310507f
equal deleted inserted replaced
18:4e09690e8e54 19:88e1c43ea695
    19 AC_CONFIG_SRCDIR([lemon/list_graph.h])
    19 AC_CONFIG_SRCDIR([lemon/list_graph.h])
    20 AC_CONFIG_HEADERS([config.h lemon/config.h])
    20 AC_CONFIG_HEADERS([config.h lemon/config.h])
    21 
    21 
    22 lx_cmdline_cxxflags_set=${CXXFLAGS+set}
    22 lx_cmdline_cxxflags_set=${CXXFLAGS+set}
    23 
    23 
       
    24 dnl Do compilation tests using the C++ compiler.
       
    25 AC_LANG([C++])
       
    26 
    24 dnl Checks for programs.
    27 dnl Checks for programs.
    25 AC_PROG_CXX
    28 AC_PROG_CXX
    26 AC_PROG_CXXCPP
    29 AC_PROG_CXXCPP
    27 AC_PROG_INSTALL
    30 AC_PROG_INSTALL
    28 AC_DISABLE_SHARED
    31 AC_DISABLE_SHARED
    29 AC_PROG_LIBTOOL
    32 AC_PROG_LIBTOOL
    30 
    33 
    31 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
    34 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
    32 AC_CHECK_PROG([gs_found],[gs],[yes],[no])
    35 AC_CHECK_PROG([gs_found],[gs],[yes],[no])
    33 
    36 
       
    37 dnl Detect Intel compiler.
       
    38 AC_MSG_CHECKING([whether we are using the Intel C++ compiler])
       
    39 AC_COMPILE_IFELSE([#ifndef __INTEL_COMPILER
       
    40 choke me
       
    41 #endif], [ICC=[yes]], [ICC=[no]])
       
    42 if test x"$ICC" = x"yes"; then
       
    43   AC_MSG_RESULT([yes])
       
    44 else
       
    45   AC_MSG_RESULT([no])
       
    46 fi
       
    47 
    34 dnl Set custom compiler flags when using g++.
    48 dnl Set custom compiler flags when using g++.
    35 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
    49 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes -a "$ICC" = no; then
    36   CXXFLAGS="$CXXFLAGS -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"
    50   CXXFLAGS="$CXXFLAGS -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"
    37 fi
    51 fi
    38 
    52 
    39 dnl Checks for libraries.
    53 dnl Checks for libraries.
    40 #LX_CHECK_GLPK
    54 #LX_CHECK_GLPK