-AC_PREREQ([2.65])
+AC_PREREQ([2.61])
AC_INIT([media-ctl], [0.0.1], [laurent.pinchart@ideasonboard.com])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_AUX_DIR([config])
# Checks for library functions.
AC_HEADER_MAJOR
-AC_FUNC_MALLOC
-AC_FUNC_REALLOC
+AS_IF([test "x$cross_compiling" != "xyes"],
+ [
+ AC_FUNC_MALLOC
+ AC_FUNC_REALLOC
+ ])
AC_CHECK_FUNCS([memset strerror strrchr strtoul])
AC_CONFIG_FILES([
Makefile
src/Makefile
- libmedia.pc
- libsubdev.pc
+ libmediactl.pc
+ libv4l2subdev.pc
])
AC_OUTPUT