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