diff options
author | Damien Miller <djm@mindrot.org> | 2001-07-14 13:22:53 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-07-14 13:22:53 +1000 |
commit | 4f8e66929b592825856df3625f5de7922f826020 (patch) | |
tree | a2aa5cbf687af528463900a8852b02386e12729e /configure.in | |
parent | 8f6bc30a4b23fb07ca3aca01a745f070a2129760 (diff) |
- (djm) Pull in getopt(3) from OpenBSD libc for the optreset extension.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.in b/configure.in index ed3fba84e..d3f38b92f 100644 --- a/configure.in +++ b/configure.in | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.in,v 1.298 2001/06/29 12:32:31 mouring Exp $ | 1 | # $Id: configure.in,v 1.299 2001/07/14 03:22:53 djm Exp $ |
2 | 2 | ||
3 | AC_INIT(ssh.c) | 3 | AC_INIT(ssh.c) |
4 | 4 | ||
@@ -459,7 +459,7 @@ AC_ARG_WITH(tcp-wrappers, | |||
459 | ) | 459 | ) |
460 | 460 | ||
461 | dnl Checks for library functions. | 461 | dnl Checks for library functions. |
462 | AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock dirname fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent glob inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty readpassphrase realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid setvbuf sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop) | 462 | AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock dirname fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getopt getnameinfo getrlimit getrusage getttyent glob inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty readpassphrase realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid setvbuf sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop) |
463 | dnl Checks for time functions | 463 | dnl Checks for time functions |
464 | AC_CHECK_FUNCS(gettimeofday time) | 464 | AC_CHECK_FUNCS(gettimeofday time) |
465 | dnl Checks for libutil functions | 465 | dnl Checks for libutil functions |
@@ -1184,6 +1184,20 @@ if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | |||
1184 | AC_DEFINE(HAVE___PROGNAME) | 1184 | AC_DEFINE(HAVE___PROGNAME) |
1185 | fi | 1185 | fi |
1186 | 1186 | ||
1187 | AC_CACHE_CHECK([whether getopt has optreset support], | ||
1188 | ac_cv_have_getopt_optreset, [ | ||
1189 | AC_TRY_LINK( | ||
1190 | [ | ||
1191 | #include <getopt.h> | ||
1192 | ], | ||
1193 | [ extern int optreset; optreset = 0; ], | ||
1194 | [ ac_cv_have_getopt_optreset="yes" ], | ||
1195 | [ ac_cv_have_getopt_optreset="no" ] | ||
1196 | ) | ||
1197 | ]) | ||
1198 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
1199 | AC_DEFINE(HAVE_GETOPT_OPTRESET) | ||
1200 | fi | ||
1187 | 1201 | ||
1188 | AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [ | 1202 | AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [ |
1189 | AC_TRY_LINK([], | 1203 | AC_TRY_LINK([], |