My configure.in has the following:
---
dnl storage drivers
want_storage='db'
AC_MSG_CHECKING(which storage drivers to build)
AC_ARG_ENABLE(storage, AC_HELP_STRING(--enable-storage=drivers, [storage drivers to
build (default: db)]),
[ if test "x-$enableval" = "x-no" ; then
want_storage=''
elif test "x-$enableval" != "x-yes" ; then
want_storage=$enableval
fi ])
AC_MSG_RESULT($want_storage)
for opt in $want_storage ; do
eval "j2_want_storage_$opt=yes"
def="WANT_STORAGE_`echo $opt | tr 'a-z' 'A-Z'`"
AC_DEFINE_UNQUOTED($def)
done
---
However, any preprocessor symbols defined here do not appear in config.h
(contrary to what the documentation on AC_DEFINE_UNQUOTED says).
(They do appear in confdefs.h, but of course this file is deleted when
configure completes).
Can anyone suggest a fix or workaround for this? My thought was that I
could do this instead:
CFLAGS="$CFLAGS -D$def"
That feels a little brute-force though - surely there's a better way?
Thanks,
Rob.
--
Robert Norris GPG: 1024D/FC18E6C2
Email+Jabber: [EMAIL PROTECTED] Web: http://cataclysm.cx/
pgp00000.pgp
Description: PGP signature
