Index: configure
===================================================================
--- configure	(revision 69)
+++ configure	(working copy)
@@ -59,7 +59,8 @@
 	$opt_maxbuf,
 	$opt_use_gnutls,
 	$opt_rebuild,
-	$opt_disable_debug);
+	$opt_disable_debug,
+	$opt_advanced);
 
 
 GetOptions (
@@ -99,6 +100,7 @@
 	'update' => sub { update(); },
 	'svnupdate' => sub { svnupdate(); },
 	'clean' => sub { clean(); },
+	'advanced' => \$opt_advanced,
 );
 
 my $non_interactive = (
@@ -708,60 +710,64 @@
 	yesno('IPV6',"Would you like to build with IPv6 support?");
 	print "\n";
 
-	if ($config{IPV6} eq "y") {
-		print "You have chosen to build an \033[1;32mIPV6-enabled\033[0m server.\nTo accept IPV4 users, you can still use IPV4 addresses\nin your port bindings..\n\n";
-		$config{SUPPORT_IP6LINKS} = "y";
-	} else {
-		yesno('SUPPORT_IP6LINKS',"You have chosen to build an \033[1;32mIPV4-only\033[0m server.\nWould you like to enable support for linking to IPV6-enabled\n servers?\nIf you are using a recent operating\nsystem and are unsure, answer yes.\nIf you answer 'no' here, your server will be unable\nto parse IPV6 addresses (e.g. for CIDR bans)");
-		print "\n";
-	}
+	### --advanced mod begin (daltocli, 21/07/07) ###
+	if(defined $opt_advanced) {
+		if ($config{IPV6} eq "y") {
+			print "You have chosen to build an \033[1;32mIPV6-enabled\033[0m server.\nTo accept IPV4 users, you can still use IPV4 addresses\nin your port bindings..\n\n";
+			$config{SUPPORT_IP6LINKS} = "y";
+		} else {
+			yesno('SUPPORT_IP6LINKS',"You have chosen to build an \033[1;32mIPV4-only\033[0m server.\nWould you like to enable support for linking to IPV6-enabled\n servers?\nIf you are using a recent operating\nsystem and are unsure, answer yes.\nIf you answer 'no' here, your server will be unable\nto parse IPV6 addresses (e.g. for CIDR bans)");
+			print "\n";
+		}
 
-	if (($config{HAS_GNUTLS} eq "y") && ($config{HAS_OPENSSL} eq "y")) {
-		print "I have detected both \033[1;32mGnuTLS\033[0m and \033[1;32mOpenSSL\033[0m on your system.\n";
-		print "I will default to GnuTLS. If you wish to use OpenSSL\n";
-		print "instead, you should enable the OpenSSL module yourself\n";
-		print "by copying it from src/modules/extra to src/modules.\n\n";
-		print "Detected GnuTLS version: \033[1;32m" . $gnutls_ver . "\033[0m\n";
-		print "Detected OpenSSL version: \033[1;32m" . $openssl_ver . "\033[0m\n\n";
-	}
+		if (($config{HAS_GNUTLS} eq "y") && ($config{HAS_OPENSSL} eq "y")) {
+			print "I have detected both \033[1;32mGnuTLS\033[0m and \033[1;32mOpenSSL\033[0m on your system.\n";
+			print "I will default to GnuTLS. If you wish to use OpenSSL\n";
+			print "instead, you should enable the OpenSSL module yourself\n";
+			print "by copying it from src/modules/extra to src/modules.\n\n";
+			print "Detected GnuTLS version: \033[1;32m" . $gnutls_ver . "\033[0m\n";
+			print "Detected OpenSSL version: \033[1;32m" . $openssl_ver . "\033[0m\n\n";
+		}
 
-	if ($config{HAS_GNUTLS} eq "y") {
-		yesno('USE_GNUTLS', "Would you like to enable SSL Support?");
-		if ($config{USE_GNUTLS} eq "y") {
-			print "\nUsing GnuTLS SSL module.\n";
+		if ($config{HAS_GNUTLS} eq "y") {
+			yesno('USE_GNUTLS', "Would you like to enable SSL Support?");
+			if ($config{USE_GNUTLS} eq "y") {
+				print "\nUsing GnuTLS SSL module.\n";
+			}
+		} elsif	($config{HAS_OPENSSL} eq "y") {
+				yesno('USE_OPENSSL', "Would you like to enable SSL Support?");
+		if ($config{USE_OPENSSL} eq "y") {
+				print "\nUsing OpenSSL SSL module.\nYou will get better performance if you move to GnuTLS in the future.\n";
+			}
 		}
-	} elsif	($config{HAS_OPENSSL} eq "y") {
-			yesno('USE_OPENSSL', "Would you like to enable SSL Support?");
-	if ($config{USE_OPENSSL} eq "y") {
-			print "\nUsing OpenSSL SSL module.\nYou will get better performance if you move to GnuTLS in the future.\n";
+		else {
+			print "\nCould not detect OpenSSL or GnuTLS. Make sure pkg-config is installed if\nyou intend to use OpenSSL, or that GnuTLS is in your path if you intend\nto use GnuTLS.\n\n";
 		}
-	}
-	else {
-		print "\nCould not detect OpenSSL or GnuTLS. Make sure pkg-config is installed if\nyou intend to use OpenSSL, or that GnuTLS is in your path if you intend\nto use GnuTLS.\n\n";
-	}
 
-	print "\nThe following questions will ask you for various figures relating\n";
-	print "To your IRCd install. Please note that these should usually be left\n";
-	print "as defaults unless you have a real reason to change them. If they\n";
-	print "changed, then the values must be identical on all servers on your\n";
-	print "network, or malfunctions and/or crashes may occur, with the exception\n";
-	print "of the 'maximum number of clients' setting which may be different on\n";
-	print "different servers on the network.\n\n";
+		print "\nThe following questions will ask you for various figures relating\n";
+		print "To your IRCd install. Please note that these should usually be left\n";
+		print "as defaults unless you have a real reason to change them. If they\n";
+		print "changed, then the values must be identical on all servers on your\n";
+		print "network, or malfunctions and/or crashes may occur, with the exception\n";
+		print "of the 'maximum number of clients' setting which may be different on\n";
+		print "different servers on the network.\n\n";
 
-	# File Descriptor Settings..
-	promptnumeric("number of clients at any one time", "MAX_CLIENT_T");
-	$config{MAX_CLIENT} = $config{MAX_CLIENT_T};
-	$config{MAX_DESCRIPTORS} = $config{MAX_CLIENT_T};
+		# File Descriptor Settings..
+		promptnumeric("number of clients at any one time", "MAX_CLIENT_T");
+		$config{MAX_CLIENT} = $config{MAX_CLIENT_T};
+		$config{MAX_DESCRIPTORS} = $config{MAX_CLIENT_T};
 
-	promptnumeric("length of nicknames", "NICK_LENGT");
-	promptnumeric("length of channel names", "CHAN_LENGT");
-	promptnumeric("number of mode changes in one line", "MAXI_MODES");
-	promptnumeric("length of an ident (username)", "MAX_IDENT");
-	promptnumeric("length of a quit message", "MAX_QUIT");
-	promptnumeric("length of a channel topic", "MAX_TOPIC");
-	promptnumeric("length of a kick message", "MAX_KICK");
-	promptnumeric("length of a GECOS (real name)", "MAX_GECOS");
-	promptnumeric("length of an away message", "MAX_AWAY");
+		promptnumeric("length of nicknames", "NICK_LENGT");
+		promptnumeric("length of channel names", "CHAN_LENGT");
+		promptnumeric("number of mode changes in one line", "MAXI_MODES");
+		promptnumeric("length of an ident (username)", "MAX_IDENT");
+		promptnumeric("length of a quit message", "MAX_QUIT");
+		promptnumeric("length of a channel topic", "MAX_TOPIC");
+		promptnumeric("length of a kick message", "MAX_KICK");
+		promptnumeric("length of a GECOS (real name)", "MAX_GECOS");
+		promptnumeric("length of an away message", "MAX_AWAY");
+	}
+	### --advanced mod end ###
 }
 
 dumphash();
