소스 검색

Minor cleanup of last patch: check system before prefix, so we dont believe that libevent is /usr/local/lib when it is in /usr.

svn:r5871
Nick Mathewson 19 년 전
부모
커밋
2379bc557c
1개의 변경된 파일3개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 6
      configure.in

+ 3 - 6
configure.in

@@ -108,18 +108,15 @@ dnl Where do you live, libevent?  And how do we call you?
 
 saved_LIBS="$LIBS"
 saved_LDFLAGS="$LDFLAGS"
-if test "x$prefix" != "xNONE" ; then
-        trylibeventdir="$trylibeventdir $prefix"
-fi
 
 AC_CACHE_CHECK([for libevent location], ac_cv_libevent_dir, [
-  for ledir in $trylibeventdir "" /usr/local ; do
+  for ledir in $trylibeventdir "" $prefix /usr/local ; do
     LDFLAGS="$saved_LDFLAGS"
     LIBS="$saved_LIBS -levent"
-    
+
     # Skip the directory if it isn't there.
     if test ! -z "$ledir" -a ! -d "$ledir" ; then
-       continue;  
+       continue;
     fi
     if test ! -z "$ledir" ; then
       if test -d "$ledir/lib" ; then