yaz-config: Use exec_prefix, libdir, includedir
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 22 Dec 2010 13:48:05 +0000 (14:48 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 22 Dec 2010 13:48:05 +0000 (14:48 +0100)
Use these variables as determined by configure

yaz-config.in

index 2074827..e491516 100644 (file)
@@ -3,6 +3,9 @@
 # Copyright (C) 1995-2008 Index Data
 
 prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
 echo_cflags=no
 echo_libs=no
 echo_help=no
@@ -145,12 +148,12 @@ else
     YAZCOMP=${prefix}/bin/yaz-asncomp
 
     if test "$prefix" != "/usr"; then
-       YAZLIB="-L$prefix/lib $YAZLIB"
+       YAZLIB="-L$libdir $YAZLIB"
     fi
     YAZLIB="$YAZLIB $LIBS"
     YAZLALIB=$YAZLIB
     if test "$prefix" != "/usr"; then
-       YAZINC="-I$prefix/include $YAZINC"
+       YAZINC="-I${includedir} $YAZINC"
     fi
 fi