X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=b89a3b81ead78a02157a963b9e73d5fc90865afc;hb=55ec665a41de8e51d685e96000c4144f9aa5c6f2;hp=1e7329b199dae88d9727bbee022074346c0664b7;hpb=e1a4fea80dc890638c4a543f2a535e9e28d790f3;p=chaz%2Ftar diff --git a/configure.ac b/configure.ac index 1e7329b..b89a3b8 100644 --- a/configure.ac +++ b/configure.ac @@ -262,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,