Blame config/gc++filt.m4

Packit Service 72eb06
# gc++filt.m4 serial 1					-*- Autoconf -*-
Packit Service 72eb06
# Find an instance of GNU c++filt on PATH.
Packit Service 72eb06
Packit Service 72eb06
dnl Copyright (C) 2010 Free Software Foundation, Inc.
Packit Service 72eb06
dnl This file is free software, distributed under the terms of the GNU
Packit Service 72eb06
dnl General Public License.  As a special exception to the GNU General
Packit Service 72eb06
dnl Public License, this file may be distributed as part of a program
Packit Service 72eb06
dnl that contains a configuration script generated by Autoconf, under
Packit Service 72eb06
dnl the same distribution terms as the rest of that program.
Packit Service 72eb06
Packit Service 72eb06
dnl From Rainer Orth.
Packit Service 72eb06
Packit Service 72eb06
# GCC_PROG_GNU_CXXFILT
Packit Service 72eb06
# --------------------
Packit Service 72eb06
# Check for GNU c++filt.
Packit Service 72eb06
# FIXME: Maybe need TARGET variant, though c++filt should be target
Packit Service 72eb06
# independent.
Packit Service 72eb06
AC_DEFUN([GCC_PROG_GNU_CXXFILT],
Packit Service 72eb06
  [AC_ARG_VAR([CXXFILT], [Location of GNU c++filt.  Defaults to the first
Packit Service 72eb06
    GNU version of `c++filt', `gc++filt' on PATH.])
Packit Service 72eb06
  AC_CACHE_CHECK([for GNU c++filt], [ac_cv_path_CXXFILT],
Packit Service 72eb06
    [AC_PATH_PROGS_FEATURE_CHECK([CXXFILT], [c++filt gc++filt],
Packit Service 72eb06
      [_AC_PATH_PROG_FLAVOR_GNU([$ac_path_CXXFILT],
Packit Service 72eb06
	[ac_cv_path_CXXFILT=$ac_path_CXXFILT && ac_path_CXXFILT_found=:])])])
Packit Service 72eb06
  CXXFILT=$ac_cv_path_CXXFILT
Packit Service 72eb06
])