xref: /netbsd-src/external/gpl3/gcc/dist/config/libstdc++-raw-cxx.m4 (revision 48fb7bfab72acd4281a53bbee5ccf3f809019e75)
1*48fb7bfaSmrg# This file is part of GCC.
2*48fb7bfaSmrg#
3*48fb7bfaSmrg# GCC is free software; you can redistribute it and/or modify it under
4*48fb7bfaSmrg# the terms of the GNU General Public License as published by the Free
5*48fb7bfaSmrg# Software Foundation; either version 3, or (at your option) any later
6*48fb7bfaSmrg# version.
7*48fb7bfaSmrg#
8*48fb7bfaSmrg# GCC is distributed in the hope that it will be useful, but WITHOUT
9*48fb7bfaSmrg# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10*48fb7bfaSmrg# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11*48fb7bfaSmrg# for more details.
12*48fb7bfaSmrg#
13*48fb7bfaSmrg# You should have received a copy of the GNU General Public License
14*48fb7bfaSmrg# along with GCC; see the file COPYING3.  If not see
15*48fb7bfaSmrg# <http://www.gnu.org/licenses/>.
16*48fb7bfaSmrg
17*48fb7bfaSmrg# Define flags, LIBSTDCXX_RAW_CXX_CXXFLAGS and # LIBSTDCXX_RAW_CXX_LDFLAGS,
18*48fb7bfaSmrg# for libstdc++-v3 header files to compile and link libraries in C++ with
19*48fb7bfaSmrg# raw_cxx=true.
20*48fb7bfaSmrgAC_DEFUN([GCC_LIBSTDCXX_RAW_CXX_FLAGS], [
21*48fb7bfaSmrg  AC_REQUIRE([ACX_NONCANONICAL_TARGET])
22*48fb7bfaSmrg  LIBSTDCXX_RAW_CXX_CXXFLAGS="\
23*48fb7bfaSmrg    -I\$(top_builddir)/../libstdc++-v3/include \
24*48fb7bfaSmrg    -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
25*48fb7bfaSmrg    -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
26*48fb7bfaSmrg  LIBSTDCXX_RAW_CXX_LDFLAGS="\
27*48fb7bfaSmrg    \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
28*48fb7bfaSmrg  AC_SUBST(LIBSTDCXX_RAW_CXX_CXXFLAGS)
29*48fb7bfaSmrg  AC_SUBST(LIBSTDCXX_RAW_CXX_LDFLAGS)
30*48fb7bfaSmrg])
31