1 diff -urN source.old//aclocal.m4 source//aclocal.m4
2 --- source.old//aclocal.m4 2008-08-25 22:09:21.000000000 +0100
3 +++ source//aclocal.m4 2008-11-23 17:44:58.050646210 +0000
5 dnl test whether dirent has a d_off member
6 -AC_DEFUN(AC_DIRENT_D_OFF,
7 +AC_DEFUN([AC_DIRENT_D_OFF],
8 [AC_CACHE_CHECK([for d_off in dirent], ac_cv_dirent_d_off,
13 dnl Mark specified module as shared
14 dnl SMB_MODULE(name,static_files,shared_files,subsystem,whatif-static,whatif-shared)
16 +AC_DEFUN([SMB_MODULE],
18 AC_MSG_CHECKING([how to build $1])
19 if test "$[MODULE_][$1]"; then
24 -AC_DEFUN(SMB_SUBSYSTEM,
25 +AC_DEFUN([SMB_SUBSYSTEM],
31 dnl Define an AC_DEFINE with ifndef guard.
32 dnl AC_N_DEFINE(VARIABLE [, VALUE])
34 +define([AC_N_DEFINE],
35 [cat >> confdefs.h <<\EOF
37 [#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1)
41 dnl AC_ADD_INCLUDE(VARIABLE)
42 -define(AC_ADD_INCLUDE,
43 +define([AC_ADD_INCLUDE],
44 [cat >> confdefs.h <<\EOF
49 dnl Copied from libtool.m4
50 -AC_DEFUN(AC_PROG_LD_GNU,
51 +AC_DEFUN([AC_PROG_LD_GNU],
52 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
53 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
54 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
58 dnl Removes -I/usr/include/? from given variable
59 -AC_DEFUN(CFLAGS_REMOVE_USR_INCLUDE,[
60 +AC_DEFUN([CFLAGS_REMOVE_USR_INCLUDE],[
66 dnl Removes '-L/usr/lib[/]', '-Wl,-rpath,/usr/lib[/]'
67 dnl and '-Wl,-rpath -Wl,/usr/lib[/]' from given variable
68 -AC_DEFUN(LIB_REMOVE_USR_LIB,[
69 +AC_DEFUN([LIB_REMOVE_USR_LIB],[
75 dnl From Bruno Haible.
80 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
81 dnl those with the standalone portable libiconv installed).
86 -AC_DEFUN(rjs_CHARSET,[
87 +AC_DEFUN([rjs_CHARSET],[
88 dnl Find out if we can convert from $1 to UCS2-LE
89 AC_MSG_CHECKING([can we convert from $1 to UCS2-LE?])
93 dnl CFLAGS_ADD_DIR(CFLAGS, $INCDIR)
94 dnl This function doesn't add -I/usr/include into CFLAGS
95 -AC_DEFUN(CFLAGS_ADD_DIR,[
96 +AC_DEFUN([CFLAGS_ADD_DIR],[
97 if test "$2" != "/usr/include" ; then
102 dnl LIB_ADD_DIR(LDFLAGS, $LIBDIR)
103 dnl This function doesn't add -L/usr/lib into LDFLAGS
104 -AC_DEFUN(LIB_ADD_DIR,[
105 +AC_DEFUN([LIB_ADD_DIR],[
106 if test "$2" != "/usr/lib" ; then
110 dnl AC_TRY_RUN_STRICT(PROGRAM,CFLAGS,CPPFLAGS,LDFLAGS,
111 dnl [ACTION-IF-TRUE],[ACTION-IF-FALSE],
112 dnl [ACTION-IF-CROSS-COMPILING = RUNTIME-ERROR])
113 -AC_DEFUN( [AC_TRY_RUN_STRICT],
114 +AC_DEFUN([AC_TRY_RUN_STRICT],
116 old_CFLAGS="$CFLAGS";
118 diff -urN source.old//configure.in source//configure.in
119 --- source.old//configure.in 2008-08-25 22:09:21.000000000 +0100
120 +++ source//configure.in 2008-11-23 17:22:17.108791515 +0000
121 @@ -1402,7 +1402,7 @@
125 -], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no])
126 +], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no], [linux_getgrouplist_ok=cross])
127 if test x"$linux_getgrouplist_ok" = x"yes"; then
128 AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist])
130 diff -urN source.old//lib/replace/libreplace.m4 source//lib/replace/libreplace.m4
131 --- source.old//lib/replace/libreplace.m4 2008-08-25 22:09:21.000000000 +0100
132 +++ source//lib/replace/libreplace.m4 2008-11-23 17:54:27.942153096 +0000
134 -AC_DEFUN_ONCE(AC_LIBREPLACE_LOCATION_CHECKS,
135 +AC_DEFUN_ONCE([AC_LIBREPLACE_LOCATION_CHECKS],
137 echo "LIBREPLACE_LOCATION_CHECKS: START"
140 ]) dnl end AC_LIBREPLACE_LOCATION_CHECKS
143 -AC_DEFUN_ONCE(AC_LIBREPLACE_BROKEN_CHECKS,
144 +AC_DEFUN_ONCE([AC_LIBREPLACE_BROKEN_CHECKS],
146 echo "LIBREPLACE_BROKEN_CHECKS: START"
148 @@ -325,25 +325,25 @@
149 AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile])
152 -m4_include(system/config.m4)
153 +m4_include(lib/replace/system/config.m4)
155 -m4_include(dlfcn.m4)
156 -m4_include(getpass.m4)
157 -m4_include(strptime.m4)
158 -m4_include(win32.m4)
159 -m4_include(timegm.m4)
160 -m4_include(repdir.m4)
161 +m4_include(lib/replace/dlfcn.m4)
162 +m4_include(lib/replace/getpass.m4)
163 +m4_include(lib/replace/strptime.m4)
164 +m4_include(lib/replace/win32.m4)
165 +m4_include(lib/replace/timegm.m4)
166 +m4_include(lib/replace/repdir.m4)
168 AC_CHECK_FUNCS([syslog memset memcpy],,[AC_MSG_ERROR([Required function not found])])
170 echo "LIBREPLACE_BROKEN_CHECKS: END"
171 ]) dnl end AC_LIBREPLACE_BROKEN_CHECKS
173 -AC_DEFUN_ONCE(AC__LIBREPLACE_ALL_CHECKS_START,
174 +AC_DEFUN_ONCE([AC__LIBREPLACE_ALL_CHECKS_START],
176 #LIBREPLACE_ALL_CHECKS: START"
178 -AC_DEFUN_ONCE(AC__LIBREPLACE_ALL_CHECKS_END,
179 +AC_DEFUN_ONCE([AC__LIBREPLACE_ALL_CHECKS_END],
181 #LIBREPLACE_ALL_CHECKS: END"
184 AC__LIBREPLACE_ALL_CHECKS_END
187 -m4_include(libreplace_cc.m4)
188 -m4_include(libreplace_macros.m4)
189 -m4_include(autoconf-2.60.m4)
190 +m4_include(lib/replace/libreplace_cc.m4)
191 +m4_include(lib/replace/libreplace_macros.m4)
192 +m4_include(lib/replace/autoconf-2.60.m4)
193 diff -urN source.old//lib/replace/libreplace_macros.m4 source//lib/replace/libreplace_macros.m4
194 --- source.old//lib/replace/libreplace_macros.m4 2008-08-25 22:09:21.000000000 +0100
195 +++ source//lib/replace/libreplace_macros.m4 2008-11-23 17:31:08.269791372 +0000
199 dnl AC_PROG_CC_FLAG(flag)
200 -AC_DEFUN(AC_PROG_CC_FLAG,
201 +AC_DEFUN([AC_PROG_CC_FLAG],
202 [AC_CACHE_CHECK(whether ${CC-cc} accepts -$1, ac_cv_prog_cc_$1,
203 [echo 'void f(){}' > conftest.c
204 if test -z "`${CC-cc} -$1 -c conftest.c 2>&1`"; then
206 dnl see if a declaration exists for a function or variable
207 dnl defines HAVE_function_DECL if it exists
208 dnl AC_HAVE_DECL(var, includes)
209 -AC_DEFUN(AC_HAVE_DECL,
210 +AC_DEFUN([AC_HAVE_DECL],
212 AC_CACHE_CHECK([for $1 declaration],ac_cv_have_$1_decl,[
213 AC_TRY_COMPILE([$2],[int i = (int)$1],