summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Delliaux <netbox253@gmail.com>2022-11-13 13:48:40 +0100
committerFabrice Delliaux <netbox253@gmail.com>2022-11-13 13:48:40 +0100
commit3165e4097068ef4490330e80bb7f927ce2c52e11 (patch)
tree5af1cb821fdea214408dc41d24ab618de556b996
parentda89908ef7d82a90fe5dab8904a65869b5a5d996 (diff)
downloadautoconf-archive-3165e4097068ef4490330e80bb7f927ce2c52e11.tar.gz
AX_HAVE_QT: remove qmake stash file before rmdir
Since a long time I'm seeing this when running AX_HAVE_QT : > checking for Qt... Info: creating stash file /tmp/tmp.2FXDo4jy40/.qmake.stash > rmdir: failed to remove '/tmp/tmp.2FXDo4jy40': Directory not empty > $ ls -a /tmp/tmp.2FXDo4jy40/ > . .. .qmake.stash
-rw-r--r--m4/ax_have_qt.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/ax_have_qt.m4 b/m4/ax_have_qt.m4
index 407e9e9..0a12ccd 100644
--- a/m4/ax_have_qt.m4
+++ b/m4/ax_have_qt.m4
@@ -79,6 +79,7 @@ AC_DEFUN([AX_HAVE_QT],
# This pro file dumps qmake's variables, but it only works on Qt 5 or later
am_have_qt_dir=`mktemp -d`
am_have_qt_pro="$am_have_qt_dir/test.pro"
+ am_have_qt_stash="$am_have_qt_dir/.qmake.stash"
am_have_qt_makefile="$am_have_qt_dir/Makefile"
# http://qt-project.org/doc/qt-5/qmake-variable-reference.html#qt
cat > $am_have_qt_pro << EOF
@@ -122,7 +123,7 @@ EOF
$am_have_qt_qmexe $am_have_qt_pro -o $am_have_qt_makefile
QT_CXXFLAGS=`cd $am_have_qt_dir; make -s -f $am_have_qt_makefile CXXFLAGS INCPATH`
QT_LIBS=`cd $am_have_qt_dir; make -s -f $am_have_qt_makefile LIBS`
- rm $am_have_qt_pro $am_have_qt_makefile
+ rm $am_have_qt_pro $am_have_qt_stash $am_have_qt_makefile
rmdir $am_have_qt_dir
# Look for specific tools in $PATH