diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-03 10:44:37 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-03 10:44:37 +0000 |
commit | c88bf782b8271e43855565edf23eed51acfd9beb (patch) | |
tree | d0a82f4e76179235be01ab7e9d96c16fea8932db /config | |
parent | f8592d5a39e7c9fff48cf7bf50420d2cb0a6e488 (diff) | |
download | gcc-c88bf782b8271e43855565edf23eed51acfd9beb.tar.gz |
Introduce config/gxx-include-dir.m4.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91680 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 4 | ||||
-rw-r--r-- | config/gxx-include-dir.m4 | 26 |
2 files changed, 30 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index dd64c4548d6..49cbfdda495 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2004-12-03 Richard Sandiford <rsandifo@redhat.com> + + * gxx-include-dir.m4: New file. + 2004-12-02 Richard Sandiford <rsandifo@redhat.com> * gcc-version.m4: New file. diff --git a/config/gxx-include-dir.m4 b/config/gxx-include-dir.m4 new file mode 100644 index 00000000000..87a65adaa38 --- /dev/null +++ b/config/gxx-include-dir.m4 @@ -0,0 +1,26 @@ +dnl Usage: TL_AC_GXX_INCLUDE_DIR +dnl +dnl Set $gxx_include_dir to the location of the installed C++ include +dnl directory. The value depends on $gcc_version and the configuration +dnl options --with-gxx-include-dir and --enable-version-specific-runtime-libs. +dnl +dnl If you change the default here, you'll need to change the gcc and +dnl libstdc++-v3 subdirectories too. +AC_DEFUN([TL_AC_GXX_INCLUDE_DIR], +[ +case "${with_gxx_include_dir}" in + yes) + AC_MSG_ERROR([--with-gxx-include-dir=[[dir]] requires a directory]) + ;; + no | "") + case "${enable_version_specific_runtime_libs}" in + yes) gxx_include_dir='${libsubdir}/include/c++' ;; + *) + libstdcxx_incdir=c++/${gcc_version} + gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;; + esac ;; + *) gxx_include_dir=${with_gxx_include_dir} ;; +esac +AC_SUBST(gxx_include_dir) +AC_SUBST(libstdcxx_incdir) +]) |