New configure options: --enable-module.
[yaz-moved-to-github.git] / yaz-config.in
index 99e2ed2..ef737b9 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: yaz-config.in,v 1.6 2001-03-20 15:58:24 adam Exp $
+# $Id: yaz-config.in,v 1.7 2001-04-05 13:08:48 adam Exp $
 yazprefix=@prefix@
 yaz_echo_cflags=no
 yaz_echo_libs=no
@@ -7,6 +7,7 @@ yaz_echo_help=no
 yaz_echo_tabs=no
 yaz_echo_source=yes
 yaz_echo_lalibs=no
+yaz_echo_comp=no
 yaz_src_root=@YAZ_SRC_ROOT@
 yaz_build_root=@YAZ_BUILD_ROOT@
 
@@ -24,6 +25,7 @@ Options:
        [--lalibs]
        [--cflags]
        [--tabs]
+       [--comp]
 Libraries:
        threads
 EOF
@@ -64,6 +66,9 @@ while test $# -gt 0; do
     --lalibs)
       yaz_echo_lalibs=yes
       ;;
+    --comp)
+      yaz_echo_comp=yes
+      ;;
     threads)
       lib_thread=yes
       ;;
@@ -90,9 +95,11 @@ if test "$yaz_echo_source" = "yes"; then
         YAZLALIB="${yaz_build_root}/lib/libyaz.la $yazextralibs"
     fi
     YAZINC="-I${yaz_src_root}/include"
+    YAZCOMP=${yaz_src_root}/util/yaz-comp
 else
-    YAZTAB=$yazprefix/share/yaz/tab
-    YAZBIN=$yazprefix/bin
+    YAZTAB=${yazprefix}/share/yaz/tab
+    YAZBIN=${yazprefix}/bin
+    YAZCOMP=${yazprefix}/bin/yaz-comp
 
     if test "$yazprefix" = "/usr"; then
        YAZLIB="$lyaz $yazextralibs"
@@ -126,3 +133,6 @@ fi
 if test "$yaz_echo_lalibs" = "yes"; then
        echo $YAZLALIB
 fi
+if test "$yaz_echo_comp" = "yes"; then
+       echo $YAZCOMP
+fi