2 # $Id: yaz-config.in,v 1.20 2004-04-28 22:44:58 adam Exp $
10 yaz_src_root=@YAZ_SRC_ROOT@
11 yaz_build_root=@YAZ_BUILD_ROOT@
13 yazextralibs="@SSL_LIBS@ @LIBS@"
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 "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
83 yazextralibs="@LIBTHREAD@ $yazextralibs"
84 lyaz="-lyazthread $lyaz"
87 if test "$yaz_echo_source" = "yes"; then
88 YAZBIN=${yaz_build_root}/bin
89 YAZLIB="-L${yaz_build_root}/src/.libs $lyaz $yazextralibs"
90 YAZLALIB="${yaz_build_root}/src/libyaz.la $yazextralibs"
91 if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
92 YAZLALIB="${yaz_build_root}/src/libyazthread.la $YAZLALIB"
94 YAZINC="-I${yaz_src_root}/include"
95 YAZCOMP=${yaz_src_root}/util/yaz-comp
97 YAZBIN=${yazprefix}/bin
98 YAZCOMP=${yazprefix}/bin/yaz-comp
100 if test "$yazprefix" = "/usr"; then
101 YAZLIB="$lyaz $yazextralibs"
103 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
106 if test "$yazprefix" = "/usr"; then
109 YAZINC=-I$yazprefix/include
113 YAZINC="$YAZINC @YAZ_CONF_CFLAGS@"
115 if test "$lib_thread" = "yes"; then
116 YAZINC="$YAZINC @CFLAGSTHREADS@"
119 YAZINC="$YAZINC @SSL_CFLAGS@"
121 if test "$yaz_echo_help" = "yes"; then
124 if test "$yaz_echo_cflags" = "yes"; then
127 if test "$yaz_echo_libs" = "yes"; then
130 if test "$yaz_echo_lalibs" = "yes"; then
133 if test "$yaz_echo_comp" = "yes"; then