[Osi] Missing macros in Osi's source tree.
Christophe-Marie Duquesne
chm.duquesne at gmail.com
Tue Nov 2 20:00:52 EDT 2010
Hi,
In order to work on a patch, I am looking at the way Osi is built, and
there are m4 macros I can't find in the source tree. Trying to use
autoreconf in ./Osi/src, here is what I get:
> autoreconf
configure.ac:41: error: possibly undefined macro: AC_COIN_PROJECTDIR_INIT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:44: error: possibly undefined macro: AC_COIN_DEBUG_COMPILE
configure.ac:47: error: possibly undefined macro: AC_COIN_PROG_CXX
configure.ac:50: error: possibly undefined macro: AC_COIN_INIT_AUTO_TOOLS
configure.ac:56: error: possibly undefined macro: AC_COIN_CHECK_PACKAGE
configure.ac:70: error: possibly undefined macro: AC_COIN_CHECK_USER_LIBRARY
configure.ac:138: error: possibly undefined macro: AC_COIN_DOXYGEN
configure.ac:196: error: possibly undefined macro: AC_COIN_FINALIZE
autoreconf: /usr/bin/autoconf failed with exit status: 1
For example, I looked for AC_COIN_CHECK_USER_LIBRARY, because I was
curious about what it was supposed to do:
> grep -R AC_COIN_CHECK_USER_LIBRARY Osi | grep -v svn
Osi/configure.ac:AC_COIN_CHECK_USER_LIBRARY([Cplex], [CPX],[cplex.h],
[CPXgetstat])
Osi/configure.ac:AC_COIN_CHECK_USER_LIBRARY([Mosek], [MSK],[mosek.h],
[MSK_makeenv])
Osi/configure.ac:AC_COIN_CHECK_USER_LIBRARY([Xpress],[XPR],[xprs.h],
[XPRSinit])
Osi/configure.ac:AC_COIN_CHECK_USER_LIBRARY([Gurobi],[GRB],[gurobi_c.h],[GRBloadenv])
Osi/configure.ac:AC_COIN_CHECK_USER_LIBRARY([Soplex],[SPX],[soplex.h])
Osi/configure:AC_COIN_CHECK_USER_LIBRARY(Cplex, CPX,cplex.h, CPXgetstat)
Osi/configure:AC_COIN_CHECK_USER_LIBRARY(Mosek, MSK,mosek.h, MSK_makeenv)
Osi/configure:AC_COIN_CHECK_USER_LIBRARY(Xpress,XPR,xprs.h, XPRSinit)
Osi/configure:AC_COIN_CHECK_USER_LIBRARY(Gurobi,GRB,gurobi_c.h,GRBloadenv)
Osi/configure:AC_COIN_CHECK_USER_LIBRARY(Soplex,SPX,soplex.h)
So on my source tree, it is only in the configure and the
configure.ac. Nothing in BuildTools.
The Osi I'm working on was checkouted from
https://projects.coin-or.org/svn/Osi/trunk/
Where do I get these macros and is there a magic script that handles
all the autoreconf stuff (Usually there is an autogen.sh or a
bootstrap)?
Cheers,
Christophe-Marie
P.S.: While the configure scripts that are versioned work fine, I
don't think it is a good practice to keep them in Osi's repository as
this prevents the programmer to think to re-generate them often...
More information about the Osi
mailing list