Commit 59f41fea 59f41fea99debbae4556cfe965a0bbcc397b2c6c by Sergey Poznyakoff

Changed replace code for argp* functions.

1 parent ff5f3bcf
...@@ -178,21 +178,16 @@ AC_FUNC_FNMATCH ...@@ -178,21 +178,16 @@ AC_FUNC_FNMATCH
178 if test "$ac_cv_func_fnmatch_works" = "no"; then 178 if test "$ac_cv_func_fnmatch_works" = "no"; then
179 : LIBOBJS="$LIBOBJS fnmatch.o" 179 : LIBOBJS="$LIBOBJS fnmatch.o"
180 fi 180 fi
181 AC_REPLACE_FUNCS(fgetpwent getpass setenv snprintf strtok_r strncasecmp strcasecmp \ 181 AC_REPLACE_FUNCS(fgetpwent getpass setenv snprintf strtok_r strncasecmp \
182 strsignal vasprintf) 182 strcasecmp strsignal vasprintf strndup strnlen strchrnul)
183 AC_CHECK_FUNCS(mkstemp sigaction sysconf getdelim vsyslog setreuid setresuid seteuid) 183 AC_CHECK_FUNCS(mkstemp sigaction sysconf getdelim vsyslog setreuid \
184 setresuid seteuid)
184 185
185 dnl Check for libraries 186 dnl Check for libraries
186 AC_CHECK_FUNCS(argp_parse) 187 AC_CHECK_FUNCS(argp_parse, :,
187 if test x"$ac_cv_func_argp_parse" != xyes; then 188 [LIBOBJS="$LIBOBJS argp-ba.o argp-eexst.o argp-fmtstream.o \
188 AC_REPLACE_FUNCS(strndup strnlen strchrnul) 189 argp-fs-xinl.o argp-help.o argp-parse.o argp-pv.o \
189 ARGPLIBS="../argp/libargp.la" 190 argp-pvh.o argp-xinl.o pin.o"])
190 ARGPLIB="libargp.la"
191 ARGPINCS='-I$(top_srcdir)/argp'
192 AC_SUBST(ARGPLIBS)
193 AC_SUBST(ARGPLIB)
194 AC_SUBST(ARGPINCS)
195 fi
196 191
197 AC_CHECK_FUNCS(_obstack_begin, 192 AC_CHECK_FUNCS(_obstack_begin,
198 [AC_DEFINE(HAVE_OBSTACK)], 193 [AC_DEFINE(HAVE_OBSTACK)],
...@@ -374,7 +369,7 @@ AC_OUTPUT(Makefile mailutils.spec ...@@ -374,7 +369,7 @@ AC_OUTPUT(Makefile mailutils.spec
374 include/Makefile include/mailutils/Makefile 369 include/Makefile include/mailutils/Makefile
375 m4/Makefile 370 m4/Makefile
376 doc/Makefile doc/man/Makefile doc/rfc/Makefile doc/texinfo/Makefile 371 doc/Makefile doc/man/Makefile doc/rfc/Makefile doc/texinfo/Makefile
377 argp/Makefile lib/Makefile lib/posix/Makefile 372 lib/Makefile lib/posix/Makefile
378 mailbox/Makefile 373 mailbox/Makefile
379 imap4d/Makefile 374 imap4d/Makefile
380 mailbox/include/Makefile 375 mailbox/include/Makefile
......