memcpy: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / getlogin
index 1e0c77abda88faf564aafd156b436f4b072c2d35..379052af72c84545b9751897a76aa4bc7d367bad 100644 (file)
@@ -9,7 +9,10 @@ Depends-on:
 unistd
 
 configure.ac:
-gl_GETLOGIN
+gl_FUNC_GETLOGIN
+if test $HAVE_GETLOGIN = 0; then
+  AC_LIBOBJ([getlogin])
+fi
 gl_UNISTD_MODULE_INDICATOR([getlogin])
 
 Makefile.am: