2 # This file is part of the YAZ toolkit.
3 # Copyright (C) 1995-2008 Index Data
12 yaz_src_root=@YAZ_SRC_ROOT@
13 yaz_build_root=@YAZ_BUILD_ROOT@
15 ICU_CPPFLAGS="@ICU_CPPFLAGS@"
19 VERSION_SHA1=@VERSION_SHA1@
24 Usage: yaz-config [OPTIONS] [LIBRARIES]
39 while test $# -gt 0; do
41 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
54 echo "$YAZVERSION $VERSION_SHA1"
77 if test "$ICU_CPPFLAGS"; then
99 if test "$lib_server" = "yes"; then
100 lyaz="-lyaz_server $lyaz"
103 if test "$lib_icu" = "yes"; then
104 lyaz="-lyaz_icu $lyaz"
107 if test "$lib_ssl" = "yes" -o "$lib_static" = "yes"; then
108 LIBS="${SSL_LIBS} $LIBS"
111 YAZINC="@YAZ_CONFIG_CFLAGS@"
113 if test "$yaz_echo_source" = "yes"; then
114 YAZBIN=${yaz_build_root}/bin
116 if test "$lib_static" = "yes"; then
117 YAZLIB="${yaz_build_root}/src/.libs/libyaz.a"
118 if test "$lib_server" = "yes"; then
119 YAZLIB="${yaz_build_root}/src/.libs/libyaz_server.a $YAZLIB"
121 if test "$lib_icu" = "yes"; then
122 YAZLIB="${yaz_build_root}/src/.libs/libyaz_icu.a $YAZLIB"
125 YAZLIB="-L${yaz_build_root}/src/.libs $lyaz"
127 YAZLIB="$YAZLIB $LIBS"
129 YAZLALIB="${yaz_build_root}/src/libyaz.la"
130 if test "$lib_server" = "yes"; then
131 YAZLALIB="${yaz_build_root}/src/libyaz_server.la $YAZLALIB"
133 if test "$lib_icu" = "yes"; then
134 YAZLALIB="${yaz_build_root}/src/libyaz_icu.la $YAZLALIB"
136 YAZLALIB="$YAZLALIB $LIBS"
138 YAZINC="-I${yaz_src_root}/include $YAZINC"
139 YAZCOMP=${yaz_src_root}/util/yaz-asncomp
141 YAZBIN=${yazprefix}/bin
142 YAZCOMP=${yazprefix}/bin/yaz-asncomp
144 if test "$yazprefix" != "/usr"; then
145 YAZLIB="-L$yazprefix/lib"
147 YAZLIB="$YAZLIB $lyaz $LIBS"
149 if test "$yazprefix" != "/usr"; then
150 YAZINC="-I$yazprefix/include $YAZINC"
154 if test "$lib_thread" = "yes"; then
158 if test "$lib_icu" = "yes"; then
159 YAZINC="$YAZINC $ICU_CPPFLAGS"
160 YAZLIB="$YAZLIB $ICU_LIBS"
161 YAZLALIB="$YAZLALIB $ICU_LIBS"
164 if test "$yaz_echo_help" = "yes"; then
167 if test "$yaz_echo_cflags" = "yes"; then
170 if test "$yaz_echo_libs" = "yes"; then
173 if test "$yaz_echo_lalibs" = "yes"; then
176 if test "$yaz_echo_comp" = "yes"; then