Author: turnstep
Date: Sun Feb 17 10:14:33 2008
New Revision: 10767
Modified:
DBD-Pg/trunk/Makefile.PL
Log:
Pretty up the output.
Modified: DBD-Pg/trunk/Makefile.PL
==============================================================================
--- DBD-Pg/trunk/Makefile.PL (original)
+++ DBD-Pg/trunk/Makefile.PL Sun Feb 17 10:14:33 2008
@@ -230,22 +230,25 @@
my $output = WriteMakefile(%opts);
if (!exists $output->{EXTRALIBS} or $output->{EXTRALIBS} !~ /\-lpq/) {
+
+ my $makefile = exists $output->{MAKEFILE}
+ ? "\nRemoving ($output->{MAKEFILE})\n" : '';
+
warn qq{
==========================================================
WARNING! No libpq libraries were detected!
-You need to install the postgresql-libs package for your system,
-or set the POSTGRES_LIB environment variable to the correct place.
-
-Removing $output->{MAKEFILE}
+You need to install the postgresql-libs package for your system,
+or set the POSTGRES_LIB environment variable to the correct place.
+$makefile
===========================================================
};
## Do not let make proceed
- unlink $output->{MAKEFILE};
+ unlink $output->{MAKEFILE} if $makefile;
exit 1;
}