Author: Isomer / ZenShadow
[ircu2.10.12-pk.git] / config / config-sh.in
index 6cd8cf1125ed4edeef070d122d5b0d0e7a3a710a..efbb9bad49ab57fd33e553010c0ab64681229e09 100644 (file)
@@ -103,6 +103,16 @@ comment 'Compile stuff'
     LIBS=none
   fi
   string 'Which extra libraries do you need [none]' IRCDLIBS "$LIBS"
+  bool 'Generate debug symbols?' DEBUGSYMBOLS "y"
+  bool 'Compile in profiling support (gcc and maybe SUNpro)?' IRCUPROFILE "n"
+  unset ZSTEMP
+  if [ "$DEBUGSYMBOLS" = "y" ] ; then
+    ZSTEMP="-g"
+  fi
+  if [ "$IRCUPROFILE" = "y" ] ; then
+    ZSTEMP="-pg $ZSTEMP"
+  fi
+  define_string DEBUGFLAGS "$ZSTEMP"
   eval bindir="$bindir"
   string 'In which directory should I install the ircd binary' BINDIR $bindir
   if [ ! -d "$BINDIR" ]; then
@@ -171,12 +181,13 @@ endmenu
 
 mainmenu_option next_comment
 comment 'General defines'
-  bool 'Change root ('/') after start of daemon' CHROOTDIR
-  bool 'Do you want the daemon set its own uid/gid' CONFIG_SETUGID
+  bool 'Do you want the daemon set its own uid/gid (say yes for chroot!)' CONFIG_SETUGID
   if [ "$CONFIG_SETUGID" = "y" ]; then
     int '   UID of irc daemon' IRC_UID
     int '   GID of irc daemon' IRC_GID
+    bool '   Change root ('/') after start of daemon' CHROOTDIR
   else
+    define_bool CHROOTDIR n
     define_int IRC_UID $IRC_UID
     define_int IRC_GID $IRC_GID
     bool 'Allow to specify configuration file on command line' CMDLINE_CONFIG
@@ -197,7 +208,11 @@ mainmenu_option next_comment
 comment 'Paths and files'
   eval DPATH_DEFAULT="${prefix}/lib/ircd"
   string 'Directory where all ircd stuff resides' DPATH $DPATH_DEFAULT
-  define_string SPATH "$BINDIR/$SYMLINK"
+  if [ "$CHROOTDIR" = "y" ] ; then
+    define_string SPATH "/$SYMLINK"
+  else
+    define_string SPATH "$BINDIR/$SYMLINK"
+  fi
   echo "The following filenames are either full paths or files within DPATH"
   string 'Server configuration file' CPATH 'ircd.conf'
   string 'Server MOTD file' MPATH 'ircd.motd'
@@ -306,10 +321,6 @@ comment 'Configuration'
   int 'Maximum number of network connections (23 - (FD_SETSIZE-4))' MAXCONNECTIONS 252
   int 'Default port for connections to other servers' SERVER_PORT 4400
   int 'Nickname history length' NICKNAMEHISTORYLENGTH 800
-  bool 'Allow Opers to see (dis)connects of local clients' ALLOW_SNO_CONNEXIT
-  if [ "$ALLOW_SNO_CONNEXIT" = "y" ]; then
-    bool 'Show IP address in client connection notices' SNO_CONNEXIT_IP
-  fi
   bool 'Do you want to use R: lines in your configuration file' R_LINES
   if [ "$R_LINES" = "y" ]; then
     bool 'Process R: lines every rehash' R_LINES_REHASH y