1.1 --- a/configure.ac Mon Jul 16 16:21:40 2018 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,157 +0,0 @@
1.4 -dnl Process this file with autoconf to produce a configure script.
1.5 -
1.6 -dnl Version information.
1.7 -m4_define([lemon_version_number],
1.8 - [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
1.9 -dnl m4_define([lemon_version_number], [])
1.10 -m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))])
1.11 -m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i 2> /dev/null]))])
1.12 -m4_define([lemon_version], [ifelse(lemon_version_number(),
1.13 - [],
1.14 - [ifelse(lemon_hg_revision(),
1.15 - [],
1.16 - [hg-tip],
1.17 - [lemon_hg_path().lemon_hg_revision()])],
1.18 - [lemon_version_number()])])
1.19 -
1.20 -AC_PREREQ([2.59])
1.21 -AC_INIT([LEMON], [lemon_version()], [lemon-user@lemon.cs.elte.hu], [lemon])
1.22 -AC_CONFIG_AUX_DIR([build-aux])
1.23 -AC_CONFIG_MACRO_DIR([m4])
1.24 -AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects nostdinc])
1.25 -AC_CONFIG_SRCDIR([lemon/list_graph.h])
1.26 -AC_CONFIG_HEADERS([config.h lemon/config.h])
1.27 -
1.28 -AC_DEFINE([LEMON_VERSION], [lemon_version()], [The version string])
1.29 -
1.30 -dnl Do compilation tests using the C++ compiler.
1.31 -AC_LANG([C++])
1.32 -
1.33 -dnl Check the existence of long long type.
1.34 -AC_CHECK_TYPE(long long, [long_long_found=yes], [long_long_found=no])
1.35 -if test x"$long_long_found" = x"yes"; then
1.36 - AC_DEFINE([LEMON_HAVE_LONG_LONG], [1], [Define to 1 if you have long long.])
1.37 -fi
1.38 -
1.39 -dnl Checks for programs.
1.40 -AC_PROG_CXX
1.41 -AC_PROG_CXXCPP
1.42 -AC_PROG_INSTALL
1.43 -AC_DISABLE_SHARED
1.44 -AC_PROG_LIBTOOL
1.45 -
1.46 -AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
1.47 -AC_CHECK_PROG([python_found],[python],[yes],[no])
1.48 -AC_CHECK_PROG([gs_found],[gs],[yes],[no])
1.49 -
1.50 -dnl Detect Intel compiler.
1.51 -AC_MSG_CHECKING([whether we are using the Intel C++ compiler])
1.52 -AC_COMPILE_IFELSE([#ifndef __INTEL_COMPILER
1.53 -choke me
1.54 -#endif], [ICC=[yes]], [ICC=[no]])
1.55 -if test x"$ICC" = x"yes"; then
1.56 - AC_MSG_RESULT([yes])
1.57 -else
1.58 - AC_MSG_RESULT([no])
1.59 -fi
1.60 -
1.61 -dnl Set custom compiler flags when using g++.
1.62 -if test "$GXX" = yes -a "$ICC" = no; then
1.63 - WARNINGCXXFLAGS="-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 -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"
1.64 -fi
1.65 -AC_SUBST([WARNINGCXXFLAGS])
1.66 -
1.67 -dnl Checks for libraries.
1.68 -LX_CHECK_GLPK
1.69 -LX_CHECK_CPLEX
1.70 -LX_CHECK_SOPLEX
1.71 -LX_CHECK_COIN
1.72 -
1.73 -AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"])
1.74 -AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"])
1.75 -
1.76 -dnl Disable/enable building the binary tools.
1.77 -AC_ARG_ENABLE([tools],
1.78 -AS_HELP_STRING([--enable-tools], [build additional tools @<:@default@:>@])
1.79 -AS_HELP_STRING([--disable-tools], [do not build additional tools]),
1.80 - [], [enable_tools=yes])
1.81 -AC_MSG_CHECKING([whether to build the additional tools])
1.82 -if test x"$enable_tools" != x"no"; then
1.83 - AC_MSG_RESULT([yes])
1.84 -else
1.85 - AC_MSG_RESULT([no])
1.86 -fi
1.87 -AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"])
1.88 -
1.89 -dnl Support for running test cases using valgrind.
1.90 -use_valgrind=no
1.91 -AC_ARG_ENABLE([valgrind],
1.92 -AS_HELP_STRING([--enable-valgrind], [use valgrind when running tests]),
1.93 - [use_valgrind=yes])
1.94 -
1.95 -if [[ "$use_valgrind" = "yes" ]]; then
1.96 - AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
1.97 -
1.98 - if [[ "$HAVE_VALGRIND" = "no" ]]; then
1.99 - AC_MSG_ERROR([Valgrind not found in PATH.])
1.100 - fi
1.101 -fi
1.102 -AM_CONDITIONAL(USE_VALGRIND, [test "$use_valgrind" = "yes"])
1.103 -
1.104 -dnl Checks for header files.
1.105 -AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
1.106 -
1.107 -dnl Checks for typedefs, structures, and compiler characteristics.
1.108 -AC_C_CONST
1.109 -AC_C_INLINE
1.110 -AC_TYPE_SIZE_T
1.111 -AC_HEADER_TIME
1.112 -AC_STRUCT_TM
1.113 -
1.114 -dnl Checks for library functions.
1.115 -AC_HEADER_STDC
1.116 -AC_CHECK_FUNCS(gettimeofday times ctime_r)
1.117 -
1.118 -dnl Add dependencies on files generated by configure.
1.119 -AC_SUBST([CONFIG_STATUS_DEPENDENCIES],
1.120 - ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/doc/mainpage.dox.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in'])
1.121 -
1.122 -AC_CONFIG_FILES([
1.123 -Makefile
1.124 -demo/Makefile
1.125 -cmake/version.cmake
1.126 -doc/Doxyfile
1.127 -doc/mainpage.dox
1.128 -lemon/lemon.pc
1.129 -])
1.130 -
1.131 -AC_OUTPUT
1.132 -
1.133 -echo
1.134 -echo '****************************** SUMMARY ******************************'
1.135 -echo
1.136 -echo Package version............... : $PACKAGE-$VERSION
1.137 -echo
1.138 -echo C++ compiler.................. : $CXX
1.139 -echo C++ compiles flags............ : $WARNINGCXXFLAGS $CXXFLAGS
1.140 -echo
1.141 -echo Compiler supports long long... : $long_long_found
1.142 -echo
1.143 -echo GLPK support.................. : $lx_glpk_found
1.144 -echo CPLEX support................. : $lx_cplex_found
1.145 -echo SOPLEX support................ : $lx_soplex_found
1.146 -echo CLP support................... : $lx_clp_found
1.147 -echo CBC support................... : $lx_cbc_found
1.148 -echo
1.149 -echo Build additional tools........ : $enable_tools
1.150 -echo Use valgrind for tests........ : $use_valgrind
1.151 -echo
1.152 -echo The packace will be installed in
1.153 -echo -n ' '
1.154 -echo $prefix.
1.155 -echo
1.156 -echo '*********************************************************************'
1.157 -
1.158 -echo
1.159 -echo Configure complete, now type \'make\' and then \'make install\'.
1.160 -echo