X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=configure.ac;h=b89a3b81ead78a02157a963b9e73d5fc90865afc;hb=141d267691be80b9db5c61a7b09a5bb03350f420;hp=d1f070bc4aa8aa5e4c308496bc473e298cd9a838;hpb=bc07e8cce4f8acd9d52f4660061e8f8fbc45e4d9;p=chaz%2Ftar diff --git a/configure.ac b/configure.ac index d1f070b..b89a3b8 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,7 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. -AC_INIT([GNU tar], [1.13.94], [bug-tar@gnu.org]) +AC_INIT([GNU tar], [1.14.1], [bug-tar@gnu.org]) AC_CONFIG_SRCDIR([src/tar.c]) AC_CONFIG_AUX_DIR([config]) AC_CONFIG_HEADERS([config.h:config.hin]) @@ -36,11 +36,16 @@ AC_C_INLINE AC_CHECK_HEADERS(fcntl.h linux/fd.h memory.h net/errno.h \ sgtty.h string.h \ - sys/buf.h sys/device.h sys/gentape.h \ + sys/param.h sys/device.h sys/gentape.h \ sys/inet.h sys/io/trioctl.h \ sys/mtio.h sys/time.h sys/tprintf.h sys/tape.h \ unistd.h) +AC_CHECK_HEADERS([sys/buf.h], [], [], +[#if HAVE_SYS_PARAM_H +#include +#endif]) + AC_HEADER_SYS_WAIT AM_STDBOOL_H @@ -257,6 +262,14 @@ AC_CHECK_TYPE(iconv_t,:, #endif ]) +# Check if we have reentrant versions of getopt. Argp needs them, +# but many versions of Glibc lack them, though they define the +# same getopt interface version as lib/getopt.c. +AC_CHECK_FUNC(_getopt_long_only_r, + :, + [AC_DEFINE(WANT_INCLUDED_GETOPT,1, + [Define if the included version of getopt has to be used])]) + AC_SUBST(BACKUP_LIBEXEC_SCRIPTS) AC_SUBST(BACKUP_SBIN_SCRIPTS) AC_ARG_ENABLE(backup-scripts,