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

📄 02_eap-sim_doesnt_need_openssl.dpatch

📁 radius协议的经典实现
💻 DPATCH
📖 第 1 页 / 共 2 页
字号:
#! /bin/sh /usr/share/dpatch/dpatch-run## 02_EAP-SIM_doesnt_need_openssl.dpatch by Paul Hampson <Paul.Hampson@anu.edu.au>#### All lines beginning with `## DP:' are a description of the patch.## DP: EAP-SIM does not require openssl to build@DPATCH@diff -urNad --exclude=CVS --exclude=.svn ./src/modules/rlm_eap/types/rlm_eap_sim/configure /tmp/dpep-work.ZipMl1/release_1_0/src/modules/rlm_eap/types/rlm_eap_sim/configure--- ./src/modules/rlm_eap/types/rlm_eap_sim/configure	2005-08-21 00:40:15.000000000 +1000+++ /tmp/dpep-work.ZipMl1/release_1_0/src/modules/rlm_eap/types/rlm_eap_sim/configure	2005-08-23 17:13:19.000000000 +1000@@ -11,10 +11,6 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in:-ac_help="$ac_help-  --with-openssl-includes=DIR       Directory to look for OpenSSL include files"-ac_help="$ac_help-  --with-openssl-libraries=DIR      Directory to look for OpenSSL library files"  # Initialize some variables set by options. # The variables have the same names as the options, with@@ -536,7 +532,7 @@ 	# Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:540: checking for $ac_word" >&5+echo "configure:536: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -566,7 +562,7 @@   # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:570: checking for $ac_word" >&5+echo "configure:566: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -617,7 +613,7 @@       # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:621: checking for $ac_word" >&5+echo "configure:617: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -649,7 +645,7 @@ fi  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6-echo "configure:653: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5+echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.@@ -660,12 +656,12 @@  cat > conftest.$ac_ext << EOF -#line 664 "configure"+#line 660 "configure" #include "confdefs.h"  main(){return(0);} EOF-if { (eval echo configure:669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then   ac_cv_prog_cc_works=yes   # If we can't run a trivial program, we are probably using a cross compiler.   if (./conftest; exit) 2>/dev/null; then@@ -691,12 +687,12 @@   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6-echo "configure:695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5+echo "configure:691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6-echo "configure:700: checking whether we are using GNU C" >&5+echo "configure:696: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -705,7 +701,7 @@   yes; #endif EOF-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then   ac_cv_prog_gcc=yes else   ac_cv_prog_gcc=no@@ -724,7 +720,7 @@ ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6-echo "configure:728: checking whether ${CC-cc} accepts -g" >&5+echo "configure:724: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -756,593 +752,6 @@ fi  -				# Check whether --with-openssl-includes or --without-openssl-includes was given.-if test "${with_openssl_includes+set}" = set; then-  withval="$with_openssl_includes"-   case "$withval" in-	    *)-		rlm_eap_peap_inc_dir="$rlm_eap_peap_inc_dir $withval"-		SMART_CFLAGS="$SMART_CFLAGS -I$withval"-		;;-	  esac -	-fi---				# Check whether --with-openssl-libraries or --without-openssl-libraries was given.-if test "${with_openssl_libraries+set}" = set; then-  withval="$with_openssl_libraries"-   case "$withval" in-	    *)-		rlm_eap_peap_lib_dir="$rlm_eap_peap_lib_dir $withval"-		SMART_LIBS="$SMART_LIBS -L$withval"-		;;-	  esac -	-fi---	smart_try_dir=$rlm_eap_peap_inc_dir-	--ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`-echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6-echo "configure:791: checking for openssl/ssl.h" >&5--old_CFLAGS="$CFLAGS"-smart_include=-smart_include_dir=--if test "x$smart_try_dir" != "x"; then-  for try in $smart_try_dir; do-    CFLAGS="$old_CFLAGS -I$try"-    cat > conftest.$ac_ext <<EOF-#line 801 "configure"-#include "confdefs.h"--		    #include <openssl/ssl.h>-int main() {- int a = 1;-; return 0; }-EOF-if { (eval echo configure:809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then-  rm -rf conftest*-  smart_include="-I$try"-else-  echo "configure: failed program was:" >&5-  cat conftest.$ac_ext >&5-  rm -rf conftest*-  smart_include=-fi-rm -f conftest*-    if test "x$smart_include" != "x"; then-      break;-    fi-    CFLAGS="$old_CFLAGS"-  done-fi--if test "x$smart_include" = "x"; then-  cat > conftest.$ac_ext <<EOF-#line 828 "configure"-#include "confdefs.h"--		  #include <openssl/ssl.h>-int main() {- int a = 1;-; return 0; }-EOF-if { (eval echo configure:836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then-  rm -rf conftest*-  smart_include=" "-else-  echo "configure: failed program was:" >&5-  cat conftest.$ac_ext >&5-  rm -rf conftest*-  smart_include=-fi-rm -f conftest*-fi--if test "x$smart_include" = "x"; then-  --if test "x$LOCATE" != "x"; then-        DIRS=-  file=openssl/ssl.h--  for x in `${LOCATE} $file 2>/dev/null`; do-                                        base=`echo $x | sed "s%/${file}%%"`-    if test "x$x" = "x$base"; then-      continue;-    fi--    dir=`${DIRNAME} $x 2>/dev/null`-                exclude=`echo ${dir} | ${GREP} /home`-    if test "x$exclude" != "x"; then-      continue-    fi--                    already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`-    if test "x$already" = "x"; then-      DIRS="$DIRS $dir"-    fi-  done-fi--eval "smart_include_dir=\"\$smart_include_dir $DIRS\""---  for try in $smart_include_dir /usr/local/include /opt/include; do-    CFLAGS="$old_CFLAGS -I$try"-    cat > conftest.$ac_ext <<EOF-#line 880 "configure"-#include "confdefs.h"--		    #include <openssl/ssl.h>-int main() {- int a = 1;-; return 0; }-EOF-if { (eval echo configure:888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then-  rm -rf conftest*-  smart_include="-I$try"-else-  echo "configure: failed program was:" >&5-  cat conftest.$ac_ext >&5-  rm -rf conftest*-  smart_include=-fi-rm -f conftest*-    if test "x$smart_include" != "x"; then-      break;-    fi-    CFLAGS="$old_CFLAGS"-  done-fi--if test "x$smart_include" != "x"; then-  echo "$ac_t""yes" 1>&6-  eval "ac_cv_header_$ac_safe=yes"-  CFLAGS="$old_CFLAGS $smart_include"-  SMART_CFLAGS="$SMART_CFLAGS $smart_include"-else-  echo "$ac_t""no" 1>&6-fi--	if test "x$ac_cv_header_openssl_ssl_h" != "xyes"; then-		fail="$fail (openssl/ssl.h)"-	fi--	smart_try_dir=$rlm_eap_peap_lib_dir-	--sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`-sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`-echo $ac_n "checking for DH_new in -lcrypto""... $ac_c" 1>&6-echo "configure:924: checking for DH_new in -lcrypto" >&5--old_LIBS="$LIBS"-smart_lib=-smart_lib_dir=--if test "x$smart_try_dir" != "x"; then-  for try in $smart_try_dir; do-    LIBS="-L$try -lcrypto $old_LIBS"-    cat > conftest.$ac_ext <<EOF-#line 934 "configure"-#include "confdefs.h"-extern char DH_new();-int main() {- DH_new()-; return 0; }-EOF-if { (eval echo configure:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then-  rm -rf conftest*-  smart_lib="-L$try -lcrypto"-else-  echo "configure: failed program was:" >&5-  cat conftest.$ac_ext >&5-fi-rm -f conftest*-    if test "x$smart_lib" != "x"; then-      break;-    fi-    LIBS="$old_LIBS"-  done-fi--if test "x$smart_lib" = "x"; then-  LIBS="-lcrypto $old_LIBS"-  cat > conftest.$ac_ext <<EOF-#line 959 "configure"-#include "confdefs.h"-extern char DH_new();-int main() {- DH_new()-; return 0; }-EOF-if { (eval echo configure:966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then-  rm -rf conftest*-  smart_lib="-lcrypto"-else-  echo "configure: failed program was:" >&5-  cat conftest.$ac_ext >&5-fi-rm -f conftest*-  LIBS="$old_LIBS"-fi--if test "x$smart_lib" = "x"; then-  --if test "x$LOCATE" != "x"; then-        DIRS=-  file=libcrypto${libltdl_cv_shlibext}--  for x in `${LOCATE} $file 2>/dev/null`; do-                                        base=`echo $x | sed "s%/${file}%%"`-    if test "x$x" = "x$base"; then-      continue;-    fi--    dir=`${DIRNAME} $x 2>/dev/null`-                exclude=`echo ${dir} | ${GREP} /home`-    if test "x$exclude" != "x"; then-      continue-    fi--                    already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`-    if test "x$already" = "x"; then-      DIRS="$DIRS $dir"-    fi-  done-fi--eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""--  --if test "x$LOCATE" != "x"; then-        DIRS=-  file=libcrypto.a--  for x in `${LOCATE} $file 2>/dev/null`; do-                                        base=`echo $x | sed "s%/${file}%%"`-    if test "x$x" = "x$base"; then-      continue;-    fi--    dir=`${DIRNAME} $x 2>/dev/null`-                exclude=`echo ${dir} | ${GREP} /home`-    if test "x$exclude" != "x"; then-      continue-    fi--                    already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`-    if test "x$already" = "x"; then-      DIRS="$DIRS $dir"-    fi-  done-fi--eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""---  for try in $smart_lib_dir /usr/local/lib /opt/lib; do

⌨️ 快捷键说明

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