This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
dodgy syntax in acx.m4?
- From: Jay Foad <jay dot foad at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 24 Apr 2009 11:16:46 +0100
- Subject: dodgy syntax in acx.m4?
I've just noticed this in config/acx.m4:
dnl GCC_TARGET_TOOL(PROGRAM, TARGET-VAR, HOST-VAR, IN-TREE-TOOL, LANGUAGE)
AC_DEFUN([GCC_TARGET_TOOL],
[AC_MSG_CHECKING(where to find the target $1)
if test "x${build}" != "x${host}" ; then
...
else
ifelse([$4],,,
[ok=yes
case " ${configdirs} " in
*" patsubst([$4], [/.*], []) "*) ;;
*) ok=no ;;
esac
ifelse([$5],,,
[case ,${enable_languages}, in
*,$5,*) ;;
*) ok=no ;;
esac])
if test $ok = yes; then
# An in-tree tool is available and we can use it
$2='$$r/$(HOST_SUBDIR)/$4'
AC_MSG_RESULT(just compiled)
el])if expr "x[$]$2" : "x/" > /dev/null; then
^^^^^^
That "el])if" looks very odd. Is it meant to be like that?
Thanks,
Jay.