[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Missing template problem
From: |
Akim Demaille |
Subject: |
Re: Missing template problem |
Date: |
27 Sep 2002 09:50:21 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
| 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!