Filled in the parameter names in the prototype of get_frame() to keep doxygen quiet...
[synfig.git] / synfig-core / trunk / config / configure.ac
index 72f3d3f..b272a87 100644 (file)
@@ -206,10 +206,7 @@ AC_ARG_WITH(libavcodec,[
 ])
 
 if test $with_libavcodec != "no" ; then {
-       PKG_CHECK_MODULES(LIBAVCODEC, libavcodec,[with_libavcodec="yes"],[with_libavcodec="no"])
-} ; fi
-if test $with_libavcodec != "no" ; then {
-       PKG_CHECK_MODULES(LIBAVFORMAT, libavformat,[with_libavcodec="yes"],[with_libavcodec="no"])
+       PKG_CHECK_MODULES(LIBAVCODEC, [libavcodec libavformat],[],[echo no; with_libavcodec="no"])
 } ; fi
 if test $with_libavcodec = "yes" ; then {
        AC_DEFINE(WITH_LIBAVCODEC,[],[enable libavcodec support])
@@ -295,6 +292,9 @@ if test $with_openexr = "no" ; then {
 if test $use_openexr_half = yes ; then {
        AC_MSG_RESULT([ ** Using OpenEXR Half.])
        CONFIG_CFLAGS="$CONFIG_CFLAGS -DUSE_HALF_TYPE"
+       OPENEXR_HALF_LIBS="-lHalf"
+} else {
+       OPENEXR_HALF_LIBS=""
 } ; fi
 
 
@@ -502,6 +502,8 @@ AC_SUBST(LIBADD_DL)
 
 AC_SUBST(SYNFIG_LIBS)
 AC_SUBST(SYNFIG_CFLAGS)
+AC_SUBST(OPENEXR_HALF_LIBS)
+
 AC_SUBST(API_VERSION)
 
 synfigincludedir=$includedir/synfig-@API_VERSION@