$OpenBSD: patch-configure_ac,v 1.3 2016/06/23 20:56:23 sebastia Exp $
--- configure.ac.orig	Fri Feb 12 01:56:56 2016
+++ configure.ac	Mon Jun 20 22:05:56 2016
@@ -504,12 +504,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
