- release 2
[packages/apr-util.git] / apr-util-link.patch
1 --- apr-util-0.9.4/configure.in.orig    2004-04-18 23:20:56.000000000 +0200
2 +++ apr-util-0.9.4/configure.in 2004-04-18 23:25:35.447213680 +0200
3 @@ -98,7 +98,12 @@
4  APU_FIND_EXPAT
5  APU_FIND_ICONV
6  
7 +save_LIBS="$LIBS"
8 +LIBS=
9  AC_SEARCH_LIBS(crypt, crypt ufc)
10 +APR_ADDTO(APRUTIL_EXPORT_LIBS, [$LIBS])
11 +APR_ADDTO(APRUTIL_LIBS, [$LIBS])
12 +LIBS="$save_LIBS $LIBS"
13  AC_MSG_CHECKING(if system crypt() function is threadsafe)
14  if test "x$apu_crypt_threadsafe" = "x1"; then
15    AC_DEFINE(APU_CRYPT_THREADSAFE, 1, [Define if the system crypt() function is threadsafe])
16 --- apr-util-1.5.4/configure.in~        2016-04-08 22:47:59.000000000 +0200
17 +++ apr-util-1.5.4/configure.in 2016-04-08 22:50:43.902956204 +0200
18 @@ -227,6 +227,11 @@ AC_SUBST(APRUTIL_EXPORT_LIBS)
19  AC_SUBST(APRUTIL_PRIV_INCLUDES)
20  APRUTIL_INCLUDES="$APRUTIL_INCLUDES -I/usr/include/apr"
21  AC_SUBST(APRUTIL_INCLUDES)
22 +
23 +APR_REMOVEFROM(APRUTIL_LDFLAGS,[-L/usr/lib])
24 +APR_REMOVEFROM(APRUTIL_LDFLAGS,[-L/usr/lib32])
25 +APR_REMOVEFROM(APRUTIL_LDFLAGS,[-L/usr/lib64])
26 +
27  AC_SUBST(APRUTIL_LDFLAGS)
28  AC_SUBST(APRUTIL_LIBS)
29  AC_SUBST(LDFLAGS)