2

私は以下を持っていますconfigure.ac

AC_PREREQ([2.69])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AC_PROG_CXX
AC_OUTPUT

そして、次の行を含む configure を生成します:( grep core configure)

1572:  rm -f core *.core core.conftest.* &&
2143:rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210:rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212:rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214:rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

楽しみは、という名前のフォルダーがあるという事実から始まりますcore。だから./configure利回り

checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... rm: cannot remove 'core': Is a directory
yes
checking whether g++ accepts -g... rm: cannot remove 'core': Is a directory
yes
configure: creating ./config.status
rm: cannot remove 'core': Is a directory

私はグーグルで、コンパイラがクラッシュした場合に行われることを発見しました。しかし、このチェックを無効にする良い方法はありますか(autoconfテストでコアダンプできるコンパイラについては本当に気にしません)。フォルダの名前を変更することは、私がやりたいことではありません。

4

2 に答える 2

2

しかし、このチェックを無効にする良い方法はありますか

いいえ、ありません。

フォルダの名前を変更することは、私がやりたいことではありません。

その場合、autoconfの「bootstrap.sh」スクリプトのどこかの後、または実行後に「configure」にパッチを適用することをお勧めしますautoreconf

#!/bin/sh
autoreconf -fvi # or whatever autoreconf needs
sed -i 's/rm -f core/rm -f/g' configure

これsed -iはGNUsedに依存しているため、普遍的なソリューションではありませんが、ポータブルソリューションを思い付くのはそれほど難しくありません。

于 2012-08-06T19:49:06.077 に答える