diff options
Diffstat (limited to 'src/build-data/botan-config.in')
-rw-r--r-- | src/build-data/botan-config.in | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/build-data/botan-config.in b/src/build-data/botan-config.in index f855cbc50..e8d8bc2c1 100644 --- a/src/build-data/botan-config.in +++ b/src/build-data/botan-config.in @@ -1,16 +1,9 @@ #!/bin/sh -# For normal builds: -guess_prefix=`dirname \`dirname $0\`` +prefix=%{prefix} includedir=%{includedir}/botan-%{version_major}.%{version_minor} libdir=%{libdir} -# For workspace builds: -#guess_prefix=`dirname $0` -#includedir=build/include -#libdir= - -install_prefix=%{prefix} prefix= usage() @@ -23,12 +16,6 @@ if test $# -eq 0; then usage fi -if test `echo $guess_prefix | cut -c 1` = "/"; then - prefix=$guess_prefix -else - prefix=$install_prefix -fi - while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; @@ -49,7 +36,7 @@ while test $# -gt 0; do echo -I$prefix/$includedir ;; --libs) - if [ $prefix != "/usr" -a $prefix != "/usr/local" ] + if [ $prefix != "/usr" ] then echo -L$prefix/$libdir -lbotan-%{version_major}.%{version_minor} %{link_to} else |