⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure

📁 系统任务管理器
💻
字号:
#!/bin/sh# Configure some things for GKrellM when make is run.# This configure is run automatically so no need to run it by hand.## Copyright (C) 2003  Bill Wilsonfor ido	if [ "$i" = "--without-gnutls" ]	then		without_gnutls=yes	fi	if [ "$i" = "--without-ssl" ]	then		without_ssl=yes	fidonePKG_INCLUDE=`pkg-config gtk+-2.0 --cflags`PKG_LIB=`pkg-config gtk+-2.0 --libs`rm -f configure.h configure.log test test.o test.ctouch configure.hCC=${CC-gcc}exec 5>./configure.logif [ "$without_gnutls" != "yes" ]then# echo "Checking for gnutls... " 1>& 2echo "Checking for gnutls... " 1>& 5cat << EOF > test.c#include <gnutls/openssl.h>#include <errno.h>#include <pthread.h>GCRY_THREAD_OPTION_PTHREAD_IMPL;int main()	{	SSL_METHOD	*ssl_method  = NULL;	gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);	gnutls_global_init();	SSLeay_add_ssl_algorithms();	SSL_load_error_strings();	if ((ssl_method = SSLv23_client_method()) == NULL)		return 1;	return 0;	}EOF$CC ${PKG_INCLUDE} -c test.c -o test.o 2>& 5$CC test.o -o test ${PKG_LIBS} -lgnutls-openssl 2>& 5if [ -e ./test ] && ./testthen#	echo 'Defining HAVE_GNUTLS' 1>& 2	echo 'Defining HAVE_GNUTLS' 1>& 5	echo '#define HAVE_GNUTLS 1' >> configure.h	echo '#define HAVE_SSL 1' >> configure.h	without_ssl=yeselse#	echo "Not found, mail check will not have gnutls support..." 1>& 2	echo "Not found, mail check will not have gnutls support..." 1>& 5fifi# end of gnutls checkrm -f test test.o test.cif [ "$without_ssl" != "yes" ]then# echo "Checking for ssl... " 1>& 2echo "Checking for ssl... " 1>& 5cat << EOF > test.c#include <openssl/ssl.h>int main()	{	SSL_METHOD	*ssl_method  = NULL;	SSLeay_add_ssl_algorithms();	SSL_load_error_strings();	if ((ssl_method = SSLv23_client_method()) == NULL)		return 1;	return 0;	}EOF$CC ${PKG_INCLUDE} -c test.c -o test.o 2>& 5$CC test.o -o test ${PKG_LIBS} -lssl -lcrypto 2>& 5if [ -e ./test ] && ./testthen#	echo 'Defining HAVE_SSL' 1>& 2	echo 'Defining HAVE_SSL' 1>& 5	echo '#define HAVE_SSL 1' >> configure.helse#	echo "Not found, mail check will not have ssl support..." 1>& 2	echo "Not found, mail check will not have ssl support..." 1>& 5fifi# end of ssl checkrm -f test test.o test.cexit 0

⌨️ 快捷键说明

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