| If I have a AC_DEFINE instead an if statement it is not getting seen by
| autoheader. Here is the code:
| 
| AC_DEFUN(BASH_CHECK_GETPW_FUNCS,
| [AC_MSG_CHECKING(whether programs are able to redeclare getpw functions)
| AC_CACHE_VAL(bash_cv_can_redecl_getpw,
| [AC_TRY_COMPILE([#include <sys/types.h>
| #include <pwd.h>
| extern struct passwd *getpwent();
| extern struct passwd *getpwuid();
| extern struct passwd *getpwnam();],
| [struct passwd *z; z = getpwent(); z = getpwuid(0); z =
| getpwnam("root");],
|   bash_cv_can_redecl_getpw=yes,bash_cv_can_redecl_getpw=no)])
| AC_MSG_RESULT($bash_cv_can_redecl_getpw)
| if test x"$bash_cv_can_redecl_getpw" = "xno"; then
| AC_DEFINE(HAVE_GETPW_DECLS,,[Declare if problems are able to redeclare
| gepw functions])
| fi
| ])
| 
| Autoheader (v. 2.53) is reporting:
| 
| autoheader: missing template: HAVE_GETPW_DECLS
| 
| I am trying to get rid of the old acconfig.h and put the information
| into either the configure.ac or m4 files.

It should work...  Insist!


Reply via email to