summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac15
1 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index c961d856..3ecf7ad4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,8 +81,19 @@ else
fi
fi
-
-PKG_CHECK_MODULES(GEN4ASM, [intel-gen4asm >= 1.2], [gen4asm=yes], [gen4asm=no])
+AC_ARG_ENABLE(gen4asm,
+ AS_HELP_STRING([--enable-gen4asm],
+ [Enable rebuilding the gen4 assembly files [default=no]]),
+ [ASM="$enableval"],
+ [ASM=no])
+
+gen4asm=no
+if test x$ASM != "xno"; then
+ PKG_CHECK_MODULES(GEN4ASM, [intel-gen4asm >= 1.2], [gen4asm=yes], [gen4asm=no])
+ if test x$ASM = "xyes" -a x$gen4asm != "xyes"; then
+ AC_MSG_ERROR([intel-gen4asm support requested but not found])
+ fi
+fi
AM_CONDITIONAL(HAVE_GEN4ASM, test x$gen4asm = xyes)
AC_ARG_ENABLE(udev,