]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
Fix reiterpret_cast stuff that doesnt work right
[user/henk/code/inspircd.git] / configure
index 22855727f43d71dff8b4e256fa1c660d1b34fee4..eed6353c2239bf6e8885450b022a662c8eb3826a 100755 (executable)
--- a/configure
+++ b/configure
@@ -62,7 +62,7 @@ $config{HAS_OPENSSL} = $1;
 
 if ($config{GCCVER} eq "") {
        print "g++ was not found! You require g++ (the GNU C++ compiler, part of GCC) to build InspIRCd!\n";
-       return 0;
+       exit;
 }
 
 # Minihack! Convert Cygwin to 'Cyg-Static' so i can
@@ -360,10 +360,10 @@ if (!$chose_hiperf) {
        print "not to enable one. Defaulting to select() engine.\n\n";
 }
 
-yesno(THREADED_DNS,"Would you like to enable the experimental multi-threaded DNS lookup?");
+yesno(THREADED_DNS,"InspIRCd supports multi-threaded DNS lookups,\nwhich can improve the efficiency on a multiple-processor machine.\n\nDo you want to enable this feature?");
 print "\n";
 
-yesno(IPV6,"Would you like to enable IPv6 support?");
+yesno(IPV6,"Would you like to enable experimental IPv6 support?");
 print "\n";
 
 if (($config{HAS_GNUTLS} eq "y") && ($config{HAS_OPENSSL} eq "y")) {
@@ -1040,8 +1040,10 @@ EOF
                close(FILEHANDLE);
        }
 
-open(FILEHANDLE, ">include/inspircd_se_config.h");
-       print FILEHANDLE <<EOF;
+       if ($writeheader)
+       {
+               open(FILEHANDLE, ">include/inspircd_se_config.h");
+               print FILEHANDLE <<EOF;
 /* Auto generated by configure, do not modify or commit to svn! */
 #ifndef __CONFIGURATION_SOCKETENGINE__
 #define __CONFIGURATION_SOCKETENGINE__
@@ -1050,7 +1052,8 @@ open(FILEHANDLE, ">include/inspircd_se_config.h");
 
 #endif
 EOF
-close(FILEHANDLE);
+               close(FILEHANDLE);
+       }
 
 
        # Create a Modules List..
@@ -1254,7 +1257,7 @@ HEADER
                        print FILEHANDLE <<EOCHEESE;
 m_$i.o: .m_$i\_static.cpp ../../include/modules.h ../../include/users.h ../../include/channels.h ../../include/base.h
        \$(CC) -pipe -I../../include \$(FLAGS) $flags -export-dynamic -c .m_$i\_static.cpp
-       mv m_$i\_static.o ../m_$i.o
+       mv .m_$i\_static.o ../m_$i.o
 
 EOCHEESE
                        ###