blob: f26192385bd4701a6905b8c4fa201f207f5f92e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Fix detection of nvidia library
# https://bugs.gentoo.org/attachment.cgi?id=180397
# https://sourceforge.net/tracker2/?func=detail&aid=2672290&group_id=128538&atid=711980
--- a/configure.ac 2009-01-31 13:59:36.000000000 +0100
+++ b/configure.ac 2009-01-31 14:01:06.000000000 +0100
@@ -29,6 +29,7 @@
# ========== export compiler / linker options ======== #
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
+AC_SUBST(LIBS)
AC_SUBST(LDFLAGS)
# ============== look for dependencies =============== #
@@ -170,7 +171,7 @@
AC_CHECK_LIB(X11, XOpenDisplay, [ HAVE_X11=true ]))
# can't embed next AC_CHECK_HEADERS in true case of AC_CHECK_LIB
if test "${HAVE_X11}" = "true"; then
- LDFLAGS="${LDFLAGS} -lX11 -lXext"
+ LIBS="${LIBS} -lX11 -lXext"
# need to specifically include X11/Xlib header when
# doing checks for NVCtrl headers
AC_CHECK_HEADERS(NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h, [ HAVE_NVIDIA=true ], [],
|