Re: Autoconf help for calife needed
* Ahmad Khalifa <ahmad@khalifa.ws> [2025-08-28 12:28]:
> > I need some autoconf help with 'calife'. The former maintainer worked
> > around issues with `--without autoconf` which fails with the new
> > upstream version which I injected in Salsa[1]. I tried my best with
> > patching autoconf stuff to get rid of some warnings ... but my best is
> > not sufficient obviously.
> Couldn't resist checking out my surname namesake package.
> The build error is:
> > configure: error: unrecognized option: `--runstatedir=/run'
> dh_auto_configure's autoconf [1] behaves differently above compat=10
> > push @opts, "--runstatedir=/run" if not compat(10);
> The existing ./configure doesn't understand 'runstatedir'
When autoreconf’iguring, the problem is missing autoheader template, I
made a patch for this.
> Suggested patch below. Compile-tested only, just checked whoami() prints in
> syslog.
Thanks! May I take your patch and include it in the package?
Kind regards,
Nicolas.
Configure patch:
-----------8<----------------
diff --git a/configure.in b/configure.in
index cff0c76..2e05d31 100644
--- a/configure.in
+++ b/configure.in
@@ -112,7 +112,7 @@ function.],
[ if test -z "$pwencrypt"; then
AC_MSG_RESULT(no)
else
- AC_DEFINE(crypt,pw_encrypt)
+ AC_DEFINE(crypt,pw_encrypt, [Define to pw_encrypt to use deprecated function.])
AC_MSG_RESULT(no)
if test -n "$pwencryptlib"; then
LIBS="$LIBS $pwencryptlib"
@@ -195,8 +195,9 @@ AC_CACHE_VAL(su_cv_unistd_needs_xopen_source,
#include <unistd.h>], su_cv_unistd_needs_xopen_source=yes,
su_cv_unistd_needs_xopen_source=no))])
AC_MSG_RESULT($su_cv_unistd_needs_xopen_source)
-test $su_cv_unistd_needs_xopen_source = yes &&
- AC_DEFINE(_XOPEN_SOURCE)
+if test $su_cv_unistd_needs_xopen_source = yes; then
+ CFLAGS="$CFLAGS -D_XOPEN_SOURCE"
+fi
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
Reply to: