diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-01 15:06:04 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-01 15:06:04 +0000 |
commit | c835102e640db1481bcc78cdebc7f875d996d9c9 (patch) | |
tree | 7d3eeac5bb61494e4e88039d68e43577ecbc75c1 | |
parent | 65e70af56c1cbeb0dcd51bd897fbd8315980dfef (diff) |
Run a dependency check on modules so missing dependencies are detected during configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11566 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-x | configure | 10 | ||||
-rw-r--r-- | make/utilities.pm | 1 |
2 files changed, 11 insertions, 0 deletions
@@ -817,6 +817,7 @@ if (($config{USE_GNUTLS} eq "n") && ($config{USE_OPENSSL} eq "n")) { print "Skipping SSL Certificate generation, SSL support is not available.\n\n"; } +depcheck(); writefiles(1); makecache(); @@ -1155,6 +1156,15 @@ EOF chmod 0744, 'inspircd'; } +sub depcheck +{ + getmodules(); + for my $mod (@modlist) { + getcompilerflags("src/modules/m_$mod.cpp"); + getlinkerflags("src/modules/m_$mod.cpp"); + } +} + sub prepare_dynamic_makefile { my $i = 0; diff --git a/make/utilities.pm b/make/utilities.pm index 22425714a..ad7a32f8f 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -454,6 +454,7 @@ sub translate_functions($$) my $err = $@; #$err =~ s/at .+? line \d+.*//g; print "\n\nConfiguration failed. The following error occured:\n\n$err\n"; + print "\nMake sure you have pkg-config installed\n"; print "\nIn the case of gnutls configuration errors on debian,\n"; print "Ubuntu, etc, you should ensure that you have installed\n"; print "gnutls-bin as well as gnutls-dev and gnutls.\n"; |