Skip to content
Snippets Groups Projects
Select Git revision
  • d7a8b6de4f34ee2addfffe82e6acf78c82b92e52
  • master default protected
  • 6.x protected
  • madysson
  • 5.x protected
  • asm
  • time-varying-information-set
  • 4.6 protected
  • dynare_minreal
  • dragonfly
  • various_fixes
  • 4.5 protected
  • clang+openmp
  • exo_steady_state
  • declare_vars_in_model_block
  • julia
  • error_msg_undeclared_model_vars
  • static_aux_vars
  • slice
  • aux_func
  • penalty
  • 6.4 protected
  • 6.3 protected
  • 6.2 protected
  • 6.1 protected
  • 6.0 protected
  • 6-beta2 protected
  • 6-beta1 protected
  • 5.5 protected
  • 5.4 protected
  • 5.3 protected
  • 5.2 protected
  • 5.1 protected
  • 5.0 protected
  • 5.0-rc1 protected
  • 4.7-beta3 protected
  • 4.7-beta2 protected
  • 4.7-beta1 protected
  • 4.6.4 protected
  • 4.6.3 protected
  • 4.6.2 protected
41 results

configure.ac

Blame
  • configure.ac 7.67 KiB
    dnl Process this file with autoconf to produce a configure script.
    
    dnl Copyright © 2009-2019 Dynare Team
    dnl
    dnl This file is part of Dynare.
    dnl
    dnl Dynare is free software: you can redistribute it and/or modify
    dnl it under the terms of the GNU General Public License as published by
    dnl the Free Software Foundation, either version 3 of the License, or
    dnl (at your option) any later version.
    dnl
    dnl Dynare is distributed in the hope that it will be useful,
    dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
    dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    dnl GNU General Public License for more details.
    dnl
    dnl You should have received a copy of the GNU General Public License
    dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
    
    AC_PREREQ([2.62])
    AC_INIT([dynare], [4.7-unstable])
    AC_CONFIG_SRCDIR([preprocessor/src/DynareMain.cc])
    AM_INIT_AUTOMAKE([1.11 -Wall -Wno-portability foreign no-dist-gzip dist-xz tar-pax])
    
    AC_CONFIG_SUBDIRS([preprocessor])
    
    AC_PROG_CC
    AC_PROG_CXX
    AX_CXX_COMPILE_STDCXX_17
    
    AC_CANONICAL_HOST
    case ${host_os} in
      *mingw32*)
        # On Windows, we want Dynare++ to be statically linked
        AM_LDFLAGS="-static"
        AC_SUBST([AM_LDFLAGS])
        ;;
      *cygwin*)
        AC_MSG_WARN([You are compiling for the Cygwin target. This means that the preprocessor will])
        AC_MSG_WARN([not run from MATLAB unless you add the Cygwin DLL to the path.])
        AC_MSG_WARN([This is probably not what you want. Consider using a MinGW cross-compiler.])
        if test -z "$F77"; then
          # On Cygwin 1.7, g77 comes has version 3, and is not compatible with default gcc/g++ which has version 4
          # And by default, the AC_PROG_F77 will pick up g77 if it is present (even if gfortran is also here)
          F77=gfortran
        fi
        ;;
    esac
    
    # Use C++ for testing headers
    AC_LANG([C++])
    
    AM_CXXFLAGS="-Wall -Wno-parentheses -Wold-style-cast"
    AC_SUBST([AM_CXXFLAGS])
    
    # If default 'ar' is not available, try to find one with a host prefix (see ticket #145)
    AC_CHECK_PROGS([AR], [ar ${host_alias}-ar])
    
    AC_PROG_RANLIB
    AM_PROG_AR
    
    AX_PROG_LN_S
    
    AC_PROG_MKDIR_P
    
    AX_CXX11_THREAD
    
    AM_PROG_LEX
    
    AC_CHECK_PROG([YACC], [bison], [bison])