我的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
不死?