+dnl ----- YC: The Yaz Compiler
+AC_SUBST(ASNMODULE)
+AC_ARG_WITH(yc,[ --with-yc compile using YC: The Yaz Compiler], [YCDIR=$withval])
+
+if test "$YCDIR" = "yes"; then
+ YCDIR="../yc"
+fi
+if test -L z39.50; then
+ rm z39.50
+fi
+if test ! -d $YCDIR; then
+ AC_MSG_WARN(YC directory ${YCDIR} doesn't exist)
+fi
+if test "$YCDIR" = ""; then
+ ASNMODULE=asn
+else
+ ln -s ${YCDIR}/z39.50 z39.50
+ ASNMODULE=z39.50
+fi
+dnl