Ver código fonte

configure.ac: fix creation of shell scripts for gcc plugin

Nathalie Furmento 14 anos atrás
pai
commit
c9a6d31022
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      configure.ac

+ 3 - 1
configure.ac

@@ -1367,7 +1367,6 @@ AM_CONDITIONAL([COND_OPT], [test "$want_optional_tests" = yes])
 # File configuration
 AC_CONFIG_COMMANDS([executable-scripts], [
   chmod +x tests/regression/regression.sh
-  chmod +x gcc-plugin/tests/run-test
 ])
 
 AC_CONFIG_FILES(tests/regression/regression.sh tests/regression/profiles tests/regression/profiles.build.only)
@@ -1382,6 +1381,9 @@ if test $build_gcc_plugin == "yes" ; then
 	    gcc-plugin/tests/run-test
 	    gcc-plugin/examples/Makefile
             ])
+    AC_CONFIG_COMMANDS([executable-plugin-scripts], [
+            chmod +x gcc-plugin/tests/run-test
+            ])
 fi 
 
 AC_OUTPUT([