+ EXTRAMODULE=asn
+ HFILE=${srcdir}/asn/prt-proto.h
+fi
+AC_ARG_ENABLE(modules,[ --enable-modules=\"mod ..\" ill],[
+if test "$enable_modules" != "no"; then
+ EXTRAMODULE="$EXTRAMODULE $enable_modules"
+fi
+],[
+EXTRAMODULE="$EXTRAMODULE ill ccl"
+])
+EXTRALIB=""
+for module in $EXTRAMODULE; do
+ EXTRALIB="$EXTRALIB ../$module/lib${module}.la"
+ if test $module = "z39.50"; then
+ module=z3950
+ fi
+ AC_DEFINE_UNQUOTED(YAZ_MODULE_${module})
+done
+
+AC_MSG_CHECKING(whether proto.h needs to be generated)
+yaz_include=${srcdir}/include/yaz
+if test -r ${yaz_include}/proto.h && cmp -s $HFILE ${yaz_include}/proto.h; then
+ AC_MSG_RESULT(no)
+else
+ AC_MSG_RESULT(yes)
+ cp -f $HFILE ${yaz_include}/proto.h
+ if test "$enable_comp" != "yes"; then
+ cp ${srcdir}/asn/*.h ${yaz_include}
+ fi