开发者

How can I escape paths with spaces inside AC_CONFIG_SRCDIR

开发者 https://www.devze.com 2023-01-01 16:08 出处:网络
I need to include some paths in AC_CONFIG_SRCDIR which contain spaces. How should I escape them? For example, if I have \"some开发者_JAVA百科 file.in\", how should I declare it in:

I need to include some paths in AC_CONFIG_SRCDIR which contain spaces. How should I escape them? For example, if I have "some开发者_JAVA百科 file.in", how should I declare it in:

AC_CONFIG_SRCDIR[some file]


In autoconf 2.59 and earlier, you cannot have special characters in the path name of the unique file specified in AC_CONFIG_SRCDIR. In autoconf 2.60 and later, this should work:

AC_CONFIG_SRCDIR([some file])


AC_CONFIG_SRCDIR([some file]) works fine - make sure you really use the newer autotools, most distributions allow to install both autoconf-2.59 and autoconf-2.6x in parallel and have a wrapper around it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号