diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2004-01-22 21:55:15 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-01-22 21:55:15 +0000 |
| commit | 027b7468539f7bfae0477e3b3056976d831eaa8d (patch) | |
| tree | 3e134a4892757d750de9043e4799495330645c71 /autoconf | |
| parent | afa3fbf75094139c83bcee27ad539efc47fcaecb (diff) | |
| download | external_llvm-027b7468539f7bfae0477e3b3056976d831eaa8d.zip external_llvm-027b7468539f7bfae0477e3b3056976d831eaa8d.tar.gz external_llvm-027b7468539f7bfae0477e3b3056976d831eaa8d.tar.bz2 | |
Add autoconf check for the version of etags we have detected, and select
appropriate "force C++" command-line option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
| -rw-r--r-- | autoconf/configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 50c6929..29bda2e 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -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 |
