[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: macros which define macros
From: |
Sam Steingold |
Subject: |
Re: macros which define macros |
Date: |
Thu, 29 May 2008 12:14:51 -0400 |
User-agent: |
Thunderbird 2.0.0.0 (X11/20070326) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sam Steingold wrote:
|
| AC_DEFUN([CL_CHECK],[dnl
| AC_CACHE_CHECK(for $2,$3,$1(AC_LANG_PROGRAM([$4],[$5]),[$3=yes], [$3=no]))
| if test [$]$3 = yes; then
| ~ ifelse([$6], , :, [$6])
| ifelse([$7], , , [else
| ~ $7
| ])dnl
| fi
| ])
|
| AC_DEFUN([CL_COMPILE_CHECK],
| [CL_CHECK(AC_COMPILE_IFELSE,[$1],[$2],[$3],[$4],[$5],[$6])])
| AC_DEFUN([CL_LINK_CHECK],
| [CL_CHECK(AC_LINK_IFELSE,[$1],[$2],[$3],[$4],[$5],[$6])])
sorry. the configure script is generated just fine (autoconf 2.62, m4
1.4.5), but the resulting script is broken:
src/configure: line 33309: syntax error near unexpected token `('
src/configure: line 33309: `rm -f core conftest.err conftest.$ac_objext
(/* confdefs.h. */'
the surrounding few lines:
else
~ $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext (/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIPtZ7Pp1Qsf2qnMcRAvMLAJ0VyYVcIfXKjyiV993Wj4diYt2wAgCeMTTt
6QOFkbIBOdu9Nc8BJ1qhUBc=
=7En0
-----END PGP SIGNATURE-----