1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../apr/apr-config.patch.cross
5 # Copyright (C) 2009 - 2010 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- apr-1.3.2/apr-config.in.vanilla 2009-11-20 18:45:07.000000000 +0100
18 +++ apr-1.3.2/apr-config.in 2009-11-20 18:58:55.000000000 +0100
22 if test "$location" = "installed"; then
23 - LA_FILE="$libdir/lib${APR_LIBNAME}.la"
26 LA_FILE="$APR_BUILD_DIR/lib${APR_LIBNAME}.la"
31 if test "$location" = "installed"; then
32 - flags="$flags -I$includedir $EXTRA_INCLUDES"
33 + flags="$flags $EXTRA_INCLUDES"
34 elif test "$location" = "source"; then
35 flags="$flags -I$APR_SOURCE_DIR/include $EXTRA_INCLUDES"
40 if test "$location" = "installed"; then
41 - echo "${installbuilddir}"
42 + echo "`dirname $0`/../../${installbuilddir}"
43 elif test "$location" = "source"; then
44 echo "$APR_SOURCE_DIR/build"
48 if test "$location" = "installed"; then
49 ### avoid using -L if libdir is a "standard" location like /usr/lib
50 - flags="$flags -L$libdir -l${APR_LIBNAME}"
51 + flags="$flags -l${APR_LIBNAME}"
53 ### this surely can't work since the library is in .libs?
54 flags="$flags -L$APR_BUILD_DIR -l${APR_LIBNAME}"
56 ### avoid using -L if libdir is a "standard" location like /usr/lib
57 # Since the user is specifying they are linking with libtool, we
58 # *know* that -R will be recognized by libtool.
59 - flags="$flags -L$libdir -R$libdir -l${APR_LIBNAME}"
60 + flags="$flags -l${APR_LIBNAME}"
62 flags="$flags $LA_FILE"
67 if test "$location" = "installed"; then
68 - echo "${installbuilddir}/libtool"
69 + echo "`dirname $0`/../../${installbuilddir}/libtool"
71 echo "$APR_BUILD_DIR/libtool"