-diff -Nur samba-3.0.7.orig/source/aclocal.m4 samba-3.0.7/source/aclocal.m4
---- samba-3.0.7.orig/source/aclocal.m4 2004-04-04 09:37:42.000000000 +0200
-+++ samba-3.0.7/source/aclocal.m4 2004-09-14 10:59:27.493878552 +0200
-@@ -511,7 +511,7 @@
- fi
+--- samba-3.0.23b.org/source/torture/nsstest.c 2006-04-20 04:29:44.000000000 +0200
++++ samba-3.0.23b/source/torture/nsstest.c 2006-08-09 21:19:38.922291250 +0200
+@@ -21,7 +21,7 @@
+
+ #include "includes.h"
- AC_REQUIRE([AC_CANONICAL_TARGET])
-- AC_PATH_PROG(PGSQL_CONFIG, pg_config, no, [$PATH:/usr/lib/postgresql/bin])
-+ AC_PATH_PROG(PGSQL_CONFIG, pg_config, no, [$PATH:/usr/lib64/postgresql/bin])
- AC_MSG_CHECKING(for PGSQL)
- no_pgsql=""
- if test "$PGSQL_CONFIG" = "no" ; then
-@@ -541,12 +541,12 @@
+-static const char *so_path = "/lib/libnss_winbind.so";
++static const char *so_path = "/lib64/libnss_winbind.so";
+ static const char *nss_name = "winbind";
+ static int nss_errno;
+ static NSS_STATUS last_error;
+--- samba-3.0.25a/source/aclocal.m4.orig 2007-03-01 05:55:17.000000000 +0100
++++ samba-3.0.25a/source/aclocal.m4 2007-06-14 18:45:50.703496205 +0200
+@@ -268,20 +268,20 @@
$1=[$]ac_new_flags
])
-
--dnl Removes -L/usr/lib/? from given variable
-+dnl Removes -L/usr/lib64/? from given variable
+
+-dnl Removes '-L/usr/lib[/]', '-Wl,-rpath,/usr/lib[/]'
+-dnl and '-Wl,-rpath -Wl,/usr/lib[/]' from given variable
++dnl Removes '-L/usr/lib64[/]', '-Wl,-rpath,/usr/lib64[/]'
++dnl and '-Wl,-rpath -Wl,/usr/lib64[/]' from given variable
AC_DEFUN(LIB_REMOVE_USR_LIB,[
ac_new_flags=""
+ l=""
for i in [$]$1; do
- case [$]i in
-- -L/usr/lib|-L/usr/lib/) ;;
-+ -L/usr/lib64|-L/usr/lib64/) ;;
- *) ac_new_flags="[$]ac_new_flags [$]i" ;;
- esac
- done
-@@ -677,9 +677,9 @@
+ case [$]l[$]i in
+- -L/usr/lib) ;;
+- -L/usr/lib/) ;;
+- -Wl,-rpath,/usr/lib) ;;
+- -Wl,-rpath,/usr/lib/) ;;
++ -L/usr/lib64) ;;
++ -L/usr/lib64/) ;;
++ -Wl,-rpath,/usr/lib64) ;;
++ -Wl,-rpath,/usr/lib64/) ;;
+ -Wl,-rpath) l=[$]i;;
+- -Wl,-rpath-Wl,/usr/lib) l="";;
+- -Wl,-rpath-Wl,/usr/lib/) l="";;
++ -Wl,-rpath-Wl,/usr/lib64) l="";;
++ -Wl,-rpath-Wl,/usr/lib64/) l="";;
+ *)
+ s=" "
+ if test x"[$]ac_new_flags" = x""; then
+@@ -429,9 +429,9 @@
])
dnl LIB_ADD_DIR(LDFLAGS, $LIBDIR)
$1="$$1 -L$2"
fi
])
-diff -Nur samba-3.0.7.orig/source/configure.in samba-3.0.7/source/configure.in
---- samba-3.0.7.orig/source/configure.in 2004-09-12 05:47:18.000000000 +0200
-+++ samba-3.0.7/source/configure.in 2004-09-14 10:59:27.501877336 +0200
-@@ -27,7 +27,7 @@
- mandir="\${prefix}/man"
+--- samba-3.0.25a/source/configure.in.orig 2007-05-23 17:29:20.000000000 +0200
++++ samba-3.0.25a/source/configure.in 2007-06-14 18:49:28.307646759 +0200
+@@ -31,7 +31,7 @@
+ test "${mandir}" || mandir="\${prefix}/man"
logfilebase="\${VARDIR}"
privatedir="\${prefix}/private"
--libdir="\${prefix}/lib"
-+libdir="\${prefix}/lib64"
+-test "${libdir}" || libdir="\${prefix}/lib"
++test "${libdir}" || libdir="\${prefix}/lib64"
+ pammodulesdir="\${LIBDIR}/security"
configdir="\${LIBDIR}"
swatdir="\${prefix}/swat"
-
-@@ -40,7 +40,7 @@
+@@ -45,7 +35,7 @@
mandir="\${prefix}/share/man"
logfilebase="\${VARDIR}/log/samba"
privatedir="\${CONFIGDIR}/private"
- libdir="\${prefix}/lib/samba"
+ libdir="\${prefix}/lib64/samba"
- configdir="${sysconfdir}/samba"
+ configdir="\${sysconfdir}/samba"
swatdir="\${DATADIR}/samba/swat"
;;
-@@ -595,7 +595,7 @@
- # Note: iconv does that explicitly below, but other packages
- # don't.
- CPPFLAGS="$CPPFLAGS -I/sw/include"
-- LDFLAGS="$LDFLAGS -L/sw/lib"
-+ LDFLAGS="$LDFLAGS -L/sw/lib64"
-
- # If we have dlsym_prepend_underscore (from Fink's dlcompat),
- # use that instead of plain dlsym.
-@@ -878,7 +878,7 @@
+@@ -1132,7 +1132,7 @@
_cppflags=${CPPFLAGS}
# Add additional search path
CPPFLAGS="-I$with_readline/include $CPPFLAGS"
AC_CHECK_HEADERS(readline.h history.h readline/readline.h)
-@@ -889,7 +889,7 @@
+@@ -1143,7 +1143,7 @@
AC_CHECK_LIB(${termlib}, tgetent, [TERMLIBS="-l${termlib}"; break])
done
AC_CHECK_LIB(readline, rl_callback_handler_install,
TERMCPPFLAGS="-I$with_readline/include"
CPPFLAGS="-I$with_readline/include $CPPFLAGS"
TERMLIBS="-lreadline $TERMLIBS"
-@@ -1683,7 +1683,7 @@
+@@ -2337,7 +2337,7 @@
ICONV_LOCATION=standard
LOOK_DIRS="/usr /usr/local /sw /opt"
AC_ARG_WITH(libiconv,
[
if test "$withval" = "no" ; then
AC_MSG_ERROR([argument to --with-libiconv must be a directory])
-@@ -2630,7 +2630,7 @@
+@@ -2366,7 +2366,7 @@
+ dnl library directory is there and check the ABI directory first (which
+ dnl should be harmless on other systems.
+ dnl For IA64 HPUX systems, the libs are located in lib/hpux32 instead of lib.
+- for l in "lib32" "lib" "lib/hpux32"; do
++ for l in "lib32" "lib64" "lib/hpux32"; do
+ if test -d "$i/$l" ; then
+ LDFLAGS="$save_LDFLAGS -L$i/$l"
+ LIBS=
+@@ -3370,7 +3370,7 @@
AC_MSG_RESULT($withval)
KRB5_CFLAGS="-I$withval/include"
KRB5_CPPFLAGS="-I$withval/include"
- KRB5_LDFLAGS="-L$withval/lib"
+ KRB5_LDFLAGS="-L$withval/lib64"
FOUND_KRB5=yes
- ;;
- esac ],
-@@ -2643,10 +2643,10 @@
+ if test -x "$withval/bin/krb5-config"; then
+ KRB5CONFIG=$withval/bin/krb5-config
+@@ -3407,10 +3407,10 @@
# see if this box has the SuSE location for the heimdal krb implementation
AC_MSG_CHECKING(for /usr/include/heimdal)
if test -d /usr/include/heimdal; then
AC_MSG_RESULT(yes)
else
KRB5_CFLAGS="-I/usr/include/heimdal"
-@@ -4491,7 +4491,7 @@
- builddir=`pwd`
- AC_SUBST(builddir)
+@@ -6175,7 +6175,7 @@
+
+ fi
-dnl Remove -L/usr/lib/? from LDFLAGS and LIBS
+dnl Remove -L/usr/lib64/? from LDFLAGS and LIBS
LIB_REMOVE_USR_LIB(LDFLAGS)
LIB_REMOVE_USR_LIB(LIBS)
-
-diff -Nur samba-3.0.7.orig/source/torture/nsstest.c samba-3.0.7/source/torture/nsstest.c
---- samba-3.0.7.orig/source/torture/nsstest.c 2004-04-04 09:37:39.000000000 +0200
-+++ samba-3.0.7/source/torture/nsstest.c 2004-09-14 10:59:27.503877032 +0200
-@@ -21,7 +21,7 @@
-
- #include "includes.h"
-
--static const char *so_path = "/lib/libnss_winbind.so";
-+static const char *so_path = "/lib64/libnss_winbind.so";
- static const char *nss_name = "winbind";
- static int nss_errno;
- static NSS_STATUS last_error;
+ LIB_REMOVE_USR_LIB(KRB5_LIBS)