diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2006-10-13 20:32:48 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2006-10-13 20:32:48 +0000 |
commit | 92222fc5f94f61489b07541f3ee820caded1b89d (patch) | |
tree | 7a328c6173f0592bfbbb31cbaba956790108ba61 /configure.in | |
parent | f602dcb89af7b8074953c351bdc467137c4809a1 (diff) |
* configure.in: when checking for posix getpwnam_r assume true
for cross compiles
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 1c6ece0c..53ecf3d8 100644 --- a/configure.in +++ b/configure.in @@ -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]) |