summaryrefslogtreecommitdiff
path: root/m4/getlogin.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/getlogin.m4')
-rw-r--r--m4/getlogin.m411
1 files changed, 7 insertions, 4 deletions
diff --git a/m4/getlogin.m4 b/m4/getlogin.m4
index d51d6cfdc..0686b5f07 100644
--- a/m4/getlogin.m4
+++ b/m4/getlogin.m4
@@ -1,5 +1,5 @@
-# getlogin.m4 serial 5
-dnl Copyright (C) 2010-2022 Free Software Foundation, Inc.
+# getlogin.m4 serial 6
+dnl Copyright (C) 2010-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -24,9 +24,12 @@ AC_DEFUN([gl_LIB_GETLOGIN],
AC_REQUIRE([AC_CANONICAL_HOST])
case $host_os in
mingw*)
- LIB_GETLOGIN='-ladvapi32' ;;
+ GETLOGIN_LIB='-ladvapi32' ;;
*)
- LIB_GETLOGIN= ;;
+ GETLOGIN_LIB= ;;
esac
+ AC_SUBST([GETLOGIN_LIB])
+ dnl For backward compatibility.
+ LIB_GETLOGIN="$GETLOGIN_LIB"
AC_SUBST([LIB_GETLOGIN])
])