Remove test for getlogin_r(); the interface is not clearly defined, at
least on Solaris (sometimes it's Unix98, sometimes it conforms to an
early draft).

Properly generate config.h.in using autoheader instead of editing it
manually; thanks, Guido!
diff --git a/configure.in b/configure.in
index 7c40787..55acb95 100644
--- a/configure.in
+++ b/configure.in
@@ -681,8 +681,7 @@
 # checks for library functions
 AC_CHECK_FUNCS(alarm chown clock confstr ctermid ctermid_r dlopen execv \
  flock fork fsync fdatasync fpathconf ftime ftruncate \
- getgroups getlogin getlogin_r getpeername getpgrp getpid getpwent \
- gettimeofday getwd \
+ getgroups getlogin getpeername getpgrp getpid getpwent gettimeofday getwd \
  kill link lstat mkfifo mktime nice pathconf pause plock pthread_init \
  putenv readlink \
  select setgid setlocale setuid setsid setpgid setpgrp setvbuf \