]> jfr.im git - irc/DALnet/bahamut.git/commitdiff
Small change to the configure script
authorKobi Shmueli <redacted>
Thu, 13 Dec 2018 05:15:30 +0000 (07:15 +0200)
committerKobi Shmueli <redacted>
Thu, 13 Dec 2018 05:15:30 +0000 (07:15 +0200)
If no prefix is given as a parameter, check if ${HOME}/dalnet/ircd or ${HOME}/bahamut/ircd exists and use their directory as the default prefix.
If they don't exist, the default prefix will be used (${HOME}/ircd).

-Kobi.

configure.in

index 68611dfb3158ab531f8129e923f11ad0283704a0..173dded361373665f23c4dc2080c7e09bb3df3eb 100644 (file)
@@ -734,6 +734,12 @@ fi
 
 if test $prefix = NONE; then
     prefix=${HOME}/ircd
+    if test -f "${HOME}/bahamut/ircd" ; then
+        prefix=${HOME}/bahamut
+    fi
+    if test -f "${HOME}/dalnet/ircd" ; then
+        prefix=${HOME}/dalnet
+    fi
 fi
 
 INSTALL_DIR="${prefix}"