"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configure.ac" between
motion-release-4.2.2.tar.gz and motion-Release-4.3.0.tar.gz

About: Motion monitors the video signal from one or more cameras and is able to detect motion.

configure.ac  (motion-release-4.2.2):configure.ac  (motion-Release-4.3.0)
# Process this file with autoconf to produce a configure script AC_INIT(motion, esyscmd(['./scripts/version.sh']))
AM_INIT_AUTOMAKE([subdir-objects foreign])
AC_INIT(motion, esyscmd(['./version.sh']))
AC_GNU_SOURCE
AC_CONFIG_SRCDIR([motion.c])
AC_CONFIG_HEADERS(config.h)
AC_PROG_CC AC_PROG_CC
AC_HEADER_STDC AC_PROG_CXX
AC_C_CONST AC_GNU_SOURCE
AC_CONFIG_HEADERS([config.h])
############################################################################### AC_CONFIG_SRCDIR([src/motion.c])
### Host system AC_CANONICAL_HOST
############################################################################### AC_CONFIG_MACRO_DIR([m4])
AC_MSG_CHECKING(for Darwin/BSD)
DISTRO="" AM_GNU_GETTEXT([external])
DISTRO=`uname -a | grep -i "Darwin"` AM_GNU_GETTEXT_VERSION([0.19])
if test "x${DISTRO}" = "x"; then
DISTRO=`uname -s | grep -i "FreeBSD"` ##############################################################################
fi ### Check additional system headers
if test "x${DISTRO}" = "x"; then ##############################################################################
DISTRO=`uname -s | grep -i "NetBSD"` AC_CHECK_HEADERS(stdio.h stdlib.h sys/time.h sys/wait.h \
fi sys/ioctl.h sys/mman.h sys/param.h sys/socket.h stdarg.h \
if test "x${DISTRO}" = "x"; then fcntl.h time.h signal.h limits.h errno.h assert.h netdb.h \
DISTRO=`uname -s | grep -i "OpenBSD"` ctype.h regex.h math.h locale.h dirent.h ctype.h \
fi arpa/inet.h netinet/in.h termios.h,,[
if test "x${DISTRO}" = "x"; then AC_MSG_ERROR([Required system headers do not exist.])
DISTRO="Linux" ]
AC_MSG_RESULT(no) )
else
AC_MSG_RESULT($DISTRO)
fi
AC_SUBST(DISTRO)
############################################################################### ##############################################################################
### Host specific paths ### Check pkg-config - Required. Needed to get lib paths/info
############################################################################### ##############################################################################
TEMP_LIBS="" AC_CHECK_PROG([PKGCONFIG],[pkg-config],[yes],[no])
TEMP_CFLAGS="" AS_IF([test "${PKGCONFIG}" = "no" ],[
TEMP_CPPFLAGS="" AC_MSG_ERROR([Required package 'pkg-config' not found, please check motion_g
TEMP_LDFLAGS="" uide.html and install necessary dependencies.])
if test "${DISTRO}" = "Darwin"; then ]
TEMP_CFLAGS="${CFLAGS} -I/sw/include" )
TEMP_CPPFLAGS="${CPPFLAGS} -I/sw/include"
TEMP_LDFLAGS="${LDFLAGS} -L/sw/lib"
TEMP_LIBS="-L/sw/lib"
else
if test "${DISTRO}" != "Linux"; then
TEMP_CFLAGS="${CFLAGS} -I/usr/local/include"
TEMP_CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
TEMP_LDFLAGS="${LDFLAGS} -L/usr/local/lib"
TEMP_LIBS="-L/usr/local/lib"
fi
fi
TEMP_LIBS="-lm ${TEMP_LIBS}"
TEMP_CFLAGS="${TEMP_CFLAGS} ${CFLAGS}"
TEMP_CPPFLAGS="${TEMP_CPPFLAGS} ${CPPFLAGS}"
TEMP_LDFLAGS="${TEMP_LDFLAGS} ${LDFLAGS}"
AC_SUBST(CFLAGS, "${TEMP_CFLAGS}")
AC_SUBST(CPPFLAGS, "${TEMP_CPPFLAGS}")
AC_SUBST(LDFLAGS, "${TEMP_LDFLAGS}")
############################################################################### ##############################################################################
### Host search paths for MYSQL/PGSQL ### Check pthread
############################################################################### ##############################################################################
#dpkg-architecture may not be available so manually list AC_CHECK_HEADERS(pthread.h,,AC_MSG_ERROR([pthread is required.]))
SEARCH_INC="/usr/include/x86_64-linux-gnu" CFLAGS="${CFLAGS} -D_THREAD_SAFE "
SEARCH_INC=$SEARCH_INC" /usr/include/i386-linux-gnu" LIBS="$LIBS -pthread "
SEARCH_INC=$SEARCH_INC" /usr"
SEARCH_INC=$SEARCH_INC" /usr/include"
SEARCH_INC=$SEARCH_INC" /usr/local"
SEARCH_INC=$SEARCH_INC" /usr/local/include"
SEARCH_INC=$SEARCH_INC" /opt"
SEARCH_LIB="/usr/lib/x86_64-linux-gnu"
SEARCH_LIB=$SEARCH_LIB" /usr/lib/i386-linux-gnu"
SEARCH_LIB=$SEARCH_LIB" /usr"
SEARCH_LIB=$SEARCH_LIB" /usr/lib64"
SEARCH_LIB=$SEARCH_LIB" /usr/lib"
SEARCH_LIB=$SEARCH_LIB" /usr/local"
SEARCH_LIB=$SEARCH_LIB" /usr/local/lib"
SEARCH_LIB=$SEARCH_LIB" /opt"
############################################################################### ##############################################################################
### Video System ### Check JPG - Required. Needed for image processing
############################################################################### ##############################################################################
BKTR="yes" AC_CHECK_HEADERS(setjmp.h jerror.h jpeglib.h,[JPGS="yes"],[JPGS="no"])
AC_ARG_WITH(bktr, AC_MSG_CHECKING(jpg libraries)
AS_HELP_STRING([--without-bktr], AC_MSG_RESULT($JPGS)
[Exclude to use bktr subsystem for BSD]), AS_IF([test "${JPGS}" = "yes" ], [
BKTR="$withval") AS_IF([pkg-config libjpeg ], [
TEMP_CFLAGS="$TEMP_CFLAGS "`pkg-config --cflags libjpeg`
TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs libjpeg`
],[
TEMP_LIBS="$TEMP_LIBS -ljpeg"
]
)
],[
AC_MSG_ERROR([Required package libjpeg-dev not found, please check motion_gu
ide.html and install necessary dependencies])
]
)
##############################################################################
### Check libmicrohttpd - Required. Needed for stream/webcontrol
##############################################################################
AC_CHECK_HEADERS(microhttpd.h,[MHTTP="yes"],[MHTTP="no"])
AC_MSG_CHECKING(libmicrohttpd libraries)
AC_MSG_RESULT($MHTTP)
AS_IF([test "${MHTTP}" = "yes" ], [
TEMP_CFLAGS="$TEMP_CFLAGS "`pkg-config --cflags libmicrohttpd`
TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs libmicrohttpd`
],[
AC_MSG_ERROR([Required package libmicrohttpd-dev not found, please check mot
ion_guide.html and install necessary dependencies])
]
)
V4L2="yes" ##############################################################################
AC_ARG_WITH(v4l2, ### Check setting/getting thread names
AS_HELP_STRING([--without-v4l2],[Disable V4L2 devices]), ##############################################################################
V4L2="$withval") AC_CHECK_HEADERS(pthread_np.h,[PTHREAD_NP="yes"],[PTHREAD_NP="no"])
if test "x${BKTR}" = "xyes"; then AC_MSG_CHECKING([for pthread_setname_np])
if test "${DISTRO}" = "FreeBSD"; then AC_LINK_IFELSE(
AC_CHECK_HEADERS(dev/bktr/ioctl_meteor.h dev/bktr/ioctl_bt848.h,[BKTR="yes"] [AC_LANG_PROGRAM([#include <pthread.h>], [pthread_setname_np(pthread_self(), "
,[BKTR="no"]) name")])
elif test "${DISTRO}" = "OpenBSD" || test "${DISTRO}" = "NetBSD"; then ],[
AC_CHECK_HEADERS(dev/ic/bt8xx.h,[BKTR="yes"],[BKTR="no"]) AC_DEFINE([HAVE_PTHREAD_SETNAME_NP], [1], [Define if you have pthread_setnam
else e_np function.])
BKTR="no" PTHREAD_SETNAME_NP="yes"
fi AC_MSG_RESULT([yes])
fi ],[
if test "${V4L2}" = "yes"; then PTHREAD_SETNAME_NP="no"
AC_CHECK_HEADERS(linux/videodev2.h,[V4L2="yes"],[V4L2="no"]) AC_MSG_RESULT([no])
fi ]
)
if test "x${V4L2}" = "xyes"; then
AC_DEFINE([HAVE_V4L2], 1, [Define to 1 if V4L2 is around])
fi
if test "x${BKTR}" = "xyes"; then
AC_DEFINE([HAVE_BKTR], 1, [Define to 1 if BKTR is around])
fi
##############################################################################
### Check for threading
##############################################################################
THREADS="yes"
if test "${DISTRO}" = "FreeBSD"; then
AC_CHECK_HEADERS(pthread_np.h,[THREADS="yes"],[THREADS="no"])
AC_MSG_CHECKING(for threads)
AC_MSG_RESULT($THREADS)
fi
if test x$THREADS = xyes; then
TEMP_LIBS="$TEMP_LIBS -pthread"
TEMP_CFLAGS="${TEMP_CFLAGS} -D_THREAD_SAFE"
##############################################################################
### Check for pthread_setname_np (nonstandard GNU extension)
##############################################################################
AC_MSG_CHECKING([for pthread_setname_np])
HOLD_LIBS="$LIBS"
LIBS="$TEMP_LIBS"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <pthread.h>], [pthread_setname_np(pthread_self(),
"name")])],
[AC_DEFINE([HAVE_PTHREAD_SETNAME_NP], [1], [Define if you have pthread_setna
me_np function.])
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])] )
##############################################################################
### Check for pthread_getname_np (nonstandard GNU extension)
##############################################################################
AC_MSG_CHECKING([for pthread_getname_np])
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <pthread.h>], [pthread_getname_np(pthread_self(),
NULL, 0)])],
[AC_DEFINE([HAVE_PTHREAD_GETNAME_NP], [1], [Define if you have pthread_getna
me_np function.])
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])] )
LIBS="$HOLD_LIBS" AC_MSG_CHECKING([for pthread_getname_np])
fi AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <pthread.h>], [pthread_getname_np(pthread_self(), N
ULL, 0)])
],[
AC_DEFINE([HAVE_PTHREAD_GETNAME_NP], [1], [Define if you have pthread_getnam
e_np function.])
PTHREAD_GETNAME_NP="yes"
AC_MSG_RESULT([yes])
],[
PTHREAD_GETNAME_NP="no"
AC_MSG_RESULT([no])
]
)
############################################################################## ##############################################################################
### Check for XSI strerror_r ### Check XSI strerror_r. Check for Linux/*BSD/Apple/MUSL variations
############################################################################## ##############################################################################
AC_MSG_CHECKING([for XSI strerror_r]) AC_MSG_CHECKING([for XSI strerror_r])
HOLD_CFLAGS="$CFLAGS" HOLD_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror" CFLAGS="$CFLAGS -Werror"
AC_LINK_IFELSE( AC_LINK_IFELSE(
[AC_LANG_SOURCE[ [AC_LANG_SOURCE[
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
int main(int argc, char** argv) { int main(int argc, char** argv) {
char buf[1024]; char buf[1024];
int ret = strerror_r(ENOMEM, buf, sizeof(buf)); int ret = strerror_r(ENOMEM, buf, sizeof(buf));
return ret; return ret;
} }]
]], ],[
[AC_DEFINE([XSI_STRERROR_R], [1], [Define if you have XSI strerror_r function. AC_DEFINE([XSI_STRERROR_R], [1], [Define if you have XSI strerror_r function
]) .])
AC_MSG_RESULT([yes])], XSI_STRERROR="yes"
[AC_MSG_RESULT([no])] ) AC_MSG_RESULT([yes])
],[
XSI_STRERROR="no"
AC_MSG_RESULT([no])
]
)
CFLAGS="$HOLD_CFLAGS" CFLAGS="$HOLD_CFLAGS"
############################################################################## ###############################################################################
### Check for full gettext support (lib and required programs) ### BKTR Video System - Optional
############################################################################## ###############################################################################
LANGCDS="" AC_ARG_WITH(bktr,
AC_CHECK_HEADERS(libintl.h,[INTL="yes"],[INTL="no"]) AS_HELP_STRING([--without-bktr],[Disable bktr devices]),
if (test "x${INTL}" = "xyes"); then [BKTR="$withval"],
HOLD_CFLAGS=$CFLAGS [BKTR="yes"]
HOLD_LIBS=$LIBS )
# Check without a lib AS_IF([test "${BKTR}" = "yes" ], [
CFLAGS="" AC_CHECK_HEADERS(dev/bktr/ioctl_meteor.h dev/bktr/ioctl_bt848.h,[BKTR="yes"]
LIBS="" ,[BKTR="no"])
AC_LINK_IFELSE( AS_IF([test "${BKTR}" = "no" ], [
[AC_LANG_PROGRAM([#include <libintl.h>], [bindtextdomain ("motion", "/")])], AC_CHECK_HEADERS(dev/ic/bt8xx.h,[BKTR="yes"],[BKTR="no"])
[INTL="yes"],[INTL="no"]) ]
)
# If it has flipped to no after our test, try it with a lib AS_IF([test "${BKTR}" = "yes" ], [
if (test "x${INTL}" = "xno"); then AC_DEFINE([HAVE_BKTR], [1], [Define to 1 if BKTR is around])
LIBS=" -lintl" ]
AC_LINK_IFELSE( )
[AC_LANG_PROGRAM([#include <libintl.h>], [bindtextdomain ("motion", "/") ]
])], )
[INTL="yes"],[INTL="no"])
# If it now a yes, then we needed the lib, add it to temp_libs
# HAVE_INTL still may turn off based upon below so the lib May not be ne
eded.
if (test "x${INTL}" = "xyes"); then
TEMP_LIBS="$TEMP_LIBS -lintl"
fi
fi
CFLAGS=$HOLD_CFLAGS
LIBS=$HOLD_LIBS
fi
MSGFMT=`msgfmt --version 2>/dev/null`
GETTXT=`gettext --version 2>/dev/null`
# Get the langs from what po files exist
for f in ./po/*.po; do
TMP=`basename $f`
TMP=`echo $TMP | sed -e 's/\.po$//'`
if test "x$TMP" != "x*.po"; then
LANGCDS=$LANGCDS" "$TMP
fi
done
if (test "x${INTL}" = "xyes" &&
test "x${MSGFMT}" != "x" &&
test "x${GETTXT}" != "x" &&
test "x${LANGCDS}" != "x" ); then
AC_DEFINE([HAVE_INTL], 1, [Define to 1 if libintl is around])
else
INTL="no"
fi
AC_MSG_CHECKING(Native language support)
AC_MSG_RESULT($INTL)
AC_SUBST(INTL)
AC_SUBST(LANGCDS)
##############################################################################
### Check for JPG
##############################################################################
AC_CHECK_HEADERS(setjmp.h jerror.h jpeglib.h,[JPGS="yes"],[JPGS="no"])
AC_MSG_CHECKING(jpg libraries)
AC_MSG_RESULT($JPGS)
if test x$JPGS = xyes ; then
TEMP_LIBS="$TEMP_LIBS -ljpeg"
else
AC_MSG_ERROR([Required package libjpeg-dev not found, please check motion_guid
e.html and install necessary dependencies])
fi
##############################################################################
### Check for libmicrohttpd
##############################################################################
AC_CHECK_HEADERS(microhttpd.h,[MHTTP="yes"],[MHTTP="no"])
AC_MSG_CHECKING(libmicrohttpd libraries)
AC_MSG_RESULT($MHTTP)
if test x$MHTTP = xyes ; then
TEMP_LIBS="$TEMP_LIBS -lmicrohttpd "
else
AC_MSG_ERROR([Required package libmicrohttpd-dev not found, please check motio
n_guide.html and install necessary dependencies])
fi
############################################################################## ###############################################################################
### pkg-config ### V4L2 Video System - Optional
############################################################################## ###############################################################################
AC_CHECK_PROG([PKGCONFIG],[pkg-config],[yes],[no]) AC_ARG_WITH(v4l2,
AM_CONDITIONAL([FOUND_PKGCONFIG], [test "x$PKGCONFIG" = xyes]) AS_HELP_STRING([--without-v4l2],[Disable V4L2 devices]),
AM_COND_IF([FOUND_PKGCONFIG],,[AC_MSG_ERROR([Required package 'pkg-config' not f [V4L2="$withval"],
ound, please check motion_guide.html and install necessary dependencies.])]) [V4L2="yes"]
)
AS_IF([test "${V4L2}" = "yes" ], [
AC_CHECK_HEADERS(linux/videodev2.h sys/videoio.h,[V4L2="yes";break],[V4L2="no"
])
AS_IF([test "${V4L2}" = "yes" ], [
AC_DEFINE([HAVE_V4L2], [1], [Define to 1 if V4L2 is around])
]
)
]
)
############################################################################## ##############################################################################
### Webp Image Format ### Webp Image Format - Optional.
############################################################################## ##############################################################################
AC_ARG_WITH([webp], AC_ARG_WITH([webp],
AS_HELP_STRING([--with-webp], AS_HELP_STRING([--with-webp],[Compile with Webp image support]),
[Compile with Webp image support]), [WEBP="$withval"],
WEBP="$withval", [WEBP="yes]"
WEBP="yes") )
HAVE_WEBP="" AS_IF([test "${WEBP}" = "yes" ], [
if test "${WEBP}" = "yes"; then AC_MSG_CHECKING(for webp)
AC_MSG_CHECKING(for libwebp) AS_IF([pkg-config libwebpmux ], [
WEBP_DEPS="libwebp" AC_MSG_RESULT(yes)
if pkg-config $WEBP_DEPS; then AC_DEFINE([HAVE_WEBP], [1], [Define to 1 if WEBP is around])
AC_MSG_RESULT(found) TEMP_CFLAGS="$TEMP_CFLAGS "`pkg-config --cflags libwebpmux`
AC_DEFINE([HAVE_WEBP], 1, [Define to 1 if WEBP is around]) TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs libwebpmux`
HAVE_WEBP="yes" ],[
TEMP_LIBS="$TEMP_LIBS -lwebpmux -lwebp" AC_MSG_RESULT(no)
else ]
AC_MSG_RESULT(not found) )
fi ]
fi )
############################################################################## ##############################################################################
### raspberry pi mmal ### raspberry pi mmal - Optional.
############################################################################## ##############################################################################
WITHOUT_MMAL="no"
AC_ARG_WITH([mmal], AC_ARG_WITH([mmal],
AS_HELP_STRING([--without-mmal], AS_HELP_STRING([--with-mmal[=DIR]],[Compile with RasperryPi mmal camera suppor
[Compile without RaspberyPi mmal camera support]), t]),
WITHOUT_MMAL="yes", [MMAL="$withval"],
WITHOUT_MMAL="no") [MMAL="yes"]
)
AC_ARG_WITH([mmal-lib],
AS_HELP_STRING([--with-mmal-lib[=DIR]], AS_IF([test "${MMAL}" = "no"], [
[Use this command to tell configure where mmal libs directory is.]), AC_MSG_CHECKING(for MMAL)
MMAL_LIBS_DIR="$withval", AC_MSG_RESULT(skipped)
MMAL_LIBS_DIR="/opt/vc/lib" ],[
) AC_MSG_CHECKING(MMAL pkg-config path)
TEMP_PATH=$PKG_CONFIG_PATH
AC_ARG_WITH([mmal-include], AS_IF([test "${MMAL}" != "yes"], [
AS_HELP_STRING([--with-mmal-include[=DIR]], PKG_CONFIG_PATH=${MMAL}/lib/pkgconfig:$PKG_CONFIG_PATH
[Use this command to tell configure where mmal include installation root dir MMAL="yes"
ectory is.]), ],[
MMAL_HEADERS="$withval", PKG_CONFIG_PATH=.:/opt/vc/lib/pkgconfig
MMAL_HEADERS="/opt/vc/include" ]
) )
export PKG_CONFIG_PATH
if test "${WITHOUT_MMAL}" = "no"; then AC_MSG_RESULT($PKG_CONFIG_PATH)
HAVE_MMAL=""
if test "${DISTRO}" = "FreeBSD" ; then AC_MSG_CHECKING(for MMAL)
LIBRASPBERRYPIDEVPATH="/usr/local/include/interface/mmal" AS_IF([pkg-config mmal], [
else TEMP_CFLAGS="$TEMP_CFLAGS -Irasppicam "`pkg-config --cflags mmal`
LIBRASPBERRYPIDEVPATH="/opt/vc/include/interface/mmal" TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs mmal`
fi #pkg config parm does not provide -lvchostif that buildroot requires
TEMP_LIBS="$TEMP_LIBS -lvchostif "
if test -d ${LIBRASPBERRYPIDEVPATH}; then AC_MSG_RESULT([yes])
HAVE_MMAL="yes" AC_DEFINE([HAVE_MMAL], [1], [Define to 1 if MMAL is around])
elif test -d ${MMAL_HEADERS}/interface/mmal; then ],[
HAVE_MMAL="yes" AC_MSG_RESULT([no])
fi MMAL="no"
]
AS_IF([test "${HAVE_MMAL}" = "yes" ], [ )
AC_SUBST(MMAL_CFLAGS) PKG_CONFIG_PATH=$TEMP_PATH
AC_SUBST(MMAL_OBJ) export PKG_CONFIG_PATH
AC_SUBST(MMAL_LIBS) ]
MMAL_OBJ="mmalcam.o raspicam/RaspiCamControl.o raspicam/RaspiCLI.o" )
MMAL_CFLAGS="-std=gnu99 -DHAVE_MMAL -Irasppicam -I${MMAL_HEADERS}" AM_CONDITIONAL([INC_MMAL_SRC],[test x${MMAL} = xyes])
AS_IF([test "${DISTRO}" = "FreeBSD" ], [
MMAL_CFLAGS="${MMAL_CFLAGS} -I/usr/local/include -I/usr/local/include/inte
rface/vcos -I/usr/local/include/interface/vcos/pthreads/ -I/usr/local/include/in
terface/vmcs_host/linux"
])
MMAL_LIBS="-L${MMAL_LIBS_DIR} -lmmal_core -lmmal_util -Wl,--push-state,--n
o-as-needed -lmmal_vc_client -Wl,--pop-state -lvcos -lvchostif -lvchiq_arm"
AC_DEFINE([HAVE_MMAL], 1, [Define to 1 if we want MMAL])
])
fi
############################################################################## ##############################################################################
### ffmpeg ### Check for ffmpeg - Optional.
############################################################################## ##############################################################################
FFMPEG_VER="--"
AC_ARG_WITH([ffmpeg], AC_ARG_WITH([ffmpeg],
AS_HELP_STRING([--with-ffmpeg[=DIR]], AS_HELP_STRING([--with-ffmpeg[=DIR]],[Build with FFMPEG support]),
[Build with FFMPEG support]), [FFMPEG=$withval],
[with_ffmpeg=$withval], [FFMPEG="yes"]
[with_ffmpeg=yes]) )
AS_IF([test "x$with_ffmpeg" != "xno"], [
AS_IF([test "x$with_ffmpeg" != "xyes"], [
PKG_CONFIG_PATH=${with_ffmpeg}/lib/pkgconfig:$PKG_CONFIG_PATH
export PKG_CONFIG_PATH
])
FFMPEG_DEPS="libavutil libavformat libavcodec libswscale libavdevice"
if pkg-config $FFMPEG_DEPS; then
FFMPEG_CFLAGS=`pkg-config --cflags $FFMPEG_DEPS`
FFMPEG_LIBS=`pkg-config --libs $FFMPEG_DEPS`
FFMPEG_VER=`pkg-config --modversion libavformat`
AC_MSG_CHECKING(for libavformat)
AC_MSG_RESULT(yes $FFMPEG_VER)
HAVE_FFMPEG="yes"
else
AC_MSG_ERROR([Required ffmpeg packages 'libavutil-dev libavformat-
dev libavcodec-dev libswscale-dev libavdevice-dev' were not found. Please check
motion_guide.html and install necessary dependencies or use the '--without-ffmp
eg' configuration option.])
fi
AC_SUBST(FFMPEG_LIBS)
AC_SUBST(FFMPEG_CFLAGS)
])
AS_IF([test "${HAVE_FFMPEG}" = "yes" ], [ AS_IF([test "${FFMPEG}" = "no"], [
AC_DEFINE([HAVE_FFMPEG], 1, [Define to 1 if FFMPEG is around]) AC_MSG_CHECKING(for FFmpeg)
]) AC_MSG_RESULT(skipped)
],[
AC_MSG_CHECKING(FFmpeg pkg-config path)
TEMP_PATH=$PKG_CONFIG_PATH
AS_IF([test "${FFMPEG}" != "yes"], [
PKG_CONFIG_PATH=${FFMPEG}/lib/pkgconfig:$PKG_CONFIG_PATH
FFMPEG="yes"
]
)
export PKG_CONFIG_PATH
AC_MSG_RESULT($PKG_CONFIG_PATH)
FFMPEG_DEPS="libavutil libavformat libavcodec libswscale libavdevice"
AC_MSG_CHECKING(for FFmpeg)
AS_IF([pkg-config $FFMPEG_DEPS], [
FFMPEG_VER=`pkg-config --modversion libavformat`
TEMP_CFLAGS="$TEMP_CFLAGS "`pkg-config --cflags $FFMPEG_DEPS`
TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs $FFMPEG_DEPS`
AC_DEFINE([HAVE_FFMPEG], [1], [Define to 1 if FFMPEG is around])
AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
AC_MSG_ERROR([Required ffmpeg packages 'libavutil-dev libavformat-dev li
bavcodec-dev libswscale-dev libavdevice-dev' were not found. Please check motio
n_guide.html and install necessary dependencies or use the '--without-ffmpeg' co
nfiguration option.])
]
)
PKG_CONFIG_PATH=$TEMP_PATH
export PKG_CONFIG_PATH
]
)
############################################################################## ##############################################################################
### Check SQLITE3 ### Check for MariaDB - Optional
############################################################################## ##############################################################################
SQLITE_OBJ="" AC_ARG_WITH(mariadb,
SQLITE3_SUPPORT="no" AS_HELP_STRING([--with-mariadb[=DIR]],[Build with MariaDB support]),
AC_ARG_WITH(sqlite3, [MARIADB="$withval"],
AS_HELP_STRING([--without-sqlite3], [MARIADB="yes"]
[Disable sqlite3 support in motion.]), )
[SQLITE3="$withval"])
if test "${SQLITE3}" = "no"; then AS_IF([test "${MARIADB}" = "no"], [
AC_MSG_CHECKING(for sqlite3) AC_MSG_CHECKING(for MariaDB)
AC_MSG_RESULT(skipping) AC_MSG_RESULT(skipped)
else ],[
# first we check to see if the sqlite3 amalgamation (sqlite3.c), is in with TEMP_PATH=$PKG_CONFIG_PATH
our source AC_MSG_CHECKING(MariaDB pkg-config path)
# this is the preferred way to use sqlite AS_IF([test "${MARIADB}" != "yes"], [
if test -f sqlite3.c; then PKG_CONFIG_PATH=${MARIADB}/lib/pkgconfig:$PKG_CONFIG_PATH
SQLITE3_SUPPORT="yes" MARIADB="yes"
SQLITE_OBJ="sqlite3.o" ]
TEMP_LIBS="$TEMP_LIBS -ldl" )
AC_DEFINE([HAVE_SQLITE3],1,[Define to 1 if you have SQLITE3]) export PKG_CONFIG_PATH
AC_DEFINE([HAVE_SQLITE3_EMBEDDED],1,[Define to 1 if you have SQLITE3 emb AC_MSG_RESULT($PKG_CONFIG_PATH)
edded support])
else AC_MSG_CHECKING(for MariaDB)
# if sqlite3.c is not found then we look for the shared library AS_IF([pkg-config mariadb], [
AC_CHECK_HEADERS(sqlite3.h, TEMP_CFLAGS="$TEMP_CFLAGS "`pkg-config --cflags mariadb`
[ TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs mariadb`
TEMP_LIBS="$TEMP_LIBS -lsqlite3" AC_DEFINE([HAVE_MARIADB], [1], [Define to 1 if you have MariaDB support]
SQLITE3_SUPPORT="yes" )
AC_DEFINE([HAVE_SQLITE3],1,[Define to 1 if you have SQLITE3 shared l ],[
ibrary support]) MARIADB="no"
] ]
) )
fi AC_MSG_RESULT([$MARIADB])
fi PKG_CONFIG_PATH=$TEMP_PATH
AC_SUBST(SQLITE_OBJ) export PKG_CONFIG_PATH
]
)
############################################################################## ##############################################################################
### Check mysql ### Check for MySQL - Optional
############################################################################## ##############################################################################
MYSQL="yes"
MYSQL_SUPPORT="no"
MYSQL_HEADERS="yes"
MYSQL_LIBS="yes"
MYSQL_INCDIR=""
MYSQL_LIBDIR=""
AC_ARG_WITH(mysql, AC_ARG_WITH(mysql,
AS_HELP_STRING([--without-mysql],[Disable mysql support]), AS_HELP_STRING([--with-mysql[=DIR]],[Build with MySQL support]),
[MYSQL="$withval"]) [MYSQL="$withval"],
AC_ARG_WITH(mysql-lib, [MYSQL="yes"]
AS_HELP_STRING([--with-mysql-lib[=DIR]],[Specify the library path for mysql] )
),
[MYSQL_LIBS="$withval"])
AC_ARG_WITH(mysql-include,
AS_HELP_STRING([--with-mysql-include[=DIR]],[Specify the include path for my
sql]),
[MYSQL_HEADERS="$withval"])
if test "${MYSQL}" = "no"; then AS_IF([test "${MYSQL}" = "no"], [
AC_MSG_CHECKING(for mysql support) AC_MSG_CHECKING(for MySQL)
AC_MSG_RESULT(skipped) AC_MSG_RESULT(skipped)
else ],[
AC_MSG_CHECKING(for db package config) TEMP_PATH=$PKG_CONFIG_PATH
if pkg-config mariadb; then AC_MSG_CHECKING(MySQL pkg-config path)
AC_MSG_RESULT(mariadb found) AS_IF([test "${MYSQL}" != "yes"], [
MYSQL_INCDIR=`pkg-config --cflags mariadb` PKG_CONFIG_PATH=${MYSQL}/lib/pkgconfig:$PKG_CONFIG_PATH
MYSQL_LIBDIR=`pkg-config --libs mariadb` MYSQL="yes"
elif pkg-config mysqlclient; then ]
AC_MSG_RESULT(mysqlclient found) )
MYSQL_INCDIR=`pkg-config --cflags mysqlclient` export PKG_CONFIG_PATH
MYSQL_LIBDIR=`pkg-config --libs mysqlclient` AC_MSG_RESULT($PKG_CONFIG_PATH)
else
AC_MSG_RESULT(not found) AC_MSG_CHECKING(for MySQL)
if test "${MYSQL_HEADERS}" = "yes"; then AS_IF([pkg-config mysqlclient], [
AC_MSG_CHECKING(for mysql headers) TEMP_CFLAGS="$TEMP_CFLAGS "`pkg-config --cflags mysqlclient`
for w in $SEARCH_INC; do TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs mysqlclient`
if test -f $w/mysql.h; then AC_DEFINE([HAVE_MYSQL], [1], [Define to 1 if you have MySQL support])
MYSQL_INCDIR=$w ],[
break MYSQL="no"
fi ]
if test -f $w/mysql/mysql.h; then )
MYSQL_INCDIR=$w/mysql AC_MSG_RESULT([$MYSQL])
break PKG_CONFIG_PATH=$TEMP_PATH
fi export PKG_CONFIG_PATH
if test -f $w/mysql/include/mysql.h; then ]
MYSQL_INCDIR=$w/mysql/include )
break
fi
done
elif test "${MYSQL_HEADERS}" = "no"; then
AC_MSG_CHECKING(for mysql headers)
else
AC_MSG_CHECKING(for mysql headers in $MYSQL_HEADERS)
if test -f $MYSQL_HEADERS/mysql.h; then
MYSQL_INCDIR=$MYSQL_HEADERS
fi
fi
if test -z "$MYSQL_INCDIR" ; then
MYSQL_HEADERS="no"
AC_MSG_RESULT(not found)
else
AC_MSG_RESULT($MYSQL_INCDIR yes)
MYSQL_HEADERS="yes"
fi
# ******* Search mysql libs *********
if test "${MYSQL_LIBS}" = "yes"; then
AC_MSG_CHECKING(for mysql libs)
for w in $SEARCH_LIB; do
if test -f $w/libmysqlclient.a -o -f $w/libmysqlclient.so; then
MYSQL_LIBDIR=$w
break
fi
if test -f $w/mysql/libmysqlclient.a -o -f $w/mysql/libmysqlclie
nt.so; then
MYSQL_LIBDIR=$w/mysql
break
fi
if test -f $w/mysql/lib/libmysqlclient.a -o -f $w/mysql/lib/libm
ysqlclient.so; then
MYSQL_LIBDIR=$w/mysql/lib
break
fi
done
AC_MSG_RESULT($MYSQL_LIBDIR)
elif test "${MYSQL_LIBS}" = "no"; then
AC_MSG_CHECKING(for mysql libs)
AC_MSG_RESULT(skipped)
else
AC_MSG_CHECKING(for mysql libs in $MYSQL_LIBS)
if test -f $MYSQL_LIBS/libmysqlclient.a -o -f $MYSQL_LIBS/libmysqlcl
ient.so; then
MYSQL_LIBDIR=$MYSQL_LIBS
fi
AC_MSG_RESULT($MYSQL_LIBS)
fi
if test "x$MYSQL_INCDIR" != "x"; then MYSQL_INCDIR="-I$MYSQL_INCDIR"; fi
if test "x$MYSQL_LIBDIR" != "x"; then
MYSQL_LIBDIR=" -L$MYSQL_LIBDIR -lmysqlclient -lz";
else
MYSQL_LIBDIR=" -lmysqlclient -lz"
fi
fi
# ******* Validate MYSQL *********
HOLD_CFLAGS=$CFLAGS
HOLD_LIBS=$LIBS
CFLAGS=$MYSQL_INCDIR
LIBS=$MYSQL_LIBDIR
AC_CHECK_LIB(mysqlclient,mysql_init,[
TEMP_CFLAGS="$TEMP_CFLAGS $MYSQL_INCDIR"
TEMP_LIBS="$TEMP_LIBS $MYSQL_LIBDIR"
MYSQL_SUPPORT="yes"
AC_DEFINE([HAVE_MYSQL],1,[Define to 1 if you have MYSQL support])])
CFLAGS=$HOLD_CFLAGS
LIBS=$HOLD_LIBS
fi
##############################################################################
### Check PostgreSQL
##############################################################################
PGSQL="yes"
PGSQL_SUPPORT="no"
PGSQL_HEADERS="yes"
PGSQL_LIBS="yes"
PGSQL_INCDIR=""
PGSQL_LIBDIR=""
##############################################################################
### Check for PostgreSQL - Optional
##############################################################################
AC_ARG_WITH(pgsql, AC_ARG_WITH(pgsql,
AS_HELP_STRING([--without-pgsql],[Disable pgsql support]), AS_HELP_STRING([--with-pgsql[=DIR]],[Build with PostgreSQL support]),
[PGSQL="$withval"]) [PGSQL="$withval"],
AC_ARG_WITH(pgsql-lib, [PGSQL="yes"]
AS_HELP_STRING([--with-pgsql-lib[=DIR]],[Specify the library path for pgsql] )
),
[PGSQL_LIBS="$withval"])
AC_ARG_WITH(pgsql-include,
AS_HELP_STRING([--with-pgsql-include[=DIR]],[Specify the include path for pg
sql]),
[PGSQL_HEADERS="$withval"])
if test "${PGSQL}" = "no"; then AS_IF([test "${PGSQL}" = "no"], [
AC_MSG_CHECKING(for pgsql support) AC_MSG_CHECKING(for PostgreSQL)
AC_MSG_RESULT(skipped) AC_MSG_RESULT(skipped)
else ],[
AC_MSG_CHECKING(for pgsql package config) TEMP_PATH=$PKG_CONFIG_PATH
if pkg-config libpq; then AC_MSG_CHECKING(PostgreSQL pkg-config path)
AC_MSG_RESULT(found) AS_IF([test "${PGSQL}" != "yes"], [
PGSQL_INCDIR=`pkg-config --cflags libpq` PKG_CONFIG_PATH=${PGSQL}/lib/pkgconfig:$PKG_CONFIG_PATH
PGSQL_LIBDIR=`pkg-config --libs libpq` PGSQL="yes"
else ]
AC_MSG_RESULT(not found) )
if test "${PGSQL_HEADERS}" = "yes"; then export PKG_CONFIG_PATH
AC_MSG_CHECKING(for pgsql headers) AC_MSG_RESULT($PKG_CONFIG_PATH)
for w in $SEARCH_INC; do
if test -f $w/libpq-fe.h; then AC_MSG_CHECKING(for PostgreSQL)
PGSQL_INCDIR=$w AS_IF([pkg-config libpq], [
break TEMP_CFLAGS="$TEMP_CFLAGS "`pkg-config --cflags libpq`
fi TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs libpq`
if test -f $w/postgresql/libpq-fe.h; then AC_DEFINE([HAVE_PGSQL], [1], [Define to 1 if you have PostgreSQL support
PGSQL_INCDIR=$w/postgresql ])
break ],[
fi PGSQL="no"
if test -f $w/postgresql/include/libpq-fe.h; then ]
PGSQL_INCDIR=$w/postgresql/include )
break AC_MSG_RESULT([$PGSQL])
fi PKG_CONFIG_PATH=$TEMP_PATH
done export PKG_CONFIG_PATH
elif test "${PGSQL_HEADERS}" = "no"; then ]
AC_MSG_CHECKING(for pgsql headers) )
AC_MSG_RESULT(skipped)
else ##############################################################################
AC_MSG_CHECKING(for pgsql headers in $PGSQL_HEADERS) ### Check for SQLITE3 - Optional
if test -f $PGSQL_HEADERS/libpq-fe.h; then ##############################################################################
PGSQL_INCDIR=$PGSQL_HEADERS AC_ARG_WITH(sqlite3,
fi AS_HELP_STRING([--without-sqlite3],[Disable sqlite3 support.]),
fi [SQLITE3="$withval"],
[SQLITE3="yes"]
if test -z "$PGSQL_INCDIR" ; then )
PGSQL_HEADERS="no" AS_IF([test "${SQLITE3}" = "no"], [
AC_MSG_RESULT(not found) AC_MSG_CHECKING(for sqlite3)
else AC_MSG_RESULT(skipping)
AC_MSG_RESULT($PGSQL_INCDIR yes) ],[
PGSQL_HEADERS="yes" AC_CHECK_HEADERS(sqlite3.h, [
fi TEMP_CFLAGS="$TEMP_CFLAGS "`pkg-config --cflags sqlite3`
TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs sqlite3`
# ******* Search pgsql libs ********* AC_DEFINE([HAVE_SQLITE3], [1], [Define to 1 if you have SQLITE3 support]
if test "${PGSQL_LIBS}" = "yes"; then )
AC_MSG_CHECKING(for pgsql libs) ],[
for w in $SEARCH_LIB; do SQLITE3="no"
if test -f $w/libpq.a -o -f $w/libpq.so; then ]
PGSQL_LIBDIR=$w )
break ]
fi )
if test -f $w/postgresql/libpq.a -o -f $w/postgresql/libpq.so; t
hen
PGSQL_LIBDIR=$w/postgresql
break
fi
if test -f $w/postgresql/lib/libpq.a -o -f $w/postgresql/lib/lib
pq.so; then
PGSQL_LIBDIR=$w/postgresql/lib
break
fi
done
AC_MSG_RESULT($PGSQL_LIBDIR)
elif test "${PGSQL_LIBS}" = "no"; then
AC_MSG_CHECKING(for pgsql libs)
AC_MSG_RESULT(skipped)
else
AC_MSG_CHECKING(for pgsql libs in $PGSQL_LIBS)
if test -f $PGSQL_LIBS/libpq.a -o -f $PGSQL_LIBS/libpq.so; then
PGSQL_LIBDIR=$PGSQL_LIBS
fi
AC_MSG_RESULT($PGSQL_LIBDIR)
fi
if test "x$PGSQL_INCDIR" != "x"; then PGSQL_INCDIR="-I$PGSQL_INCDIR"; fi
if test "x$PGSQL_LIBDIR" != "x"; then
PGSQL_LIBDIR=" -L$PGSQL_LIBS -lpq";
else
PGSQL_LIBDIR=" -lpq"
fi
fi
# ******* Validate PGSQL *********
HOLD_CFLAGS=$CFLAGS
HOLD_LIBS=$LIBS
CFLAGS=$PGSQL_INCDIR
LIBS=$PGSQL_LIBDIR
AC_CHECK_LIB(pq, PQconnectStart, [
TEMP_CFLAGS="$TEMP_CFLAGS $PGSQL_INCDIR"
TEMP_LIBS="$TEMP_LIBS $PGSQL_LIBDIR"
PGSQL_SUPPORT="yes"
AC_DEFINE([HAVE_PGSQL],1,[Define to 1 if you have PGSQL support])])
CFLAGS=$HOLD_CFLAGS
LIBS=$HOLD_LIBS
fi
############################################################################## ##############################################################################
### Optimize compiler ### Optimize compiler
############################################################################## ##############################################################################
AC_ARG_WITH([optimizecpu], AC_ARG_WITH([optimizecpu],
AS_HELP_STRING([--without-optimizecpu], AS_HELP_STRING([--without-optimizecpu],
[Exclude autodetecting platform and cpu type. This will disable the [Exclude autodetecting platform and cpu type. This will disable the compilat
compilation of gcc optimizing code by platform and cpu.]), ion of gcc optimizing code by platform and cpu.]),
[OPTIMIZECPU=$withval], [OPTIMIZECPU=$withval],
[OPTIMIZECPU=no]) [OPTIMIZECPU=no]
)
CPU_OPTIONS=""
if test "${OPTIMIZECPU}" = "yes"; then AS_IF([test "${OPTIMIZECPU}" = "yes"], [
if test -e "/proc/device-tree/model"; then AS_IF([test -e "/proc/device-tree/model"], [
# explicit test for RPI3 as /proc/cpuinfo reports armv7 even though it i s armv8 # explicit test for RPI3 as /proc/cpuinfo reports armv7 even though it i s armv8
RPI3=`grep "Raspberry Pi 3 Model" /proc/device-tree/model` RPI3=`grep "Raspberry Pi 3 Model" /proc/device-tree/model`
if test "x${RPI3}" != "x"; then AS_IF([test "x${RPI3}" != "x"], [
CPU_OPTIONS="-mcpu=cortex-a53 -mfpu=neon-fp-armv8" TEMP_CFLAGS="$TEMP_CFLAGS -mcpu=cortex-a53 -mfpu=neon-fp-armv8"
fi ]
fi )
fi ]
)
]
)
############################################################################## ##############################################################################
### Developer Flags ### Developer Flags
############################################################################## ##############################################################################
AC_ARG_WITH([developer-flags], AC_ARG_WITH([developer-flags],
AS_HELP_STRING([--with-developer-flags], AS_HELP_STRING([--with-developer-flags],
[Causes practically all of the possible gcc warning flags to be set. This m ay produce a large amount of warnings.]), [Causes practically all of the possible gcc warning flags to be set. This m ay produce a large amount of warnings.]),
[DEVELOPER_FLAGS=$withval], [DEVELOPER_FLAGS=$withval],
[DEVELOPER_FLAGS=no]) [DEVELOPER_FLAGS=no])
if test "${DEVELOPER_FLAGS}" = "yes"; then AS_IF([test "${DEVELOPER_FLAGS}" = "yes"], [
TEMP_CFLAGS="${TEMP_CFLAGS} -W -Werror -Wall -Wextra -Wformat -Wshadow -Wpoi TEMP_CFLAGS="$TEMP_CFLAGS -W -Werror -Wall -Wextra -Wformat -Wshadow -Wpoint
nter-arith -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prot er-arith -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-protot
otypes -Wnested-externs -Winline -Wredundant-decls -Wno-long-long -ggdb -g3" ypes -Wnested-externs -Winline -Wredundant-decls -Wno-long-long -ggdb -g3"
fi ]
)
CFLAGS="${TEMP_CFLAGS} $CPU_OPTIONS" ##############################################################################
LIBS="${TEMP_LIBS}" ### Prototype Flags
LDFLAGS="${TEMP_LDFLAGS}" ### mysql and mariadb have upstream prototype errors so remove that check
##############################################################################
############################################################################## AC_ARG_WITH([prototype-flags],
### exec paths AS_HELP_STRING([--with-prototype-flags],
############################################################################## [Causes practically all of the possible gcc warning flags to be set except m
if test $prefix = "NONE";then issing prototypes.]),
BIN_PATH="$ac_default_prefix" [PROTOTYPE_FLAGS=$withval],
if test $exec_prefix = "NONE"; then [PROTOTYPE_FLAGS=no])
BIN_PATH="$BIN_PATH/bin"
else AS_IF([test "${PROTOTYPE_FLAGS}" = "yes"], [
BIN_PATH="$BIN_PATH/$bindir" TEMP_CFLAGS="$TEMP_CFLAGS -W -Werror -Wall -Wextra -Wformat -Wshadow -Wpoint
fi er-arith -Wwrite-strings -Waggregate-return -Wnested-externs -Winline -Wredundan
else t-decls -Wno-long-long -ggdb -g3"
if test $exec_prefix = "NONE";then ]
BIN_PATH="$prefix/bin" )
else
BIN_PATH="$prefix/$bindir"
fi
fi
AC_SUBST(BIN_PATH)
AC_CHECK_HEADERS(stdio.h unistd.h stdint.h fcntl.h time.h signal.h sys/ioctl.h s CFLAGS="$CFLAGS $TEMP_CFLAGS"
ys/mman.h sys/param.h sys/types.h) LIBS="$LIBS $TEMP_LIBS"
LDFLAGS="$TEMP_LDFLAGS"
AC_CONFIG_FILES([ AC_CONFIG_FILES([
camera1-dist.conf Makefile
camera2-dist.conf src/Makefile
camera3-dist.conf po/Makefile.in
camera4-dist.conf man/Makefile
motion-dist.conf data/camera1-dist.conf
motion.init-FreeBSD.sh data/camera2-dist.conf
motion.init-Debian data/camera3-dist.conf
motion.service data/camera4-dist.conf
motion.spec data/motion-dist.conf
Makefile data/motion.service
]) ])
AC_ARG_VAR([KILL],[the 'kill' program to use to send signals to motion])
AC_PATH_PROG([KILL],[kill],['/bin/kill'])
AC_OUTPUT AC_OUTPUT
############################################################################## ##############################################################################
### Report results to user ### Report results to user
############################################################################## ##############################################################################
echo "" echo ""
echo " **************************" echo " **************************"
echo " Configure status " echo " Configure status "
echo " ${PACKAGE_NAME} ${PACKAGE_VERSION}" echo " ${PACKAGE_NAME} ${PACKAGE_VERSION}"
echo " **************************" echo " **************************"
echo echo
if test "${DISTRO}" = "Darwin"; then
echo "OS : Darwin"
elif test "${DISTRO}" != "Linux"; then
echo "OS : *BSD"
else
echo "OS : Linux"
fi
if test "${THREADS}" = "yes"; then
echo "pthread support: Yes"
else
echo "pthread support: No"
echo "**********************************************"
echo "** Fatal Error YOU MUST HAVE pthread Support *"
echo "**********************************************"
fi
if test "${JPGS}" = "yes"; then
echo "jpeg support: Yes"
else
echo "jpeg support: No"
echo "**********************************************"
echo "** Fatal Error YOU MUST HAVE jpeg Support ***"
echo "**********************************************"
fi
if test "${HAVE_WEBP}" = "yes"; then
echo "webp support: Yes"
else
echo "webp support: No"
fi
if test "$V4L2" = "yes"; then
echo "V4L2 support: Yes"
else
echo "V4L2 support: No"
fi
if test "${BKTR}" = "yes"; then
echo "BKTR support: Yes"
else
echo "BKTR support: No"
fi
if test "${HAVE_MMAL}" = "yes"; then
echo "MMAL support: Yes"
echo " ... MMAL_CFLAGS: $MMAL_CFLAGS"
echo " ... MMAL_OBJ: $MMAL_OBJ"
echo " ... MMAL_LIBS: $MMAL_LIBS"
elif test "${WITHOUT_MMAL}" = "yes"; then
echo "MMAL support: disabled"
else
echo "MMAL support: No"
echo " ... libraspberrypi-dev package not installed"
fi
if test "${HAVE_FFMPEG}" = "yes"; then
echo "FFmpeg support: Yes"
echo " ... FFMPEG_CFLAGS: $FFMPEG_CFLAGS"
echo " ... FFMPEG_LIBS: $FFMPEG_LIBS"
else
echo "FFmpeg support: No"
fi
if test "${SQLITE3_SUPPORT}" = "yes"; then
echo "SQLite3 support: Yes"
else
echo "SQLite3 support: No"
fi
if test "${MYSQL_SUPPORT}" = "yes"; then
echo "MYSQL support: Yes"
else
echo "MYSQL support: No"
fi
if test "${PGSQL_SUPPORT}" = "yes"; then
echo "PostgreSQL support: Yes"
else
echo "PostgreSQL support: No"
fi
echo
echo "CFLAGS: $CFLAGS" echo "CFLAGS: $CFLAGS"
echo
echo "LIBS: $LIBS" echo "LIBS: $LIBS"
echo
echo "LDFLAGS: $LDFLAGS" echo "LDFLAGS: $LDFLAGS"
echo echo
echo
echo "OS : $host_os"
echo "pthread_np : $PTHREAD_NP"
echo "pthread_setname_np : $PTHREAD_SETNAME_NP"
echo "pthread_getname_np : $PTHREAD_GETNAME_NP"
echo "XSI error : $XSI_STRERROR"
echo "webp support : $WEBP"
echo "V4L2 support : $V4L2"
echo "BKTR support : $BKTR"
echo "MMAL support : $MMAL"
echo "FFmpeg support : $FFMPEG"
echo "libavformat version : $FFMPEG_VER"
echo "SQLite3 support : $SQLITE3"
echo "MYSQL support : $MYSQL"
echo "PostgreSQL support : $PGSQL"
echo "MariaDB support : $MARIADB"
echo
echo "Install prefix: $prefix" echo "Install prefix: $prefix"
echo echo
 End of changes. 42 change blocks. 
751 lines changed or deleted 455 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)