Mercurial > dropbear
comparison configure.in @ 118:5312ca05ed48 private-rez
propagate of 717950f4061f1123659ee87c7c168805af920ab7 and 839f98f136788cc1466e4641bf796f96040a085d from branch 'matt.dbclient.authpam' to 'matt.dbclient.rez'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 12 Sep 2004 04:56:50 +0000 |
parents | 3b2a5a1c4347 b0316ce64e4b |
children | 3394a7cb30cd |
comparison
equal
deleted
inserted
replaced
57:3b2a5a1c4347 | 118:5312ca05ed48 |
---|---|
1 # -*- Autoconf -*- | 1 # -*- Autoconf -*- |
2 # Process this file with autoconf and autoheader to produce a configure script. | 2 # Process this file with autoconf and autoheader to produce a configure script. |
3 | 3 |
4 # This Autoconf file was cobbled from various locations. | 4 # This Autoconf file was cobbled from various locations. In particular, a bunch |
5 # of the platform checks have been taken straight from OpenSSH's configure.ac | |
6 # Huge thanks to them for dealing with the horrible platform-specifics :) | |
5 | 7 |
6 AC_PREREQ(2.50) | 8 AC_PREREQ(2.50) |
7 AC_INIT(buffer.c) | 9 AC_INIT(buffer.c) |
8 | 10 |
9 OLDCFLAGS=$CFLAGS | 11 OLDCFLAGS=$CFLAGS |
48 AC_CHECK_LIB(nsl, yp_match, LIBS="$LIBS -lnsl") | 50 AC_CHECK_LIB(nsl, yp_match, LIBS="$LIBS -lnsl") |
49 ;; | 51 ;; |
50 | 52 |
51 *-*-aix*) | 53 *-*-aix*) |
52 AC_DEFINE(AIX,,Using AIX) | 54 AC_DEFINE(AIX,,Using AIX) |
55 # OpenSSH thinks it's broken. If it isn't, let me know. | |
56 AC_DEFINE(BROKEN_GETADDRINFO,,Broken getaddrinfo) | |
53 ;; | 57 ;; |
54 | 58 |
55 *-*-hpux*) | 59 *-*-hpux*) |
56 LIBS="$LIBS -lsec" | 60 LIBS="$LIBS -lsec" |
61 # It's probably broken. | |
62 AC_DEFINE(BROKEN_GETADDRINFO,,Broken getaddrinfo) | |
63 ;; | |
64 *-dec-osf*) | |
65 AC_DEFINE(BROKEN_GETADDRINFO,,Broken getaddrinfo) | |
57 ;; | 66 ;; |
58 esac | 67 esac |
59 | 68 |
60 AC_CHECK_TOOL(AR, ar, :) | 69 AC_CHECK_TOOL(AR, ar, :) |
61 AC_CHECK_TOOL(RANLIB, ranlib, :) | 70 AC_CHECK_TOOL(RANLIB, ranlib, :) |
239 AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv, | 248 AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv, |
240 [type to use in place of socklen_t if not defined])], | 249 [type to use in place of socklen_t if not defined])], |
241 [#include <sys/types.h> | 250 [#include <sys/types.h> |
242 #include <sys/socket.h>]) | 251 #include <sys/socket.h>]) |
243 | 252 |
253 # for the fake-rfc2553 stuff - straight from OpenSSH | |
254 | |
255 AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [ | |
256 AC_TRY_COMPILE( | |
257 [ | |
258 #include <sys/types.h> | |
259 #include <sys/socket.h> | |
260 ], | |
261 [ struct sockaddr_storage s; ], | |
262 [ ac_cv_have_struct_sockaddr_storage="yes" ], | |
263 [ ac_cv_have_struct_sockaddr_storage="no" ] | |
264 ) | |
265 ]) | |
266 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | |
267 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE) | |
268 fi | |
269 | |
270 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [ | |
271 AC_TRY_COMPILE( | |
272 [ | |
273 #include <sys/types.h> | |
274 #include <netinet/in.h> | |
275 ], | |
276 [ struct sockaddr_in6 s; s.sin6_family = 0; ], | |
277 [ ac_cv_have_struct_sockaddr_in6="yes" ], | |
278 [ ac_cv_have_struct_sockaddr_in6="no" ] | |
279 ) | |
280 ]) | |
281 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | |
282 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6,,Have struct sockaddr_in6) | |
283 fi | |
284 | |
285 AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [ | |
286 AC_TRY_COMPILE( | |
287 [ | |
288 #include <sys/types.h> | |
289 #include <netinet/in.h> | |
290 ], | |
291 [ struct in6_addr s; s.s6_addr[0] = 0; ], | |
292 [ ac_cv_have_struct_in6_addr="yes" ], | |
293 [ ac_cv_have_struct_in6_addr="no" ] | |
294 ) | |
295 ]) | |
296 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | |
297 AC_DEFINE(HAVE_STRUCT_IN6_ADDR,,Have struct in6_addr) | |
298 fi | |
299 | |
300 AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [ | |
301 AC_TRY_COMPILE( | |
302 [ | |
303 #include <sys/types.h> | |
304 #include <sys/socket.h> | |
305 #include <netdb.h> | |
306 ], | |
307 [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ], | |
308 [ ac_cv_have_struct_addrinfo="yes" ], | |
309 [ ac_cv_have_struct_addrinfo="no" ] | |
310 ) | |
311 ]) | |
312 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | |
313 AC_DEFINE(HAVE_STRUCT_ADDRINFO,,Have struct addrinfo) | |
314 fi | |
315 | |
316 | |
317 # IRIX has a const char return value for gai_strerror() | |
318 AC_CHECK_FUNCS(gai_strerror,[ | |
319 AC_DEFINE(HAVE_GAI_STRERROR) | |
320 AC_TRY_COMPILE([ | |
321 #include <sys/types.h> | |
322 #include <sys/socket.h> | |
323 #include <netdb.h> | |
324 | |
325 const char *gai_strerror(int);],[ | |
326 char *str; | |
327 | |
328 str = gai_strerror(0);],[ | |
329 AC_DEFINE(HAVE_CONST_GAI_STRERROR_PROTO, 1, | |
330 [Define if gai_strerror() returns const char *])])]) | |
244 | 331 |
245 # for loginrec.c | 332 # for loginrec.c |
246 | 333 |
247 AC_CHECK_MEMBERS([struct utmp.ut_host, struct utmp.ut_pid, struct utmp.ut_type, struct utmp.ut_tv, struct utmp.ut_id, struct utmp.ut_addr, struct utmp.ut_addr_v6, struct utmp.ut_exit, struct utmp.ut_time],,,[ | 334 AC_CHECK_MEMBERS([struct utmp.ut_host, struct utmp.ut_pid, struct utmp.ut_type, struct utmp.ut_tv, struct utmp.ut_id, struct utmp.ut_addr, struct utmp.ut_addr_v6, struct utmp.ut_exit, struct utmp.ut_time],,,[ |
248 #include <sys/types.h> | 335 #include <sys/types.h> |
496 # Checks for library functions. | 583 # Checks for library functions. |
497 AC_PROG_GCC_TRADITIONAL | 584 AC_PROG_GCC_TRADITIONAL |
498 AC_FUNC_MEMCMP | 585 AC_FUNC_MEMCMP |
499 AC_FUNC_SELECT_ARGTYPES | 586 AC_FUNC_SELECT_ARGTYPES |
500 AC_TYPE_SIGNAL | 587 AC_TYPE_SIGNAL |
501 AC_CHECK_FUNCS([dup2 getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty ]) | 588 AC_CHECK_FUNCS([dup2 getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo]) |
502 | 589 |
503 AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME)) | 590 AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME)) |
504 | 591 |
505 # Solaris needs ptmx | 592 # Solaris needs ptmx |
506 if test -z "$no_ptmx_check" ; then | 593 if test -z "$no_ptmx_check" ; then |
517 else | 604 else |
518 AC_MSG_RESULT(Not checking for /dev/ptc & /dev/pts\, we're cross-compiling) | 605 AC_MSG_RESULT(Not checking for /dev/ptc & /dev/pts\, we're cross-compiling) |
519 fi | 606 fi |
520 fi | 607 fi |
521 | 608 |
609 AC_EXEEXT | |
522 AC_CONFIG_HEADER(config.h) | 610 AC_CONFIG_HEADER(config.h) |
523 AC_OUTPUT(Makefile) | 611 AC_OUTPUT(Makefile) |
524 AC_MSG_RESULT() | 612 AC_MSG_RESULT() |
525 AC_MSG_RESULT(Now edit options.h to choose features.) | 613 AC_MSG_RESULT(Now edit options.h to choose features.) |