我在configure.ac中遇到以下问题:
我想添加一个库搜索路径,因为我必须使用的库是在一些疯狂的文件夹中.我的想法是选择这样做:
AC_ARG_WITH([cplex-lib-path],
[AS_HELP_STRING([--with-cplex-libs], [location of the CPLEX library])],
[CPLEX_LIBS="-L$withval --lcplex"],
[])
Run Code Online (Sandbox Code Playgroud)
如果有人指定了库路径,我当然希望看看是否可以找到库:
AC_CHECK_LIB([cplex], [CPXcreateprob], [],
[
AC_MSG_ERROR([Could not find CPLEX library])
])
Run Code Online (Sandbox Code Playgroud)
但是,我想将CPLEX_LIBS添加到AC_CHECK_LIB的库搜索路径.这有点可能吗?
autotools ×1