comparison configure.in @ 511:582cb38e4eb5 insecure-nocrypto

propagate from branch 'au.asn.ucc.matt.dropbear' (head cdcc3c729e29544e8b98a408e2dc60e4483dfd2a) to branch 'au.asn.ucc.matt.dropbear.insecure-nocrypto' (head 0ca38a1cf349f7426ac9de34ebe4c3e3735effab)
author Matt Johnston <matt@ucc.asn.au>
date Thu, 06 Nov 2008 13:16:55 +0000
parents db4f6adcb7e2
children a1b7c6cdd48a 76097ec1a29a
comparison
equal deleted inserted replaced
361:461c4b1fb35f 511:582cb38e4eb5
17 LD=$CC 17 LD=$CC
18 fi 18 fi
19 AC_SUBST(LD) 19 AC_SUBST(LD)
20 20
21 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then 21 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then
22 AC_MSG_RESULT(No \$CFLAGS set... using "-Os -W -Wall" for GCC) 22 AC_MSG_NOTICE(No \$CFLAGS set... using "-Os -W -Wall" for GCC)
23 CFLAGS="-Os -W -Wall" 23 CFLAGS="-Os -W -Wall"
24 fi 24 fi
25
26 # large file support is useful for scp
27 AC_SYS_LARGEFILE
25 28
26 # Host specific options 29 # Host specific options
27 # this isn't a definitive list of hosts, they are just added as required 30 # this isn't a definitive list of hosts, they are just added as required
28 AC_CANONICAL_HOST 31 AC_CANONICAL_HOST
29 32
73 76
74 dnl Can't use login() or logout() with uclibc 77 dnl Can't use login() or logout() with uclibc
75 AC_CHECK_DECL(__UCLIBC__, 78 AC_CHECK_DECL(__UCLIBC__,
76 [ 79 [
77 no_loginfunc_check=1 80 no_loginfunc_check=1
78 AC_MSG_RESULT(Using uClibc - login() and logout() probably don't work, so we won't use them.) 81 AC_MSG_NOTICE([Using uClibc - login() and logout() probably don't work, so we won't use them.])
79 ],,,) 82 ],,,)
80 83
81 # Checks for libraries. 84 # Checks for libraries.
82 AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt") 85 AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt")
83 86
102 AC_ARG_ENABLE(zlib, 105 AC_ARG_ENABLE(zlib,
103 [ --disable-zlib Don't include zlib support], 106 [ --disable-zlib Don't include zlib support],
104 [ 107 [
105 if test "x$enableval" = "xno"; then 108 if test "x$enableval" = "xno"; then
106 AC_DEFINE(DISABLE_ZLIB,, Use zlib) 109 AC_DEFINE(DISABLE_ZLIB,, Use zlib)
107 AC_MSG_RESULT(Disabling zlib) 110 AC_MSG_NOTICE(Disabling zlib)
108 else 111 else
109 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***])) 112 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***]))
110 AC_MSG_RESULT(Enabling zlib) 113 AC_MSG_NOTICE(Enabling zlib)
111 fi 114 fi
112 ], 115 ],
113 [ 116 [
114 # if not disabled, check for zlib 117 # if not disabled, check for zlib
115 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***])) 118 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***]))
116 AC_MSG_RESULT(Enabling zlib) 119 AC_MSG_NOTICE(Enabling zlib)
117 ] 120 ]
118 ) 121 )
119 122
120 # Check if pam is needed 123 # Check if pam is needed
121 AC_ARG_WITH(pam, 124 AC_ARG_WITH(pam,
139 AC_ARG_ENABLE(pam, 142 AC_ARG_ENABLE(pam,
140 [ --enable-pam Try to include PAM support], 143 [ --enable-pam Try to include PAM support],
141 [ 144 [
142 if test "x$enableval" = "xyes"; then 145 if test "x$enableval" = "xyes"; then
143 AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***])) 146 AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***]))
144 AC_MSG_RESULT(Enabling PAM) 147 AC_MSG_NOTICE(Enabling PAM)
145 else 148 else
146 AC_DEFINE(DISABLE_PAM,, Use PAM) 149 AC_DEFINE(DISABLE_PAM,, Use PAM)
147 AC_MSG_RESULT(Disabling PAM) 150 AC_MSG_NOTICE(Disabling PAM)
148 fi 151 fi
149 ], 152 ],
150 [ 153 [
151 # disable it by default 154 # disable it by default
152 AC_DEFINE(DISABLE_PAM,, Use PAM) 155 AC_DEFINE(DISABLE_PAM,, Use PAM)
153 AC_MSG_RESULT(Disabling PAM) 156 AC_MSG_NOTICE(Disabling PAM)
154 ] 157 ]
155 ) 158 )
156 159
157 AC_ARG_ENABLE(openpty, 160 AC_ARG_ENABLE(openpty,
158 [ --disable-openpty Don't use openpty, use alternative method], 161 [ --disable-openpty Don't use openpty, use alternative method],
159 [ 162 [
160 if test "x$enableval" = "xno"; then 163 if test "x$enableval" = "xno"; then
161 AC_MSG_RESULT(Not using openpty) 164 AC_MSG_NOTICE(Not using openpty)
162 else 165 else
163 AC_MSG_RESULT(Using openpty if available) 166 AC_MSG_NOTICE(Using openpty if available)
164 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,,Have openpty() function)]) 167 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,,Have openpty() function)])
165 fi 168 fi
166 ], 169 ],
167 [ 170 [
168 AC_MSG_RESULT(Using openpty if available) 171 AC_MSG_NOTICE(Using openpty if available)
169 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY)]) 172 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY)])
170 ] 173 ]
171 ) 174 )
172 175
173 176
174 AC_ARG_ENABLE(syslog, 177 AC_ARG_ENABLE(syslog,
175 [ --disable-syslog Don't include syslog support], 178 [ --disable-syslog Don't include syslog support],
176 [ 179 [
177 if test "x$enableval" = "xno"; then 180 if test "x$enableval" = "xno"; then
178 AC_DEFINE(DISABLE_SYSLOG,, Using syslog) 181 AC_DEFINE(DISABLE_SYSLOG,, Using syslog)
179 AC_MSG_RESULT(Disabling syslog) 182 AC_MSG_NOTICE(Disabling syslog)
180 else 183 else
181 AC_MSG_RESULT(Enabling syslog) 184 AC_MSG_NOTICE(Enabling syslog)
182 fi 185 fi
183 ], 186 ],
184 [ 187 [
185 AC_MSG_RESULT(Enabling syslog) 188 AC_MSG_NOTICE(Enabling syslog)
186 ] 189 ]
187 ) 190 )
188 191
189 AC_ARG_ENABLE(shadow, 192 AC_ARG_ENABLE(shadow,
190 [ --disable-shadow Don't use shadow passwords (if available)], 193 [ --disable-shadow Don't use shadow passwords (if available)],
191 [ 194 [
192 if test "x$enableval" = "xno"; then 195 if test "x$enableval" = "xno"; then
193 AC_MSG_RESULT(Not using shadow passwords) 196 AC_MSG_NOTICE(Not using shadow passwords)
194 else 197 else
195 AC_CHECK_HEADERS([shadow.h]) 198 AC_CHECK_HEADERS([shadow.h])
196 AC_MSG_RESULT(Using shadow passwords if available) 199 AC_MSG_NOTICE(Using shadow passwords if available)
197 fi 200 fi
198 ], 201 ],
199 [ 202 [
200 AC_CHECK_HEADERS([shadow.h]) 203 AC_CHECK_HEADERS([shadow.h])
201 AC_MSG_RESULT(Using shadow passwords if available) 204 AC_MSG_NOTICE(Using shadow passwords if available)
202 ] 205 ]
203 ) 206 )
204 207
205 208
206 # Checks for header files. 209 # Checks for header files.
337 #if HAVE_UTMP_H 340 #if HAVE_UTMP_H
338 #include <utmp.h> 341 #include <utmp.h>
339 #endif 342 #endif
340 ]) 343 ])
341 344
342 AC_CHECK_MEMBERS([struct utmpx.ut_host, struct utmpx.ut_syslen, struct utmpx.ut_type, struct utmpx.ut_id, struct utmpx.ut_addr, struct utmpx.ut_addr_v6, struct utmpx.ut_time, struct utmpx.ut_tv, struct sockaddr_storage.ss_family, struct sockadd_storage.__family],,,[ 345 AC_CHECK_MEMBERS([struct utmpx.ut_host, struct utmpx.ut_syslen, struct utmpx.ut_type, struct utmpx.ut_id, struct utmpx.ut_addr, struct utmpx.ut_addr_v6, struct utmpx.ut_time, struct utmpx.ut_tv],,,[
343 #include <sys/types.h> 346 #include <sys/types.h>
344 #include <sys/socket.h> 347 #include <sys/socket.h>
345 #if HAVE_UTMPX_H 348 #if HAVE_UTMPX_H
346 #include <utmpx.h> 349 #include <utmpx.h>
347 #endif 350 #endif
351 ])
352
353 AC_CHECK_MEMBERS([struct sockaddr_storage.ss_family],,,[
354 #include <sys/types.h>
355 #include <sys/socket.h>
348 ]) 356 ])
349 357
350 AC_CHECK_FUNCS(endutent getutent getutid getutline pututline setutent) 358 AC_CHECK_FUNCS(endutent getutent getutid getutline pututline setutent)
351 AC_CHECK_FUNCS(utmpname) 359 AC_CHECK_FUNCS(utmpname)
352 AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline ) 360 AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline )
377 [ AC_DEFINE(DISABLE_WTMPX,,Disable use of wtmpx) ] 385 [ AC_DEFINE(DISABLE_WTMPX,,Disable use of wtmpx) ]
378 ) 386 )
379 AC_ARG_ENABLE(loginfunc, 387 AC_ARG_ENABLE(loginfunc,
380 [ --disable-loginfunc Disable use of login() etc. [no]], 388 [ --disable-loginfunc Disable use of login() etc. [no]],
381 [ no_loginfunc_check=1 389 [ no_loginfunc_check=1
382 AC_MSG_RESULT(Not using login() etc) ] 390 AC_MSG_NOTICE(Not using login() etc) ]
383 ) 391 )
384 AC_ARG_ENABLE(pututline, 392 AC_ARG_ENABLE(pututline,
385 [ --disable-pututline Disable use of pututline() etc. ([uw]tmp) [no]], 393 [ --disable-pututline Disable use of pututline() etc. ([uw]tmp) [no]],
386 [ AC_DEFINE(DISABLE_PUTUTLINE,,Disable use of pututline()) ] 394 [ AC_DEFINE(DISABLE_PUTUTLINE,,Disable use of pututline()) ]
387 ) 395 )
594 # Solaris needs ptmx 602 # Solaris needs ptmx
595 if test -z "$no_ptmx_check" ; then 603 if test -z "$no_ptmx_check" ; then
596 if test x"$cross_compiling" = x"no" ; then 604 if test x"$cross_compiling" = x"no" ; then
597 AC_CHECK_FILE("/dev/ptmx", AC_DEFINE(USE_DEV_PTMX,,Use /dev/ptmx)) 605 AC_CHECK_FILE("/dev/ptmx", AC_DEFINE(USE_DEV_PTMX,,Use /dev/ptmx))
598 else 606 else
599 AC_MSG_RESULT(Not checking for /dev/ptmx, we're cross-compiling) 607 AC_MSG_NOTICE([Not checking for /dev/ptmx, we're cross-compiling])
600 fi 608 fi
601 fi 609 fi
602 610
603 if test -z "$no_ptc_check" ; then 611 if test -z "$no_ptc_check" ; then
604 if test x"$cross_compiling" = x"no" ; then 612 if test x"$cross_compiling" = x"no" ; then
605 AC_CHECK_FILE("/dev/ptc", AC_DEFINE(HAVE_DEV_PTS_AND_PTC,,Use /dev/ptc & /dev/pts)) 613 AC_CHECK_FILE("/dev/ptc", AC_DEFINE(HAVE_DEV_PTS_AND_PTC,,Use /dev/ptc & /dev/pts))
606 else 614 else
607 AC_MSG_RESULT(Not checking for /dev/ptc & /dev/pts\, we're cross-compiling) 615 AC_MSG_NOTICE([Not checking for /dev/ptc & /dev/pts since we're cross-compiling])
608 fi 616 fi
609 fi 617 fi
610 618
611 AC_EXEEXT 619 AC_EXEEXT
620
621 # XXX there must be a nicer way to do this
622 AS_MKDIR_P(libtomcrypt/src/ciphers/aes)
623 AS_MKDIR_P(libtomcrypt/src/ciphers/safer)
624 AS_MKDIR_P(libtomcrypt/src/ciphers/twofish)
625 AS_MKDIR_P(libtomcrypt/src/encauth/ccm)
626 AS_MKDIR_P(libtomcrypt/src/encauth/eax)
627 AS_MKDIR_P(libtomcrypt/src/encauth/gcm)
628 AS_MKDIR_P(libtomcrypt/src/encauth/ocb)
629 AS_MKDIR_P(libtomcrypt/src/hashes)
630 AS_MKDIR_P(libtomcrypt/src/hashes/chc)
631 AS_MKDIR_P(libtomcrypt/src/hashes/helper)
632 AS_MKDIR_P(libtomcrypt/src/hashes/sha2)
633 AS_MKDIR_P(libtomcrypt/src/hashes/whirl)
634 AS_MKDIR_P(libtomcrypt/src/mac/hmac)
635 AS_MKDIR_P(libtomcrypt/src/mac/omac)
636 AS_MKDIR_P(libtomcrypt/src/mac/pelican)
637 AS_MKDIR_P(libtomcrypt/src/mac/pmac)
638 AS_MKDIR_P(libtomcrypt/src/mac/f9)
639 AS_MKDIR_P(libtomcrypt/src/mac/xcbc)
640 AS_MKDIR_P(libtomcrypt/src/math/fp)
641 AS_MKDIR_P(libtomcrypt/src/misc/base64)
642 AS_MKDIR_P(libtomcrypt/src/misc/crypt)
643 AS_MKDIR_P(libtomcrypt/src/misc/mpi)
644 AS_MKDIR_P(libtomcrypt/src/misc/pkcs5)
645 AS_MKDIR_P(libtomcrypt/src/modes/cbc)
646 AS_MKDIR_P(libtomcrypt/src/modes/cfb)
647 AS_MKDIR_P(libtomcrypt/src/modes/ctr)
648 AS_MKDIR_P(libtomcrypt/src/modes/ecb)
649 AS_MKDIR_P(libtomcrypt/src/modes/ofb)
650 AS_MKDIR_P(libtomcrypt/src/modes/f8)
651 AS_MKDIR_P(libtomcrypt/src/modes/lrw)
652 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/bit)
653 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/choice)
654 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/ia5)
655 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/integer)
656 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/object_identifier)
657 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/octet)
658 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/printable_string)
659 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/sequence)
660 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/short_integer)
661 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/utctime)
662 AS_MKDIR_P(libtomcrypt/src/pk/dh)
663 AS_MKDIR_P(libtomcrypt/src/pk/dsa)
664 AS_MKDIR_P(libtomcrypt/src/pk/ecc)
665 AS_MKDIR_P(libtomcrypt/src/pk/pkcs1)
666 AS_MKDIR_P(libtomcrypt/src/pk/rsa)
667 AS_MKDIR_P(libtomcrypt/src/prng)
612 AC_CONFIG_HEADER(config.h) 668 AC_CONFIG_HEADER(config.h)
613 AC_OUTPUT(Makefile) 669 AC_OUTPUT(Makefile)
614 AC_OUTPUT(libtomcrypt/Makefile) 670 AC_OUTPUT(libtomcrypt/Makefile)
615 AC_OUTPUT(libtommath/Makefile) 671 AC_OUTPUT(libtommath/Makefile)
616 AC_MSG_RESULT() 672 AC_MSG_NOTICE()
617 AC_MSG_RESULT(Now edit options.h to choose features.) 673 AC_MSG_NOTICE(Now edit options.h to choose features.)