Make ETL-config a wrapper around pkg-config. Patch by Ralf Corsepius <rc040203@freene...
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 24 Jan 2008 05:31:30 +0000 (05:31 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 24 Jan 2008 05:31:30 +0000 (05:31 +0000)
git-svn-id: http://svn.voria.com/code@1455 1f10aa63-cdf2-0310-b900-c93c546f37ac

ETL/trunk/AUTHORS
ETL/trunk/ETL-config.in

index 067eb4d..83446da 100644 (file)
@@ -9,3 +9,4 @@ Paul Wise (pabs)
 Andreas Jochens
 Chris Moore (dooglus)
 Martin Michlmayr
+Ralf Corsepius
index 0808b8b..61bce4f 100644 (file)
@@ -1,26 +1,8 @@
 #!/bin/sh
 
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-
-bindir=@bindir@
-libexecdir=@libexecdir@
-datadir=@datadir@
-sysconfdir=@sysconfdir@
-sharedstatedir=@sharedstatedir@
-localstatedir=@localstatedir@
-libdir=@libdir@
-infodir=@infodir@
-mandir=@mandir@
-includedir=@includedir@
-
-LIBS="@LIBS@"
-
 VERSION=@VERSION@
 PACKAGE=@PACKAGE@
 
-CFLAGS=-I$includedir
-
 usage()
 {
        cat <<EOF
@@ -54,26 +36,26 @@ case $1 in
        exit 0
        ;;
 --exec-prefix)
-       echo $exec_prefix
+       pkg-config --variable=exec_prefix ETL
        exit 0
        ;;
 --prefix)
-       echo $prefix
+       pkg-config --variable=prefix ETL
        exit 0
        ;;
 --help)
        usage 0
        ;;
 --cxxflags)
-       echo $CFLAGS
+       pkg-config --cflags ETL
        exit 0
        ;;
 --cflags)
-       echo $CFLAGS
+       pkg-config --cflags ETL
        exit 0
        ;;
 --libs)
-       echo $LIBS
+       pkg-config --libs ETL
        exit 0
        ;;
 esac