]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
Stuff to make user host resolving use class Resolver - not tested yet
[user/henk/code/inspircd.git] / configure
index d0210080628098d5abc20e08b23bbf4c168a2498..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,7 +360,7 @@ if (!$chose_hiperf) {
        print "not to enable one. Defaulting to select() engine.\n\n";
 }
 
-yesno(THREADED_DNS,"InspIRCd supports multi-threaded DNS lookups,\nwhich can improve the efficiency on a multiple-processor machine.\nDo you want to enable this feature?");
+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 experimental IPv6 support?");
@@ -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
                        ###