build: Don't build libdricore if not building classic drivers
authorMatt Turner <mattst88@gmail.com>
Thu, 20 Sep 2012 22:08:02 +0000 (15:08 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 1 Oct 2012 22:23:05 +0000 (15:23 -0700)
configure.ac
src/mesa/Makefile.am

index f96cffcfcb4733bb6bf22e6a3355dd7f25c7ca24..3dcb1e0ac6539bad30ea12b4c98467ee95d94589 100644 (file)
@@ -1102,6 +1102,7 @@ if test "x$enable_dri" = xyes; then
     DRI_LIB_DEPS="$DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $PTHREAD_LIBS $DLOPEN_LIBS"
     GALLIUM_DRI_LIB_DEPS="$GALLIUM_DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $PTHREAD_LIBS $DLOPEN_LIBS"
 fi
+AM_CONDITIONAL(NEED_LIBDRICORE, test -n "$DRI_DIRS")
 AC_SUBST([DRI_DIRS])
 AC_SUBST([EXPAT_INCLUDES])
 AC_SUBST([DRI_LIB_DEPS])
index a76df8c306a06c229f24b521378988ed3c019928..feec1070da14534b38ecba532d6ef04eb7730235 100644 (file)
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
 
-SUBDIRS = x86 x86-64 . libdricore drivers
+if NEED_LIBDRICORE
+DRICORE_SUBDIR = libdricore
+endif
+
+SUBDIRS = x86 x86-64 . $(DRICORE_SUBDIR) drivers
 
 gldir = $(includedir)/GL
 gl_HEADERS = $(top_srcdir)/include/GL/*.h