2 # $Id: idzebra-config.in,v 1.1 2004-08-29 12:31:32 adam Exp $
8 idzebra_echo_source=yes
10 idzebra_src_root=@IDZEBRA_SRC_ROOT@
11 idzebra_build_root=@IDZEBRA_BUILD_ROOT@
13 yazlibs="@YAZLIB@ @LIBS@"
14 yazlalibs="@YAZLALIB@ @LIBS@"
15 IDZEBRAVERSION=@VERSION@
20 Usage: idzebra-config [OPTIONS] [LIBRARIES]
31 if test $# -eq 0; then
36 while test $# -gt 0; do
38 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
55 idzebra_echo_cflags=yes
64 idzebra_echo_lalibs=yes
80 if test -z "$modules"; then
81 modules="util bfile dfa dict isamc isamb isams data1 recctrl rset api"
85 if test "$m" = "api"; then
88 if test "$idzebra_echo_source" = "yes"; then
89 IDZEBRALIB="$IDZEBRALIB -L${idzebra_build_root}/$d/.libs -lidzebra-$m"
90 IDZEBRALALIB="$IDZEBRALALIB ${idzebra_build_root}/$d/libidzebra-$m.la"
92 IDZEBRALIB="$IDZEBRALIB -lidzebra-$m"
96 if test "$idzebra_echo_source" = "yes"; then
97 IDZEBRALIB="$IDZEBRALIB $yazlibs"
98 IDZEBRALALIB="$IDZEBRALALIB $yazlalibs"
99 IDZEBRAINC="$IDZEBRAINC -I${idzebra_src_root}/include"
101 if test "$idzebraprefix" != "/usr"; then
102 IDZEBRALIB="-L${idzebraprefix}/lib $IDZEBRALIB"
103 IDZEBRAINC="$IDZEBRAINC -I${idzebraprefix}/include"
105 IDZEBRALIB="$IDZEBRALIB $yazlibs"
106 IDZEBRALALIB="$IDZEBRALIB"
109 if test "$idzebra_echo_help" = "yes"; then
112 if test "$idzebra_echo_cflags" = "yes"; then
115 if test "$idzebra_echo_libs" = "yes"; then
118 if test "$idzebra_echo_lalibs" = "yes"; then