aboutsummaryrefslogtreecommitdiff
path: root/libcpp/configure
diff options
context:
space:
mode:
authorSimon Baldwin <simonb@google.com>2012-11-16 17:14:05 +0000
committerSimon Baldwin <simonb@gcc.gnu.org>2012-11-16 17:14:05 +0000
commit5dc99c46786e91f2892c4318ed36054302e0c964 (patch)
tree709320b578253406cba90335431f68194bf6b70a /libcpp/configure
parentb185792f5216497c74664bdf9ba2d465628d6f4c (diff)
downloadgcc-5dc99c46786e91f2892c4318ed36054302e0c964.zip
gcc-5dc99c46786e91f2892c4318ed36054302e0c964.tar.gz
gcc-5dc99c46786e91f2892c4318ed36054302e0c964.tar.bz2
cpplib.h (struct cpp_options): Add canonical_system_headers.
* include/cpplib.h (struct cpp_options): Add canonical_system_headers. * files.c (find_file_in_dir): Call maybe_shorter_path() only if canonical_system_headers is set. * init.c (cpp_create_reader): Initialize canonical_system_headers. * configure.ac: Add new --enable-canonical-system-headers. * configure: Regenerate. * config.in: Regenerate. * doc/cppopts.texi: Document -f[no-]canonical-system-headers. * doc/install.texi: Document --enable-canonical-system-headers. * c.opt: Add f[no-]canonical-system-headers. * c-opts.c (c_common_handle_option): Handle OPT_fcanonical_system_headers. From-SVN: r193569
Diffstat (limited to 'libcpp/configure')
-rwxr-xr-xlibcpp/configure16
1 files changed, 16 insertions, 0 deletions
diff --git a/libcpp/configure b/libcpp/configure
index d33969b..d07aed3 100755
--- a/libcpp/configure
+++ b/libcpp/configure
@@ -700,6 +700,7 @@ enable_rpath
with_libiconv_prefix
enable_maintainer_mode
enable_checking
+enable_canonical_system_headers
'
ac_precious_vars='build_alias
host_alias
@@ -1333,6 +1334,8 @@ Optional Features:
--disable-rpath do not hardcode runtime library paths
--enable-maintainer-mode enable rules only needed by maintainers
--enable-checking enable expensive run-time checks
+ --enable-canonical-system-headers
+ enable or disable system headers canonicalization
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -7094,6 +7097,19 @@ $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
fi
+# Check whether --enable-canonical-system-headers was given.
+if test "${enable_canonical_system_headers+set}" = set; then :
+ enableval=$enable_canonical_system_headers;
+else
+ enable_canonical_system_headers=yes
+fi
+
+if test $enable_canonical_system_headers != no; then
+
+$as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
+
+fi
+
case $target in
aarch64*-*-* | \