2 # This file is part of the YAZ toolkit.
3 # Copyright (C) 1995-2011 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@"
23 VERSION_SHA1=@VERSION_SHA1@
28 Usage: yaz-config [OPTIONS] [LIBRARIES]
38 threads icu server static
43 while test $# -gt 0; do
45 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
58 echo "$VERSION $VERSION_SHA1"
81 if test "$ICU_CPPFLAGS"; then
103 if test "$lib_server" = "yes"; then
104 YAZLIB="-lyaz_server $YAZLIB"
107 if test "$lib_icu" = "yes"; then
108 YAZLIB="-lyaz_icu $YAZLIB"
111 if test "$lib_ssl" = "yes"; then
112 LIBS="${SSL_LIBS} $LIBS"
115 YAZINC="@YAZ_CONFIG_CFLAGS@"
117 if test "$echo_source" = "yes"; then
118 YAZBIN=${build_root}/bin
120 if test "$lib_static" = "yes"; then
121 if test "$lib_ssl" != "yes"; then
122 LIBS="${SSL_LIBS} $LIBS"
124 YAZLIB="${build_root}/src/.libs/libyaz.a"
125 if test "$lib_server" = "yes"; then
126 YAZLIB="${build_root}/src/.libs/libyaz_server.a $YAZLIB"
128 if test "$lib_icu" = "yes"; then
129 YAZLIB="${build_root}/src/.libs/libyaz_icu.a $YAZLIB"
132 YAZLIB="-L${build_root}/src/.libs $YAZLIB"
134 YAZLIB="$YAZLIB $LIBS"
136 YAZLALIB="${build_root}/src/libyaz.la"
137 if test "$lib_server" = "yes"; then
138 YAZLALIB="${build_root}/src/libyaz_server.la $YAZLALIB"
140 if test "$lib_icu" = "yes"; then
141 YAZLALIB="${build_root}/src/libyaz_icu.la $YAZLALIB"
143 YAZLALIB="$YAZLALIB $LIBS"
145 YAZINC="-I${src_root}/include $YAZINC"
146 YAZCOMP=${src_root}/util/yaz-asncomp
149 YAZCOMP=${prefix}/bin/yaz-asncomp
151 if test "$prefix" != "/usr"; then
152 YAZLIB="-L$libdir $YAZLIB"
154 YAZLIB="$YAZLIB $LIBS"
156 if test "$prefix" != "/usr"; then
157 YAZINC="-I${includedir} $YAZINC"
161 if test "$lib_thread" = "yes"; then
165 if test "$lib_icu" = "yes"; then
166 YAZINC="$YAZINC $ICU_CPPFLAGS"
167 YAZLIB="$YAZLIB $ICU_LIBS"
168 YAZLALIB="$YAZLALIB $ICU_LIBS"
171 if test "$echo_help" = "yes"; then
174 if test "$echo_cflags" = "yes"; then
177 if test "$echo_libs" = "yes"; then
180 if test "$echo_lalibs" = "yes"; then
183 if test "$echo_comp" = "yes"; then