]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
Added the module method OnUserPostNick for capturing a nickchange AFTER it has taken...
[user/henk/code/inspircd.git] / configure
index 393943ef61b876e6c2fd468952a187191f8026b7..afc228539f2b64f66b4e6eef90c0baa96f29121c 100755 (executable)
--- a/configure
+++ b/configure
@@ -54,12 +54,12 @@ if [ "$1" = "-update" -o "$2" = "-update" ] ; then
    # Check for modules
 
    case "$OSNAME" in
-           (FreeBSD)
+           FreeBSD)
                    LDLIBS="-Ldl"
                    FLAGS="-fPIC -frtti $OPTIMISATI"
                    MAKEPROG="gmake"
                    ;;
-           (*)
+           *)
                    LDLIBS="-ldl"
                    FLAGS="-fPIC -frtti $OPTIMISATI"
                    MAKEPROG="make"
@@ -103,8 +103,8 @@ exists () { # because some shells don't have test -e
 echo "#include <string.h>">.test.cpp
 echo "#include <stdio.h>">>.test.cpp
 echo "int main() { char a[10]; char b[10]; strlcpy(a,b,10); printf(\"%d\\n\",999); }" >>.test.cpp
-g++ -o .test .test.cpp
-HAS_STRLCPY=`./.test`
+g++ -o .test .test.cpp 2>&1
+HAS_STRLCPY=`./.test 2>&1`
 rm -f .test.cpp .test
 
 clear
@@ -371,19 +371,19 @@ echo ""
        cc=$OPTIMITEMP
   fi
   case "$cc" in
-        (1)
+        1)
                 OPTIMITEMP=1
                OPTIMISATI="-O"
                 ;;
-       (2)
+       2)
                OPTIMITEMP=2
                OPTIMISATI="-O2"
                ;;
-       (3)
+       3)
                OPTIMITEMP=3
                OPTIMISATI="-O3"
                ;;
-       (*)
+       *)
                 OPTIMITEMP=0
                 OPTIMISATI="-g"
                 ;;
@@ -408,6 +408,7 @@ echo -e "\033[0;37m"
 
 echo "Writing cache file for future ./configures ..."
 
+COPY_CONF=0
 if [ "$CONFIG_DIR" != "$ME/conf" ] ; then
     COPY_CONF=1
 fi
@@ -460,12 +461,12 @@ touch include/inspircd_config.h
 echo "Preparing Variables for the Makefile"
 
 case "$OSNAME" in
-       (FreeBSD)
+       FreeBSD)
                LDLIBS="-Ldl"
                FLAGS="-fPIC -frtti $OPTIMISATI"
                MAKEPROG="gmake"
                ;;
-       (*)
+       *)
                LDLIBS="-ldl"
                FLAGS="-fPIC -frtti $OPTIMISATI"
                MAKEPROG="make"