enable_sasl
enable_timestamp_type
enable_offensive_insults
+enable_package_build
enable_gss_krb5_ccache_name
enable_shared
enable_static
ppid or tty.
--enable-offensive-insults
Enable potentially offensive sudo insults.
+ --enable-package-build Enable options for package building.
--enable-gss-krb5-ccache-name
Use GSS-API to set the Kerberos V cred cache name
--enable-shared[=PKGS] build shared libraries [default=yes]
fi
+# Check whether --enable-package_build was given.
+if test "${enable_package_build+set}" = set; then :
+ enableval=$enable_package_build;
+else
+ enable_package_build=no
+fi
+
+
# Check whether --enable-gss_krb5_ccache_name was given.
if test "${enable_gss_krb5_ccache_name+set}" = set; then :
enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
# getline() may or may ont be present on AIX <= 6.1.
# bos610 is missing getline/getdelim but bos61J has it.
- if test $OSMAJOR -le 6; then
- ac_cv_func_getline=no
+ if test "$enable_package_build" = "yes"; then
+ if test $OSMAJOR -le 6; then
+ ac_cv_func_getline=no
+ fi
fi
# memset_s() may or may ont be present on AIX <= 7.1.
# bos710 is missing memset_s but bos71L has it.
- if test $OSMAJOR -le 7; then
- ac_cv_func_memset_s=no
+ if test "$enable_package_build" = "yes"; then
+ if test $OSMAJOR -le 7; then
+ ac_cv_func_memset_s=no
+ fi
fi
# Remove timedir on boot, AIX does not have /var/run
AC_DEFINE(OFFENSIVE_INSULTS)
fi
+AC_ARG_ENABLE(package_build,
+[AS_HELP_STRING([--enable-package-build], [Enable options for package building.])],
+[], [enable_package_build=no])
+
dnl
dnl gss_krb5_ccache_name() may not work on Heimdal so we don't use it by default
dnl
# getline() may or may ont be present on AIX <= 6.1.
# bos610 is missing getline/getdelim but bos61J has it.
- if test $OSMAJOR -le 6; then
- ac_cv_func_getline=no
+ if test "$enable_package_build" = "yes"; then
+ if test $OSMAJOR -le 6; then
+ ac_cv_func_getline=no
+ fi
fi
# memset_s() may or may ont be present on AIX <= 7.1.
# bos710 is missing memset_s but bos71L has it.
- if test $OSMAJOR -le 7; then
- ac_cv_func_memset_s=no
+ if test "$enable_package_build" = "yes"; then
+ if test $OSMAJOR -le 7; then
+ ac_cv_func_memset_s=no
+ fi
fi
# Remove timedir on boot, AIX does not have /var/run
#include <stdarg.h>
#ifndef HAVE_MEMSET_S
# include <stddef.h> /* for rsize_t */
-# ifdef HAVE_STRING_H
-# include <string.h> /* for rsize_t on some systems */
-# endif /* HAVE_STRING_H */
#endif /* HAVE_MEMSET_S */
/*
#!/bin/sh
#
-# Copyright (c) 2010-2015 Todd C. Miller <Todd.Miller@sudo.ws>
+# Copyright (c) 2010-2018 Todd C. Miller <Todd.Miller@sudo.ws>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
esac
fi
+# Give configure a hint that we are building a package.
+# Some libc functions are only available on certain OS revisions.
+configure_opts="${configure_opts}${configure_opts+$tab}--enable-package-build"
+
# Choose configure options by osversion.
# We use the same configure options as vendor packages when possible.
case "$osversion" in