|
@@ -624,12 +624,13 @@ ac_includes_default="\
|
|
|
#endif"
|
|
#endif"
|
|
|
|
|
|
|
|
ac_subst_vars='PERL
|
|
ac_subst_vars='PERL
|
|
|
|
|
+SSL_DH_HEADER_MAKE
|
|
|
sslbin
|
|
sslbin
|
|
|
PKG_CONFIG
|
|
PKG_CONFIG
|
|
|
|
|
+SSL_DH_HEADER
|
|
|
SSL_LIB_DIR
|
|
SSL_LIB_DIR
|
|
|
SSL_INC_PREFIX
|
|
SSL_INC_PREFIX
|
|
|
SSL_HDR
|
|
SSL_HDR
|
|
|
-SSL_INC_DIR
|
|
|
|
|
SSL_TYPE
|
|
SSL_TYPE
|
|
|
HAVE_SSL
|
|
HAVE_SSL
|
|
|
EGREP
|
|
EGREP
|
|
@@ -763,6 +764,7 @@ with_need_dh
|
|
|
with_ssl
|
|
with_ssl
|
|
|
with_ssl_inc
|
|
with_ssl_inc
|
|
|
with_ssl_lib
|
|
with_ssl_lib
|
|
|
|
|
+enable_auto_dh
|
|
|
with_kerberos_inc
|
|
with_kerberos_inc
|
|
|
with_log_facility
|
|
with_log_facility
|
|
|
with_nrpe_user
|
|
with_nrpe_user
|
|
@@ -1404,6 +1406,8 @@ Optional Features:
|
|
|
'make install' process.
|
|
'make install' process.
|
|
|
--disable-tcpd disables support for tcpd even if present
|
|
--disable-tcpd disables support for tcpd even if present
|
|
|
--disable-ssl disables native SSL support [default=check]
|
|
--disable-ssl disables native SSL support [default=check]
|
|
|
|
|
+ --disable-auto-dh disables using builtin DH parameters (if available)
|
|
|
|
|
+ and generates custom parameters
|
|
|
--enable-command-args allows clients to specify command arguments. ***
|
|
--enable-command-args allows clients to specify command arguments. ***
|
|
|
THIS IS A SECURITY RISK! *** Read the SECURITY file
|
|
THIS IS A SECURITY RISK! *** Read the SECURITY file
|
|
|
before using this option!
|
|
before using this option!
|
|
@@ -1799,7 +1803,7 @@ else
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
$4
|
|
$4
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
if (sizeof ($2))
|
|
if (sizeof ($2))
|
|
|
return 0;
|
|
return 0;
|
|
@@ -1812,7 +1816,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
$4
|
|
$4
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
if (sizeof (($2)))
|
|
if (sizeof (($2)))
|
|
|
return 0;
|
|
return 0;
|
|
@@ -1850,7 +1854,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
$4
|
|
$4
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
static int test_array [1 - 2 * !(($2) >= 0)];
|
|
static int test_array [1 - 2 * !(($2) >= 0)];
|
|
|
test_array [0] = 0;
|
|
test_array [0] = 0;
|
|
@@ -1867,7 +1871,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
$4
|
|
$4
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
|
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
|
|
test_array [0] = 0;
|
|
test_array [0] = 0;
|
|
@@ -1894,7 +1898,7 @@ else
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
$4
|
|
$4
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
static int test_array [1 - 2 * !(($2) < 0)];
|
|
static int test_array [1 - 2 * !(($2) < 0)];
|
|
|
test_array [0] = 0;
|
|
test_array [0] = 0;
|
|
@@ -1911,7 +1915,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
$4
|
|
$4
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
|
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
|
|
test_array [0] = 0;
|
|
test_array [0] = 0;
|
|
@@ -1946,7 +1950,7 @@ while test "x$ac_lo" != "x$ac_hi"; do
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
$4
|
|
$4
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
|
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
|
|
test_array [0] = 0;
|
|
test_array [0] = 0;
|
|
@@ -1971,12 +1975,12 @@ esac
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
$4
|
|
$4
|
|
|
-static long int longval () { return $2; }
|
|
|
|
|
-static unsigned long int ulongval () { return $2; }
|
|
|
|
|
|
|
+static long int longval (void) { return $2; }
|
|
|
|
|
+static unsigned long int ulongval (void) { return $2; }
|
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
@@ -2083,7 +2087,7 @@ else
|
|
|
#define $2 innocuous_$2
|
|
#define $2 innocuous_$2
|
|
|
|
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
- which can conflict with char $2 (); below.
|
|
|
|
|
|
|
+ which can conflict with char $2 (void); below.
|
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
<limits.h> exists even on freestanding compilers. */
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
|
|
|
@@ -2101,7 +2105,7 @@ else
|
|
|
#ifdef __cplusplus
|
|
#ifdef __cplusplus
|
|
|
extern "C"
|
|
extern "C"
|
|
|
#endif
|
|
#endif
|
|
|
-char $2 ();
|
|
|
|
|
|
|
+char $2 (void);
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
/* The GNU C library defines this for functions which it implements
|
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
|
something starting with __ and the normal name is an alias. */
|
|
something starting with __ and the normal name is an alias. */
|
|
@@ -2110,7 +2114,7 @@ choke me
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
return $2 ();
|
|
return $2 ();
|
|
|
;
|
|
;
|
|
@@ -5324,7 +5328,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
;
|
|
;
|
|
@@ -5464,7 +5468,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
FILE *f = fopen ("conftest.out", "w");
|
|
FILE *f = fopen ("conftest.out", "w");
|
|
|
return ferror (f) || fclose (f) != 0;
|
|
return ferror (f) || fclose (f) != 0;
|
|
@@ -5528,7 +5532,7 @@ else
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
;
|
|
;
|
|
@@ -5579,7 +5583,7 @@ else
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
#ifndef __GNUC__
|
|
#ifndef __GNUC__
|
|
|
choke me
|
|
choke me
|
|
@@ -5620,7 +5624,7 @@ else
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
;
|
|
;
|
|
@@ -5635,7 +5639,7 @@ else
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
;
|
|
;
|
|
@@ -5651,7 +5655,7 @@ else
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
;
|
|
;
|
|
@@ -5700,9 +5704,7 @@ struct stat;
|
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
|
struct buf { int x; };
|
|
struct buf { int x; };
|
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
|
-static char *e (p, i)
|
|
|
|
|
- char **p;
|
|
|
|
|
- int i;
|
|
|
|
|
|
|
+static char *e (char **p, int i)
|
|
|
{
|
|
{
|
|
|
return p[i];
|
|
return p[i];
|
|
|
}
|
|
}
|
|
@@ -5737,7 +5739,7 @@ int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i
|
|
|
int argc;
|
|
int argc;
|
|
|
char **argv;
|
|
char **argv;
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
|
;
|
|
;
|
|
@@ -6095,7 +6097,7 @@ else
|
|
|
#include <float.h>
|
|
#include <float.h>
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
;
|
|
;
|
|
@@ -6165,7 +6167,7 @@ else
|
|
|
|
|
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
int i;
|
|
int i;
|
|
|
for (i = 0; i < 256; i++)
|
|
for (i = 0; i < 256; i++)
|
|
@@ -6206,7 +6208,7 @@ else
|
|
|
#include <time.h>
|
|
#include <time.h>
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
if ((struct tm *) 0)
|
|
if ((struct tm *) 0)
|
|
|
return 0;
|
|
return 0;
|
|
@@ -6246,7 +6248,7 @@ else
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
int s;
|
|
int s;
|
|
|
wait (&s);
|
|
wait (&s);
|
|
@@ -6361,7 +6363,7 @@ else
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
#ifndef __cplusplus
|
|
@@ -6444,7 +6446,7 @@ else
|
|
|
#include <time.h>
|
|
#include <time.h>
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
struct tm tm;
|
|
struct tm tm;
|
|
|
int *p = &tm.tm_sec;
|
|
int *p = &tm.tm_sec;
|
|
@@ -6512,7 +6514,7 @@ else
|
|
|
#include <signal.h>
|
|
#include <signal.h>
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
return *(signal (0, 0)) (0) == 1;
|
|
return *(signal (0, 0)) (0) == 1;
|
|
|
;
|
|
;
|
|
@@ -6581,7 +6583,7 @@ $ac_includes_default
|
|
|
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
|
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
gid_t gidset[NGID];
|
|
gid_t gidset[NGID];
|
|
|
int i, n;
|
|
int i, n;
|
|
@@ -6845,7 +6847,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
#include <stdarg.h>
|
|
#include <stdarg.h>
|
|
|
va_list ap1,ap2;
|
|
va_list ap1,ap2;
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
va_copy(ap1,ap2);
|
|
va_copy(ap1,ap2);
|
|
|
;
|
|
;
|
|
@@ -6878,7 +6880,7 @@ else
|
|
|
#include <stdarg.h>
|
|
#include <stdarg.h>
|
|
|
va_list ap1,ap2;
|
|
va_list ap1,ap2;
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
__va_copy(ap1,ap2);
|
|
__va_copy(ap1,ap2);
|
|
|
;
|
|
;
|
|
@@ -7011,9 +7013,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
#ifdef __cplusplus
|
|
#ifdef __cplusplus
|
|
|
extern "C"
|
|
extern "C"
|
|
|
#endif
|
|
#endif
|
|
|
-char getopt_long ();
|
|
|
|
|
|
|
+char getopt_long (void);
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
return getopt_long ();
|
|
return getopt_long ();
|
|
|
;
|
|
;
|
|
@@ -7051,7 +7053,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
return main ();
|
|
return main ();
|
|
|
;
|
|
;
|
|
@@ -7089,9 +7091,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
#ifdef __cplusplus
|
|
#ifdef __cplusplus
|
|
|
extern "C"
|
|
extern "C"
|
|
|
#endif
|
|
#endif
|
|
|
-char socket ();
|
|
|
|
|
|
|
+char socket (void);
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
return socket ();
|
|
return socket ();
|
|
|
;
|
|
;
|
|
@@ -7143,7 +7145,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
return main ();
|
|
return main ();
|
|
|
;
|
|
;
|
|
@@ -7172,7 +7174,7 @@ $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
|
|
|
#include <tcpd.h>
|
|
#include <tcpd.h>
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
int a = rfc931_timeout;
|
|
int a = rfc931_timeout;
|
|
|
;
|
|
;
|
|
@@ -7240,7 +7242,7 @@ else
|
|
|
int getpeername (int, $arg2 *, $t *);
|
|
int getpeername (int, $arg2 *, $t *);
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
$t len;
|
|
$t len;
|
|
@@ -7286,7 +7288,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
#include <sys/socket.h>
|
|
#include <sys/socket.h>
|
|
|
|
|
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
int a = send(1, (const void *)0, (size_t *) 0, (int *) 0);
|
|
int a = send(1, (const void *)0, (size_t *) 0, (int *) 0);
|
|
|
;
|
|
;
|
|
@@ -7344,7 +7346,6 @@ try_pkg_config=1
|
|
|
ssl_dir=
|
|
ssl_dir=
|
|
|
ssl_inc_dir=
|
|
ssl_inc_dir=
|
|
|
ssl_lib_dir=
|
|
ssl_lib_dir=
|
|
|
-SSL_INC_DIR=
|
|
|
|
|
SSL_INC_PREFIX=
|
|
SSL_INC_PREFIX=
|
|
|
SSL_HDR=
|
|
SSL_HDR=
|
|
|
SSL_LIB_DIR=
|
|
SSL_LIB_DIR=
|
|
@@ -7357,6 +7358,15 @@ SSL_LIB_DIR=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+SSL_DH_HEADER_MAKE_OLD="../include/dh.h:
|
|
|
|
|
+ \$(SSLBIN) dhparam -C 2048 | awk '/^-----/ {exit} {print}' > \$@"
|
|
|
|
|
+SSL_DH_HEADER_MAKE_NEW="../include/dh.h: generate_dh_params
|
|
|
|
|
+ ./generate_dh_params > \$@
|
|
|
|
|
+
|
|
|
|
|
+generate_dh_params: \$(srcdir)/generate_dh_params.c
|
|
|
|
|
+ \$(CC) \$(CFLAGS) -o \$@ \$(srcdir)/generate_dh_params.c \$(LDFLAGS)"
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
# gnutls/openssl.h
|
|
# gnutls/openssl.h
|
|
|
# nss_compat_ossl/nss_compat_ossl.h
|
|
# nss_compat_ossl/nss_compat_ossl.h
|
|
|
|
|
|
|
@@ -7380,6 +7390,15 @@ if test "${with_ssl_lib+set}" = set; then :
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+#auto_dh=yes
|
|
|
|
|
+# Check whether --enable-auto_dh was given.
|
|
|
|
|
+if test "${enable_auto_dh+set}" = set; then :
|
|
|
|
|
+ enableval=$enable_auto_dh; auto_dh=no
|
|
|
|
|
+else
|
|
|
|
|
+ auto_dh=yes
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
if test x$ssl_inc_dir != x -o x$ssl_lib_dir != x; then
|
|
if test x$ssl_inc_dir != x -o x$ssl_lib_dir != x; then
|
|
|
try_pkg_config=0
|
|
try_pkg_config=0
|
|
|
fi
|
|
fi
|
|
@@ -7475,7 +7494,8 @@ $as_echo "found Kerberos include files in $kerbdir" >&6; }
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# First, try using pkg_config
|
|
# First, try using pkg_config
|
|
|
- if test -n "$ac_tool_prefix"; then
|
|
|
|
|
|
|
+ if test $try_pkg_config -ne 0 ; then
|
|
|
|
|
+ if test -n "$ac_tool_prefix"; then
|
|
|
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
|
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
|
|
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
|
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
@@ -7567,6 +7587,7 @@ else
|
|
|
PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
|
|
PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
+ fi
|
|
|
if test x"$PKG_CONFIG" != x -a $try_pkg_config -ne 0 ; then
|
|
if test x"$PKG_CONFIG" != x -a $try_pkg_config -ne 0 ; then
|
|
|
cflags=`$PKG_CONFIG $SSL_TYPE --cflags-only-I 2>/dev/null`
|
|
cflags=`$PKG_CONFIG $SSL_TYPE --cflags-only-I 2>/dev/null`
|
|
|
if test $? -eq 0; then
|
|
if test $? -eq 0; then
|
|
@@ -7592,10 +7613,17 @@ $as_echo_n "checking for SSL headers... " >&6; }
|
|
|
continue
|
|
continue
|
|
|
fi
|
|
fi
|
|
|
ssldir="$dir"
|
|
ssldir="$dir"
|
|
|
|
|
+ sslincdir="$dir"
|
|
|
|
|
+ if test -f "$dir/$SSL_INC_PREFIX/$SSL_HDR"; then
|
|
|
|
|
+ found_ssl=yes
|
|
|
|
|
+ CFLAGS="$CFLAGS -I$dir"
|
|
|
|
|
+ ssldir="$dir/.."
|
|
|
|
|
+ break
|
|
|
|
|
+ fi
|
|
|
if test -f "$dir/include/$SSL_INC_PREFIX/$SSL_HDR"; then
|
|
if test -f "$dir/include/$SSL_INC_PREFIX/$SSL_HDR"; then
|
|
|
found_ssl=yes
|
|
found_ssl=yes
|
|
|
- CFLAGS="$CFLAGS -I$dir/include/$SSL_INC_PREFIX -I$ssldir/include"
|
|
|
|
|
- SSL_INC_DIR="$dir/include/$SSL_INC_PREFIX"
|
|
|
|
|
|
|
+ CFLAGS="$CFLAGS -I$dir/include"
|
|
|
|
|
+ sslincdir="$dir/include"
|
|
|
break
|
|
break
|
|
|
fi
|
|
fi
|
|
|
if test -f "$dir/include/$SSL_HDR"; then
|
|
if test -f "$dir/include/$SSL_HDR"; then
|
|
@@ -7604,21 +7632,13 @@ $as_echo_n "checking for SSL headers... " >&6; }
|
|
|
SSL_INC_PREFIX=""
|
|
SSL_INC_PREFIX=""
|
|
|
fi
|
|
fi
|
|
|
CFLAGS="$CFLAGS -I$dir/include"
|
|
CFLAGS="$CFLAGS -I$dir/include"
|
|
|
- SSL_INC_DIR="$dir/include"
|
|
|
|
|
|
|
+ sslincdir="$dir/include"
|
|
|
break
|
|
break
|
|
|
fi
|
|
fi
|
|
|
if test -f "$dir/$SSL_HDR"; then
|
|
if test -f "$dir/$SSL_HDR"; then
|
|
|
found_ssl=yes
|
|
found_ssl=yes
|
|
|
SSL_INC_PREFIX=""
|
|
SSL_INC_PREFIX=""
|
|
|
CFLAGS="$CFLAGS -I$dir"
|
|
CFLAGS="$CFLAGS -I$dir"
|
|
|
- SSL_INC_DIR="$dir"
|
|
|
|
|
- break
|
|
|
|
|
- fi
|
|
|
|
|
- if test -f "$dir/$SSL_INC_PREFIX/$SSL_HDR"; then
|
|
|
|
|
- found_ssl=yes
|
|
|
|
|
- CFLAGS="$CFLAGS -I$dir/$SSL_INC_PREFIX"
|
|
|
|
|
- SSL_INC_DIR="$dir/$SSL_INC_PREFIX"
|
|
|
|
|
- ssldir="$dir/.."
|
|
|
|
|
break
|
|
break
|
|
|
fi
|
|
fi
|
|
|
done
|
|
done
|
|
@@ -7626,8 +7646,8 @@ $as_echo_n "checking for SSL headers... " >&6; }
|
|
|
if test x_$found_ssl != x_yes; then
|
|
if test x_$found_ssl != x_yes; then
|
|
|
as_fn_error $? "Cannot find ssl headers" "$LINENO" 5
|
|
as_fn_error $? "Cannot find ssl headers" "$LINENO" 5
|
|
|
else
|
|
else
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
|
|
|
|
|
-$as_echo "found in $ssldir" >&6; }
|
|
|
|
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $sslincdir" >&5
|
|
|
|
|
+$as_echo "found in $sslincdir" >&6; }
|
|
|
|
|
|
|
|
# Now try and find SSL libraries
|
|
# Now try and find SSL libraries
|
|
|
|
|
|
|
@@ -7647,13 +7667,18 @@ $as_echo_n "checking for SSL libraries... " >&6; }
|
|
|
elif test "`uname -s`" = "AIX" ; then
|
|
elif test "`uname -s`" = "AIX" ; then
|
|
|
soext="a"
|
|
soext="a"
|
|
|
else
|
|
else
|
|
|
- soext="so"
|
|
|
|
|
|
|
+ soext="so a"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
for dir in $ssl_lib_dirs; do
|
|
for dir in $ssl_lib_dirs; do
|
|
|
- if test -f "$dir/$ssl_lib.$soext"; then
|
|
|
|
|
- found_ssl=yes
|
|
|
|
|
- SSL_LIB_DIR="$dir"
|
|
|
|
|
|
|
+ for ext in $soext; do
|
|
|
|
|
+ if test -f "$dir/$ssl_lib.$ext"; then
|
|
|
|
|
+ found_ssl=yes
|
|
|
|
|
+ SSL_LIB_DIR="$dir"
|
|
|
|
|
+ break
|
|
|
|
|
+ fi
|
|
|
|
|
+ done
|
|
|
|
|
+ if test x_$found_ssl == x_yes; then
|
|
|
break
|
|
break
|
|
|
fi
|
|
fi
|
|
|
done
|
|
done
|
|
@@ -7664,7 +7689,7 @@ $as_echo_n "checking for SSL libraries... " >&6; }
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $SSL_LIB_DIR" >&5
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $SSL_LIB_DIR" >&5
|
|
|
$as_echo "found in $SSL_LIB_DIR" >&6; }
|
|
$as_echo "found in $SSL_LIB_DIR" >&6; }
|
|
|
|
|
|
|
|
- LDFLAGS="$LDFLAGS -L$SSL_LIB_DIR";
|
|
|
|
|
|
|
+ LDFLAGS="$LDFLAGS -L$SSL_LIB_DIR -Wl,-rpath,$SSL_LIB_DIR";
|
|
|
LIBS="$LIBS -l`echo $ssl_lib | sed -e 's/^lib//'` -lcrypto";
|
|
LIBS="$LIBS -l`echo $ssl_lib | sed -e 's/^lib//'` -lcrypto";
|
|
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
cat >>confdefs.h <<_ACEOF
|
|
@@ -7688,7 +7713,7 @@ $as_echo_n "checking whether compiling and linking against SSL works... " >&6; }
|
|
|
/* end confdefs.h. */
|
|
/* end confdefs.h. */
|
|
|
#include <${SSL_INC_PREFIX}${SSL_HDR}>
|
|
#include <${SSL_INC_PREFIX}${SSL_HDR}>
|
|
|
int
|
|
int
|
|
|
-main ()
|
|
|
|
|
|
|
+main (void)
|
|
|
{
|
|
{
|
|
|
SSL_new(NULL)
|
|
SSL_new(NULL)
|
|
|
;
|
|
;
|
|
@@ -7713,10 +7738,56 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
|
|
|
|
if test x$found_ssl = xyes -a x$need_dh = xyes; then
|
|
if test x$found_ssl = xyes -a x$need_dh = xyes; then
|
|
|
|
|
|
|
|
- # Find the openssl program
|
|
|
|
|
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
+/* end confdefs.h. */
|
|
|
|
|
+
|
|
|
|
|
+ #include <stdio.h>
|
|
|
|
|
+ #include <${SSL_INC_PREFIX}${SSL_HDR}>
|
|
|
|
|
|
|
|
- if test x$need_dh = xyes; then
|
|
|
|
|
- # Extract the first word of "openssl", so it can be a program name with args.
|
|
|
|
|
|
|
+int
|
|
|
|
|
+main (void)
|
|
|
|
|
+{
|
|
|
|
|
+
|
|
|
|
|
+ #ifdef OPENSSL_VERSION_MAJOR
|
|
|
|
|
+ printf("%i %i", OPENSSL_VERSION_MAJOR, OPENSSL_VERSION_MINOR);
|
|
|
|
|
+ #else
|
|
|
|
|
+ printf("%i %i", (int)((OPENSSL_VERSION_NUMBER >> 28) & 0x0f), (int)((OPENSSL_VERSION_NUMBER >> 20) & 0xff));
|
|
|
|
|
+ #endif
|
|
|
|
|
+
|
|
|
|
|
+ ;
|
|
|
|
|
+ return 0;
|
|
|
|
|
+}
|
|
|
|
|
+_ACEOF
|
|
|
|
|
+if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
|
+
|
|
|
|
|
+ nagios_ssl_version=$(./conftest$EXEEXT)
|
|
|
|
|
+ SSL_MAJOR=$(echo $nagios_ssl_version | cut -d' ' -f1)
|
|
|
|
|
+ SSL_MINOR=$(echo $nagios_ssl_version | cut -d' ' -f2)
|
|
|
|
|
+
|
|
|
|
|
+else
|
|
|
|
|
+ as_fn_error $? "Failed to detect OpenSSL version!" "$LINENO" 5
|
|
|
|
|
+fi
|
|
|
|
|
+rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
|
|
+
|
|
|
|
|
+ if test x$auto_dh = xyes -a $SSL_MAJOR -lt 1 -o \( $SSL_MAJOR -eq 1 -a $SSL_MINOR -lt 1 \); then
|
|
|
|
|
+ # auto_dh not available before v1.1.0
|
|
|
|
|
+ auto_dh=no
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
+ if test x$auto_dh = xyes; then
|
|
|
|
|
+ $as_echo "#define AUTO_SSL_DH 1" >>confdefs.h
|
|
|
|
|
+
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if test x$need_dh = xyes ; then
|
|
|
|
|
+ if test x$auto_dh = xno ; then
|
|
|
|
|
+ if test $SSL_MAJOR -lt 3 ; then
|
|
|
|
|
+ # Find the openssl program
|
|
|
|
|
+ # Only need openssl binary if we're not using auto or using version less than 3.0
|
|
|
|
|
+ # Extract the first word of "openssl", so it can be a program name with args.
|
|
|
set dummy openssl; ac_word=$2
|
|
set dummy openssl; ac_word=$2
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
@@ -7729,7 +7800,7 @@ else
|
|
|
;;
|
|
;;
|
|
|
*)
|
|
*)
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
-for as_dir in $ssl_dir/sbin$PATH_SEPARATOR$ssl_dir/bin$PATH_SEPARATOR$PATH
|
|
|
|
|
|
|
+for as_dir in ${ssldir}/sbin${PATH_SEPARATOR}${ssldir}/bin${PATH_SEPARATOR}${PATH}
|
|
|
do
|
|
do
|
|
|
IFS=$as_save_IFS
|
|
IFS=$as_save_IFS
|
|
|
test -z "$as_dir" && as_dir=.
|
|
test -z "$as_dir" && as_dir=.
|
|
@@ -7757,31 +7828,19 @@ $as_echo "no" >&6; }
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
- $as_echo "#define USE_SSL_DH 1" >>confdefs.h
|
|
|
|
|
-
|
|
|
|
|
- # Generate DH parameters
|
|
|
|
|
- if test -f "$sslbin"; then
|
|
|
|
|
- echo ""
|
|
|
|
|
- echo "*** Generating DH Parameters for SSL/TLS ***"
|
|
|
|
|
- # OpenSSL 3 removes dhparam -C
|
|
|
|
|
- # check version and use our own parser if needed
|
|
|
|
|
- nagios_ssl_major_version=`$sslbin version | cut -d' ' -f2 | cut -d. -f1`
|
|
|
|
|
-
|
|
|
|
|
- test -d include || mkdir include
|
|
|
|
|
- if test "x$nagios_ssl_major_version" = "x3"; then
|
|
|
|
|
|
|
|
|
|
-cat >>confdefs.h <<_ACEOF
|
|
|
|
|
-#define OPENSSL_V3 1
|
|
|
|
|
-_ACEOF
|
|
|
|
|
|
|
+ SSL_DH_HEADER_MAKE=${SSL_DH_HEADER_MAKE_OLD}
|
|
|
|
|
|
|
|
- test -d src || mkdir src
|
|
|
|
|
- $CC ${srcdir}/src/print_c_code.c -o src/print_c_code
|
|
|
|
|
- $sslbin dhparam -text 2048 | ./src/print_c_code > include/dh.h
|
|
|
|
|
else
|
|
else
|
|
|
- # awk to strip off meta data at bottom of dhparam output
|
|
|
|
|
- $sslbin dhparam -C 2048 | awk '/^-----/ {exit} {print}' > include/dh.h
|
|
|
|
|
|
|
+ SSL_DH_HEADER_MAKE=${SSL_DH_HEADER_MAKE_NEW}
|
|
|
|
|
+
|
|
|
fi
|
|
fi
|
|
|
|
|
+
|
|
|
|
|
+ SSL_DH_HEADER=../include/dh.h
|
|
|
|
|
+
|
|
|
fi
|
|
fi
|
|
|
|
|
+ $as_echo "#define USE_SSL_DH 1" >>confdefs.h
|
|
|
|
|
+
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|