configure

来自「linux下的l7源代码」· 代码 · 共 50 行

TXT
50
字号
#!/bin/bashok=0checkinclude(){	printf "checking for $1... "		# only the preprocessor is needed check for the libaries	if ! gcc -o /dev/null -L /usr/local/lib/ -l$1 check$$.c &> /dev/null;	then		printf "\n\tYou do not seem to have $1\n"		return 1	else		echo ok		return 0	fi}if [ $1 ]; then	echo	echo This script takes no arguments.	echoficat > check$$.c <<- EOF	int main(){}EOF	if ! checkinclude netfilter_conntrack; then	printf "\tIt can be found at ftp.netfilter.org.  "	printf "You will also need libnfnetlink.\n"	ok=1fiif ! checkinclude netfilter_queue; then	printf "\tIt can be found at ftp.netfilter.org.\n"	ok=1firm check$$.cechoif [[ $ok -eq 0 ]]; then	echo Ready to compile.  Say \'make\'.	echoelse	echo I found problems, but you could try running 'make' anyway.fi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?