mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
moar...
This commit is contained in:
241
configure
vendored
241
configure
vendored
@@ -22,6 +22,9 @@ umask 077
|
||||
|
||||
# perl still unsupported
|
||||
has_perl=no
|
||||
compile=no
|
||||
install=no
|
||||
silentopt=no
|
||||
|
||||
for opt
|
||||
do
|
||||
@@ -242,6 +245,9 @@ do
|
||||
wingate ) ft_wingate=no ;;
|
||||
esac
|
||||
;;
|
||||
--compile) compile=yes ;;
|
||||
--install) install=yes ;;
|
||||
--silence=options) silentopt=yes ;;
|
||||
--md5=internal) ft_md5=internal ;;
|
||||
--sha=internal) ft_sha=internal ;;
|
||||
--use-cpuflags) cc_arch_opt=yes ;;
|
||||
@@ -300,6 +306,8 @@ Features and packages:
|
||||
--without-FEATURE do not use FEATURE (same as --with-FEATURE=no)
|
||||
--md5=internal Use internal routines for MD5 password hashes instead of system libraries
|
||||
--sha=internal Use internal routines for SHA password hashes instead of system libraries
|
||||
--use-ofp Try to use compiler flag -fomit-frame-pointer
|
||||
--no-ofp Do not use compiler flag -fomit-frame-pointer
|
||||
#md5 | ctcp | dccfile | uptime | redirect | greet | perl | dynamode | web \
|
||||
#note | notify | trivia | toybox | bounce | stats | rawdns | ircd_ext | idwrap | chanban | python )
|
||||
--with-alias ALIAS support
|
||||
@@ -948,158 +956,163 @@ if [ "$ft_sha" = internal ]; then
|
||||
SHA_O=sha/sha.o
|
||||
fi
|
||||
|
||||
out=echo
|
||||
if [ "$silentopt" == yes ]; then
|
||||
out=/bin/true
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "Do you want ..."
|
||||
echo
|
||||
$out "Do you want ..."
|
||||
$out
|
||||
|
||||
def_alias='#undef ALIAS'
|
||||
unset ans
|
||||
echo $ac_n "Alias support? ............................. [Y/n] "$ac_c
|
||||
test "$ft_alias" && echo "$ft_alias" && ans=$ft_alias
|
||||
$out $ac_n "[STABLE] Alias support? ............................. [Y/n] "$ac_c
|
||||
test "$ft_alias" && $out "$ft_alias" && ans=$ft_alias
|
||||
test -z "$ft_alias" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_alias='#define ALIAS'
|
||||
|
||||
def_toybox='#undef TOYBOX'
|
||||
unset ans
|
||||
echo $ac_n "Amusing misc commands (toybox)? ............ [Y/n] "$ac_c
|
||||
test "$ft_toybox" && echo "$ft_toybox" && ans=$ft_toybox
|
||||
test -z "$ft_toybox" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_toybox='#define TOYBOX'
|
||||
|
||||
def_rawdns='#undef RAWDNS'
|
||||
unset ans
|
||||
echo $ac_n "Async DNS support? ......................... [y/N] "$ac_c
|
||||
test "$ft_rawdns" && echo "$ft_rawdns" && ans=$ft_rawdns
|
||||
$out $ac_n "[ BETA ] Async DNS support? ......................... [y/N] "$ac_c
|
||||
test "$ft_rawdns" && $out "$ft_rawdns" && ans=$ft_rawdns
|
||||
test -z "$ft_rawdns" && read ans
|
||||
test "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_rawdns='#define RAWDNS'
|
||||
|
||||
def_botnet='#undef BOTNET'
|
||||
unset ans
|
||||
echo $ac_n "Botnet support? ............................ [Y/n] "$ac_c
|
||||
test "$ft_botnet" && echo "$ft_botnet" && ans=$ft_botnet
|
||||
$out $ac_n "[STABLE] Botnet support? ............................ [Y/n] "$ac_c
|
||||
test "$ft_botnet" && $out "$ft_botnet" && ans=$ft_botnet
|
||||
test -z "$ft_botnet" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_botnet='#define BOTNET'
|
||||
|
||||
def_chanban='#undef CHANBAN'
|
||||
unset ans
|
||||
echo $ac_n "Channel ban support? ....................... [Y/n] "$ac_c
|
||||
test "$ft_chanban" && echo "$ft_chanban" && ans=$ft_chanban
|
||||
$out $ac_n "[STABLE] Channel ban support? ....................... [Y/n] "$ac_c
|
||||
test "$ft_chanban" && $out "$ft_chanban" && ans=$ft_chanban
|
||||
test -z "$ft_chanban" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_chanban='#define CHANBAN'
|
||||
|
||||
def_redirect='#undef REDIRECT'
|
||||
unset ans
|
||||
$out $ac_n "[STABLE] Command output redirect? ................... [Y/n] "$ac_c
|
||||
test "$ft_redirect" && $out "$ft_redirect" && ans=$ft_redirect
|
||||
test -z "$ft_redirect" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_redirect='#define REDIRECT'
|
||||
|
||||
def_ctcp='#undef CTCP'
|
||||
unset ans
|
||||
echo $ac_n "CTCP? ...................................... [Y/n] "$ac_c
|
||||
test "$ft_ctcp" && echo "$ft_ctcp" && ans=$ft_ctcp
|
||||
$out $ac_n "[STABLE] CTCP? ...................................... [Y/n] "$ac_c
|
||||
test "$ft_ctcp" && $out "$ft_ctcp" && ans=$ft_ctcp
|
||||
test -z "$ft_ctcp" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_ctcp='#define CTCP'
|
||||
|
||||
def_dccfile='#undef DCC_FILE'
|
||||
unset ans
|
||||
echo $ac_n "DCC file support? .......................... [Y/n] "$ac_c
|
||||
test "$ft_dccfile" && echo "$ft_dccfile" && ans=$ft_dccfile
|
||||
$out $ac_n "[STABLE] DCC file support? .......................... [Y/n] "$ac_c
|
||||
test "$ft_dccfile" && $out "$ft_dccfile" && ans=$ft_dccfile
|
||||
test -z "$ft_dccfile" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_dccfile='#define DCC_FILE'
|
||||
|
||||
def_debug='#undef DEBUG'
|
||||
unset ans
|
||||
echo $ac_n "Debug support? ............................. [y/N] "$ac_c
|
||||
test "$ft_debug" && echo "$ft_debug" && ans=$ft_debug
|
||||
$out $ac_n "[STABLE] Debug support? ............................. [y/N] "$ac_c
|
||||
test "$ft_debug" && $out "$ft_debug" && ans=$ft_debug
|
||||
test -z "$ft_debug" && read ans
|
||||
test "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_debug='#define DEBUG'
|
||||
|
||||
def_dynamode='#undef DYNAMODE'
|
||||
unset ans
|
||||
echo $ac_n "Dynamic channel limit (+l)? ................ [Y/n] "$ac_c
|
||||
test "$ft_dynamode" && echo "$ft_dynamode" && ans=$ft_dynamode
|
||||
$out $ac_n "[STABLE] Dynamic channel limit (+l)? ................ [Y/n] "$ac_c
|
||||
test "$ft_dynamode" && $out "$ft_dynamode" && ans=$ft_dynamode
|
||||
test -z "$ft_dynamode" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_dynamode='#define DYNAMODE'
|
||||
|
||||
def_dyncmd='#undef DYNCMD'
|
||||
unset ans
|
||||
echo $ac_n "Dynamic command levels support? ............ [Y/n] "$ac_c
|
||||
test "$ft_dyncmd" && echo "$ft_dyncmd" && ans=$ft_dyncmd
|
||||
$out $ac_n "[STABLE] Dynamic command levels support? ............ [Y/n] "$ac_c
|
||||
test "$ft_dyncmd" && $out "$ft_dyncmd" && ans=$ft_dyncmd
|
||||
test -z "$ft_dyncmd" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_dyncmd='#define DYNCMD'
|
||||
|
||||
def_bounce='#undef BOUNCE'
|
||||
unset ans
|
||||
echo $ac_n "IRC proxy support? ......................... [Y/n] "$ac_c
|
||||
test "$ft_bounce" && echo "$ft_bounce" && ans=$ft_bounce
|
||||
test -z "$ft_bounce" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_bounce='#define BOUNCE'
|
||||
|
||||
def_ircd_ext='#undef IRCD_EXTENSIONS'
|
||||
unset ans
|
||||
echo $ac_n "IRCD extensions support? ................... [Y/n] "$ac_c
|
||||
test "$ft_ircd_ext" && echo "$ft_ircd_ext" && ans=$ft_ircd_ext
|
||||
test -z "$ft_ircd_ext" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_ircd_ext='#define IRCD_EXTENSIONS'
|
||||
|
||||
def_greet='#undef GREET'
|
||||
unset ans
|
||||
echo $ac_n "Greet support? ............................. [Y/n] "$ac_c
|
||||
test "$ft_greet" && echo "$ft_greet" && ans=$ft_greet
|
||||
$out $ac_n "[STABLE] Greet support? ............................. [Y/n] "$ac_c
|
||||
test "$ft_greet" && $out "$ft_greet" && ans=$ft_greet
|
||||
test -z "$ft_greet" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_greet='#define GREET'
|
||||
|
||||
def_web='#undef WEB'
|
||||
unset ans
|
||||
echo $ac_n "HTTP server support? ....................... [y/N] "$ac_c
|
||||
test "$ft_web" && echo "$ft_web" && ans=$ft_web
|
||||
$out $ac_n "[ ALPHA] HTTP server support? ....................... [y/N] "$ac_c
|
||||
test "$ft_web" && $out "$ft_web" && ans=$ft_web
|
||||
test -z "$ft_web" && read ans
|
||||
test "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_web='#define WEB'
|
||||
|
||||
def_hostinfo='#undef HOSTINFO'
|
||||
unset ans
|
||||
$out $ac_n "[ BETA ] Host info support? ......................... [Y/n] "$ac_c
|
||||
test "$ft_hostinfo" && $out "$ft_hostinfo" && ans=$ft_hostinfo
|
||||
test -z "$ft_hostinfo" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_hostinfo='#define HOSTINFO'
|
||||
|
||||
def_bounce='#undef BOUNCE'
|
||||
unset ans
|
||||
$out $ac_n "[STABLE] IRC proxy support? ......................... [Y/n] "$ac_c
|
||||
test "$ft_bounce" && $out "$ft_bounce" && ans=$ft_bounce
|
||||
test -z "$ft_bounce" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_bounce='#define BOUNCE'
|
||||
|
||||
def_ircd_ext='#undef IRCD_EXTENSIONS'
|
||||
unset ans
|
||||
$out $ac_n "[ BETA ] IRCD extensions support? ................... [Y/n] "$ac_c
|
||||
test "$ft_ircd_ext" && $out "$ft_ircd_ext" && ans=$ft_ircd_ext
|
||||
test -z "$ft_ircd_ext" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_ircd_ext='#define IRCD_EXTENSIONS'
|
||||
|
||||
def_newbie='#undef NEWBIE'
|
||||
unset ans
|
||||
$out $ac_n "[STABLE] Newbie support? ............................ [Y/n] "$ac_c
|
||||
test "$ft_newbie" && $out "$ft_newbie" && ans=$ft_newbie
|
||||
test -z "$ft_newbie" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_newbie='#define NEWBIE'
|
||||
|
||||
def_note='#undef NOTE'
|
||||
unset ans
|
||||
$out $ac_n "[STABLE] Note support? .............................. [Y/n] "$ac_c
|
||||
test "$ft_note" && $out "$ft_note" && ans=$ft_note
|
||||
test -z "$ft_note" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_note='#define NOTE'
|
||||
|
||||
def_notify='#undef NOTIFY'
|
||||
unset ans
|
||||
$out $ac_n "[STABLE] Notify support? ............................ [Y/n] "$ac_c
|
||||
test "$ft_notify" && $out "$ft_notify" && ans=$ft_notify
|
||||
test -z "$ft_notify" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_notify='#define NOTIFY'
|
||||
|
||||
def_md5='#undef MD5CRYPT'
|
||||
unset ans
|
||||
echo $ac_n "MD5 password support? ...................... [Y/n] "$ac_c
|
||||
$out $ac_n "[STABLE] Password hashing with MD5? (less secure) ... [Y/n] "$ac_c
|
||||
if [ "$has_md5" = no ]; then
|
||||
echo 'no (unsupported)'
|
||||
$out 'no (unsupported)'
|
||||
else
|
||||
test "$ft_md5" && echo "$ft_md5" && ans=$ft_md5
|
||||
test "$ft_md5" && $out "$ft_md5" && ans=$ft_md5
|
||||
test -z "$ft_md5" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes -o "$ans" = internal && def_md5='#define MD5CRYPT'
|
||||
fi
|
||||
|
||||
def_sha='#undef SHACRYPT'
|
||||
unset ans
|
||||
echo $ac_n "SHA password support? ...................... [Y/n] "$ac_c
|
||||
$out $ac_n "[ BETA ] Password hashing with SHA? (best) .......... [Y/n] "$ac_c
|
||||
if [ "$has_sha" = no ]; then
|
||||
echo 'no (unsupported)'
|
||||
$out 'no (unsupported)'
|
||||
else
|
||||
test "$ft_sha" && echo "$ft_sha" && ans=$ft_sha
|
||||
test "$ft_sha" && $out "$ft_sha" && ans=$ft_sha
|
||||
test -z "$ft_sha" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes -o "$ans" = internal && def_sha='#define SHACRYPT'
|
||||
fi
|
||||
|
||||
def_hostinfo='#undef HOSTINFO'
|
||||
unset ans
|
||||
echo $ac_n "Host info support? ......................... [Y/n] "$ac_c
|
||||
test "$ft_hostinfo" && echo "$ft_hostinfo" && ans=$ft_hostinfo
|
||||
test -z "$ft_hostinfo" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_hostinfo='#define HOSTINFO'
|
||||
|
||||
def_newbie='#undef NEWBIE'
|
||||
unset ans
|
||||
echo $ac_n "Newbie support? ............................ [Y/n] "$ac_c
|
||||
test "$ft_newbie" && echo "$ft_newbie" && ans=$ft_newbie
|
||||
test -z "$ft_newbie" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_newbie='#define NEWBIE'
|
||||
|
||||
def_note='#undef NOTE'
|
||||
unset ans
|
||||
echo $ac_n "Note support? .............................. [Y/n] "$ac_c
|
||||
test "$ft_note" && echo "$ft_note" && ans=$ft_note
|
||||
test -z "$ft_note" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_note='#define NOTE'
|
||||
|
||||
def_notify='#undef NOTIFY'
|
||||
unset ans
|
||||
echo $ac_n "Notify support? ............................ [Y/n] "$ac_c
|
||||
test "$ft_notify" && echo "$ft_notify" && ans=$ft_notify
|
||||
test -z "$ft_notify" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_notify='#define NOTIFY'
|
||||
|
||||
#
|
||||
# perl support not yet functional (2009-05-11)
|
||||
#
|
||||
@@ -1114,20 +1127,13 @@ def_perl='#undef PERL'
|
||||
# test "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_perl='#define PERL'
|
||||
# fi
|
||||
|
||||
def_redirect='#undef REDIRECT'
|
||||
unset ans
|
||||
echo $ac_n "Command output redirect? ................... [Y/n] "$ac_c
|
||||
test "$ft_redirect" && echo "$ft_redirect" && ans=$ft_redirect
|
||||
test -z "$ft_redirect" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_redirect='#define REDIRECT'
|
||||
|
||||
def_python='#undef PYTHON'
|
||||
unset ans
|
||||
echo $ac_n "Scripting support (Python)? ................ [y/N] "$ac_c
|
||||
$out $ac_n "[ BETA ] Scripting with Python? ..................... [y/N] "$ac_c
|
||||
if [ "$has_python" = no ]; then
|
||||
echo 'no (unsupported)'
|
||||
$out 'no (unsupported)'
|
||||
else
|
||||
test "$ft_python" && echo "$ft_python" && ans=$ft_python
|
||||
test "$ft_python" && $out "$ft_python" && ans=$ft_python
|
||||
test -z "$ft_python" && read ans
|
||||
test "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_python='#define PYTHON'
|
||||
fi
|
||||
@@ -1138,11 +1144,11 @@ fi
|
||||
|
||||
def_tcl='#undef TCL'
|
||||
unset ans
|
||||
echo $ac_n "Scripting support (Tcl)? ................... [y/N] "$ac_c
|
||||
$out $ac_n "[ BETA ] Scripting with Tcl? ........................ [y/N] "$ac_c
|
||||
if [ "$has_tcl" = no ]; then
|
||||
echo 'no (unsupported)'
|
||||
$out 'no (unsupported)'
|
||||
else
|
||||
test "$ft_tcl" && echo "$ft_tcl" && ans=$ft_tcl
|
||||
test "$ft_tcl" && $out "$ft_tcl" && ans=$ft_tcl
|
||||
test -z "$ft_tcl" && read ans
|
||||
test "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_tcl='#define TCL'
|
||||
fi
|
||||
@@ -1153,61 +1159,68 @@ fi
|
||||
|
||||
def_seen='#undef SEEN'
|
||||
unset ans
|
||||
echo $ac_n "Seen support? .............................. [y/N] "$ac_c
|
||||
test "$ft_seen" && echo "$ft_seen" && ans=$ft_seen
|
||||
$out $ac_n "[STABLE] Seen support? .............................. [y/N] "$ac_c
|
||||
test "$ft_seen" && $out "$ft_seen" && ans=$ft_seen
|
||||
test -z "$ft_seen" && read ans
|
||||
test "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_seen='#define SEEN'
|
||||
|
||||
def_session='#undef SESSION'
|
||||
unset ans
|
||||
echo $ac_n "Session support? ........................... [Y/n] "$ac_c
|
||||
test "$ft_session" && echo "$ft_session" && ans=$ft_session
|
||||
$out $ac_n "[STABLE] Session support? ........................... [Y/n] "$ac_c
|
||||
test "$ft_session" && $out "$ft_session" && ans=$ft_session
|
||||
test -z "$ft_session" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_session='#define SESSION'
|
||||
|
||||
def_stats='#undef STATS'
|
||||
unset ans
|
||||
echo $ac_n "Statistics support? ........................ [Y/n] "$ac_c
|
||||
test "$ft_stats" && echo "$ft_stats" && ans=$ft_stats
|
||||
$out $ac_n "[STABLE] Statistics support? ........................ [Y/n] "$ac_c
|
||||
test "$ft_stats" && $out "$ft_stats" && ans=$ft_stats
|
||||
test -z "$ft_stats" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_stats='#define STATS'
|
||||
|
||||
def_telnet='#undef TELNET'
|
||||
unset ans
|
||||
echo $ac_n "Telnet support? ............................ [Y/n] "$ac_c
|
||||
test "$ft_telnet" && echo "$ft_telnet" && ans=$ft_telnet
|
||||
$out $ac_n "[STABLE] Telnet support? ............................ [Y/n] "$ac_c
|
||||
test "$ft_telnet" && $out "$ft_telnet" && ans=$ft_telnet
|
||||
test -z "$ft_telnet" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_telnet='#define TELNET'
|
||||
|
||||
def_trivia='#undef TRIVIA'
|
||||
unset ans
|
||||
echo $ac_n "Trivia support? ............................ [y/N] "$ac_c
|
||||
test "$ft_trivia" && echo "$ft_trivia" && ans=$ft_trivia
|
||||
$out $ac_n "[STABLE] Trivia support? ............................ [y/N] "$ac_c
|
||||
test "$ft_trivia" && $out "$ft_trivia" && ans=$ft_trivia
|
||||
test -z "$ft_trivia" && read ans
|
||||
test "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_trivia='#define TRIVIA'
|
||||
|
||||
def_toybox='#undef TOYBOX'
|
||||
unset ans
|
||||
$out $ac_n "[STABLE] Toybox fun and games? ...................... [Y/n] "$ac_c
|
||||
test "$ft_toybox" && $out "$ft_toybox" && ans=$ft_toybox
|
||||
test -z "$ft_toybox" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_toybox='#define TOYBOX'
|
||||
|
||||
def_uptime='#undef UPTIME'
|
||||
unset ans
|
||||
echo $ac_n "Uptime support? ............................ [Y/n] "$ac_c
|
||||
test "$ft_uptime" && echo "$ft_uptime" && ans=$ft_uptime
|
||||
$out $ac_n "[STABLE] Uptime support? ............................ [Y/n] "$ac_c
|
||||
test "$ft_uptime" && $out "$ft_uptime" && ans=$ft_uptime
|
||||
test -z "$ft_uptime" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_uptime='#define UPTIME'
|
||||
|
||||
def_urlcapture='#undef URLCAPTURE'
|
||||
unset ans
|
||||
echo $ac_n "URL capture support? ....................... [Y/n] "$ac_c
|
||||
test "$ft_urlcapture" && echo "$ft_urlcapture" && ans=$ft_urlcapture
|
||||
$out $ac_n "[ BETA ] URL capture support? ....................... [Y/n] "$ac_c
|
||||
test "$ft_urlcapture" && $out "$ft_urlcapture" && ans=$ft_urlcapture
|
||||
test -z "$ft_urlcapture" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_urlcapture='#define URLCAPTURE'
|
||||
|
||||
def_wingate='#undef WINGATE'
|
||||
unset ans
|
||||
echo $ac_n "WinGate support? ........................... [Y/n] "$ac_c
|
||||
test "$ft_wingate" && echo "$ft_wingate" && ans=$ft_wingate
|
||||
$out $ac_n "[STABLE] WinGate support? ........................... [Y/n] "$ac_c
|
||||
test "$ft_wingate" && $out "$ft_wingate" && ans=$ft_wingate
|
||||
test -z "$ft_wingate" && read ans
|
||||
test -z "$ans" -o "$ans" = y -o "$ans" = Y -o "$ans" = yes -o "$ans" = YES -o "$ans" = Yes && def_wingate='#define WINGATE'
|
||||
|
||||
echo ''
|
||||
$out ''
|
||||
echo "Creating src/Makefile"
|
||||
|
||||
O_FLAGS="$cc_optimize_flag $cc_arch_flag $cc_march_flag $cc_ofp_flag"
|
||||
@@ -1295,6 +1308,16 @@ s|@PTSIZE_DEFINE64@|$PTSIZE_DEFINE64|;
|
||||
s|@UNALIGNED_MEM@|$UNALIGNED_MEM|;
|
||||
" < src/config.h.in >> src/config.h
|
||||
|
||||
if [ "$install" == "yes" ]; then
|
||||
make -C src energymech
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$compile" == "yes" ]; then
|
||||
make -C src energymech
|
||||
exit
|
||||
fi
|
||||
|
||||
echo ''
|
||||
echo 'All done. You can now "make clean install"'
|
||||
echo ''
|
||||
|
||||
Reference in New Issue
Block a user