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