2 # $Id: yaz-config.in,v 1.10 2001-10-15 20:37:08 adam Exp $
11 yaz_src_root=@YAZ_SRC_ROOT@
12 yaz_build_root=@YAZ_BUILD_ROOT@
20 Usage: yaz-config [OPTIONS] [LIBRARIES]
35 #if test $# -eq 0; then
39 while test $# -gt 0; do
41 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
83 yazextralibs="@LIBTHREAD@ $yazextralibs"
84 lyaz="-lyazthread -lyaz"
88 if test "$yaz_echo_source" = "yes"; then
89 YAZTAB=${yaz_src_root}/tab
90 YAZBIN=${yaz_build_root}/bin
91 YAZLIB="-L${yaz_build_root}/lib/.libs $lyaz $yazextralibs"
92 if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
93 YAZLALIB="${yaz_build_root}/lib/libyazthread.la ${yaz_build_root}/lib/libyaz.la $yazextralibs"
95 YAZLALIB="${yaz_build_root}/lib/libyaz.la $yazextralibs"
97 YAZINC="-I${yaz_src_root}/include"
98 YAZCOMP=${yaz_src_root}/util/yaz-comp
100 YAZTAB=${yazprefix}/share/yaz/tab
101 YAZBIN=${yazprefix}/bin
102 YAZCOMP=${yazprefix}/bin/yaz-comp
104 if test "$yazprefix" = "/usr"; then
105 YAZLIB="$lyaz $yazextralibs"
107 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
110 if test "$yazprefix" = "/usr"; then
113 YAZINC=-I$yazprefix/include
117 if test "$lib_thread" = "yes"; then
118 YAZINC="$YAZINC @CFLAGSTHREADS@"
121 if test "$yaz_echo_help" = "yes"; then
124 if test "$yaz_echo_cflags" = "yes"; then
127 if test "$yaz_echo_libs" = "yes"; then
130 if test "$yaz_echo_tabs" = "yes"; then
133 if test "$yaz_echo_lalibs" = "yes"; then
136 if test "$yaz_echo_comp" = "yes"; then