From cd9b790e48fabd887a9af855dbd85929ebcbbd62 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 23 Oct 2007 21:36:33 +0000 Subject: Add $NoPedantic build macro, for m_mysql because mysql AB dont know how to code :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8325 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/configure.pm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'make/configure.pm') diff --git a/make/configure.pm b/make/configure.pm index cf12c900a..9e9503c16 100644 --- a/make/configure.pm +++ b/make/configure.pm @@ -17,7 +17,7 @@ require 5.8.0; use Exporter 'import'; use POSIX; use make::utilities; -@EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies resolve_directory yesno showhelp promptstring_s); +@EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies nopedantic resolve_directory yesno showhelp promptstring_s); my $no_svn = 0; @@ -108,6 +108,18 @@ sub getdependencies { return undef; } +sub nopedantic { + my ($file) = @_; + open(FLAGS, $file); + while () { + if ($_ =~ /^\/\* \$NoPedantic \*\/$/) { + close(FLAGS); + return 1; + } + } + close(FLAGS); + return 0; +} sub getmodules { -- cgit v1.2.3