Permalink
Browse files

Fixes a getpwuid_r() detection issue. Thanks to Juan J. Martínez for

the patch! Fixes bug #705: http://bugs.cherokee-project.com/705

git-svn-id: svn://cherokee-project.com/cherokee/trunk@4089 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
alobbs committed Jan 9, 2010
1 parent 9a6e161 commit 4f8153a0bf96a5d3d2c3038bb096b9adab48c4eb
Showing with 8 additions and 8 deletions.
  1. +8 −8 m4/pwd_grp.m4
View
@@ -7,15 +7,15 @@ AC_DEFUN([FW_CHECK_PWD],
HAVE_GETPWNAM_R=""
AC_MSG_CHECKING(for getpwnam_r with 5 parameters)
-AC_TRY_COMPILE([#include <pwd.h>
+AC_TRY_LINK([#include <pwd.h>
#include <stdlib.h>],
getpwnam_r(NULL,NULL,NULL,0,NULL);,AC_DEFINE(HAVE_GETPWNAM_R_5,1,Some systems have getpwnam_r) AC_DEFINE(HAVE_GETPWNAM_R,1,
Some systems have getpwnam_r) AC_MSG_RESULT(yes); HAVE_GETPWNAM_R="yes", AC_MSG_RESULT(no))
if ( test -z "$HAVE_GETPWNAM_R" )
then
AC_MSG_CHECKING(for getpwnam_r with 4 parameters)
- AC_TRY_COMPILE([#include <pwd.h>
+ AC_TRY_LINK([#include <pwd.h>
#include <stdlib.h>],
getpwnam_r(NULL,NULL,NULL,0);,AC_DEFINE(HAVE_GETPWNAM_R_4,1,Some systems have getpwnam_r) AC_DEFINE(HAVE_GETPWNAM_R,1,Some
systems have getpwnam_r) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
@@ -24,15 +24,15 @@ fi
HAVE_GETPWUID_R=""
AC_MSG_CHECKING(for getpwuid_r with 5 parameters)
-AC_TRY_COMPILE([#include <pwd.h>
+AC_TRY_LINK([#include <pwd.h>
#include <stdlib.h>],
getpwuid_r(0,NULL,NULL,0,NULL);,AC_DEFINE(HAVE_GETPWUID_R_5,1,Some systems have getpwuid_r) AC_DEFINE(HAVE_GETPWUID_R,1,Som
e systems have getpwuid_r) AC_MSG_RESULT(yes); HAVE_GETPWUID_R="yes", AC_MSG_RESULT(no))
if ( test -z "$HAVE_GETPWUID_R" )
then
AC_MSG_CHECKING(for getpwuid_r with 4 parameters)
- AC_TRY_COMPILE([#include <pwd.h>
+ AC_TRY_LINK([#include <pwd.h>
#include <stdlib.h>],
getpwuid_r(0,NULL,NULL,0);,AC_DEFINE(HAVE_GETPWUID_R_4,1,Some systems have getpwuid_r) AC_DEFINE(HAVE_GETPWUID_R,1,Some sys
tems have getpwuid_r) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
@@ -51,15 +51,15 @@ AC_DEFUN([FW_CHECK_GRP],
HAVE_GETGRNAM_R=""
AC_MSG_CHECKING(for getgrnam_r with 5 parameters)
-AC_TRY_COMPILE([#include <grp.h>
+AC_TRY_LINK([#include <grp.h>
#include <stdlib.h>],
getgrnam_r(NULL,NULL,NULL,0,NULL);,AC_DEFINE(HAVE_GETGRNAM_R_5,1,Some systems have getgrnam_r) AC_DEFINE(HAVE_GETGRNAM_R,1,
Some systems have getgrnam_r) AC_MSG_RESULT(yes); HAVE_GETGRNAM_R="yes", AC_MSG_RESULT(no))
if ( test -z "$HAVE_GETGRNAM_R" )
then
AC_MSG_CHECKING(for getgrnam_r with 4 parameters)
- AC_TRY_COMPILE([#include <grp.h>
+ AC_TRY_LINK([#include <grp.h>
#include <stdlib.h>],
getgrnam_r(NULL,NULL,NULL,0);,AC_DEFINE(HAVE_GETGRNAM_R_4,1,Some systems have getgrnam_r) AC_DEFINE(HAVE_GETGRNAM_R,1,Some
systems have getgrnam_r) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
@@ -68,15 +68,15 @@ fi
HAVE_GETGRGID_R=""
AC_MSG_CHECKING(for getgrgid_r with 5 parameters)
-AC_TRY_COMPILE([#include <grp.h>
+AC_TRY_LINK([#include <grp.h>
#include <stdlib.h>],
getgrgid_r(0,NULL,NULL,0,NULL);,AC_DEFINE(HAVE_GETGRGID_R_5,1,Some systems have getgrgid_r) AC_DEFINE(HAVE_GETGRGID_R,1,Som
e systems have getgrgid_r) AC_MSG_RESULT(yes); HAVE_GETGRGID_R="yes", AC_MSG_RESULT(no))
if ( test -z "$HAVE_GETGRGID_R" )
then
AC_MSG_CHECKING(for getgrgid_r with 4 parameters)
- AC_TRY_COMPILE([#include <grp.h>
+ AC_TRY_LINK([#include <grp.h>
#include <stdlib.h>],
getgrgid_r(0,NULL,NULL,0);,AC_DEFINE(HAVE_GETGRGID_R_4,1,Some systems have getgrgid_r) AC_DEFINE(HAVE_GETGRGID_R,1,Some sys
tems have getgrgid_r) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))

0 comments on commit 4f8153a

Please sign in to comment.