[Sumover-dev] [svn commit] r4417 - vic/branches/mpeg4
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Mon Apr 13 06:10:44 BST 2009
Author: douglask
Date: Mon Apr 13 06:10:41 2009
New Revision: 4417
Modified:
vic/branches/mpeg4/configure
Log:
check-in due to updates after running autoconf
Modified: vic/branches/mpeg4/configure
==============================================================================
--- vic/branches/mpeg4/configure (original)
+++ vic/branches/mpeg4/configure Mon Apr 13 06:10:41 2009
@@ -650,6 +650,9 @@
build_alias
host_alias
target_alias
+INSTALL_PROGRAM
+INSTALL_SCRIPT
+INSTALL_DATA
build
build_cpu
build_vendor
@@ -714,7 +717,6 @@
V_LIB
V_CODEC_LIB
V_CPUDETECT_OBJ
-V_STATIC
V_TAR_TARGET
V_ALL
V_CCOPT
@@ -723,6 +725,7 @@
V_DEFINE
V_SIGRET
V_SHELL
+V_STATIC
V_TARCMD
V_INCLUDE
V_BROKEN_OBJ
@@ -1326,7 +1329,6 @@
--disable-h261as Enable or disable the h261as codec (default: enabled)
--enable-dvdecode Enable or disable dv decoding (default: disabled)
--enable-xvideo Enable or disable Xvideo rendering (default: disabled)
---enable-v4l2old Enable or disable old Video4Linux2 grabber (default: disabled)
--enable-XvGrabber Enable or disable old XvGrabber (default: disabled)
--enable-Linux1394Grabber Enable or disable Linux1394XvGrabber (default: disabled)
@@ -1781,6 +1783,118 @@
+ac_aux_dir=
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
+ if test -f "$ac_dir/install-sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f "$ac_dir/install.sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ elif test -f "$ac_dir/shtool"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
+echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
+
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+ ./ | .// | /cC/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+done
+IFS=$as_save_IFS
+
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ echo "$as_me:$LINENO: result: $INSTALL" >&5
+echo "${ECHO_T}$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+
V_PROG="vic"
V_ALL="$V_PROG"
V_SHM="-DUSE_SHM"
@@ -1818,37 +1932,6 @@
-ac_aux_dir=
-for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
- if test -f "$ac_dir/install-sh"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f "$ac_dir/install.sh"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- elif test -f "$ac_dir/shtool"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/shtool install -c"
- break
- fi
-done
-if test -z "$ac_aux_dir"; then
- { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
-echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-# These three variables are undocumented and unsupported,
-# and are intended to be withdrawn in a future Autoconf release.
-# They can cause serious problems if a builder's source tree is in a directory
-# whose full name contains unusual characters.
-ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
-ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
-ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
-
-
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
@@ -4541,7 +4624,7 @@
V_DEFINE="$V_DEFINE -DMAC_OSX_TCL"
fi
-elif test "${TCL_VERSION}" == "8.0" ; then
+elif test "${TCL_VERSION}" = "8.0" ; then
if test -f "${TCL_SRC_DIR}/generic/tcl2c.c" ; then
{ echo "$as_me:$LINENO: result: UCL Tcl ${TCL_VERSION}${TCL_PATCH_LEVEL}" >&5
echo "${ECHO_T}UCL Tcl ${TCL_VERSION}${TCL_PATCH_LEVEL}" >&6; }
@@ -4755,7 +4838,7 @@
{ echo "$as_me:$LINENO: checking for a compatible version of Tk" >&5
echo $ECHO_N "checking for a compatible version of Tk... $ECHO_C" >&6; }
-if test "${TCL_VERSION}" == "${TK_VERSION}"; then
+if test "${TCL_VERSION}" = "${TK_VERSION}"; then
{ echo "$as_me:$LINENO: result: Tk ${TK_VERSION}${TK_PATCH_LEVEL}" >&5
echo "${ECHO_T}Tk ${TK_VERSION}${TK_PATCH_LEVEL}" >&6; }
@@ -6505,29 +6588,20 @@
fi
-# Check whether --enable-v4l2old was given.
-if test "${enable_v4l2old+set}" = set; then
- enableval=$enable_v4l2old; v4l2old=yes
-else
- v4l2old=no
-fi
-
-if test "$v4l2old" = "yes" ; then
- V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-v4l2-old.o"
- echo "Using old Linux grabber-v4l2"
-elif test -r /usr/include/linux/videodev.h ; then
- if test "${ac_cv_header_libv4lconvert_h+set}" = set; then
- { echo "$as_me:$LINENO: checking for libv4lconvert.h" >&5
-echo $ECHO_N "checking for libv4lconvert.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_libv4lconvert_h+set}" = set; then
+{ echo "$as_me:$LINENO: checking for V4L support" >&5
+echo "$as_me: checking for V4L support" >&6;}
+if test "${ac_cv_header_linux_videodev_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
+echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_linux_videodev_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_libv4lconvert_h" >&5
-echo "${ECHO_T}$ac_cv_header_libv4lconvert_h" >&6; }
+{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
+echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
else
# Is the header compilable?
-{ echo "$as_me:$LINENO: checking libv4lconvert.h usability" >&5
-echo $ECHO_N "checking libv4lconvert.h usability... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
+echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -6535,7 +6609,7 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-#include <libv4lconvert.h>
+#include <linux/videodev.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
@@ -6567,15 +6641,15 @@
echo "${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present?
-{ echo "$as_me:$LINENO: checking libv4lconvert.h presence" >&5
-echo $ECHO_N "checking libv4lconvert.h presence... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
+echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <libv4lconvert.h>
+#include <linux/videodev.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
@@ -6608,121 +6682,679 @@
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
- { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: libv4lconvert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: libv4lconvert.h: proceeding with the compiler's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
- { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: libv4lconvert.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: libv4lconvert.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: libv4lconvert.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: libv4lconvert.h: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: libv4lconvert.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: libv4lconvert.h: in the future, the compiler will take precedence" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
;;
esac
-{ echo "$as_me:$LINENO: checking for libv4lconvert.h" >&5
-echo $ECHO_N "checking for libv4lconvert.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_libv4lconvert_h+set}" = set; then
+{ echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
+echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_linux_videodev_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- ac_cv_header_libv4lconvert_h=$ac_header_preproc
+ ac_cv_header_linux_videodev_h=$ac_header_preproc
fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_libv4lconvert_h" >&5
-echo "${ECHO_T}$ac_cv_header_libv4lconvert_h" >&6; }
+{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
+echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
fi
-if test $ac_cv_header_libv4lconvert_h = yes; then
- V_DEFINE="$V_DEFINE -DHAVE_LIBV4L"
- V_LIB_GRABBER="$V_LIB_GRABBER -lv4l1 -lv4l2"
-else
- V_OBJ_GRABBER="$V_OBJ_GRABBER video/tinyjpeg.o video/jidctflt.o"
+if test $ac_cv_header_linux_videodev_h = yes; then
+ have_videodev_h=yes;
fi
- if test -r /usr/include/linux/videodev2.h ; then
- V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-v4l2.o video/grabber-video4linux.o video/yuv_convert.o"
- echo "Using Linux Grabbers: Video4Linux2 and Video4Linux1"
- else
- V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-video4linux.o video/yuv_convert.o"
- echo "Using Linux Grabber: Video4Linux1"
- fi
+if test x$have_videodev_h = xyes; then
+ { echo "$as_me:$LINENO: suitable V4L support found... using linux/videodev.h" >&5
+echo "$as_me: suitable V4L support found... using linux/videodev.h" >&6;}
+ V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-video4linux.o"
+ have_V4L=yes
fi
-if test -r /usr/lib/libvl.so ; then
- V_LIB_GRABBER="$V_LIB_GRABBER -lvl -ldmedia"
- V_OBJ_GRABBER="video/grabber-vl.o video/output-vl.o $V_OBJ_GRABBER"
- if test -r /usr/include/dmedia/cl_cosmo.h ; then
- V_LIB_GRABBER="$V_LIB_GRABBER -lcl"
- V_OBJ_GRABBER="video/grabber-cosmo.o $V_OBJ_GRABBER"
- fi
+{ echo "$as_me:$LINENO: checking for V4L2 support" >&5
+echo "$as_me: checking for V4L2 support" >&6;}
+if test "${ac_cv_header_linux_videodev2_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for linux/videodev2.h" >&5
+echo $ECHO_N "checking for linux/videodev2.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_linux_videodev2_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
fi
-if test -r /usr/lib/libsvideo.a ; then
- V_LIB_GRABBER="$V_LIB_GRABBER -lsvideo"
- V_OBJ_GRABBER="video/grabber-svideo.o $V_OBJ_GRABBER"
+{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev2_h" >&5
+echo "${ECHO_T}$ac_cv_header_linux_videodev2_h" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking linux/videodev2.h usability" >&5
+echo $ECHO_N "checking linux/videodev2.h usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <linux/videodev2.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
fi
-# Check whether --enable-XvGrabber was given.
-if test "${enable_XvGrabber+set}" = set; then
- enableval=$enable_XvGrabber; XvGrabber=yes
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking linux/videodev2.h presence" >&5
+echo $ECHO_N "checking linux/videodev2.h presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <linux/videodev2.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
else
- XvGrabber=no
-fi
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-if test -r /usr/lib/libXv.a -a "$XvGrabber" = "yes" ; then
- V_LIB_GRABBER="$V_LIB_GRABBER -lXv"
- V_DEFINE="$V_DEFINE -DXV_PSEUDO8"
- V_OBJ_GRABBER="video/grabber-xv.o $V_OBJ_GRABBER"
-fi
-if test -r /usr/lpp/parallax/lib/libXvid.a ; then
- V_LIB_GRABBER="$V_LIB_GRABBER -L/usr/lpp/parallax/lib -lXvid -lXv"
- V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/lpp/parallax/include"
- V_OBJ_GRABBER="video/grabber-plx.o video/assistor-plx.o $V_OBJ_GRABBER"
-fi
-if test -r /usr/lpp/UMS6000/lib/libUMSobj.a ; then
- V_LIB_GRABBER="$V_LIB_GRABBER -L/usr/lpp/UMS6000/lib -lUMSobj"
- V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/lpp/UMS6000/include"
- V_DEFINE="$V_DEFINE -DSUNRISE"
- V_OBJ_GRABBER="video/grabber-sunrise.o video/output-sunrise.o $V_OBJ_GRABBER"
+ ac_header_preproc=no
fi
-if test -r /usr/include/machine/ioctl_meteor.h ; then
- V_OBJ_GRABBER="video/grabber-meteor.o $V_OBJ_GRABBER"
-fi
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
-# Check whether --enable-Linux1394Grabber was given.
-if test "${enable_Linux1394Grabber+set}" = set; then
- enableval=$enable_Linux1394Grabber; Linux1394Grabber=yes
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: linux/videodev2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: linux/videodev2.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: linux/videodev2.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: linux/videodev2.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: linux/videodev2.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: linux/videodev2.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: linux/videodev2.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: linux/videodev2.h: in the future, the compiler will take precedence" >&2;}
+
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for linux/videodev2.h" >&5
+echo $ECHO_N "checking for linux/videodev2.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_linux_videodev2_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- Linux1394Grabber=no
+ ac_cv_header_linux_videodev2_h=$ac_header_preproc
fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev2_h" >&5
+echo "${ECHO_T}$ac_cv_header_linux_videodev2_h" >&6; }
-if test -r /usr/include/libdc1394/dc1394_control.h -a -r /usr/include/libraw1394/raw1394.h -a "$Linux1394Grabber" = "yes"; then
- V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-linux1394.o"
- V_LIB_GRABBER="$V_LIB_GRABBER -lraw1394 -ldc1394_control"
fi
-
-#if test -r /usr/local/lib/libspigot.a -a ${PORTOBJFORMAT} != elf; then
-if test -r /usr/local/lib/libspigot.a ; then
- V_OBJ_GRABBER="video/grabber-spigot.o $V_OBJ_GRABBER"
- V_LIB_GRABBER="$V_LIB_GRABBER -lspigot"
- V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/local/include"
+if test $ac_cv_header_linux_videodev2_h = yes; then
+ have_linux_videodev2_h=yes;
fi
-if test "$qcamdir" != "" ; then
- V_OBJ_GRABBER="video/grabber-qcam.o $V_OBJ_GRABBER"
- V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$qcamdir"
- V_DEFINE="$V_DEFINE -DQCAMDEV -DQCAMDOTH=qcam.h"
-elif test -r /usr/local/lib/libqcam.a ; then
+
+if test "${ac_cv_header_sys_videodev2_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for sys/videodev2.h" >&5
+echo $ECHO_N "checking for sys/videodev2.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_sys_videodev2_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_videodev2_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_videodev2_h" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking sys/videodev2.h usability" >&5
+echo $ECHO_N "checking sys/videodev2.h usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <sys/videodev2.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking sys/videodev2.h presence" >&5
+echo $ECHO_N "checking sys/videodev2.h presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/videodev2.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: sys/videodev2.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: sys/videodev2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videodev2.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: sys/videodev2.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: sys/videodev2.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: sys/videodev2.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videodev2.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: sys/videodev2.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videodev2.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: sys/videodev2.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videodev2.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: sys/videodev2.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videodev2.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: sys/videodev2.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videodev2.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: sys/videodev2.h: in the future, the compiler will take precedence" >&2;}
+
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for sys/videodev2.h" >&5
+echo $ECHO_N "checking for sys/videodev2.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_sys_videodev2_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_sys_videodev2_h=$ac_header_preproc
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_videodev2_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_videodev2_h" >&6; }
+
+fi
+if test $ac_cv_header_sys_videodev2_h = yes; then
+ have_sys_videodev2_h=yes;
+fi
+
+
+if test "${ac_cv_header_sys_videoio_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for sys/videoio.h" >&5
+echo $ECHO_N "checking for sys/videoio.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_sys_videoio_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_videoio_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_videoio_h" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking sys/videoio.h usability" >&5
+echo $ECHO_N "checking sys/videoio.h usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <sys/videoio.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking sys/videoio.h presence" >&5
+echo $ECHO_N "checking sys/videoio.h presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/videoio.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: sys/videoio.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: sys/videoio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videoio.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: sys/videoio.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: sys/videoio.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: sys/videoio.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videoio.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: sys/videoio.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videoio.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: sys/videoio.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videoio.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: sys/videoio.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videoio.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: sys/videoio.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/videoio.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: sys/videoio.h: in the future, the compiler will take precedence" >&2;}
+
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for sys/videoio.h" >&5
+echo $ECHO_N "checking for sys/videoio.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_sys_videoio_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_sys_videoio_h=$ac_header_preproc
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_videoio_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_videoio_h" >&6; }
+
+fi
+if test $ac_cv_header_sys_videoio_h = yes; then
+ have_sys_videoio_h=yes;
+fi
+
+
+
+if test x$have_linux_videodev2_h = xyes ; then
+ { echo "$as_me:$LINENO: suitable V4L2 support found... using linux/videodev2.h" >&5
+echo "$as_me: suitable V4L2 support found... using linux/videodev2.h" >&6;}
+ V_DEFINE="$V_DEFINE -DHAVE_LINUX_VIDEODEV2_H"
+ V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-v4l2.o"
+ have_V4L2=yes
+
+elif test x$have_sys_videodev2_h = xyes; then
+ { echo "$as_me:$LINENO: suitable V4L2 support found... using sys/videodev2.h" >&5
+echo "$as_me: suitable V4L2 support found... using sys/videodev2.h" >&6;}
+ V_DEFINE="$V_DEFINE -DHAVE_SYS_VIDEODEV2_H"
+ V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-v4l2.o"
+ have_V4L2=yes
+
+elif test x$have_sys_videodev2_h = xyes; then
+ { echo "$as_me:$LINENO: suitable V4L2 support found... using sys/videoio.h" >&5
+echo "$as_me: suitable V4L2 support found... using sys/videoio.h" >&6;}
+ V_DEFINE="$V_DEFINE -DHAVE_SYS_VIDEOIO_H"
+ V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-v4l2.o"
+ have_V4L2=yes
+
+fi
+
+if test x$have_V4L = xyes -o x$have_V4L2 = xyes; then
+ V_OBJ_GRABBER="$V_OBJ_GRABBER video/yuv_convert.o"
+fi
+
+if test "${ac_cv_header_libv4lconvert_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for libv4lconvert.h" >&5
+echo $ECHO_N "checking for libv4lconvert.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libv4lconvert_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libv4lconvert_h" >&5
+echo "${ECHO_T}$ac_cv_header_libv4lconvert_h" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking libv4lconvert.h usability" >&5
+echo $ECHO_N "checking libv4lconvert.h usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <libv4lconvert.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking libv4lconvert.h presence" >&5
+echo $ECHO_N "checking libv4lconvert.h presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <libv4lconvert.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: libv4lconvert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: libv4lconvert.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: libv4lconvert.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: libv4lconvert.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: libv4lconvert.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: libv4lconvert.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: libv4lconvert.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libv4lconvert.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: libv4lconvert.h: in the future, the compiler will take precedence" >&2;}
+
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for libv4lconvert.h" >&5
+echo $ECHO_N "checking for libv4lconvert.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libv4lconvert_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_libv4lconvert_h=$ac_header_preproc
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libv4lconvert_h" >&5
+echo "${ECHO_T}$ac_cv_header_libv4lconvert_h" >&6; }
+
+fi
+if test $ac_cv_header_libv4lconvert_h = yes; then
+ have_videodev_h=yes;
+fi
+
+
+if test x$have_videodev_h = xyes; then
+ V_DEFINE="$V_DEFINE -DHAVE_LIBV4L"
+ if test x$have_V4L = xyes; then
+ V_LIB_GRABBER="$V_LIB_GRABBER -lv4l1"
+ fi
+ if test x$have_V4L2 = xyes; then
+ V_LIB_GRABBER="$V_LIB_GRABBER -lv4l2"
+ fi
+else
+ V_OBJ_GRABBER="$V_OBJ_GRABBER video/tinyjpeg.o video/jidctflt.o"
+fi
+
+
+if test -r /usr/lib/libvl.so ; then
+ V_LIB_GRABBER="$V_LIB_GRABBER -lvl -ldmedia"
+ V_OBJ_GRABBER="video/grabber-vl.o video/output-vl.o $V_OBJ_GRABBER"
+ if test -r /usr/include/dmedia/cl_cosmo.h ; then
+ V_LIB_GRABBER="$V_LIB_GRABBER -lcl"
+ V_OBJ_GRABBER="video/grabber-cosmo.o $V_OBJ_GRABBER"
+ fi
+fi
+if test -r /usr/lib/libsvideo.a ; then
+ V_LIB_GRABBER="$V_LIB_GRABBER -lsvideo"
+ V_OBJ_GRABBER="video/grabber-svideo.o $V_OBJ_GRABBER"
+fi
+
+# Check whether --enable-XvGrabber was given.
+if test "${enable_XvGrabber+set}" = set; then
+ enableval=$enable_XvGrabber; XvGrabber=yes
+else
+ XvGrabber=no
+fi
+
+if test -r /usr/lib/libXv.a -a "$XvGrabber" = "yes" ; then
+ V_LIB_GRABBER="$V_LIB_GRABBER -lXv"
+ V_DEFINE="$V_DEFINE -DXV_PSEUDO8"
+ V_OBJ_GRABBER="video/grabber-xv.o $V_OBJ_GRABBER"
+fi
+if test -r /usr/lpp/parallax/lib/libXvid.a ; then
+ V_LIB_GRABBER="$V_LIB_GRABBER -L/usr/lpp/parallax/lib -lXvid -lXv"
+ V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/lpp/parallax/include"
+ V_OBJ_GRABBER="video/grabber-plx.o video/assistor-plx.o $V_OBJ_GRABBER"
+fi
+if test -r /usr/lpp/UMS6000/lib/libUMSobj.a ; then
+ V_LIB_GRABBER="$V_LIB_GRABBER -L/usr/lpp/UMS6000/lib -lUMSobj"
+ V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/lpp/UMS6000/include"
+ V_DEFINE="$V_DEFINE -DSUNRISE"
+ V_OBJ_GRABBER="video/grabber-sunrise.o video/output-sunrise.o $V_OBJ_GRABBER"
+fi
+
+if test -r /usr/include/machine/ioctl_meteor.h ; then
+ V_OBJ_GRABBER="video/grabber-meteor.o $V_OBJ_GRABBER"
+fi
+
+# Check whether --enable-Linux1394Grabber was given.
+if test "${enable_Linux1394Grabber+set}" = set; then
+ enableval=$enable_Linux1394Grabber; Linux1394Grabber=yes
+else
+ Linux1394Grabber=no
+fi
+
+if test -r /usr/include/libdc1394/dc1394_control.h -a -r /usr/include/libraw1394/raw1394.h -a "$Linux1394Grabber" = "yes"; then
+ V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-linux1394.o"
+ V_LIB_GRABBER="$V_LIB_GRABBER -lraw1394 -ldc1394_control"
+fi
+
+#if test -r /usr/local/lib/libspigot.a -a ${PORTOBJFORMAT} != elf; then
+if test -r /usr/local/lib/libspigot.a ; then
+ V_OBJ_GRABBER="video/grabber-spigot.o $V_OBJ_GRABBER"
+ V_LIB_GRABBER="$V_LIB_GRABBER -lspigot"
+ V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/local/include"
+fi
+
+if test "$qcamdir" != "" ; then
+ V_OBJ_GRABBER="video/grabber-qcam.o $V_OBJ_GRABBER"
+ V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$qcamdir"
+ V_DEFINE="$V_DEFINE -DQCAMDEV -DQCAMDOTH=qcam.h"
+elif test -r /usr/local/lib/libqcam.a ; then
V_OBJ_GRABBER="video/grabber-qcam.o $V_OBJ_GRABBER"
V_LIB_GRABBER="$V_LIB_GRABBER -lqcam"
V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/local/include"
@@ -6880,16 +7512,15 @@
V_LIB="$V_LIB -lipc"
;;
*-*-netbsd*)
+ V_STATIC=""
V_TARCMD="tar -h -c -f"
- V_LIB="$V_LIB -L/usr/local/lib"
;;
*-*-freebsd*)
V_STATIC=""
+ V_DEFINE="$V_DEFINE -DSIGARGS=int -DFreeBSD"
if test $ipv6 = yes; then
- V_DEFINE="$V_DEFINE -DFreeBSD -DHAVE_IPV6"
+ V_DEFINE="$V_DEFINE -DHAVE_IPV6"
V_LIB="$V_LIB -L/usr/local/v6/lib"
- else
- V_DEFINE="$V_DEFINE -DFreeBSD"
fi
OPSYS=freebsd
;;
@@ -6993,187 +7624,36 @@
V_DEFINE="$V_DEFINE $V_SHM $V_H261AS $V_DV $V_XV $V_CPUDETECT -D$V_ARCH"
-# tcl7.5 needs a dynamic loading library (unless built with the
-# -disable-load flag). Try to find the appropriate one.
-
-if test ! -z "$V_NEED_DL" ; then
- V_LIB_DL=""
- case "$target" in
- *-*-solaris*)
- V_LIB_DL="dl"
- ;;
- sparc-sun-sunos*)
- V_LIB_DL="dl"
- ;;
- *-*-hpux*)
- V_LIB_DL="dld"
- ;;
- *-*-linux*)
- { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
-if test "${ac_cv_lib_dl_dlopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlopen ();
-int
-main ()
-{
-return dlopen ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_dl_dlopen=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_lib_dl_dlopen=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
-echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
-if test $ac_cv_lib_dl_dlopen = yes; then
- V_LIB_DL="dl"
-else
- V_LIB_DL="dld"
-fi
-
- ;;
- *-*-aix4*)
- V_LIB_DL="ld"
- ;;
- esac
- if test ! -z "$V_LIB_DL" ; then
-
-as_ac_Lib=`echo "ac_cv_lib_$V_LIB_DL''_main" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for main in -l$V_LIB_DL" >&5
-echo $ECHO_N "checking for main in -l$V_LIB_DL... $ECHO_C" >&6; }
-if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-l$V_LIB_DL $V_STATIC $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-
-int
-main ()
-{
-return main ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- eval "$as_ac_Lib=yes"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- eval "$as_ac_Lib=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-ac_res=`eval echo '${'$as_ac_Lib'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-if test `eval echo '${'$as_ac_Lib'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_LIB$V_LIB_DL" | $as_tr_cpp` 1
-_ACEOF
-
- LIBS="-l$V_LIB_DL $LIBS"
-
-else
- V_LIB_DL=""
-fi
-
- fi
- if test ! -z "$V_LIB_DL" ; then
- V_LIB="$V_LIB -l$V_LIB_DL"
- else
- echo "no dynamic load lib"
- fi
-fi
-
-
+# various include hacks
+dirs="../common/src \
+ /usr/include/uclmmbase \
+ /usr/include/common-mml \
+ /usr/local/include/uclmmbase \
+ /usr/local/include/common-mml"
-if test "$host_cpu" = alpha ; then
- V_DEFINE="$V_DEFINE -DINT_64=u_long"
+if test x$prefix != xNONE ; then
+ dirs="$prefix/include/common-mml $prefix/include/uclmmbase $dirs"
fi
-# various include hacks
-dirs="/usr/src/local/include-fixes \
- /import/mcast/include"
for dir in $dirs; do
if test -d $dir ; then
V_INCLUDE="$V_INCLUDE -I$dir"
fi
done
+# various linker hacks
+if test x$prefix != xNONE ; then
+ if test -d $prefix/lib64 ; then
+ LDFLAGS="-L$prefix/lib64 $LDFLAGS"
+ else
+ LDFLAGS="-L$prefix/lib $LDFLAGS"
+ fi
+else
+ if test -d ../common/src ; then
+ LDFLAGS="-L../common/src $LDFLAGS"
+ fi
+fi
+
# always use -g with gcc during development (even with -O)
#if test "$CC" = gcc && test -f .devel ; then
if test "$CC" = gcc ; then
@@ -7182,7 +7662,6 @@
V_DEFINE="$V_DEFINE -fsigned-char"
fi
-
V_TAR_TARGET=$target_os
@@ -7200,6 +7679,7 @@
+
ac_config_files="$ac_config_files Makefile"
cat >confcache <<\_ACEOF
@@ -7681,6 +8161,7 @@
ac_pwd='$ac_pwd'
srcdir='$srcdir'
+INSTALL='$INSTALL'
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
@@ -7867,6 +8348,9 @@
build_alias!$build_alias$ac_delim
host_alias!$host_alias$ac_delim
target_alias!$target_alias$ac_delim
+INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
+INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
+INSTALL_DATA!$INSTALL_DATA$ac_delim
build!$build$ac_delim
build_cpu!$build_cpu$ac_delim
build_vendor!$build_vendor$ac_delim
@@ -7924,9 +8408,6 @@
V_LIB_X264!$V_LIB_X264$ac_delim
V_INCLUDE_GRABBER!$V_INCLUDE_GRABBER$ac_delim
V_LIB_GRABBER!$V_LIB_GRABBER$ac_delim
-V_OBJ_GRABBER!$V_OBJ_GRABBER$ac_delim
-V_LIB_XIL!$V_LIB_XIL$ac_delim
-V_OBJ_XIL!$V_OBJ_XIL$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
@@ -7968,11 +8449,13 @@
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
+V_OBJ_GRABBER!$V_OBJ_GRABBER$ac_delim
+V_LIB_XIL!$V_LIB_XIL$ac_delim
+V_OBJ_XIL!$V_OBJ_XIL$ac_delim
V_OBJ!$V_OBJ$ac_delim
V_LIB!$V_LIB$ac_delim
V_CODEC_LIB!$V_CODEC_LIB$ac_delim
V_CPUDETECT_OBJ!$V_CPUDETECT_OBJ$ac_delim
-V_STATIC!$V_STATIC$ac_delim
V_TAR_TARGET!$V_TAR_TARGET$ac_delim
V_ALL!$V_ALL$ac_delim
V_CCOPT!$V_CCOPT$ac_delim
@@ -7981,6 +8464,7 @@
V_DEFINE!$V_DEFINE$ac_delim
V_SIGRET!$V_SIGRET$ac_delim
V_SHELL!$V_SHELL$ac_delim
+V_STATIC!$V_STATIC$ac_delim
V_TARCMD!$V_TARCMD$ac_delim
V_INCLUDE!$V_INCLUDE$ac_delim
V_BROKEN_OBJ!$V_BROKEN_OBJ$ac_delim
@@ -7989,7 +8473,7 @@
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
@@ -8212,6 +8696,10 @@
# CONFIG_FILE
#
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
@@ -8264,6 +8752,7 @@
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
$ac_datarootdir_hack
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
@@ -8321,4 +8810,3 @@
make depend
fi
-
More information about the Sumover-dev
mailing list