-if test "$yaz_echo_source" = "yes"; then
- YAZBIN=${yaz_build_root}/bin
- YAZLIB="-L${yaz_build_root}/lib/.libs $lyaz $yazextralibs"
- YAZLALIB="${yaz_build_root}/lib/libyaz.la $yazextralibs"
- if test "$lib_ssl" = "yes" -a -n "$SSL_LIBS@"; then
- YAZLALIB="${yaz_build_root}/lib/libyazssl.la"
+YAZINC="@YAZ_CONFIG_CFLAGS@"
+
+if test "$echo_source" = "yes"; then
+ YAZBIN=${build_root}/bin
+
+ if test "$lib_static" = "yes"; then
+ if test "$lib_ssl" != "yes"; then
+ LIBS="${SSL_LIBS} $LIBS"
+ fi
+ YAZLIB="${build_root}/src/.libs/libyaz.a"
+ if test "$lib_server" = "yes"; then
+ YAZLIB="${build_root}/src/.libs/libyaz_server.a $YAZLIB"
+ fi
+ if test "$lib_icu" = "yes"; then
+ YAZLIB="${build_root}/src/.libs/libyaz_icu.a $YAZLIB"
+ fi
+ else
+ YAZLIB="-L${build_root}/src/.libs $YAZLIB"