major plugin revamp based on x-fixer's code
diff --git a/configure.in b/configure.in
index 5cb7e77..2ecf9a2 100644
--- a/configure.in
+++ b/configure.in
@@ -147,10 +147,16 @@
AC_PROG_CXX
AC_PROG_MAKE_SET
+dnl In order to have access to any available wcsdup() and wcscasecmp()
+AC_GNU_SOURCE
+
dnl check for getopt in standard library
dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )
AC_CHECK_FUNCS(getopt_long, [], [])
+dnl Check for uncommon wide char functions
+AC_CHECK_FUNCS(wcsdup, wcscasecmp, [], [])
+
AC_CANONICAL_HOST
case "$host_cpu" in
i*86) cpu_ia32=true ; AC_DEFINE(FLAC__CPU_IA32) ;;