./configure --enable-modify-spam --enable-spam-command="|preline maildrop /etc/maildroprc"
I planned on building qmailadmin with these two options when the use flag "maildrop" is specified, so my first attempt looked like:
Code: Select all
econf ${myopts} \
--enable-valias \
--enable-vpopmaildir=${dir_vpopmail} \
--enable-htmldir=${dir_htdocs} \
--enable-imageurl=${url_htdocs_images} \
--enable-imagedir=${dir_htdocs_images} \
--enable-htmllibdir=${dir_htdocs_htmlib} \
--enable-qmaildir=${dir_qmail} \
--enable-true-path=${bin_true} \
--enable-ezmlmdir=${dir_ezmlm} \
--enable-cgibindir=${dir_cgibin} \
--enable-cgipath=${url_cgibin} \
--enable-autoresponder-path=${dir_autorespond} \
--enable-domain-autofill \
--enable-modify-quota \
--enable-no-cache \
--enable-maxusersperpage=50 \
--enable-maxaliasesperpage=50 \
--enable-vpopuser=vpopmail \
--enable-vpopgroup=vpopmail \
$(use_enable maildrop modify-spam) \
$(use_enable maildrop spam-command "|preline maildrop /etc/maildroprc") \
|| die "econf failed"
* econf: updating qmailadmin-1.2.1/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating qmailadmin-1.2.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-valias --enable-vpopmaildir=/var/vpopmail --enable-htmldir=/var/www/localhost/htdocs/qmailadmin --enable-imageurl=/qmailadmin/images --enable-imagedir=/var/www/localhost/htdocs/qmailadmin/images --enable-htmllibdir=/usr/share/qmailadmin/htmllib --enable-qmaildir=/var/qmail --enable-true-path=/bin/true --enable-ezmlmdir=/usr/bin --enable-cgibindir=/var/www/localhost/cgi-bin --enable-cgipath=/cgi-bin/qmailadmin --enable-autoresponder-path=/var/qmail/bin --enable-domain-autofill --enable-modify-quota --enable-no-cache --enable-maxusersperpage=50 --enable-maxaliasesperpage=50 --enable-vpopuser=vpopmail --enable-vpopgroup=vpopmail --enable-modify-spam --enable-spam-command=|preline maildrop /etc/maildroprc --build=i686-pc-linux-gnu
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /etc/maildroprc
As you can see, the quotes are stripped when passed to configure. The same thing happens with single quotes. The odd thing is, if I "hardcode" the two options, including quotes, econf seems to work ok as shown below:
Code: Select all
econf ${myopts} \
--enable-valias \
--enable-vpopmaildir=${dir_vpopmail} \
--enable-htmldir=${dir_htdocs} \
--enable-imageurl=${url_htdocs_images} \
--enable-imagedir=${dir_htdocs_images} \
--enable-htmllibdir=${dir_htdocs_htmlib} \
--enable-qmaildir=${dir_qmail} \
--enable-true-path=${bin_true} \
--enable-ezmlmdir=${dir_ezmlm} \
--enable-cgibindir=${dir_cgibin} \
--enable-cgipath=${url_cgibin} \
--enable-autoresponder-path=${dir_autorespond} \
--enable-domain-autofill \
--enable-modify-quota \
--enable-no-cache \
--enable-maxusersperpage=50 \
--enable-maxaliasesperpage=50 \
--enable-vpopuser=vpopmail \
--enable-vpopgroup=vpopmail \
--enable-modify-spam \
--enable-spam-command="|preline maildrop /etc/maildroprc" \
|| die "econf failed"
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-valias --enable-vpopmaildir=/var/vpopmail --enable-htmldir=/var/www/localhost/htdocs/qmailadmin --enable-imageurl=/qmailadmin/images --enable-imagedir=/var/www/localhost/htdocs/qmailadmin/images --enable-htmllibdir=/usr/share/qmailadmin/htmllib --enable-qmaildir=/var/qmail --enable-true-path=/bin/true --enable-ezmlmdir=/usr/bin --enable-cgibindir=/var/www/localhost/cgi-bin --enable-cgipath=/cgi-bin/qmailadmin --enable-autoresponder-path=/var/qmail/bin --enable-domain-autofill --enable-modify-quota --enable-no-cache --enable-maxusersperpage=50 --enable-maxaliasesperpage=50 --enable-vpopuser=vpopmail --enable-vpopgroup=vpopmail --enable-modify-spam --enable-spam-command=|preline maildrop /etc/maildroprc --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
Both versions look like they pass the same thing to configure, however, when I try to use any form of use_enable or pass a variable that contains quotes, configure doesn't like the value passed to it and it results in three different things being passed instead of one variable with embedded spaces.
Can someone help me figure out how to pass a quoted value to econf?
Thanks,
jthomps
