|
|
@ -18,11 +18,17 @@ hook_add preconf 5 'autoreconf -vfi' |
|
|
|
prefix= |
|
|
|
prefix= |
|
|
|
set_confopt |
|
|
|
set_confopt |
|
|
|
|
|
|
|
|
|
|
|
# postgresql support |
|
|
|
# database output plugin support |
|
|
|
if pkginstalled -f postgres; then |
|
|
|
tuples="postgresql:pgsql mysql:mysql libdbi:dbi" |
|
|
|
var_append extraconfopt ' ' "--with-pgsql=$( pkgprefix -r postgresql )" |
|
|
|
for tuple in $tuples; do |
|
|
|
var_append extraconfopt ' ' "--with-pgsql-inc=$( pkgprefix -r includedir postgresql )" |
|
|
|
tuplepkg=${tuple%:*} |
|
|
|
var_append extraconfopt ' ' "--with-pgsql-lib=$( pkgprefix -r libdir postgresql )" |
|
|
|
tupledb=${tuple#*:} |
|
|
|
else |
|
|
|
|
|
|
|
var_append extraconfopt ' ' "--without-pgsql" |
|
|
|
if pkginstalled -f postgres; then |
|
|
|
fi |
|
|
|
var_append extraconfopt ' ' "--with-$tupledb=$( pkgprefix -r $tuplepkg )" |
|
|
|
|
|
|
|
var_append extraconfopt ' ' "--with-$tupledb-inc=$( pkgprefix -r includedir $tuplepkg )" |
|
|
|
|
|
|
|
var_append extraconfopt ' ' "--with-$tupledb-lib=$( pkgprefix -r libdir $tuplepkg )" |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
var_append extraconfopt ' ' "--without-$tupledb" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
done |
|
|
|