libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd configure.in configure


From: Tom Drummond
Subject: [libcvd-members] libcvd configure.in configure
Date: Fri, 09 Feb 2007 12:47:38 +0000

CVSROOT:        /sources/libcvd
Module name:    libcvd
Changes by:     Tom Drummond <twd20>    07/02/09 12:47:38

Modified files:
        .              : configure.in configure 

Log message:
        newer ffmpeg requires libavutil to be linked for libavcodec to work.  
configure scripts
        changed to accomodate this. - twd20

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/configure.in?cvsroot=libcvd&r1=1.77&r2=1.78
http://cvs.savannah.gnu.org/viewcvs/libcvd/configure?cvsroot=libcvd&r1=1.78&r2=1.79

Patches:
Index: configure.in
===================================================================
RCS file: /sources/libcvd/libcvd/configure.in,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -b -r1.77 -r1.78
--- configure.in        16 Jan 2007 23:04:29 -0000      1.77
+++ configure.in        9 Feb 2007 12:47:38 -0000       1.78
@@ -917,6 +917,7 @@
 
        a=
        AC_CHECK_HEADERS(ffmpeg/avcodec.h ffmpeg/avformat.h, [], [break])
+       AC_CHECK_LIB(avutil, main)
        AC_CHECK_LIB(avcodec, avcodec_open)
        AC_CHECK_LIB(avformat, av_open_input_file)
        AC_CHECK_LIB(avformat, av_read_frame) #only in >= 0.4.9

Index: configure
===================================================================
RCS file: /sources/libcvd/libcvd/configure,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -b -r1.78 -r1.79
--- configure   16 Jan 2007 23:04:28 -0000      1.78
+++ configure   9 Feb 2007 12:47:38 -0000       1.79
@@ -7631,6 +7631,74 @@
 done
 
 
+echo "$as_me:$LINENO: checking for main in -lavutil" >&5
+echo $ECHO_N "checking for main in -lavutil... $ECHO_C" >&6
+if test "${ac_cv_lib_avutil_main+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lavutil  $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 ()
+{
+main ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&
+        { ac_try='test -z "$ac_cxx_werror_flag"
+                        || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+        { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_avutil_main=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_avutil_main=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_main" >&5
+echo "${ECHO_T}$ac_cv_lib_avutil_main" >&6
+if test $ac_cv_lib_avutil_main = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBAVUTIL 1
+_ACEOF
+
+  LIBS="-lavutil $LIBS"
+
+fi
+
+
 echo "$as_me:$LINENO: checking for avcodec_open in -lavcodec" >&5
 echo $ECHO_N "checking for avcodec_open in -lavcodec... $ECHO_C" >&6
 if test "${ac_cv_lib_avcodec_avcodec_open+set}" = set; then




reply via email to

[Prev in Thread] Current Thread [Next in Thread]