2 # $Id: yaz-config.in,v 1.5 2000-12-14 16:01:32 adam Exp $
10 yaz_src_root=@YAZ_SRC_ROOT@
18 Usage: yaz-config [OPTIONS] [LIBRARIES]
32 #if test $# -eq 0; then
36 while test $# -gt 0; do
38 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 if test "$lib_thread" = "yes"; then
77 yazextralibs="@LIBTHREAD@ $yazextralibs"
78 lyaz="-lyazthread -lyaz"
82 if test "$yaz_echo_source" = "yes"; then
83 YAZTAB=${yaz_src_root}/tab
84 YAZBIN=${yaz_src_root}/bin
85 YAZLIB="-L${yaz_src_root}/lib/.libs $lyaz $yazextralibs"
86 if test "$lib_thread" = "yes"; then
87 YAZLALIB="${yaz_src_root}/lib/libyazthread.la ${yaz_src_root}/lib/libyaz.la $yazextralibs"
89 YAZLALIB="${yaz_src_root}/lib/libyaz.la $yazextralibs"
91 YAZINC="-I${yaz_src_root}/include"
93 YAZTAB=$yazprefix/share/yaz/tab
96 if test "$yazprefix" = "/usr"; then
97 YAZLIB="$lyaz $yazextralibs"
99 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
102 if test "$yazprefix" = "/usr"; then
105 YAZINC=-I$yazprefix/include
109 if test "$lib_thread" = "yes"; then
110 YAZINC="$YAZINC -D_REENTRANT"
113 if test "$yaz_echo_help" = "yes"; then
116 if test "$yaz_echo_cflags" = "yes"; then
119 if test "$yaz_echo_libs" = "yes"; then
122 if test "$yaz_echo_tabs" = "yes"; then
125 if test "$yaz_echo_lalibs" = "yes"; then