summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-16 10:18:12 +1100
committerDamien Miller <djm@mindrot.org>2001-02-16 10:18:12 +1100
commitc547bf1930702f185fb5b077d8cce0bfd243f68a (patch)
tree5fab1cc303dd63a2a4d0b9ecf6e88c4ccfa84ddd
parent5805513b17120e47db3317a34463609e35deafc2 (diff)
- (djm) Mini-configure reorder patch from Tim Rice <tim@multitalents.net>
Fixes linking on SCO.
-rw-r--r--ChangeLog4
-rw-r--r--configure.in242
2 files changed, 124 insertions, 122 deletions
diff --git a/ChangeLog b/ChangeLog
index bef8ea8dc..512c6ecf3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
2 - (bal) added '--with-prce' to allow overriding of system regex when 2 - (bal) added '--with-prce' to allow overriding of system regex when
3 required (tested by David Dulek <ddulek@fastenal.com>) 3 required (tested by David Dulek <ddulek@fastenal.com>)
4 - (bal) Added DG/UX case and set that they have a broken IPTOS. 4 - (bal) Added DG/UX case and set that they have a broken IPTOS.
5 - (djm) Mini-configure reorder patch from Tim Rice <tim@multitalents.net>
6 Fixes linking on SCO.
5 7
620010215 820010215
7 - (djm) Move PAM session setup back to before setuid to user. Fixes 9 - (djm) Move PAM session setup back to before setuid to user. Fixes
@@ -3975,4 +3977,4 @@
3975 - Wrote replacements for strlcpy and mkdtemp 3977 - Wrote replacements for strlcpy and mkdtemp
3976 - Released 1.0pre1 3978 - Released 1.0pre1
3977 3979
3978$Id: ChangeLog,v 1.774 2001/02/15 18:34:29 mouring Exp $ 3980$Id: ChangeLog,v 1.775 2001/02/15 23:18:12 djm Exp $
diff --git a/configure.in b/configure.in
index 6d2cd51e2..84198485a 100644
--- a/configure.in
+++ b/configure.in
@@ -1,4 +1,4 @@
1# $Id: configure.in,v 1.240 2001/02/15 18:34:29 mouring Exp $ 1# $Id: configure.in,v 1.241 2001/02/15 23:18:12 djm Exp $
2 2
3AC_INIT(ssh.c) 3AC_INIT(ssh.c)
4 4
@@ -353,6 +353,126 @@ AC_CHECK_FUNC(utimes,
353# Checks for header files. 353# Checks for header files.
354AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h getopt.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h regex.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/queue.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h) 354AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h getopt.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h regex.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/queue.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h)
355 355
356# Check whether user wants Kerberos support
357KRB4_MSG="no"
358AC_ARG_WITH(kerberos4,
359 [ --with-kerberos4=PATH Enable Kerberos 4 support],
360 [
361 if test "x$withval" != "xno" ; then
362
363 if test "x$withval" != "xyes" ; then
364 CPPFLAGS="$CPPFLAGS -I${withval}/include"
365 LDFLAGS="$LDFLAGS -L${withval}/lib"
366 if test ! -z "$need_dash_r" ; then
367 LDFLAGS="$LDFLAGS -R${withval}/lib"
368 fi
369 if test ! -z "$blibpath" ; then
370 blibpath="$blibpath:${withval}/lib"
371 fi
372 else
373 if test -d /usr/include/kerberosIV ; then
374 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
375 fi
376 fi
377
378 AC_CHECK_HEADERS(krb.h)
379 AC_CHECK_LIB(krb, main)
380 if test "$ac_cv_header_krb_h" != yes; then
381 AC_MSG_WARN([Cannot find krb.h, build may fail])
382 fi
383 if test "$ac_cv_lib_krb_main" != yes; then
384 AC_MSG_WARN([Cannot find libkrb, build may fail])
385 fi
386
387 KLIBS="-lkrb -ldes"
388 AC_CHECK_LIB(resolv, dn_expand, , )
389 KRB4=yes
390 KRB4_MSG="yes"
391 AC_DEFINE(KRB4)
392 fi
393 ]
394)
395
396# Check whether user wants AFS support
397AFS_MSG="no"
398AC_ARG_WITH(afs,
399 [ --with-afs=PATH Enable AFS support],
400 [
401 if test "x$withval" != "xno" ; then
402
403 if test "x$withval" != "xyes" ; then
404 CPPFLAGS="$CPPFLAGS -I${withval}/include"
405 LDFLAGS="$LDFLAGS -L${withval}/lib"
406 fi
407
408 if test -z "$KRB4" ; then
409 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
410 fi
411
412 LIBS="$LIBS -lkafs"
413 if test ! -z "$AFS_LIBS" ; then
414 LIBS="$LIBS $AFS_LIBS"
415 fi
416 AC_DEFINE(AFS)
417 AFS_MSG="yes"
418 fi
419 ]
420)
421LIBS="$LIBS $KLIBS"
422
423# Check whether user wants S/Key support
424SKEY_MSG="no"
425AC_ARG_WITH(skey,
426 [ --with-skey=PATH Enable S/Key support],
427 [
428 if test "x$withval" != "xno" ; then
429
430 if test "x$withval" != "xyes" ; then
431 CPPFLAGS="$CPPFLAGS -I${withval}/include"
432 LDFLAGS="$LDFLAGS -L${withval}/lib"
433 fi
434
435 AC_DEFINE(SKEY)
436 LIBS="-lskey $LIBS"
437 SKEY_MSG="yes"
438
439 AC_CHECK_FUNC(skey_keyinfo,
440 [],
441 [
442 AC_MSG_ERROR([** Incomplete or missing s/key libraries.])
443 ])
444 fi
445 ]
446)
447
448# Check whether user wants TCP wrappers support
449TCPW_MSG="no"
450AC_ARG_WITH(tcp-wrappers,
451 [ --with-tcp-wrappers Enable tcpwrappers support],
452 [
453 if test "x$withval" != "xno" ; then
454 saved_LIBS="$LIBS"
455 LIBS="-lwrap $LIBS"
456 AC_MSG_CHECKING(for libwrap)
457 AC_TRY_LINK(
458 [
459#include <tcpd.h>
460 int deny_severity = 0, allow_severity = 0;
461 ],
462 [hosts_access(0);],
463 [
464 AC_MSG_RESULT(yes)
465 AC_DEFINE(LIBWRAP)
466 TCPW_MSG="yes"
467 ],
468 [
469 AC_MSG_ERROR([*** libwrap missing])
470 ]
471 )
472 fi
473 ]
474)
475
356dnl Checks for library functions. 476dnl Checks for library functions.
357AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent inet_aton inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv seteuid setlogin setproctitle setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep strtok_r sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop) 477AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent inet_aton inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv seteuid setlogin setproctitle setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep strtok_r sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop)
358dnl Checks for time functions 478dnl Checks for time functions
@@ -1178,126 +1298,6 @@ AC_ARG_WITH(catman,
1178AC_SUBST(MANTYPE) 1298AC_SUBST(MANTYPE)
1179AC_SUBST(mansubdir) 1299AC_SUBST(mansubdir)
1180 1300
1181# Check whether user wants Kerberos support
1182KRB4_MSG="no"
1183AC_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
1222AFS_MSG="no"
1223AC_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="$LIBS -lkafs"
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)
1246LIBS="$LIBS $KLIBS"
1247
1248# Check whether user wants S/Key support
1249SKEY_MSG="no"
1250AC_ARG_WITH(skey,
1251 [ --with-skey=PATH Enable S/Key support],
1252 [
1253 if test "x$withval" != "xno" ; then
1254
1255 if test "x$withval" != "xyes" ; then
1256 CPPFLAGS="$CPPFLAGS -I${withval}/include"
1257 LDFLAGS="$LDFLAGS -L${withval}/lib"
1258 fi
1259
1260 AC_DEFINE(SKEY)
1261 LIBS="-lskey $LIBS"
1262 SKEY_MSG="yes"
1263
1264 AC_CHECK_FUNC(skey_keyinfo,
1265 [],
1266 [
1267 AC_MSG_ERROR([** Incomplete or missing s/key libraries.])
1268 ])
1269 fi
1270 ]
1271)
1272
1273# Check whether user wants TCP wrappers support
1274TCPW_MSG="no"
1275AC_ARG_WITH(tcp-wrappers,
1276 [ --with-tcp-wrappers Enable tcpwrappers support],
1277 [
1278 if test "x$withval" != "xno" ; then
1279 saved_LIBS="$LIBS"
1280 LIBS="$LIBS -lwrap"
1281 AC_MSG_CHECKING(for libwrap)
1282 AC_TRY_LINK(
1283 [
1284#include <tcpd.h>
1285 int deny_severity = 0, allow_severity = 0;
1286 ],
1287 [hosts_access(0);],
1288 [
1289 AC_MSG_RESULT(yes)
1290 AC_DEFINE(LIBWRAP)
1291 TCPW_MSG="yes"
1292 ],
1293 [
1294 AC_MSG_ERROR([*** libwrap missing])
1295 ]
1296 )
1297 fi
1298 ]
1299)
1300
1301# Check whether to enable MD5 passwords 1301# Check whether to enable MD5 passwords
1302MD5_MSG="no" 1302MD5_MSG="no"
1303AC_ARG_WITH(md5-passwords, 1303AC_ARG_WITH(md5-passwords,