configure.in.video
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:6k
源码类别:

通讯编程

开发平台:

Visual C++

  1. # lots of hairy special cases for detecting which frame capture
  2. # support to compile in
  3. V_LIB_VIDEO=""
  4. V_INCLUDE_VIDEO=""
  5. V_DEFINE_VIDEO=""
  6. V_OBJ_VIDEO=""
  7. V_LIB_XIL=""
  8. V_OBJ_XIL=""
  9. AC_ARG_WITH(video-dirs, --with-video-dirs=path specify a pathname for locating video include files, , withval="")
  10. AC_ARG_WITH(vigrapix, --with-vigrapix=path specify a pathname for locating vigrapix include and library files, , withval="") #XXX
  11. AC_ARG_WITH(videopix, --with-videopix=path specify a pathname for locating videopix include and library files, , withval="") #XXX
  12. if test "$with_video_dirs" != "" ; then
  13. for i in $with_video_dirs ; do
  14. V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$i"
  15. done
  16. fi
  17. if test -r /usr/lib/libvl.so ; then
  18. V_LIB_VIDEO="$V_LIB_VIDEO -lvl -ldmedia"
  19. V_OBJ_VIDEO="$V_OBJ_VIDEO video-vl.o output-vl.o"
  20. # if test -r /usr/include/dmedia/cl_cosmo.h  ; then
  21. # V_LIB_VIDEO="$V_LIB_VIDEO -lcl"
  22. # V_OBJ_VIDEO="$V_OBJ_VIDEO video-cosmo.o"
  23. # fi
  24. fi
  25. if test -r /usr/lib/libsvideo.a ; then
  26. V_LIB_VIDEO="$V_LIB_VIDEO -lsvideo"
  27. V_OBJ_VIDEO="$V_OBJ_VIDEO video-svideo.o"
  28. fi
  29. if test -r /usr/lib/libXv.a ; then
  30. V_LIB_VIDEO="$V_LIB_VIDEO -lXv"
  31. V_DEFINE="$V_DEFINE -DXV_PSEUDO8"
  32. V_OBJ_VIDEO="$V_OBJ_VIDEO video-xv.o"
  33. fi
  34. if test -r /usr/lpp/parallax/lib/libXvid.a ; then
  35.     V_LIB_VIDEO="$V_LIB_VIDEO -L/usr/lpp/parallax/lib -lXvid -lXv"
  36.     V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I/usr/lpp/parallax/include"
  37.     V_OBJ_VIDEO="$V_OBJ_VIDEO video-plx.o assistor-plx.o"
  38. fi
  39. if test -r /usr/lpp/UMS6000/lib/libUMSobj.a ; then
  40. V_LIB_VIDEO="$V_LIB_VIDEO -L/usr/lpp/UMS6000/lib -lUMSobj"
  41. V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I/usr/lpp/UMS6000/include"
  42. V_DEFINE="$V_DEFINE -DSUNRISE"
  43. V_OBJ_VIDEO="$V_OBJ_VIDEO video-sunrise.o output-sunrise.o"
  44. fi
  45. if test -r /usr/include/machine/ioctl_meteor.h ; then
  46. V_OBJ_VIDEO="$V_OBJ_VIDEO video-meteor.o"
  47. elif test "$with_video_dirs" != "" ; then
  48. for i in $with_video_dirs ; do
  49. if test -r $i/ioctl_meteor.h ; then
  50. V_OBJ_VIDEO="$V_OBJ_VIDEO video-meteor.o"
  51. V_DEFINE_VIDEO="$V_DEFINE_VIDEO -DNON_STD_IOCTL_METEOR_H"
  52. break
  53. fi
  54. done
  55. fi
  56. if test -r /usr/local/lib/libspigot.a ; then
  57. V_OBJ_VIDEO="$V_OBJ_VIDEO video-spigot.o"
  58. V_LIB_VIDEO="$V_LIB_VIDEO -lspigot"
  59. V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I/usr/local/include"
  60. fi
  61. # Remove this for now, since device switching is broken.
  62. #if test -r /usr/local/lib/libqcam.a ; then
  63. # V_OBJ_VIDEO="$V_OBJ_VIDEO video-qcam.o"
  64. # V_LIB_VIDEO="$V_LIB_VIDEO -lqcam"
  65. # V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I/usr/local/include"
  66. #else
  67. # if test -r /dev/qcam0 ; then
  68. # V_OBJ_VIDEO="$V_OBJ_VIDEO video-qcam.o"
  69. # fi
  70. #fi
  71. #XXX
  72. AC_ARG_ENABLE(sccvideo, --disable-sccvideo don't compile in the SCC video code, e=$enableval, e="yes")
  73. # the default is yes: you have to explicitly say "--disable-sccvideo"
  74. if test "$e" = yes ; then
  75. if test -r /usr/include/linux/scc.h -o -r /usr/include/machine/scc.h ; then
  76. V_OBJ_VIDEO="$V_OBJ_VIDEO video-scc.o"
  77. echo "Compiling with SCC video code"
  78. fi
  79. else
  80. echo "Compiling without SCC video code"
  81. fi
  82. vpix_dir=/usr/src/local/vfc-1.0
  83. if test "$with_videopix" != "" ; then
  84. vpix_dir=$with_videopix
  85. fi
  86. vpix_lib=$vpix_dir/vfc_lib
  87. if test -d /import/VideoPix ; then
  88. vpix_dir=/import/VideoPix
  89. vpix_lib=$vpix_dir/lib
  90. fi
  91. if test -d $vpix_dir ; then
  92. V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$vpix_dir/sys -I$vpix_lib"
  93. V_LIB_VIDEO="$V_LIB_VIDEO $vpix_lib/libvfc.a"
  94. V_DEFINE="$V_DEFINE -DVIDEOPIX"
  95. V_OBJ_VIDEO="$V_OBJ_VIDEO video-vpix.o"
  96. fi
  97. places="/usr/src/local/vigrapix/lib 
  98. /opt/VIGRAvigrapix/lib"
  99. if test "$with_vigrapix" != "" ; then
  100. places="${with_vigrapix}/lib 
  101. ${with_vigrapix}"
  102. fi
  103. for dir in $places; do
  104. if test -d $dir ; then
  105. V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$dir"
  106. V_LIB_VIDEO="$V_LIB_VIDEO $dir/libvigrapix.a"
  107. V_OBJ_VIDEO="$V_OBJ_VIDEO video-vigra.o"
  108.      break
  109. fi
  110. done
  111. d=/opt/MMACslv
  112. if test -d $d ; then
  113. V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$d/include"
  114. V_LIB_VIDEO="$V_LIB_VIDEO $d/lib/libslv.a -lintl"
  115. V_OBJ_VIDEO="$V_OBJ_VIDEO video-slv.o"
  116. fi
  117. places="/opt/parallax 
  118. /usr/src/local/parallax 
  119. /usr/local/parallax 
  120. /usr/local/parallax/components/Xclients_sun4.ow3_1.18 
  121. /usr/src/local/parallax/components/Xclients_sun4.ow3_1.18"
  122. for dir in $places; do
  123. if test -d $dir/include ; then
  124. V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$dir/include"
  125. V_LIB_VIDEO="$V_LIB_VIDEO -L$dir/lib -lXext -lXvid"
  126. V_OBJ_VIDEO="$V_OBJ_VIDEO video-plx.o assistor-plx.o"
  127.      break
  128. fi
  129. done
  130. case "$target" in 
  131. *-dec-*)
  132. jv_dir=jv2
  133. V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$jv_dir"
  134. V_LIB_VIDEO="$V_LIB_VIDEO $jv_dir/jvdriverint.o"
  135. V_OBJ_VIDEO="$V_OBJ_VIDEO assistor-jv.o video-jv.o"
  136. if test "$target_os" = ultrix4.3 ; then
  137. #XXX rtip code currently broken
  138. #V_DEFINE="$V_DEFINE -DRTIP"
  139. #V_LIB="$V_LIB lib.ultrix/librcap.a"
  140. #V_INCLUDE="$V_INCLUDE -Ircap-include"
  141. #XXX
  142. #V_OBJ_VIDEO="$V_OBJ_VIDEO net-rtip.o"
  143. echo no rtip support 
  144. fi
  145. ;;
  146. sparc-sun-solaris*)
  147. have_xil=no
  148. xil_dir=/opt/SUNWits/Graphics-sw/xil
  149. if test -d $xil_dir ; then
  150. if test ! -d $xil_dir/include ; then
  151. echo "You don't have the XIL developer's kit!"
  152. echo "Building without XIL support..."
  153. else
  154. have_xil=yes
  155. fi
  156. fi
  157. if test $CC = gcc ; then
  158. V_DEFINE="$V_DEFINE -mv8 -msupersparc"
  159. fi
  160. V_DEFINE="$V_DEFINE -D__svr4__"
  161. if test -f video/video-rtvc.cc || 
  162. test -f video/video-rtvc.o ; then
  163. V_OBJ_VIDEO="$V_OBJ_VIDEO video-rtvc.o"
  164. if test "$have_xil" = yes ; then
  165. V_ALL="$V_PROG $V_PROG.xil"
  166. V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$xil_dir/include"
  167. V_LIB_XIL="-L$xil_dir/lib -R$xil_dir/lib -lxil"
  168. V_OBJ_XIL=video-xil.o
  169. fi
  170. elif test "$have_xil" = yes ; then
  171. V_OBJ_XIL=video-xil.o
  172. V_INCLUDE_VIDEO="$V_INCLUDE_VIDEO -I$xil_dir/include"
  173. V_LIB_VIDEO="$V_LIB_VIDEO -L$xil_dir/lib -R$xil_dir/lib -lxil"
  174. fi
  175. ;;
  176. esac
  177. #XXX video stuff needs to move to ../conf/configure.in.video
  178. if test -f encoder-bvc.cc ; then
  179. V_OBJ="$V_OBJ encoder-bvc.o decoder-bvc.o"
  180. fi
  181. #XXX
  182. list=""
  183. for f in $V_OBJ_VIDEO; do
  184. list="$list video/$f"
  185. done
  186. V_OBJ_VIDEO=$list
  187. AC_SUBST(V_OBJ_VIDEO)
  188. AC_SUBST(V_INCLUDE_VIDEO)
  189. AC_SUBST(V_DEFINE_VIDEO)
  190. AC_SUBST(V_LIB_VIDEO)
  191. AC_SUBST(V_LIB_XIL)
  192. AC_SUBST(V_OBJ_XIL)