140 |
dnl -I flag to get access to ncurses include files. |
dnl -I flag to get access to ncurses include files. |
141 |
dnl |
dnl |
142 |
AC_DEFUN([IU_LIB_NCURSES], [ |
AC_DEFUN([IU_LIB_NCURSES], [ |
143 |
AC_ARG_ENABLE(ncurses, [ --disable-ncurses don't prefer -lncurses over -lcurses], |
AC_ARG_ENABLE([ncurses], |
144 |
, enable_ncurses=yes) |
AC_HELP_STRING([--disable-ncurses], |
145 |
|
[don't prefer -lncurses over -lcurses]), |
146 |
|
, [enable_ncurses=yes]) |
147 |
if test "$enable_ncurses" = yes; then |
if test "$enable_ncurses" = yes; then |
148 |
AC_CHECK_LIB(ncurses, initscr, LIBNCURSES="-lncurses") |
AC_CHECK_LIB(ncurses, initscr, LIBNCURSES="-lncurses") |
149 |
if test "$LIBNCURSES"; then |
if test "$LIBNCURSES"; then |
150 |
# Use ncurses header files instead of the ordinary ones, if possible; |
# Use ncurses header files instead of the ordinary ones, if possible; |
151 |
# is there a better way of doing this, that avoids looking in specific |
# is there a better way of doing this, that avoids looking in specific |
152 |
# directories? |
# directories? |
153 |
AC_ARG_WITH(ncurses-include-dir, |
AC_ARG_WITH([ncurses-include-dir], |
154 |
[ --with-ncurses-include-dir=DIR |
AC_HELP_STRING([--with-ncurses-include-dir=DIR], |
155 |
Set directory containing the include files for |
[Set directory containing the include files for |
156 |
use with -lncurses, when it isn't installed as |
use with -lncurses, when it isn't installed as |
157 |
the default curses library. If DIR is "none", |
the default curses library. If DIR is "none", |
158 |
then no special ncurses include files are used. |
then no special ncurses include files are used.])) |
|
--without-ncurses-include-dir |
|
|
Equivalent to --with-ncurses-include-dir=none])dnl |
|
159 |
if test "${with_ncurses_include_dir+set}" = set; then |
if test "${with_ncurses_include_dir+set}" = set; then |
160 |
AC_MSG_CHECKING(for ncurses include dir) |
AC_MSG_CHECKING(for ncurses include dir) |
161 |
case "$with_ncurses_include_dir" in |
case "$with_ncurses_include_dir" in |
267 |
dnl $with_PATHVAR, we just want to get this entry put into the help list. |
dnl $with_PATHVAR, we just want to get this entry put into the help list. |
268 |
dnl We actually look for `with_' variables corresponding to each path |
dnl We actually look for `with_' variables corresponding to each path |
269 |
dnl configured. |
dnl configured. |
270 |
AC_ARG_WITH(PATHVAR, |
AC_ARG_WITH([PATHVAR], |
271 |
[ --with-PATHVAR=PATH Set the value of PATHVAR to PATH |
AC_HELP_STRING([--with-PATHVAR=PATH], |
272 |
|
[Set the value of PATHVAR to PATH |
273 |
PATHVAR is the name of a \`PATH_FOO' variable, |
PATHVAR is the name of a \`PATH_FOO' variable, |
274 |
downcased, with \`_' changed to \`-' |
downcased, with \`_' changed to \`-'])) |
|
--without-PATHVAR Never define PATHVAR by any method])dnl |
|
275 |
|
|
276 |
# For case-conversion with sed |
# For case-conversion with sed |
277 |
IU_UCASE=ABCDEFGHIJKLMNOPQRSTUVWXYZ |
IU_UCASE=ABCDEFGHIJKLMNOPQRSTUVWXYZ |
542 |
m4_syscmd([test -f $1]) |
m4_syscmd([test -f $1]) |
543 |
ifelse(m4_sysval, 0, |
ifelse(m4_sysval, 0, |
544 |
[ |
[ |
545 |
AC_ARG_WITH(included-regex, |
AC_ARG_WITH([included-regex], |
546 |
[ --without-included-regex don't compile regex; this is the default on |
AC_HELP_STRING([--without-included-regex], |
547 |
|
[don't compile regex; this is the default on |
548 |
systems with version 2 of the GNU C library |
systems with version 2 of the GNU C library |
549 |
(use with caution on other system)], |
(use with caution on other system)]), |
550 |
jm_with_regex=$withval, |
jm_with_regex=$withval, |
551 |
jm_with_regex=$ac_use_included_regex) |
jm_with_regex=$ac_use_included_regex) |
552 |
if test "$jm_with_regex" = yes; then |
if test "$jm_with_regex" = yes; then |
561 |
dnl Search for a Kerberos implementation in the standard locations plus PREFIX, |
dnl Search for a Kerberos implementation in the standard locations plus PREFIX, |
562 |
dnl if it is set and not "yes". |
dnl if it is set and not "yes". |
563 |
dnl VERSION should be either 4 or 5 |
dnl VERSION should be either 4 or 5 |
564 |
dnl Defines KRB_CFLAGS and KRB_LIBS if found. |
dnl Defines KRB5_CFLAGS and KRB5_LIBS if found. |
565 |
dnl Defines KRB_IMPL to "Heimdal", "MIT", or "OldMIT", or "none" if not found |
dnl Defines KRB_IMPL to "Heimdal", "MIT", or "OldMIT", or "none" if not found |
566 |
AC_DEFUN([IU_CHECK_KRB5], |
AC_DEFUN([IU_CHECK_KRB5], |
567 |
[ |
[ |