AC_PROG_CC和包含空格的路径

时间:2014-01-02 07:18:38

标签: windows gcc autoconf

我的configure.ac包含以下片段:

AC_ARG_WITH([gcc],
            [C compiler],
            [CC="$withval"])
AC_PROG_CC

但是,当我尝试通过--with-gcc传递包含空格的路径时,出现以下错误:

configure:2377: checking for gcc
configure:2404: result: "c:\Program Files (x86)\Haskell Platform\2013.2.0.0\mingw\bin\gcc.exe"
configure:2633: checking for C compiler version
configure:2642: "c:\Program Files (x86)\Haskell Platform\2013.2.0.0\mingw\bin\gcc.exe" --version >&5
./configure: line 2644: "c:\Program: No such file or directory
configure:2653: $? = 127

AC_PROG_CC设置为包含空格的路径时,是否有某种方法可以使CC不死?

0 个答案:

没有答案