]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
Missing extern
[user/henk/code/inspircd.git] / configure
index 971ba6e10e12e83340e3cfc7515bd49cce72912c..4365c7d1a5626ea37f1313eacaf33e37a962e16c 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,4 +1,5 @@
 #!/usr/bin/perl
+
 # InspIRCd Configuration Script
 #
 # Copyright 2003 The ChatSpike Development Team
@@ -564,11 +565,12 @@ print "\033[0mStatic modules:\033[1;32m\t\t\t$config{STATIC_LINK}\033[0m\n";
 print "\033[0mMultithread DNS:\033[1;32m\t\t$config{THREADED_DNS}\033[0m\n\n";
 
 if ($config{USE_GNUTLS} eq "y") {
-       `cp src/modules/extra/m_ssl_gnutls.cpp src/modules/m_ssl_gnutls.cpp`;
+       system("cp src/modules/extra/m_ssl_gnutls.cpp src/modules/m_ssl_gnutls.cpp");
+       getmodules();
        $failed = 0;
-       open(TMP, "key.pem") or $failed = 1;
+       open(TMP, "<$config{CONFIG_DIR}/key.pem") or $failed = 1;
        close(TMP);
-       open(TMP, "cert.pem") or $failed = 1;
+       open(TMP, "<$config{CONFIG_DIR}/cert.pem") or $failed = 1;
        close(TMP);
        if ($failed) {
                print "SSL Certificates Not found, Generating.. \n\n
@@ -582,11 +584,11 @@ if ($config{USE_GNUTLS} eq "y") {
                system("certtool --generate-privkey --outfile key.pem");
                system("certtool --generate-self-signed --load-privkey key.pem --outfile cert.pem");
                print "\nCertificate generation complete, copying to config directory... ";
-               `cp key.pem $config{CONFIG_DIR}/key.pem`;
-               `cp cert.pem $config{CONFIG_DIR}/cert.pem`;
+               system("mv key.pem $config{CONFIG_DIR}/key.pem");
+               system("mv cert.pem $config{CONFIG_DIR}/cert.pem");
                print "Done.\n\n";
        } else {
-               print "SSL Certificates found, skipping."
+               print "SSL Certificates found, skipping.\n\n"
        }       
 }
 
@@ -1087,7 +1089,7 @@ sub write_dynamic_modules_makefile {
 #    for assisting with making this work right.
 #
 # Automatically Generated by ./configure to add a modules
-# please run ./configure --update
+# please run ./configure -update or ./configure -modupdate
 
 all: \$(MODULES)
 
@@ -1105,6 +1107,8 @@ foreach $i (@modlist) {
        ###
        # Write Entry to the MakeFile
        ###
+       $cmflags = getcompilerflags("src/modules/m_".$i.".cpp");
+       $liflags = getlinkerflags("src/modules/m_".$i.".cpp");
        print FILEHANDLE <<EOCHEESE;
 m_$i.so: m_$i.cpp ../../include/modules.h ../../include/users.h ../../include/channels.h ../../include/base.h ../../include/inspircd_config.h ../../include/inspircd.h ../../include/inspircd_io.h
        \$(CC) -pipe -I../../include \$(FLAGS) $cmflags -export-dynamic -c m_$i.cpp