Your AC_OUTPUT section is frightening...

Well, I realize the copy I have is dead broken:

  echo "  Athena header include path:                             $athena=
_h_path"
fi
test "$with_dnet"  =3D yes && echo "  Compiling in support for DNET."

I used wget on cvsweb though :(  Any better means to get a correct
configure.in?  Anyway, thanks François for `recode /qp' :)

You've done something which is now illegal: using `define' with
another quoting system than [, ]:

changequote(<<,>>)dnl
dnl CPP_MAKEFILE(CPPFLAGS,filename)
define(<<CPP_MAKEFILE>>,
echo creating $dir/<<$2>>
$CPP -I. -I${top_srcdir}/src <<$1>> junk.c \
dnl Delete line directives inserted by $CPP
  | sed -e 's/^\#.*//'          \
dnl Delete spurious blanks inserted by $CPP
        -e 's/^[ TAB][ TAB]*$//'\
        -e 's/^ /TAB/'          \
dnl Delete blank lines
  | sed -n -e '/^..*$/p'        \
dnl Restore lines quoted above to original contents.
  | sed '/^\"/ {
        s/\\\([\"]\)/\1/g
        s/^[ TAB]*\"//
        s/\"[ TAB]*$//
}' > Makefile.new
    chmod 444 Makefile.new
    mv -f Makefile.new <<$2>>
)dnl CPP_MAKEFILE


(I don't want to criticize, but frankly, by defining a macro inside a
call to AC_OUTPUT, you are looking for troubles).

So I pulled out the definition of the macro out of AC_OUTPUT, removed
the useless (or have I missed something) changequote (changequote is
*hell*), and it works.

dnl CPP_MAKEFILE(CPPFLAGS,filename)
define([CPP_MAKEFILE],
[echo creating $dir/[$2]
$CPP -I. -I${top_srcdir}/src [$1] junk.c \
dnl Delete line directives inserted by $CPP
  | sed -e 's/^\#.*//'          \
dnl Delete spurious blanks inserted by $CPP
        -e 's/^[[ TAB][ TAB]]*$//'\
        -e 's/^ /TAB/'          \
dnl Delete blank lines
  | sed -n -e '/^..*$/p'        \
dnl Restore lines quoted above to original contents.
  | sed '/^\"/ {
        s/\\\([\"]\)/\1/g
        s/^[[ TAB]]*\"//
        s/\"[[ TAB]]*$//
}' > Makefile.new
    chmod 444 Makefile.new
    mv -f Makefile.new [$2]
])dnl CPP_MAKEFILE

Akim

Reply via email to