/[inetutils]/inetutils/configure.ac
ViewVC logotype

Diff of /inetutils/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by gray, Thu Apr 4 23:53:31 2002 UTC revision 1.4 by gray, Mon Apr 8 14:00:26 2002 UTC
# Line 115  AC_SUBST(BUILD_IFCONFIG) Line 115  AC_SUBST(BUILD_IFCONFIG)
115    
116    
117  # Encryption and authentication is turned off by default  # Encryption and authentication is turned off by default
118  #AC_ARG_ENABLE(encryption, [  --enable-encryption     enable encryption],  AC_ARG_ENABLE(encryption, [  --enable-encryption     enable encryption],
119  #             , enable_encryption=no)                , enable_encryption=no)
120  #AC_ARG_ENABLE(authentication,  AC_ARG_ENABLE(authentication,
121  #             [  --enable-authentication enable connection authentication],                [  --enable-authentication enable connection authentication],
122  #             , enable_authentication=no)                , enable_authentication=no)
123    
124    AC_ARG_WITH(krb4,
125    [  --with-krb4[[=PATH]]      Compile with Kerberos IV],
126                [KERBEROS_VERSION=4
127                 KERBEROS_DIR=$withval])
128    AC_ARG_WITH(krb5,
129    [  --with-krb5[[=PATH]]      Compile with Kerberos V],
130                [KERBEROS_VERSION=5
131                 KERBEROS_DIR=$withval])
132    
133  AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
134    
# Line 456  fi Line 465  fi
465  AC_SUBST(LIBGLOB)  AC_SUBST(LIBGLOB)
466  AC_SUBST(BUILD_LIBGLOB)  AC_SUBST(BUILD_LIBGLOB)
467    
468    LIBAUTH=
469    INCAUTH=
470  if test "$enable_encryption" = yes -o "$enable_authentication" = yes; then  if test "$enable_encryption" = yes -o "$enable_authentication" = yes; then
471    # Look for Kerberos and DES libraries    if test $KERBEROS_VERSION -eq 4; then
472    AC_CHECK_LIB(krb, krb_mk_req, LIBAUTH=-lkrb)      AC_CHECK_LIB(krb, krb_mk_req,
473    AC_CHECK_LIB(des, des_key_sched, LIBAUTH="$LIBAUTH -ldes")                   [LIBAUTH=-lkrb
474                      AC_DEFINE(KERBEROS_IV)
475                      AC_DEFINE(KRB4)],
476                     -L$KERBEROS_DIR)
477        if test ".$LIBAUTH" != . ; then
478          AC_CHECK_LIB(des, des_key_sched,
479                       [LIBAUTH="$LIBAUTH -ldes"],
480                       -L$KERBEROS_DIR)
481          #FIXME:
482          test "$enable_authentication" = yes -a "$ac_cv_lib_krb_krb_mk_req" = yes\
483      && AC_DEFINE(KRB4)
484          test "$enable_authentication" = yes -a "$ac_cv_lib_krb_krb_mk_req" = yes \
485      && AC_DEFINE(KERBEROS)
486          test "$enable_encryption" = yes -a "$ac_cv_lib_des_des_key_sched" = yes \
487            && AC_DEFINE(DES_ENCRYPTION)
488        fi
489      else
490        IU_CHECK_KRB5($KERBEROS_VERSION,$KERBEROS_PREFIX)
491        LIBAUTH=$KRB5_LIBS
492        INCAUTH=$KRB_CFLAGS
493        if test ".$LIBAUTH" != . ;then
494          case $KERBEROS_VERSION in
495          4) AC_DEFINE(KERBEROS_IV)
496             AC_DEFINE(KRB4)
497             ;;
498          5) AC_DEFINE(KERBEROS_V)
499             ;;
500          esac
501        fi
502      fi
503  fi  fi
504  AC_SUBST(LIBAUTH)  AC_SUBST(LIBAUTH)
505    AC_SUBST(INCAUTH)
506    
507  # define CPP macros that enable auth/encrypt code  # define CPP macros that enable auth/encrypt code
508  test "$enable_authentication" = yes && AC_DEFINE(AUTHENTICATION)  if test ".$LIBAUTH" != .; then
509  test "$enable_encryption" = yes     && AC_DEFINE(ENCRYPTION)    test "$enable_authentication" = yes && AC_DEFINE(AUTHENTICATION)
510  test "$enable_authentication" = yes -a "$ac_cv_lib_krb_krb_mk_req" = yes \    test "$enable_encryption" = yes     && AC_DEFINE(ENCRYPTION)
511    && AC_DEFINE(KRB4)  fi
 test "$enable_authentication" = yes -a "$ac_cv_lib_krb_krb_mk_req" = yes \  
   && AC_DEFINE(KERBEROS)  
 test "$enable_encryption" = yes -a "$ac_cv_lib_des_des_key_sched" = yes \  
   && AC_DEFINE(DES_ENCRYPTION)  
512    
513  # We use our own version of getopt (including our own header file) if the  # We use our own version of getopt (including our own header file) if the
514  # system one doesn't have getopt_long.  # system one doesn't have getopt_long.

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26