Changeset ddbb43ad


Ignore:
Timestamp:
Jul 3, 2010, 5:05:41 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
04af908
Parents:
3c2c7fc
git-author:
William Throwe <wthrowe@mit.edu> (07/03/10 17:02:15)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/03/10 17:05:41)
Message:
Add a configure flag to enable/disable building with krb4.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r263320f rddbb43ad  
    3535  [with_zephyr=check])
    3636
     37AC_ARG_WITH([krb4],
     38  AS_HELP_STRING([--with-krb4],
     39                 [Build with kerberos IV]))
     40
    3741AS_IF([test "x$with_zephyr" != xno],
    38   [AC_MSG_CHECKING([for Kerberos IV])
    39    AS_IF([krb5-config krb4 --libs >/dev/null 2>&1],
    40      [AC_MSG_RESULT([yes])
    41       AC_DEFINE([HAVE_KERBEROS_IV], [1], [Define if you have kerberos IV])
    42       CFLAGS="${CFLAGS} `krb5-config krb4 --cflags`"
    43       LIBS="${LIBS} `krb5-config krb4 --libs`"
    44      ],
    45      [AC_MSG_RESULT([no])
    46       PKG_CHECK_MODULES([LIBCRYPTO], [libcrypto])
    47       CFLAGS="${CFLAGS} ${LIBCRYPTO_CFLAGS}"
    48       LIBS="${LIBS} ${LIBCRYPTO_LIBS}"
    49      ])
     42  [AS_IF([test "x$with_krb4" != "xno"],
     43   [AC_MSG_CHECKING([for Kerberos IV])
     44    AS_IF([krb5-config krb4 --libs >/dev/null 2>&1],
     45      [AC_MSG_RESULT([yes])
     46       AC_DEFINE([HAVE_KERBEROS_IV], [1], [Define if you have kerberos IV])
     47       CFLAGS="${CFLAGS} `krb5-config krb4 --cflags`"
     48       LIBS="${LIBS} `krb5-config krb4 --libs`"
     49      ],
     50      [AC_MSG_RESULT([no])
     51       AS_IF([test "x$with_krb4" = "xyes"],
     52             [AC_MSG_ERROR([Kerberos IV requested but not found])])
     53       PKG_CHECK_MODULES([LIBCRYPTO], [libcrypto])
     54       CFLAGS="${CFLAGS} ${LIBCRYPTO_CFLAGS}"
     55       LIBS="${LIBS} ${LIBCRYPTO_LIBS}"
     56     ])])
    5057   AC_CHECK_LIB([zephyr], [ZGetSender],
    5158   [LIBS="$LIBS -lzephyr"
Note: See TracChangeset for help on using the changeset viewer.