diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 138 |
1 files changed, 68 insertions, 70 deletions
diff --git a/configure.in b/configure.in index 61d1e06a4..638877edd 100644 --- a/configure.in +++ b/configure.in | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.in,v 1.267 2001/03/18 23:09:28 djm Exp $ | 1 | # $Id: configure.in,v 1.268 2001/03/28 03:03:42 djm Exp $ |
2 | 2 | ||
3 | AC_INIT(ssh.c) | 3 | AC_INIT(ssh.c) |
4 | 4 | ||
@@ -404,75 +404,6 @@ AC_EGREP_CPP(FOUNDIT, | |||
404 | ] | 404 | ] |
405 | ) | 405 | ) |
406 | 406 | ||
407 | |||
408 | |||
409 | # Check whether user wants Kerberos support | ||
410 | KRB4_MSG="no" | ||
411 | AC_ARG_WITH(kerberos4, | ||
412 | [ --with-kerberos4=PATH Enable Kerberos 4 support], | ||
413 | [ | ||
414 | if test "x$withval" != "xno" ; then | ||
415 | |||
416 | if test "x$withval" != "xyes" ; then | ||
417 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
418 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
419 | if test ! -z "$need_dash_r" ; then | ||
420 | LDFLAGS="$LDFLAGS -R${withval}/lib" | ||
421 | fi | ||
422 | if test ! -z "$blibpath" ; then | ||
423 | blibpath="$blibpath:${withval}/lib" | ||
424 | fi | ||
425 | else | ||
426 | if test -d /usr/include/kerberosIV ; then | ||
427 | CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV" | ||
428 | fi | ||
429 | fi | ||
430 | |||
431 | AC_CHECK_HEADERS(krb.h) | ||
432 | AC_CHECK_LIB(krb, main) | ||
433 | if test "$ac_cv_header_krb_h" != yes; then | ||
434 | AC_MSG_WARN([Cannot find krb.h, build may fail]) | ||
435 | fi | ||
436 | if test "$ac_cv_lib_krb_main" != yes; then | ||
437 | AC_MSG_WARN([Cannot find libkrb, build may fail]) | ||
438 | fi | ||
439 | |||
440 | KLIBS="-lkrb -ldes" | ||
441 | AC_CHECK_LIB(resolv, dn_expand, , ) | ||
442 | KRB4=yes | ||
443 | KRB4_MSG="yes" | ||
444 | AC_DEFINE(KRB4) | ||
445 | fi | ||
446 | ] | ||
447 | ) | ||
448 | |||
449 | # Check whether user wants AFS support | ||
450 | AFS_MSG="no" | ||
451 | AC_ARG_WITH(afs, | ||
452 | [ --with-afs=PATH Enable AFS support], | ||
453 | [ | ||
454 | if test "x$withval" != "xno" ; then | ||
455 | |||
456 | if test "x$withval" != "xyes" ; then | ||
457 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
458 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
459 | fi | ||
460 | |||
461 | if test -z "$KRB4" ; then | ||
462 | AC_MSG_WARN([AFS requires Kerberos IV support, build may fail]) | ||
463 | fi | ||
464 | |||
465 | LIBS="$LIBS -lkafs" | ||
466 | if test ! -z "$AFS_LIBS" ; then | ||
467 | LIBS="$LIBS $AFS_LIBS" | ||
468 | fi | ||
469 | AC_DEFINE(AFS) | ||
470 | AFS_MSG="yes" | ||
471 | fi | ||
472 | ] | ||
473 | ) | ||
474 | LIBS="$LIBS $KLIBS" | ||
475 | |||
476 | # Check whether user wants S/Key support | 407 | # Check whether user wants S/Key support |
477 | SKEY_MSG="no" | 408 | SKEY_MSG="no" |
478 | AC_ARG_WITH(skey, | 409 | AC_ARG_WITH(skey, |
@@ -1247,6 +1178,73 @@ if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | |||
1247 | fi | 1178 | fi |
1248 | 1179 | ||
1249 | 1180 | ||
1181 | # Check whether user wants Kerberos support | ||
1182 | KRB4_MSG="no" | ||
1183 | AC_ARG_WITH(kerberos4, | ||
1184 | [ --with-kerberos4=PATH Enable Kerberos 4 support], | ||
1185 | [ | ||
1186 | if test "x$withval" != "xno" ; then | ||
1187 | |||
1188 | if test "x$withval" != "xyes" ; then | ||
1189 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
1190 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
1191 | if test ! -z "$need_dash_r" ; then | ||
1192 | LDFLAGS="$LDFLAGS -R${withval}/lib" | ||
1193 | fi | ||
1194 | if test ! -z "$blibpath" ; then | ||
1195 | blibpath="$blibpath:${withval}/lib" | ||
1196 | fi | ||
1197 | else | ||
1198 | if test -d /usr/include/kerberosIV ; then | ||
1199 | CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV" | ||
1200 | fi | ||
1201 | fi | ||
1202 | |||
1203 | AC_CHECK_HEADERS(krb.h) | ||
1204 | AC_CHECK_LIB(krb, main) | ||
1205 | if test "$ac_cv_header_krb_h" != yes; then | ||
1206 | AC_MSG_WARN([Cannot find krb.h, build may fail]) | ||
1207 | fi | ||
1208 | if test "$ac_cv_lib_krb_main" != yes; then | ||
1209 | AC_MSG_WARN([Cannot find libkrb, build may fail]) | ||
1210 | fi | ||
1211 | |||
1212 | KLIBS="-lkrb -ldes" | ||
1213 | AC_CHECK_LIB(resolv, dn_expand, , ) | ||
1214 | KRB4=yes | ||
1215 | KRB4_MSG="yes" | ||
1216 | AC_DEFINE(KRB4) | ||
1217 | fi | ||
1218 | ] | ||
1219 | ) | ||
1220 | |||
1221 | # Check whether user wants AFS support | ||
1222 | AFS_MSG="no" | ||
1223 | AC_ARG_WITH(afs, | ||
1224 | [ --with-afs=PATH Enable AFS support], | ||
1225 | [ | ||
1226 | if test "x$withval" != "xno" ; then | ||
1227 | |||
1228 | if test "x$withval" != "xyes" ; then | ||
1229 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
1230 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
1231 | fi | ||
1232 | |||
1233 | if test -z "$KRB4" ; then | ||
1234 | AC_MSG_WARN([AFS requires Kerberos IV support, build may fail]) | ||
1235 | fi | ||
1236 | |||
1237 | LIBS="-lkafs $LIBS" | ||
1238 | if test ! -z "$AFS_LIBS" ; then | ||
1239 | LIBS="$LIBS $AFS_LIBS" | ||
1240 | fi | ||
1241 | AC_DEFINE(AFS) | ||
1242 | AFS_MSG="yes" | ||
1243 | fi | ||
1244 | ] | ||
1245 | ) | ||
1246 | LIBS="$LIBS $KLIBS" | ||
1247 | |||
1250 | # Looking for programs, paths and files | 1248 | # Looking for programs, paths and files |
1251 | AC_ARG_WITH(rsh, | 1249 | AC_ARG_WITH(rsh, |
1252 | [ --with-rsh=PATH Specify path to remote shell program ], | 1250 | [ --with-rsh=PATH Specify path to remote shell program ], |