$OpenBSD: patch-configure_ac,v 1.4 2018/01/05 08:00:09 sebastia Exp $
Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -524,12 +524,17 @@ AC_ARG_ENABLE(speech, 
 BUILD_SPEECH=
 
 # has flite, for speech synthesis.
+orig_CPPFLAGS="${CPPFLAGS}"
+orig_LDFLAGS="${LDFLAGS}"
+LDFLAGS="-L${TRUEPREFIX}/lib -lsndio"
 AC_CHECK_LIB(flite, new_utterance, have_speech=yes, have_speech=no)
 AC_CHECK_HEADERS(flite/flite.h)
 if test $have_speech = yes -a $enable_speech = yes; then
    BUILD_SPEECH="speech say"
 fi
 AC_SUBST(BUILD_SPEECH)
+CPPFLAGS="${orig_CPPFLAGS}"
+LDFLAGS="${orig_LDFLAGS}"
 
 #--------------------------------------------------------------------
 # Find CUPS
