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

Diff of /inetutils/configure.ac

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

revision 1.25 by gray, Fri Jul 29 10:53:11 2005 UTC revision 1.26 by gray, Tue Oct 11 11:13:40 2005 UTC
# Line 35  dnl daemons go. Line 35  dnl daemons go.
35  inetdaemondir='$(libexecdir)'  inetdaemondir='$(libexecdir)'
36  AC_SUBST(inetdaemondir)  AC_SUBST(inetdaemondir)
37    
38  AC_ARG_ENABLE(servers, [  --disable-servers       don't compile servers],  AC_ARG_WITH([krb4],
39                , enable_servers=yes)              AC_HELP_STRING([--with-krb4[[=PATH]]],
40  AC_ARG_ENABLE(clients, [  --disable-clients       don't compile clients],                             [Compile with Kerberos IV]),
               , enable_clients=yes)  
 AC_ARG_ENABLE(libls,   [  --disable-libls         disable support for libls ],  
               , enable_libls=yes)  
 AC_ARG_ENABLE(encryption, [  --enable-encryption     enable encryption],  
               , enable_encryption=no)  
 AC_ARG_ENABLE(authentication,  
               [  --enable-authentication enable connection authentication],  
               , enable_authentication=no)  
   
 AC_ARG_WITH(krb4, [  --with-krb4[[=PATH]]      Compile with Kerberos IV],  
41              [KERBEROS_VERSION=4              [KERBEROS_VERSION=4
42               KERBEROS_DIR=$withval])               KERBEROS_DIR=$withval])
43  AC_ARG_WITH(krb5, [  --with-krb5[[=PATH]]      Compile with Kerberos V],  AC_ARG_WITH([krb5],
44                AC_HELP_STRING([--with-krb5[[=PATH]]],
45                               [Compile with Kerberos V]),
46              [KERBEROS_VERSION=5              [KERBEROS_VERSION=5
47               KERBEROS_DIR=$withval])               KERBEROS_DIR=$withval])
48  AC_ARG_WITH(wrap, [  --with-wrap    add tcp wrapper support])  AC_ARG_WITH([shishi],
49  AC_ARG_WITH(pam,  [  --with-pam    add support for PAM])              AC_HELP_STRING([--with-shishi[[=PATH]]],
50                               [Compile with Shishi (Kerberos 5)]),
51                [KERBEROS_VERSION=Shishi
52                 KERBEROS_DIR=$withval])
53    
54    AC_ARG_ENABLE([servers],
55                  AC_HELP_STRING([--disable-servers],
56                                 [don't compile servers]),
57                  , [enable_servers=yes])
58    AC_ARG_ENABLE([clients],
59                  AC_HELP_STRING([--disable-clients],
60                                 [don't compile clients]),
61                  , [enable_clients=yes])
62    AC_ARG_ENABLE([libls],
63                  AC_HELP_STRING([--disable-libls],
64                                 [disable support for libls ]),
65                  , [enable_libls=yes])
66    AC_ARG_ENABLE([encryption],
67                  AC_HELP_STRING([--enable-encryption],
68                                 [enable encryption]),
69                  [test -z "$KERBEROS_VERSION" && AC_MSG_ERROR([--enable-encryption is given but no Kerberos version is required])],
70                  [test -z "$KERBEROS_VERSION" && enable_encryption=no])
71    AC_ARG_ENABLE([authentication],
72                  AC_HELP_STRING([--enable-authentication],
73                                 [enable connection authentication]),
74                  [test -z "$KERBEROS_VERSION" && AC_MSG_ERROR([--enable-authentication is given but no Kerberos version is required])],
75                  [test -z "$KERBEROS_VERSION" && enable_authentication=no])
76    
77    if test -n "$KERBEROS_VERSION"; then
78      if test -z "$enable_authentication$enable_encryption"; then
79        enable_authentication=yes
80        enable_encryption=yes
81      fi
82    fi
83    
84    AC_ARG_WITH([wrap],
85                AC_HELP_STRING([--with-wrap],
86                               [add tcp wrapper support]))
87    AC_ARG_WITH([pam],
88                AC_HELP_STRING([--with-pam],
89                               [add support for PAM]))
90    
91  IU_ENABLE_SERVER(ftpd)  IU_ENABLE_SERVER(ftpd)
92  IU_ENABLE_SERVER(inetd)  IU_ENABLE_SERVER(inetd)
# Line 197  fi Line 229  fi
229  AC_SUBST(LIBGLOB)  AC_SUBST(LIBGLOB)
230  AC_SUBST(libglob_BUILD)  AC_SUBST(libglob_BUILD)
231    
232  dnl FIXME: Make this test case a bit more robust.  Is there a reason why  dnl FIXME: Make this test case a bit more robust. Remove KRB4
 dnl        KRB4 exists?  
233  LIBAUTH=  LIBAUTH=
234  INCAUTH=  INCAUTH=
235  if test "$enable_encryption" = yes -o "$enable_authentication" = yes; then  if test "$enable_encryption" = yes -o "$enable_authentication" = yes; then
236    AH_TEMPLATE(KERBEROS, [Define to one if you have Kerberos])    AH_TEMPLATE(KERBEROS, [Define to one if you have Kerberos])
237    AH_TEMPLATE(KRB4, [Define to one if you have Kerberos IV])    AH_TEMPLATE(KRB4, [Define to one if you have Kerberos IV])
238    AH_TEMPLATE(KRB5, [Define to one if you have Kerberos V])    AH_TEMPLATE(KRB5, [Define to one if you have Kerberos V])
239      AH_TEMPLATE(SHISHI, [Define to 1 if you have Shishi])
240    AH_TEMPLATE(DES_ENCRYPTION, [FIXME])    AH_TEMPLATE(DES_ENCRYPTION, [FIXME])
241      
242    if test "$KERBEROS_VERSION" = 4; then    case $KERBEROS_VERSION in
243      4)
244      AC_CHECK_LIB(krb, krb_mk_req,      AC_CHECK_LIB(krb, krb_mk_req,
245                   [LIBAUTH=-lkrb                   [LIBAUTH=-lkrb
246                    AC_DEFINE(KRB4)],                    AC_DEFINE(KRB4)],
# Line 224  if test "$enable_encryption" = yes -o "$ Line 257  if test "$enable_encryption" = yes -o "$
257        test "$enable_encryption" = yes -a "$ac_cv_lib_des_des_key_sched" = yes \        test "$enable_encryption" = yes -a "$ac_cv_lib_des_des_key_sched" = yes \
258          && AC_DEFINE(DES_ENCRYPTION)          && AC_DEFINE(DES_ENCRYPTION)
259      fi      fi
260    else      ;;
261      5)
262      IU_CHECK_KRB5($KERBEROS_VERSION,$KERBEROS_DIR)      IU_CHECK_KRB5($KERBEROS_VERSION,$KERBEROS_DIR)
263      LIBAUTH=$KRB5_LIBS      LIBAUTH="$KRB5_LIBS" # FIXME
264      INCAUTH=$KRB_CFLAGS      INCAUTH=$KRB5_CFLAGS
265      if test ".$LIBAUTH" != . ;then      if test ".$LIBAUTH" != . ;then
266        case $KERBEROS_VERSION in        AC_DEFINE(KERBEROS)
267        4) AC_DEFINE(KERBEROS)        AC_DEFINE(KRB5)
          AC_DEFINE(KRB4)  
          ;;  
       5) AC_DEFINE(KERBEROS)  
          AC_DEFINE(KRB5)  
          ;;  
       esac  
268      fi      fi
269    fi      ;;
270      *)
271        if test x$KERBEROS_DIR != x; then
272          LIBAUTH=-L$KERBEROS_DIR/lib
273          INCAUTH=-I$KERBEROS_DIR/include
274        fi
275        LIBAUTH="$LIBAUTH -lshishi"
276        save_LIBS=$LIBS
277        LIBS="$LIBS $LIBAUTH"
278        save_CPPFLAGS=$CPPFLAGS
279        CPPFLAGS="$CPPFLAGS $INCAUTH"
280        AC_CHECK_HEADER(shishi.h,
281          AC_CHECK_LIB(shishi, shishi_check_version,
282            AC_DEFINE(SHISHI),
283            [INCAUTH= LIBAUTH=]))
284        LIBS=$save_LIBS
285        CPPFLAGS=$save_CPPFLAGS
286      esac
287  fi  fi
288  AC_SUBST(LIBAUTH)  AC_SUBST(LIBAUTH)
289  AC_SUBST(INCAUTH)  AC_SUBST(INCAUTH)
# Line 253  fi Line 298  fi
298    
299  dnl Checks for IPv6 support.  dnl Checks for IPv6 support.
300    
301  AC_ARG_ENABLE(ipv6,  AC_ARG_ENABLE([ipv6],
302    AS_HELP_STRING([--disable-ipv6], [disable IPv6 support]),    AS_HELP_STRING([--disable-ipv6], [disable IPv6 support]),
303    [case "${enable_ipv6}" in    [case "${enable_ipv6}" in
304    no)    no)
# Line 695  AH_BOTTOM( Line 740  AH_BOTTOM(
740  [/* Defaults for PATH_ variables.  */  [/* Defaults for PATH_ variables.  */
741  #include <confpaths.h>])  #include <confpaths.h>])
742    
743    dnl Define ARG_UNUSED macro
744    dnl
745    AH_BOTTOM([
746    #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
747    #  define __attribute__(x)
748    #endif
749    
750    #ifndef ARG_UNUSED
751    # define ARG_UNUSED __attribute__ ((__unused__))
752    #endif
753    ])
754    
755  dnl Ok this is the end of the rope, even autoconf can't help.  dnl Ok this is the end of the rope, even autoconf can't help.
756  dnl For example on certain system login(1) will not work if we  dnl For example on certain system login(1) will not work if we
757  dnl don't have an entry in utmpx.  dnl don't have an entry in utmpx.

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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