2 # $Id: yazpp-config.in,v 1.3 2007-04-13 10:26:57 adam Exp $
10 yazpp_src_root=@YAZPP_SRC_ROOT@
11 yazpp_build_root=@YAZPP_BUILD_ROOT@
13 yazlibs="@YAZLIB@ @LIBS@"
14 yazlalibs="@YAZLALIB@ @LIBS@"
15 YAZPPVERSION=@VERSION@
20 Usage: yaz++-config [OPTIONS] [LIBRARIES]
31 if test $# -eq 0; then
35 while test $# -gt 0; do
37 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 libs_short="-lyazpp -lzoompp"
76 if test "$yaz_echo_source" = "yes"; then
77 YAZPPLIB="-L${yazpp_build_root}/src/.libs -lyazpp"
78 YAZPPLIB="$YAZPPLIB -L${yazpp_build_root}/zoom/.libs -lzoompp"
79 YAZPPLIB="$YAZPPLIB $yazlibs"
80 YAZPPLALIB="${yazpp_build_root}/src/libyazpp.la $yazlalibs"
81 YAZPPINC="-I${yazpp_src_root}/include $YAZPPINC"
84 if test "$yazppprefix" = "/usr"; then
85 YAZPPLIB="${libs_short} $yazlibs"
87 YAZPPLIB="-L${yazppprefix}/lib ${libs_short} $yazlibs"
90 if test "$yazppprefix" != "/usr"; then
91 YAZPPINC="-I${yazppprefix}/include $YAZPPINC"
95 if test "$yaz_echo_help" = "yes"; then
98 if test "$yaz_echo_cflags" = "yes"; then
101 if test "$yaz_echo_libs" = "yes"; then
104 if test "$yaz_echo_lalibs" = "yes"; then