use popt_CFLAGS_ADD everywhere
use popt_CFLAGS_ADD everywhere

drop the CFLAGS="$CFLAGS xx" assignaments everywhere. Also use
AS_IF autoconf contruct if possible. Substitute also  "rpm" with "popt" in
the comment on the security cflags assignment.

GerHobbelt/POPT,GerHobbelt/POPT,GerHobbelt/POPT