summaryrefslogtreecommitdiff
blob: f7accccf3a46ad1ad6d6390a74ba0b1165458032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
See https://bugs.gentoo.org/show_bug.cgi?id=496914

diff --git a/configure.ac b/configure.ac
index 3da7f33..8a0eedf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -160,6 +160,9 @@ AC_CHECK_TYPE(socklen_t,,
 
 AC_CHECK_FUNCS([setresuid setenv unsetenv clearenv getutxent updwtmpx logwtmp login logout])
 
+AC_CHECK_LIBM
+AC_SUBST(LIBM)
+
 dnl checks needed for Darwin compatibility to linux **environ.
 AC_CHECK_HEADERS(crt_externs.h)
 AC_CHECK_FUNCS(_NSGetEnviron)
diff --git a/gui/Makefile.am b/gui/Makefile.am
index 577dc9f..3334381 100644
--- a/gui/Makefile.am
+++ b/gui/Makefile.am
@@ -123,6 +123,7 @@ gdmchooser_LDADD = \
 	$(XINERAMA_LIBS)	\
 	$(X_LIBS)		\
 	$(XDMCP_LIBS)		\
+	-lXau			\
 	-lX11			\
 	-lfontconfig		\
 	$(NULL)
@@ -143,8 +144,10 @@ gdmlogin_LDADD = \
 	$(X_EXTRA_LIBS)		\
 	$(XINERAMA_LIBS)	\
 	$(X_LIBS)		\
+	-lXau			\
 	-lX11			\
 	-lfontconfig		\
+	$(LIBM)			\
 	$(NULL)
 
 # LIBGNOMEUI should be removed from gdmsetup at some point.
@@ -183,6 +186,7 @@ gdmphotosetup_LDADD = \
 	$(INTLLIBS)		\
 	$(EXTRA_SOCKET_LIB)	\
 	$(EXTRA_NSL_LIB)	\
+	-lXau			\
 	-lX11			\
 	-lfontconfig		\
 	$(top_builddir)/common/libgdmcommon.a \
diff --git a/gui/greeter/Makefile.am b/gui/greeter/Makefile.am
index fd0f500..7b9840d 100644
--- a/gui/greeter/Makefile.am
+++ b/gui/greeter/Makefile.am
@@ -91,6 +91,7 @@ gdmgreeter_LDADD = \
 	$(X_EXTRA_LIBS)		\
 	$(XINERAMA_LIBS)	\
 	$(X_LIBS)		\
+	-lXau			\
 	-lX11			\
 	-lfontconfig