fe2dc15e4f
Cherrypick from master 2004-02-17 08:53:12 UTC twb 'enable building with automake 1.8.x': m4/Makefile.am m4/README m4/aclocal-include.m4 m4/aspell.m4 m4/check-type.m4 m4/gnupg-check-typedef.m4 m4/missing/gdk-pixbuf.m4 m4/missing/gettext.m4 m4/missing/gpgme.m4 m4/missing/imlib.m4 m4/openssl.m4 m4/spamassassin.m4 src/folderutils.c src/folderutils.h src/pixmaps/linewrapcurrent.xpm src/prefs_ext_prog.c src/prefs_themes.c tools/textviewer.sh
17 lines
533 B
Text
17 lines
533 B
Text
dnl GNUPG_CHECK_TYPEDEF(TYPE, HAVE_NAME [, COMMENT])
|
|
dnl Check whether a typedef exists and create a #define $2 if it exists
|
|
dnl
|
|
AC_DEFUN([GNUPG_CHECK_TYPEDEF],
|
|
[ AC_MSG_CHECKING(for $1 typedef)
|
|
AC_CACHE_VAL(gnupg_cv_typedef_$1,
|
|
[AC_TRY_COMPILE([#include <stdlib.h>
|
|
#include <sys/types.h>], [
|
|
#undef $1
|
|
int a = sizeof($1);
|
|
], gnupg_cv_typedef_$1=yes, gnupg_cv_typedef_$1=no )])
|
|
AC_MSG_RESULT($gnupg_cv_typedef_$1)
|
|
if test "$gnupg_cv_typedef_$1" = yes; then
|
|
AC_DEFINE($2, 1, $3)
|
|
fi
|
|
])
|
|
|