Dash:
[t2-trunk.git] / package / develop / apr-util / apr-util.conf
blob38520df2e56cd1fb6e20f45d9dc2493f0379a7d2
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/apr-util/apr-util.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if atstage cross; then
13         var_append makeopt ' ' 'LIBTOOL=$root/usr/bin/libtool'
14         var_append makeinstopt ' ' 'LIBTOOL=$root/usr/bin/libtool'
16         # all tests have hardcoded to /lib
17         export LDFLAGS="-L$root${libdir##*/} -L$root/usr/${libdir##*/}"
18         export APRUTIL_LDFLAGS="-L$root${libdir##*/} -L$root/usr/${libdir##*/}"
21 # APR is mandatory, so no additional test needed.
22 pkgprefix -t apr
23 var_append extraconfopt " " "--with-apr=$root/$( pkgprefix apr )"
25 # use glibc iconv instead of apriconv
26 if pkginstalled glibc; then
27         var_append extraconfopt " " "--with-iconv=$root/usr"
30 # use expat when it is installed.
31 if pkginstalled expat; then
32         pkgprefix -t expat
33         var_append extraconfopt " " "--with-expat=$root/$( pkgprefix expat )"
36 # use (open)ldap when installed.
37 if pkginstalled openldap; then
38         pkgprefix -t openldap
39         var_append extraconfopt " " "--with-ldap"
40         var_append extraconfopt " " "--with-ldap-include=$root$( pkgprefix includedir openldap )"
41         var_append extraconfopt " " "--with-ldap-lib=$root$( pkgprefix libdir openldap )"
42         if pkginstalled cyrus-sasl2; then
43                 var_append GCC_WRAPPER_APPEND ' ' '-lsasl2'
44         fi
47 if pkginstalled bdb; then
48         var_append extraconfopt ' ' '--with-dbm=db53'
49         var_append extraconfopt ' ' \
50                    "--with-berkeley-db=$root`pkgprefix includedir bdb`"
51 else
52         var_append extraconfopt ' ' "--without-berkeley-db"