components/samba3oi/patches/libtevent-m4.patch
changeset 212 705e1ace097b
equal deleted inserted replaced
182:fa48f2b6c9af 212:705e1ace097b
       
     1 --- lib/tevent/libtevent.m4.~1~	Sun Mar  6 13:48:05 2011
       
     2 +++ lib/tevent/libtevent.m4	Fri Jun  3 18:43:53 2011
       
     3 @@ -5,10 +5,11 @@
       
     4  
       
     5  if test x"$teventdir" = "x"; then
       
     6  	teventdir=""
       
     7 -	teventpaths="$srcdir $srcdir/../lib/tevent $srcdir/tevent $srcdir/../tevent"
       
     8 +	teventpaths=". ../lib/tevent tevent ../tevent"
       
     9  	for d in $teventpaths; do
       
    10 -		if test -f "$d/tevent.c"; then
       
    11 +		if test -f "$srcdir/$d/tevent.c"; then
       
    12  			teventdir="$d"
       
    13 +			AC_SUBST(teventdir)
       
    14  			break;
       
    15  		fi
       
    16  	done
       
    17 @@ -24,7 +25,7 @@
       
    18  AC_SUBST(TEVENT_CFLAGS)
       
    19  AC_SUBST(TEVENT_LIBS)
       
    20  
       
    21 -TEVENT_CFLAGS="-I$teventdir"
       
    22 +TEVENT_CFLAGS="-I$srcdir/$teventdir"
       
    23  
       
    24  TEVENT_OBJ="tevent.o tevent_debug.o tevent_util.o"
       
    25  TEVENT_OBJ="$TEVENT_OBJ tevent_fd.o tevent_timed.o tevent_immediate.o tevent_signal.o"