# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/apr-util/apr-util.conf # Copyright (C) 2004 - 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- if atstage cross; then var_append makeopt ' ' 'LIBTOOL=$root/TOOLCHAIN/cross/bin/libtool-x' var_append makeinstopt ' ' 'LIBTOOL=$root/TOOLCHAIN/cross/bin/libtool-x' # all tests have hardcoded to /lib export LDFLAGS="-L$root${libdir##*/} -L$root/usr/${libdir##*/}" export APRUTIL_LDFLAGS="-L$root${libdir##*/} -L$root/usr/${libdir##*/}" fi # APR is mandatory, so no additional test needed. pkgprefix -t apr var_append extraconfopt " " "--with-apr=$root/$(pkgprefix apr)" # use glibc iconv instead of apriconv if pkginstalled glibc; then var_append extraconfopt " " "--with-iconv=$root/usr" fi # use expat when it is installed. if pkginstalled expat; then pkgprefix -t expat var_append extraconfopt " " "--with-expat=$root/$(pkgprefix expat)" fi # use (open)ldap when installed. if pkginstalled openldap; then pkgprefix -t openldap var_append extraconfopt " " "--with-ldap" var_append extraconfopt " " "--with-ldap-include=$root$(pkgprefix includedir openldap)" var_append extraconfopt " " "--with-ldap-lib=$root$(pkgprefix libdir openldap)" if pkginstalled cyrus-sasl2; then var_append GCC_WRAPPER_APPEND ' ' '-lsasl2' fi fi if pkginstalled bdb; then var_append extraconfopt ' ' '--with-dbm=db53' var_append extraconfopt ' ' \ "--with-berkeley-db=$root`pkgprefix includedir bdb`" else var_append extraconfopt ' ' "--without-berkeley-db" fi