2 # This file is part of the YAZ toolkit.
3 # Copyright (C) 1995-2008 Index Data
6 exec_prefix=@exec_prefix@
8 includedir=@includedir@
15 src_root=@abs_top_srcdir@
16 build_root=@abs_top_builddir@
18 ICU_CPPFLAGS="@ICU_CPPFLAGS@"
22 VERSION_SHA1=@VERSION_SHA1@
27 Usage: yaz-config [OPTIONS] [LIBRARIES]
37 threads icu server static
42 while test $# -gt 0; do
44 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
57 echo "$VERSION $VERSION_SHA1"
80 if test "$ICU_CPPFLAGS"; then
102 if test "$lib_server" = "yes"; then
103 YAZLIB="-lyaz_server $YAZLIB"
106 if test "$lib_icu" = "yes"; then
107 YAZLIB="-lyaz_icu $YAZLIB"
110 if test "$lib_ssl" = "yes"; then
111 LIBS="${SSL_LIBS} $LIBS"
114 YAZINC="@YAZ_CONFIG_CFLAGS@"
116 if test "$echo_source" = "yes"; then
117 YAZBIN=${build_root}/bin
119 if test "$lib_static" = "yes"; then
120 if test "$lib_ssl" != "yes"; then
121 LIBS="${SSL_LIBS} $LIBS"
123 YAZLIB="${build_root}/src/.libs/libyaz.a"
124 if test "$lib_server" = "yes"; then
125 YAZLIB="${build_root}/src/.libs/libyaz_server.a $YAZLIB"
127 if test "$lib_icu" = "yes"; then
128 YAZLIB="${build_root}/src/.libs/libyaz_icu.a $YAZLIB"
131 YAZLIB="-L${build_root}/src/.libs $YAZLIB"
133 YAZLIB="$YAZLIB $LIBS"
135 YAZLALIB="${build_root}/src/libyaz.la"
136 if test "$lib_server" = "yes"; then
137 YAZLALIB="${build_root}/src/libyaz_server.la $YAZLALIB"
139 if test "$lib_icu" = "yes"; then
140 YAZLALIB="${build_root}/src/libyaz_icu.la $YAZLALIB"
142 YAZLALIB="$YAZLALIB $LIBS"
144 YAZINC="-I${src_root}/include $YAZINC"
145 YAZCOMP=${src_root}/util/yaz-asncomp
148 YAZCOMP=${prefix}/bin/yaz-asncomp
150 if test "$prefix" != "/usr"; then
151 YAZLIB="-L$libdir $YAZLIB"
153 YAZLIB="$YAZLIB $LIBS"
155 if test "$prefix" != "/usr"; then
156 YAZINC="-I${includedir} $YAZINC"
160 if test "$lib_thread" = "yes"; then
164 if test "$lib_icu" = "yes"; then
165 YAZINC="$YAZINC $ICU_CPPFLAGS"
166 YAZLIB="$YAZLIB $ICU_LIBS"
167 YAZLALIB="$YAZLALIB $ICU_LIBS"
170 if test "$echo_help" = "yes"; then
173 if test "$echo_cflags" = "yes"; then
176 if test "$echo_libs" = "yes"; then
179 if test "$echo_lalibs" = "yes"; then
182 if test "$echo_comp" = "yes"; then