-if test "$lib_thread" = "yes"; then
- yazextralibs="@LIBTHREAD@ $yazextralibs"
- lyaz="-lyazthread -lyaz"
-else
- lyaz="-lyaz"
-fi
-if test "$yaz_echo_source" = "yes"; then
- YAZTAB=${yaz_src_root}/tab
- YAZBIN=${yaz_src_root}/bin
- YAZLIB="-L${yaz_src_root}/lib/.libs $lyaz $yazextralibs"
- if test "$lib_thread" = "yes"; then
- YAZLALIB="${yaz_src_root}/lib/libyazthread.la ${yaz_src_root}/lib/libyaz.la $yazextralibs"
+YAZLIB="-lyaz"
+if test "$lib_server" = "yes"; then
+ YAZLIB="-lyaz_server $YAZLIB"
+fi
+
+if test "$lib_icu" = "yes"; then
+ YAZLIB="-lyaz_icu $YAZLIB"
+fi
+
+if test "$lib_ssl" = "yes"; then
+ LIBS="${SSL_LIBS} $LIBS"
+fi
+
+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