2 # $Id: yaz-config.in,v 1.23 2005-09-09 10:34:09 adam Exp $
10 yaz_src_root=@YAZ_SRC_ROOT@
11 yaz_build_root=@YAZ_BUILD_ROOT@
19 Usage: yaz-config [OPTIONS] [LIBRARIES]
33 #if test $# -eq 0; then
37 while test $# -gt 0; do
39 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 if test "$yaz_echo_source" = "yes"; then
83 YAZBIN=${yaz_build_root}/bin
84 YAZLIB="-L${yaz_build_root}/src/.libs $lyaz $yazextralibs"
85 YAZLALIB="${yaz_build_root}/src/libyaz.la $yazextralibs"
86 YAZINC="-I${yaz_src_root}/include"
87 YAZCOMP=${yaz_src_root}/util/yaz-asncomp
89 YAZBIN=${yazprefix}/bin
90 YAZCOMP=${yazprefix}/bin/yaz-asncomp
92 if test "$yazprefix" = "/usr"; then
93 YAZLIB="$lyaz $yazextralibs"
95 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
98 if test "$yazprefix" = "/usr"; then
101 YAZINC=-I$yazprefix/include
105 YAZINC="$YAZINC @YAZ_CONF_CFLAGS@"
107 if test "$lib_thread" = "yes"; then
108 YAZINC="$YAZINC @THREAD_CFLAGS@"
111 if test "$yaz_echo_help" = "yes"; then
114 if test "$yaz_echo_cflags" = "yes"; then
117 if test "$yaz_echo_libs" = "yes"; then
120 if test "$yaz_echo_lalibs" = "yes"; then
123 if test "$yaz_echo_comp" = "yes"; then