Skip to content

Commit

Permalink
Add autoconf check for the version of etags we have detected, and select
Browse files Browse the repository at this point in the history
appropriate "force C++" command-line option.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10963 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Brian Gaeke committed Jan 22, 2004
1 parent afa3fbf commit 027b746
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions autoconf/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@ AC_PROG_LIBTOOL
dnl Checks for tools we can get away with not having:
AC_PATH_PROG(DOT,[dot],[true dot])
AC_PATH_PROG(ETAGS,[etags],[true etags])
dnl Check if we know how to tell etags we are using C++:
etags_version=`$ETAGS --version 2>&1`
case "$etags_version" in
*[Ee]xuberant*) ETAGSFLAGS="--language-force=c++" ;;
*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
*) ETAGSFLAGS="" ;;
esac
AC_SUBST(ETAGSFLAGS,$ETAGSFLAGS)
AC_PATH_PROG(PYTHON,[python],[true python])
if test "$PYTHON" = "false"
then
Expand Down

0 comments on commit 027b746

Please sign in to comment.