summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recordmydesktop/configure.ac9
-rw-r--r--recordmydesktop/src/Makefile.am2
2 files changed, 8 insertions, 3 deletions
diff --git a/recordmydesktop/configure.ac b/recordmydesktop/configure.ac
index a5875c4..2beab33 100644
--- a/recordmydesktop/configure.ac
+++ b/recordmydesktop/configure.ac
@@ -20,19 +20,24 @@ AC_HEADER_DIRENT
AC_HEADER_STDC
AC_PATH_X
+AC_PATH_XTRA
+
AC_CHECK_HEADER([png.h])
AC_CHECK_HEADER([alsa/asoundlib.h])
AC_CHECK_HEADERS([sys/time.h unistd.h vorbis/vorbisfile.h ])
-LDFLAGS="$LD_FLAGS -L$x_libraries "
+LDFLAGS="$LD_FLAGS -L$x_libraries $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS"
CFLAGS="${CFLAGS} -O3 -Wall -D_THREAD_SAFE -pthread"
+
+
# Checks for libraries.
AC_CHECK_LIB([m],[isnan],,)
AC_CHECK_LIB([z],[deflate],,)
-AC_CHECK_LIB([X11],[XOpenDisplay],,AC_MSG_ERROR([Can't find libX11]))
+AC_CHECK_LIB([X11],[XOpenDisplay],,AC_MSG_ERROR([Can't find libX11]),
+ -L$x_libraries $X_PRE_LIBS)
AC_CHECK_LIB([Xext],[XShmQueryVersion],,AC_MSG_ERROR([Can't find libXext]))
AC_CHECK_LIB([Xdamage], [XDamageQueryExtension],,AC_MSG_ERROR([Can't find libXdamage]))
AC_CHECK_LIB([vorbis],[vorbis_info_clear],,AC_MSG_ERROR([Can't find libvorbis]))
diff --git a/recordmydesktop/src/Makefile.am b/recordmydesktop/src/Makefile.am
index d3d7a20..bec4006 100644
--- a/recordmydesktop/src/Makefile.am
+++ b/recordmydesktop/src/Makefile.am
@@ -22,7 +22,7 @@ recordmydesktop_SOURCES= recordmydesktop.c\
encode_sound_buffer.c\
init_encoder.c
-INCLUDES= $(all_includes) -I../include
+INCLUDES= $(all_includes) -I../include -I$x_includes
recordmydesktop_LDFLAGS = -D_THREAD_SAFE -pthread -Wall -O3
© All Rights Reserved