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
AC_SUBST(SYNFIG_LIBS)
AC_SUBST(SYNFIG_CFLAGS)
+AC_SUBST(OPENEXR_HALF_LIBS)
+
AC_SUBST(API_VERSION)
synfigincludedir=$includedir/synfig-@API_VERSION@
bin_PROGRAMS = synfig
synfig_SOURCES = main.cpp
-synfig_LDADD = -L../synfig -lsynfig @SYNFIG_LIBS@
+synfig_LDADD = -L../synfig -lsynfig @SYNFIG_LIBS@ @OPENEXR_HALF_LIBS@
synfig_CXXFLAGS = -lsynfig @SYNFIG_CFLAGS@
#synfig_LDFLAGS=-export-dynamic -dlopen self
#-dlopen ../modules/example/libexample.la