]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
* configure.in: when checking for posix getpwnam_r assume true
authorJohn (J5) Palmieri <johnp@redhat.com>
Fri, 13 Oct 2006 20:32:48 +0000 (20:32 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Fri, 13 Oct 2006 20:32:48 +0000 (20:32 +0000)
  for cross compiles

ChangeLog
configure.in

index 345b4dd0dc26f2ec423177d624845733f638189f..146ac70b9ad1faa9c15e04e32bb4f5d4e33bd7fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
-2006-10-11  John (J5) Palmieri  <johnp@redhat.com>
+2006-10-13  John (J5) Palmieri  <johnp@redhat.com>
+
+       * configure.in: when checking for posix getpwnam_r assume true
+       for cross compiles
+
+2006-10-13  John (J5) Palmieri  <johnp@redhat.com>
 
        * configure.in: Check for gethostbyname first before we check for it
        in libnsl.  On gnu systems it is implemeneted 
index 1c6ece0c95a6ae3b6dd44a310fdc3cefa103a65d..53ecf3d8f34abad6ad99c87e94d8c8429a248c60 100644 (file)
@@ -532,6 +532,11 @@ AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
 
 AC_CHECK_HEADERS(errno.h)
 
+# checking for a posix version of getpwnam_r
+# if we are cross compiling and can not run the test
+# assume getpwnam_r is the posix version
+# it is up to the person cross compiling to change
+# this behavior if desired
 AC_CACHE_CHECK([for posix getpwnam_r],
                ac_cv_func_posix_getpwnam_r,
                [AC_TRY_RUN([
@@ -548,7 +553,8 @@ int main () {
           || error == ENOSYS; 
 }               ],
        [ac_cv_func_posix_getpwnam_r=yes],
-       [ac_cv_func_posix_getpwnam_r=no])])
+       [ac_cv_func_posix_getpwnam_r=no],
+        [ac_cv_func_posix_getpwnam_r=yes])])
 if test "$ac_cv_func_posix_getpwnam_r" = yes; then
        AC_DEFINE(HAVE_POSIX_GETPWNAM_R,1,
                [Have POSIX function getpwnam_r])