$OpenBSD: patch-configure_ac,v 1.2 2016/06/03 11:45:43 sebastia Exp $
--- configure.ac.orig	Wed May 13 23:04:45 2015
+++ configure.ac	Wed May 18 22:18:21 2016
@@ -502,12 +502,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
