1 dnl configure.in.video --
2 dnl
3 dnl lots of hairy special cases for detecting which frame capture support
4 dnl to compile in
5 dnl
6 dnl Copyright (c) 2000-2002 The Regents of the University of California.
7 dnl All rights reserved.
8 dnl
9 dnl Redistribution and use in source and binary forms, with or without
10 dnl modification, are permitted provided that the following conditions are met:
11 dnl
12 dnl A. Redistributions of source code must retain the above copyright notice,
13 dnl this list of conditions and the following disclaimer.
14 dnl B. Redistributions in binary form must reproduce the above copyright
15 dnl notice, this list of conditions and the following disclaimer in the
16 dnl documentation and/or other materials provided with the distribution.
17 dnl C. Neither the names of the copyright holders nor the names of its
18 dnl contributors may be used to endorse or promote products derived from
19 dnl this software without specific prior written permission.
20 dnl
21 dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
22 dnl IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23 dnl THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 dnl PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
25 dnl LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 dnl CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 dnl SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 dnl CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 dnl ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 dnl POSSIBILITY OF SUCH DAMAGE.
32
33 V_LIB_VIDEO=""
34 V_INCLUDE_VIDEO=""
35 V_DEFINE_VIDEO=""
36 V_OBJ_VIDEO=""
37
38
39 AC_ARG_WITH(video-dirs, [ --with-video-dirs=path specify a pathname for locating video include files], , withval="")
40 AC_ARG_WITH(vigrapix, [ --with-vigrapix=path specify a pathname for locating vigrapix include and library files], , withval="") #FIXME
41 AC_ARG_WITH(videopix, [ --with-videopix=path specify a pathname for locating videopix include and library files], , withval="") #FIXME
42 AC_ARG_ENABLE(sccvideo, [ --disable-sccvideo don't compile in the SCC video code], sccenable=$enableval, sccenable="no")
43
44
45 if test "$with_video_dirs" != "" ; then
46 for i in $with_video_dirs ; do
47 V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$i"
48 done
49 fi
50
51 #
52 # Always include test device and x11 capture on unix.
53 # xv is also part of x windows, independent of what unix version.
54 #
55 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-test.o"
56 if test $macosx = "no" ; then
57 OBJ_VIDEO_TK="video/video-x11.o"
58 fi
59
60 if test -r /usr/lib/libXv.a ; then
61 V_LIB_VIDEO="$V_LIB_VIDEO -lXv"
62 V_DEFINE="$V_DEFINE -DXV_PSEUDO8"
63 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-xv.o"
64 fi
65
66 #
67 # a bunch of capture devices that are available on
68 # specific platforms...
69 #
70 case "$target" in
71 *-dec-*)
72 jv_dir=jv2
73 V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$jv_dir"
74 V_LIB_VIDEO="$V_LIB_VIDEO $jv_dir/jvdriverint.o"
75 V_OBJ_VIDEO="$V_OBJ_VIDEO video/assistor-jv.o video/video-jv.o"
76 ;;
77 *-*-solaris*)
78 #
79 # Parallax grabber
80 #
81 plx_places="/opt/parallax \
82 /usr/src/local/parallax \
83 /usr/local/parallax \
84 /usr/local/parallax/components/Xclients_sun4.ow3_1.18 \
85 /usr/src/local/parallax/components/Xclients_sun4.ow3_1.18"
86 for dir in $plx_places; do
87 if test -d $dir/include ; then
88 V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$dir/include"
89 V_LIB_VIDEO="$V_LIB_VIDEO -L$dir/lib -lXext -lXvid"
90 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-plx.o video/assistor-plx.o"
91 break
92 fi
93 done
94
95 #
96 # XIL grabber
97 #
98 have_xil=no
99 if test $CC = gcc ; then
100 V_DEFINE="$V_DEFINE -mv8 -msupersparc"
101 fi
102 V_DEFINE="$V_DEFINE -D__svr4__"
103
104 if test -f $srcdir/video/video-rtvc.cc -o -f $srcdir/video/video-rtvc.o ; then
105 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-rtvc.o"
106 fi
107
108 xil_dir=/opt/SUNWits/Graphics-sw/xil
109 if test -d $xil_dir ; then
110 if test ! -d $xil_dir/include ; then
111 echo "You don't have the XIL developer's kit!"
112 echo "Building without XIL support..."
113 else
114 V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$xil_dir/include"
115 V_LIB_VIDEO="$V_LIB_VIDEO -L$xil_dir/lib -R$xil_dir/lib -lxil"
116 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-xil.o"
117 fi
118 fi
119
120 #
121 # SLIC video grabber
122 #
123 d=/opt/MMACslv
124 if test -d $d ; then
125 V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$d/include"
126 V_LIB_VIDEO="$V_LIB_VIDEO $d/lib/libslv.a -lintl"
127 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-slv.o"
128 fi
129 ;;
130 *-sgi-irix*)
131 if test -r /usr/lib/libvl.so ; then
132 V_LIB_VIDEO="$V_LIB_VIDEO -lvl -ldmedia"
133 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-vl.o"
134 #V_OBJ_VIDEO="$V_OBJ_VIDEO video/output-vl.o"
135 fi
136 # if test -r /usr/include/dmedia/cl_cosmo.h ; then
137 # V_LIB_VIDEO="$V_LIB_VIDEO -lcl"
138 # V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-cosmo.o"
139 # fi
140 ;;
141 *-*-linux*)
142 if test -r /usr/include/linux/videodev.h; then
143 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-v4l.o"
144 fi
145 if test "$sccenable" = yes ; then
146 if test -r /usr/include/linux/scc.h -o -r /usr/include/machine/scc.h ; then
147 echo "Compiling with SCC video code"
148 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-scc.o"
149 fi
150 else
151 echo "Compiling without SCC video code"
152 fi
153 ;;
154 *-*-freebsd*)
155 if test -r /usr/include/machine/ioctl_meteor.h ; then
156 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-meteor.o"
157 elif test "$with_video_dirs" != "" ; then
158 for i in $with_video_dirs ; do
159 if test -r $i/ioctl_meteor.h ; then
160 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-meteor.o"
161 V_DEFINE_VIDEO="$V_DEFINE_VIDEO -DNON_STD_IOCTL_METEOR_H"
162 break
163 fi
164 done
165 fi
166 ;;
167 *-*-darwin*)
168 V_LIB_VIDEO="-framework QuickTime -framework ApplicationServices -framework Carbon"
169 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-macosx.o"
170 ;;
171 esac
172
173
174 #
175 # VideoPix (what platform does this run on?)
176 #
177 vpix_dir=/usr/src/local/vfc-1.0
178 if test "$with_videopix" != "" ; then
179 vpix_dir=$with_videopix
180 fi
181 vpix_lib=$vpix_dir/vfc_lib
182 if test -d /import/VideoPix ; then
183 vpix_dir=/import/VideoPix
184 vpix_lib=$vpix_dir/lib
185 fi
186 if test -d $vpix_dir ; then
187 V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$vpix_dir/sys -I$vpix_lib"
188 V_LIB_VIDEO="$V_LIB_VIDEO $vpix_lib/libvfc.a"
189 V_DEFINE="$V_DEFINE -DVIDEOPIX"
190 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-vpix.o"
191 fi
192
193 #
194 # VigraPix (what is this?)
195 #
196 places="/usr/src/local/vigrapix/lib \
197 /opt/VIGRAvigrapix/lib"
198 if test "$with_vigrapix" != "" ; then
199 places="${with_vigrapix}/lib \
200 ${with_vigrapix}"
201 fi
202 for dir in $places; do
203 if test -d $dir ; then
204 V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$dir"
205 V_LIB_VIDEO="$V_LIB_VIDEO $dir/libvigrapix.a"
206 V_OBJ_VIDEO="$V_OBJ_VIDEO video/video-vigra.o"
207 break
208 fi
209 done
210
211
212 AC_SUBST(V_OBJ_VIDEO)
213 AC_SUBST(OBJ_VIDEO_TK)
214 AC_SUBST(V_INCLUDE_VIDEO)
215 AC_SUBST(V_DEFINE_VIDEO)
216 AC_SUBST(V_LIB_VIDEO)
217
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.