xref: /netbsd-src/external/gpl3/binutils/dist/config/gc++filt.m4 (revision be12b8bcaf6171e22ce54bb82a70fb1a78be9ab5)
1*be12b8bcSchristos# gc++filt.m4 serial 1					-*- Autoconf -*-
2*be12b8bcSchristos# Find an instance of GNU c++filt on PATH.
3*be12b8bcSchristos
4*be12b8bcSchristosdnl Copyright (C) 2010 Free Software Foundation, Inc.
5*be12b8bcSchristosdnl This file is free software, distributed under the terms of the GNU
6*be12b8bcSchristosdnl General Public License.  As a special exception to the GNU General
7*be12b8bcSchristosdnl Public License, this file may be distributed as part of a program
8*be12b8bcSchristosdnl that contains a configuration script generated by Autoconf, under
9*be12b8bcSchristosdnl the same distribution terms as the rest of that program.
10*be12b8bcSchristos
11*be12b8bcSchristosdnl From Rainer Orth.
12*be12b8bcSchristos
13*be12b8bcSchristos# GCC_PROG_GNU_CXXFILT
14*be12b8bcSchristos# --------------------
15*be12b8bcSchristos# Check for GNU c++filt.
16*be12b8bcSchristos# FIXME: Maybe need TARGET variant, though c++filt should be target
17*be12b8bcSchristos# independent.
18*be12b8bcSchristosAC_DEFUN([GCC_PROG_GNU_CXXFILT],
19*be12b8bcSchristos  [AC_ARG_VAR([CXXFILT], [Location of GNU c++filt.  Defaults to the first
20*be12b8bcSchristos    GNU version of `c++filt', `gc++filt' on PATH.])
21*be12b8bcSchristos  AC_CACHE_CHECK([for GNU c++filt], [ac_cv_path_CXXFILT],
22*be12b8bcSchristos    [AC_PATH_PROGS_FEATURE_CHECK([CXXFILT], [c++filt gc++filt],
23*be12b8bcSchristos      [_AC_PATH_PROG_FLAVOR_GNU([$ac_path_CXXFILT],
24*be12b8bcSchristos	[ac_cv_path_CXXFILT=$ac_path_CXXFILT && ac_path_CXXFILT_found=:])])])
25*be12b8bcSchristos  CXXFILT=$ac_cv_path_CXXFILT
26*be12b8bcSchristos])
27