aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorRasmus Villemoes <rv@rasmusvillemoes.dk>2018-06-27 12:04:25 +0200
committerRasmus Villemoes <villemoes@gcc.gnu.org>2018-06-27 10:04:25 +0000
commit1765b0231029c0479ddcf5d54e8f4882c5feda94 (patch)
tree12e1333e335da0d5357ee4418e40356b5c9ab765 /gcc/configure
parented4e2a178609194673c81a038034e16832a0a9be (diff)
downloadgcc-1765b0231029c0479ddcf5d54e8f4882c5feda94.zip
gcc-1765b0231029c0479ddcf5d54e8f4882c5feda94.tar.gz
gcc-1765b0231029c0479ddcf5d54e8f4882c5feda94.tar.bz2
add support for --disable-gcov
For some targets (in my case VxWorks 5.5), libgcov does not compile due to missing functions and macros such as getpid() and F_OK. Incidentally, gcc/Makefile.in already contains comments such as # Install gcov if it was compiled. but there is no logic in place to actually allow gcov to not be compiled. So add an option for disabling build and install of libgcov and the related host tools. From-SVN: r262180
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure16
1 files changed, 14 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure
index 60d3739..bfef4be 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -779,6 +779,7 @@ REPORT_BUGS_TEXI
REPORT_BUGS_TO
PKGVERSION
CONFIGURE_SPECS
+enable_gcov
enable_shared
enable_fixed_point
enable_decimal_float
@@ -914,6 +915,7 @@ enable_vtable_verify
enable_objc_gc
with_dwarf2
enable_shared
+enable_gcov
with_specs
with_pkgversion
with_bugurl
@@ -1634,6 +1636,7 @@ Optional Features:
--enable-objc-gc enable the use of Boehm's garbage collector with the
GNU Objective-C runtime
--disable-shared don't provide a shared libgcc
+ --disable-gcov don't provide libgcov and related host tools
--enable-languages=LIST specify which front-ends to build
--disable-rpath do not hardcode runtime library paths
--enable-sjlj-exceptions
@@ -7628,6 +7631,15 @@ fi
+# Check whether --enable-gcov was given.
+if test "${enable_gcov+set}" = set; then :
+ enableval=$enable_gcov;
+else
+ enable_gcov=yes
+fi
+
+
+
# Check whether --with-specs was given.
if test "${with_specs+set}" = set; then :
@@ -18448,7 +18460,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 18451 "configure"
+#line 18463 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -18554,7 +18566,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 18557 "configure"
+#line 18569 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H