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