summaryrefslogtreecommitdiff
blob: 1cf00d6a8faa72ff82feede52089d4b1112625d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/configure.in
+++ src/configure.in
@@ -2701,7 +2701,7 @@
     AC_MSG_CHECKING(whether X_LOCALE needed)
     AC_TRY_COMPILE([#include <X11/Xlocale.h>],,
 	AC_TRY_LINK_FUNC([_Xsetlocale], [AC_MSG_RESULT(yes)
-		AC_DEFINE(X_LOCALE)], AC_MSG_RESULT(no)),
+		AC_DEFINE(X_LOCALE) ldflags_save="$ldflags_save -lX11"], AC_MSG_RESULT(no)),
 	AC_MSG_RESULT(no))
   fi
   CFLAGS=$cflags_save