[2.30] branch gnome-applets
[jhbuild/xnox.git] / patches / samba.configure-for-libs.patch
blob699c91ea1f32e5c24a52e2b9f347e631e27f62ad
1 diff -Naur samba-4.0.0alpha6.orig/lib/talloc/autogen.sh samba-4.0.0alpha6/lib/talloc/autogen.sh
2 --- samba-4.0.0alpha6.orig/lib/talloc/autogen.sh 2009-02-03 11:09:21.000000000 +0700
3 +++ samba-4.0.0alpha6/lib/talloc/autogen.sh 2009-02-03 11:13:03.000000000 +0700
4 @@ -1,5 +1,16 @@
5 #!/bin/sh
7 +ARGV0=$0
9 +# Allow invocation from a separate build directory; in that case, we change
10 +# to the source directory to run the auto*, then change back before running
11 +# configure
12 +srcdir=`dirname $ARGV0`
13 +test -z "$srcdir" && srcdir=.
15 +ORIGDIR=`pwd`
16 +cd $srcdir
18 rm -rf autom4te.cache
19 rm -f configure config.h.in
21 @@ -9,6 +20,8 @@
23 rm -rf autom4te.cache
25 -echo "Now run ./configure and then make."
26 -exit 0
27 +cd "$ORIGDIR" || exit 1
29 +$srcdir/configure ${1+"$@"} && \
30 + echo "Now type \`make' to compile." || exit 1
32 diff -Naur samba-4.0.0alpha6.orig/lib/tdb/autogen.sh samba-4.0.0alpha6/lib/tdb/autogen.sh
33 --- samba-4.0.0alpha6.orig/lib/tdb/autogen.sh 2009-02-03 11:09:27.000000000 +0700
34 +++ samba-4.0.0alpha6/lib/tdb/autogen.sh 2009-02-03 11:13:45.000000000 +0700
35 @@ -1,5 +1,16 @@
36 #!/bin/sh
38 +ARGV0=$0
40 +# Allow invocation from a separate build directory; in that case, we change
41 +# to the source directory to run the auto*, then change back before running
42 +# configure
43 +srcdir=`dirname $ARGV0`
44 +test -z "$srcdir" && srcdir=.
46 +ORIGDIR=`pwd`
47 +cd $srcdir
49 rm -rf autom4te.cache
50 rm -f configure config.h.in
52 @@ -9,6 +20,8 @@
54 rm -rf autom4te.cache
56 -echo "Now run ./configure and then make."
57 -exit 0
58 +cd "$ORIGDIR" || exit 1
60 +$srcdir/configure ${1+"$@"} && \
61 + echo "Now type \`make' to compile." || exit 1
63 diff -Naur samba-4.0.0alpha6.orig/lib/tevent/autogen.sh samba-4.0.0alpha6/lib/tevent/autogen.sh
64 --- samba-4.0.0alpha6.orig/lib/tevent/autogen.sh 2009-02-03 11:09:37.000000000 +0700
65 +++ samba-4.0.0alpha6/lib/tevent/autogen.sh 2009-02-03 11:14:06.000000000 +0700
66 @@ -1,14 +1,27 @@
67 #!/bin/sh
69 +ARGV0=$0
71 +# Allow invocation from a separate build directory; in that case, we change
72 +# to the source directory to run the auto*, then change back before running
73 +# configure
74 +srcdir=`dirname $ARGV0`
75 +test -z "$srcdir" && srcdir=.
77 +ORIGDIR=`pwd`
78 +cd $srcdir
80 rm -rf autom4te.cache
81 rm -f configure config.h.in
83 -IPATHS="-I libreplace -I lib/replace -I ../libreplace -I ../replace -I ../../../lib/replace"
84 +IPATHS="-I libreplace -I lib/replace -I ../libreplace -I ../replace"
85 autoconf $IPATHS || exit 1
86 autoheader $IPATHS || exit 1
88 rm -rf autom4te.cache
90 -echo "Now run ./configure and then make."
91 -exit 0
92 +cd "$ORIGDIR" || exit 1
94 +$srcdir/configure ${1+"$@"} && \
95 + echo "Now type \`make' to compile." || exit 1