##***************************************************************************** # AUTHOR: # Tim Wickberg # # SYNOPSIS: # X_AC_DEPRECATED # # DESCRIPTION: # Add support for the "--enable-deprecated" configure script option, # and error out if any deprecated options are enabled without this # option having been set. ##***************************************************************************** AC_DEFUN([X_AC_DEPRECATED], [ AC_MSG_CHECKING([whether deprecated options are enabled]) AC_ARG_ENABLE( [deprecated], AS_HELP_STRING(--enable-deprecated,enable deprecated), [ case "$enableval" in yes) x_ac_deprecated=yes ;; no) x_ac_deprecated=no ;; *) AC_MSG_RESULT([doh!]) AC_MSG_ERROR([bad value "$enableval" for --enable-deprecated]) ;; esac ] ) AC_MSG_RESULT([${x_ac_deprecated=no}]) if test "$x_ac_deprecated" = no; then if test "$ac_cv_sizeof_void_p" = "4"; then AC_MSG_ERROR([32-bit support is deprecated, and not tested regularly. Use at your own risk.]) fi fi ])