X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=idzebra-config.in;h=956fbbbfafe3f520780eb9866e2c7c40e365cbce;hb=a0c8ad663e1c39942375e032abfd0be156f9c2ca;hp=e5b2964fd46f70f837b3b09d62b635b411644dca;hpb=22b93084b7bbc50e5f13890551cfc1c0678a8e03;p=idzebra-moved-to-github.git diff --git a/idzebra-config.in b/idzebra-config.in index e5b2964..956fbbb 100755 --- a/idzebra-config.in +++ b/idzebra-config.in @@ -1,18 +1,21 @@ #!/bin/sh -# $Id: idzebra-config.in,v 1.2 2004-08-30 21:36:53 adam Exp $ -idzebraprefix=@prefix@ -idzebra_echo_cflags=no -idzebra_echo_libs=no -idzebra_echo_help=no -idzebra_echo_tabs=no -idzebra_echo_source=yes -idzebra_echo_lalibs=no +# $Id: idzebra-config.in,v 1.10 2006-06-29 09:10:28 adam Exp $ +version=@VERSION@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +echo_cflags=no +echo_libs=no +echo_help=no +echo_tab=no +echo_source=yes +echo_lalibs=no idzebra_src_root=@IDZEBRA_SRC_ROOT@ idzebra_build_root=@IDZEBRA_BUILD_ROOT@ +package_suffix=@PACKAGE_SUFFIX@ -extralibs="@YAZLIB@ @TCL_LIB@ @LIBS@" -extralalibs="@YAZLALIB@ @TCL_LIB@ @LIBS@" -IDZEBRAVERSION=@VERSION@ +extralibs="@YAZLIB@ @TCL_LIB@ @EXPAT_LIBS@ @XSLT_LIBS@ @LIBS@ " +extralalibs="@YAZLALIB@ @TCL_LIB@ @EXPAT_LIBS@ @XSLT_LIBS@ @LIBS@" usage() { @@ -24,12 +27,14 @@ Options: [--libs] [--lalibs] [--cflags] + [--tab] + [--modules] EOF exit $1 } if test $# -eq 0; then - idzebra_echo_help=yes + echo_help=yes fi modules="" @@ -41,30 +46,35 @@ while test $# -gt 0; do case $1 in --prefix=*) - idzebraprefix=$optarg + prefix=$optarg + exec_prefix=$prefix + libdir=${exec_prefix}/lib ;; --prefix) - echo $idzebraprefix + echo $prefix exit 0 ;; --version) - echo $IDZEBRAVERSION + echo $version exit 0 ;; --cflags) - idzebra_echo_cflags=yes + echo_cflags=yes ;; --libs) - idzebra_echo_libs=yes + echo_libs=yes ;; - --tabs) - idzebra_echo_tabs=yes + --tab) + echo_tab=yes + ;; + --modules) + echo_modules=yes ;; --lalibs) - idzebra_echo_lalibs=yes + echo_lalibs=yes ;; -*) - idzebra_echo_help=yes + echo_help=yes ;; *) modules="$modules $1" @@ -86,7 +96,7 @@ for m in $modules; do if test "$m" = "api"; then d="index" fi - if test "$idzebra_echo_source" = "yes"; then + if test "$echo_source" = "yes"; then IDZEBRALIB="$IDZEBRALIB -L${idzebra_build_root}/$d/.libs -lidzebra-$m" IDZEBRALALIB="$IDZEBRALALIB ${idzebra_build_root}/$d/libidzebra-$m.la" else @@ -94,28 +104,40 @@ for m in $modules; do fi done -if test "$idzebra_echo_source" = "yes"; then +if test "$echo_source" = "yes"; then IDZEBRALIB="$IDZEBRALIB $extralibs" IDZEBRALALIB="$IDZEBRALALIB $extralalibs" IDZEBRAINC="$IDZEBRAINC -I${idzebra_src_root}/include" + IDZEBRATAB="${idzebra_src_root}/tab" + IDZEBRAMOD="${idzebra_src_root}/recctrl" else - if test "$idzebraprefix" != "/usr"; then - IDZEBRALIB="-L${idzebraprefix}/lib $IDZEBRALIB" - IDZEBRAINC="$IDZEBRAINC -I${idzebraprefix}/include" - fi - IDZEBRALIB="$IDZEBRALIB $extralibs" + IDZEBRALIB="-L${libdir}/idzebra${package_suffix} $IDZEBRALIB $extralibs" IDZEBRALALIB="$IDZEBRALIB" + IDZEBRAINC="$IDZEBRAINC -I${prefix}/include/idzebra${package_suffix}" + IDZEBRATAB="@datarootdir@/idzebra${package_suffix}/tab" + IDZEBRAMOD="${libdir}/idzebra${package_suffix}/modules" fi -if test "$idzebra_echo_help" = "yes"; then +if test "$echo_help" = "yes"; then usage 1 1>&2 fi -if test "$idzebra_echo_cflags" = "yes"; then +if test "$echo_cflags" = "yes"; then echo $IDZEBRAINC fi -if test "$idzebra_echo_libs" = "yes"; then +if test "$echo_libs" = "yes"; then echo $IDZEBRALIB fi -if test "$idzebra_echo_lalibs" = "yes"; then +if test "$echo_lalibs" = "yes"; then echo $IDZEBRALALIB fi +if test "$echo_tab" = "yes"; then + echo $IDZEBRATAB +fi +if test "$echo_modules" = "yes"; then + echo $IDZEBRAMOD +fi +# Local Variables: +# mode:shell-script +# sh-indentation: 2 +# sh-basic-offset: 4 +# End: