$NetBSD: patch-aa,v 1.4 2006/12/20 00:35:10 joerg Exp $

--- configure.orig	2006-12-20 00:09:04.000000000 +0000
+++ configure
@@ -25671,7 +25671,7 @@ fi
 if test "$ac_snd_have_extension_language" = no ; then
   if test "$ac_snd_have_gui" = no ; then
     if test "$ac_cv_header_dlfcn_h" = yes ; then
-      LDFLAGS="$LDFLAGS -ldl"
+      LDFLAGS="$LDFLAGS ${DL_LDFLAGS} ${DL_LIBS}"
     fi
     { echo "$as_me:$LINENO: WARNING: Snd needs either an extension language (Guile or Ruby), or a graphics toolkit (Gtk or Motif), or preferably both.  All four packages are available free, normally prepackaged and ready-to-use.  As currently configured, this version of Snd is useless." >&5
 echo "$as_me: WARNING: Snd needs either an extension language (Guile or Ruby), or a graphics toolkit (Gtk or Motif), or preferably both.  All four packages are available free, normally prepackaged and ready-to-use.  As currently configured, this version of Snd is useless." >&2;}
