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

metaproxy-config.in

index 0a6bcc3..d9e7f03 100644 (file)
@@ -1,5 +1,8 @@
 #!/bin/sh
 prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
 echo_cflags=no
 echo_libs=no
 echo_help=no
@@ -77,11 +80,11 @@ if test "$echo_source" = "yes"; then
 else
     LIB="-lmetaproxy $libs"
     if test "$prefix" != "/usr"; then
-       LIB="-L${prefix}/lib $LIB"
+       LIB="-L${libdir} $LIB"
     fi
     LALIB=$LIB
     if test "$prefix" != "/usr"; then
-       INC="-I${prefix}/include $INC"
+       INC="-I${includedir} $INC"
     fi
 fi