2 # $Id: yaz-config.in,v 1.11 2001-11-13 23:00:42 adam Exp $
11 yaz_src_root=@YAZ_SRC_ROOT@
12 yaz_build_root=@YAZ_BUILD_ROOT@
20 Usage: yaz-config [OPTIONS] [LIBRARIES]
36 #if test $# -eq 0; then
40 while test $# -gt 0; do
42 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
89 yazextralibs="@LIBTHREAD@ $yazextralibs"
90 lyaz="-lyazthread $lyaz"
93 if test "$lib_malloc" = "yes"; then
94 lyaz="-lyazmalloc $lyaz"
97 if test "$yaz_echo_source" = "yes"; then
98 YAZTAB=${yaz_src_root}/tab
99 YAZBIN=${yaz_build_root}/bin
100 YAZLIB="-L${yaz_build_root}/lib/.libs $lyaz $yazextralibs"
101 YAZLALIB="${yaz_build_root}/lib/libyaz.la $yazextralibs"
102 if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
103 YAZLALIB="${yaz_build_root}/lib/libyazthread.la $YAZLALIB"
105 if test "$lib_malloc" = "yes"; then
106 YAZLALIB="${yaz_build_root}/lib/libyazmalloc.la $YAZLALIB"
108 YAZINC="-I${yaz_src_root}/include"
109 YAZCOMP=${yaz_src_root}/util/yaz-comp
111 YAZTAB=${yazprefix}/share/yaz/tab
112 YAZBIN=${yazprefix}/bin
113 YAZCOMP=${yazprefix}/bin/yaz-comp
115 if test "$yazprefix" = "/usr"; then
116 YAZLIB="$lyaz $yazextralibs"
118 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
121 if test "$yazprefix" = "/usr"; then
124 YAZINC=-I$yazprefix/include
128 if test "$lib_thread" = "yes"; then
129 YAZINC="$YAZINC @CFLAGSTHREADS@"
132 if test "$yaz_echo_help" = "yes"; then
135 if test "$yaz_echo_cflags" = "yes"; then
138 if test "$yaz_echo_libs" = "yes"; then
141 if test "$yaz_echo_tabs" = "yes"; then
144 if test "$yaz_echo_lalibs" = "yes"; then
147 if test "$yaz_echo_comp" = "yes"; then