- #! actually this depends on the contents of setup.h
- $EXTRA_LIBS=Config("wxbase") ? "" : "zlib png jpeg tiff";
+ #! actually this should depend on the contents of setup.h!
+ $EXTRA_LIBS="zlib regex";
+ if ( !Config("wxbase") ) {
+ $EXTRA_LIBS.=" png jpeg tiff";
+ }