2 # $Id: yaz-config.in,v 1.24 2006-06-13 15:36:09 adam Exp $
10 yaz_src_root=@YAZ_SRC_ROOT@
11 yaz_build_root=@YAZ_BUILD_ROOT@
19 Usage: yaz-config [OPTIONS] [LIBRARIES]
33 while test $# -gt 0; do
35 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 if test "$yaz_echo_source" = "yes"; then
79 YAZBIN=${yaz_build_root}/bin
80 YAZLIB="-L${yaz_build_root}/src/.libs $lyaz $yazextralibs"
81 YAZLALIB="${yaz_build_root}/src/libyaz.la $yazextralibs"
82 YAZINC="-I${yaz_src_root}/include"
83 YAZCOMP=${yaz_src_root}/util/yaz-asncomp
85 YAZBIN=${yazprefix}/bin
86 YAZCOMP=${yazprefix}/bin/yaz-asncomp
88 if test "$yazprefix" = "/usr"; then
89 YAZLIB="$lyaz $yazextralibs"
91 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
94 if test "$yazprefix" = "/usr"; then
97 YAZINC=-I$yazprefix/include
101 YAZINC="$YAZINC @YAZ_CONF_CFLAGS@"
103 if test "$lib_thread" = "yes"; then
104 YAZINC="$YAZINC @THREAD_CFLAGS@"
107 if test "$yaz_echo_help" = "yes"; then
110 if test "$yaz_echo_cflags" = "yes"; then
113 if test "$yaz_echo_libs" = "yes"; then
116 if test "$yaz_echo_lalibs" = "yes"; then
119 if test "$yaz_echo_comp" = "yes"; then