~ubuntu-branches/ubuntu/precise/nagios-nrpe/precise-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2008-08-06 20:33:57 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080806203357-28eyihc0f7knwc15
Tags: 2.12-1
* Support an nrpe.d config directory in addition to nrpe_local.cfg 
  (Closes: #474333)
* Add myself to uploaders
* Add watch file 
* New upstream version (Closes: #475081)
* Acknowledge NMU from Chris Lamb (Closes: #484412) 
* Recommend Nagios 3 instead of Nagios 2 
* Update copyright file

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
# include <unistd.h>
311
311
#endif"
312
312
 
313
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE CPP EGREP OTHERLIBS SOCKETLIBS LIBWRAPLIBS HAVE_SSL nrpe_user nrpe_group NRPE_INSTALL_OPTS nrpe_port nagios_user nagios_group NAGIOS_INSTALL_OPTS PERL LIBOBJS LTLIBOBJS'
 
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE CPP EGREP SNPRINTF_O OTHERLIBS SOCKETLIBS LIBWRAPLIBS HAVE_SSL log_facility nrpe_user nrpe_group NRPE_INSTALL_OPTS nrpe_port nagios_user nagios_group NAGIOS_INSTALL_OPTS PERL LIBOBJS LTLIBOBJS'
314
314
ac_subst_files=''
315
315
 
316
316
# Initialize some variables set by options.
853
853
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
854
854
--with-ssl=DIR sets location of the SSL installation
855
855
--with-ssl-inc=DIR sets location of the SSL include files
 
856
--with-ssl-lib=DIR sets location of the SSL libraries
856
857
--with-kerberos-inc=DIR sets location of the Kerberos include files
 
858
--with-log-facility=<facility> sets NRPE syslog facility
857
859
--with-nrpe-user=<user> sets user name to run NRPE
858
860
--with-nrpe-group=<group> sets group name to run NRPE
859
861
--with-nrpe-port=<port> sets port number for NRPE to listen on
1296
1298
 
1297
1299
 
1298
1300
PKG_NAME=nrpe
1299
 
PKG_VERSION="2.8.1"
 
1301
PKG_VERSION="2.12"
1300
1302
PKG_HOME_URL="http://www.nagios.org/"
1301
 
PKG_REL_DATE="05-10-2007"
 
1303
PKG_REL_DATE="03-10-2008"
1302
1304
 
1303
1305
ac_aux_dir=
1304
1306
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5279
5281
fi
5280
5282
 
5281
5283
 
 
5284
echo "$as_me:$LINENO: checking for va_copy" >&5
 
5285
echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
 
5286
if test "${ac_cv_HAVE_VA_COPY+set}" = set; then
 
5287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5288
else
 
5289
 
 
5290
cat >conftest.$ac_ext <<_ACEOF
 
5291
/* confdefs.h.  */
 
5292
_ACEOF
 
5293
cat confdefs.h >>conftest.$ac_ext
 
5294
cat >>conftest.$ac_ext <<_ACEOF
 
5295
/* end confdefs.h.  */
 
5296
#include <stdarg.h>
 
5297
va_list ap1,ap2;
 
5298
int
 
5299
main ()
 
5300
{
 
5301
va_copy(ap1,ap2);
 
5302
  ;
 
5303
  return 0;
 
5304
}
 
5305
_ACEOF
 
5306
rm -f conftest.$ac_objext conftest$ac_exeext
 
5307
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5308
  (eval $ac_link) 2>conftest.er1
 
5309
  ac_status=$?
 
5310
  grep -v '^ *+' conftest.er1 >conftest.err
 
5311
  rm -f conftest.er1
 
5312
  cat conftest.err >&5
 
5313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5314
  (exit $ac_status); } &&
 
5315
         { ac_try='test -z "$ac_c_werror_flag"
 
5316
                         || test ! -s conftest.err'
 
5317
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5318
  (eval $ac_try) 2>&5
 
5319
  ac_status=$?
 
5320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5321
  (exit $ac_status); }; } &&
 
5322
         { ac_try='test -s conftest$ac_exeext'
 
5323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5324
  (eval $ac_try) 2>&5
 
5325
  ac_status=$?
 
5326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5327
  (exit $ac_status); }; }; then
 
5328
  ac_cv_HAVE_VA_COPY=yes
 
5329
else
 
5330
  echo "$as_me: failed program was:" >&5
 
5331
sed 's/^/| /' conftest.$ac_ext >&5
 
5332
 
 
5333
ac_cv_HAVE_VA_COPY=no
 
5334
fi
 
5335
rm -f conftest.err conftest.$ac_objext \
 
5336
      conftest$ac_exeext conftest.$ac_ext
 
5337
fi
 
5338
echo "$as_me:$LINENO: result: $ac_cv_HAVE_VA_COPY" >&5
 
5339
echo "${ECHO_T}$ac_cv_HAVE_VA_COPY" >&6
 
5340
if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then
 
5341
 
 
5342
cat >>confdefs.h <<\_ACEOF
 
5343
#define HAVE_VA_COPY 1
 
5344
_ACEOF
 
5345
 
 
5346
else
 
5347
    echo "$as_me:$LINENO: checking for __va_copy" >&5
 
5348
echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
 
5349
if test "${ac_cv_HAVE___VA_COPY+set}" = set; then
 
5350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5351
else
 
5352
 
 
5353
    cat >conftest.$ac_ext <<_ACEOF
 
5354
/* confdefs.h.  */
 
5355
_ACEOF
 
5356
cat confdefs.h >>conftest.$ac_ext
 
5357
cat >>conftest.$ac_ext <<_ACEOF
 
5358
/* end confdefs.h.  */
 
5359
#include <stdarg.h>
 
5360
    va_list ap1,ap2;
 
5361
int
 
5362
main ()
 
5363
{
 
5364
__va_copy(ap1,ap2);
 
5365
  ;
 
5366
  return 0;
 
5367
}
 
5368
_ACEOF
 
5369
rm -f conftest.$ac_objext conftest$ac_exeext
 
5370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5371
  (eval $ac_link) 2>conftest.er1
 
5372
  ac_status=$?
 
5373
  grep -v '^ *+' conftest.er1 >conftest.err
 
5374
  rm -f conftest.er1
 
5375
  cat conftest.err >&5
 
5376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5377
  (exit $ac_status); } &&
 
5378
         { ac_try='test -z "$ac_c_werror_flag"
 
5379
                         || test ! -s conftest.err'
 
5380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5381
  (eval $ac_try) 2>&5
 
5382
  ac_status=$?
 
5383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5384
  (exit $ac_status); }; } &&
 
5385
         { ac_try='test -s conftest$ac_exeext'
 
5386
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5387
  (eval $ac_try) 2>&5
 
5388
  ac_status=$?
 
5389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5390
  (exit $ac_status); }; }; then
 
5391
  ac_cv_HAVE___VA_COPY=yes
 
5392
else
 
5393
  echo "$as_me: failed program was:" >&5
 
5394
sed 's/^/| /' conftest.$ac_ext >&5
 
5395
 
 
5396
ac_cv_HAVE___VA_COPY=no
 
5397
fi
 
5398
rm -f conftest.err conftest.$ac_objext \
 
5399
      conftest$ac_exeext conftest.$ac_ext
 
5400
fi
 
5401
echo "$as_me:$LINENO: result: $ac_cv_HAVE___VA_COPY" >&5
 
5402
echo "${ECHO_T}$ac_cv_HAVE___VA_COPY" >&6
 
5403
    if test x"$ac_cv_HAVE___VA_COPY" = x"yes"; then
 
5404
 
 
5405
cat >>confdefs.h <<\_ACEOF
 
5406
#define HAVE___VA_COPY 1
 
5407
_ACEOF
 
5408
 
 
5409
    fi
 
5410
fi
 
5411
 
 
5412
echo "$as_me:$LINENO: checking for vsnprintf" >&5
 
5413
echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
 
5414
if test "${ac_cv_func_vsnprintf+set}" = set; then
 
5415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5416
else
 
5417
  cat >conftest.$ac_ext <<_ACEOF
 
5418
/* confdefs.h.  */
 
5419
_ACEOF
 
5420
cat confdefs.h >>conftest.$ac_ext
 
5421
cat >>conftest.$ac_ext <<_ACEOF
 
5422
/* end confdefs.h.  */
 
5423
/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
 
5424
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5425
#define vsnprintf innocuous_vsnprintf
 
5426
 
 
5427
/* System header to define __stub macros and hopefully few prototypes,
 
5428
    which can conflict with char vsnprintf (); below.
 
5429
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5430
    <limits.h> exists even on freestanding compilers.  */
 
5431
 
 
5432
#ifdef __STDC__
 
5433
# include <limits.h>
 
5434
#else
 
5435
# include <assert.h>
 
5436
#endif
 
5437
 
 
5438
#undef vsnprintf
 
5439
 
 
5440
/* Override any gcc2 internal prototype to avoid an error.  */
 
5441
#ifdef __cplusplus
 
5442
extern "C"
 
5443
{
 
5444
#endif
 
5445
/* We use char because int might match the return type of a gcc2
 
5446
   builtin and then its argument prototype would still apply.  */
 
5447
char vsnprintf ();
 
5448
/* The GNU C library defines this for functions which it implements
 
5449
    to always fail with ENOSYS.  Some functions are actually named
 
5450
    something starting with __ and the normal name is an alias.  */
 
5451
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
 
5452
choke me
 
5453
#else
 
5454
char (*f) () = vsnprintf;
 
5455
#endif
 
5456
#ifdef __cplusplus
 
5457
}
 
5458
#endif
 
5459
 
 
5460
int
 
5461
main ()
 
5462
{
 
5463
return f != vsnprintf;
 
5464
  ;
 
5465
  return 0;
 
5466
}
 
5467
_ACEOF
 
5468
rm -f conftest.$ac_objext conftest$ac_exeext
 
5469
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5470
  (eval $ac_link) 2>conftest.er1
 
5471
  ac_status=$?
 
5472
  grep -v '^ *+' conftest.er1 >conftest.err
 
5473
  rm -f conftest.er1
 
5474
  cat conftest.err >&5
 
5475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5476
  (exit $ac_status); } &&
 
5477
         { ac_try='test -z "$ac_c_werror_flag"
 
5478
                         || test ! -s conftest.err'
 
5479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5480
  (eval $ac_try) 2>&5
 
5481
  ac_status=$?
 
5482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5483
  (exit $ac_status); }; } &&
 
5484
         { ac_try='test -s conftest$ac_exeext'
 
5485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5486
  (eval $ac_try) 2>&5
 
5487
  ac_status=$?
 
5488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5489
  (exit $ac_status); }; }; then
 
5490
  ac_cv_func_vsnprintf=yes
 
5491
else
 
5492
  echo "$as_me: failed program was:" >&5
 
5493
sed 's/^/| /' conftest.$ac_ext >&5
 
5494
 
 
5495
ac_cv_func_vsnprintf=no
 
5496
fi
 
5497
rm -f conftest.err conftest.$ac_objext \
 
5498
      conftest$ac_exeext conftest.$ac_ext
 
5499
fi
 
5500
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
 
5501
echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
 
5502
if test $ac_cv_func_vsnprintf = yes; then
 
5503
  :
 
5504
else
 
5505
  SNPRINTF_O=./snprintf.o
 
5506
fi
 
5507
 
 
5508
echo "$as_me:$LINENO: checking for snprintf" >&5
 
5509
echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
 
5510
if test "${ac_cv_func_snprintf+set}" = set; then
 
5511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5512
else
 
5513
  cat >conftest.$ac_ext <<_ACEOF
 
5514
/* confdefs.h.  */
 
5515
_ACEOF
 
5516
cat confdefs.h >>conftest.$ac_ext
 
5517
cat >>conftest.$ac_ext <<_ACEOF
 
5518
/* end confdefs.h.  */
 
5519
/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
 
5520
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5521
#define snprintf innocuous_snprintf
 
5522
 
 
5523
/* System header to define __stub macros and hopefully few prototypes,
 
5524
    which can conflict with char snprintf (); below.
 
5525
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5526
    <limits.h> exists even on freestanding compilers.  */
 
5527
 
 
5528
#ifdef __STDC__
 
5529
# include <limits.h>
 
5530
#else
 
5531
# include <assert.h>
 
5532
#endif
 
5533
 
 
5534
#undef snprintf
 
5535
 
 
5536
/* Override any gcc2 internal prototype to avoid an error.  */
 
5537
#ifdef __cplusplus
 
5538
extern "C"
 
5539
{
 
5540
#endif
 
5541
/* We use char because int might match the return type of a gcc2
 
5542
   builtin and then its argument prototype would still apply.  */
 
5543
char snprintf ();
 
5544
/* The GNU C library defines this for functions which it implements
 
5545
    to always fail with ENOSYS.  Some functions are actually named
 
5546
    something starting with __ and the normal name is an alias.  */
 
5547
#if defined (__stub_snprintf) || defined (__stub___snprintf)
 
5548
choke me
 
5549
#else
 
5550
char (*f) () = snprintf;
 
5551
#endif
 
5552
#ifdef __cplusplus
 
5553
}
 
5554
#endif
 
5555
 
 
5556
int
 
5557
main ()
 
5558
{
 
5559
return f != snprintf;
 
5560
  ;
 
5561
  return 0;
 
5562
}
 
5563
_ACEOF
 
5564
rm -f conftest.$ac_objext conftest$ac_exeext
 
5565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5566
  (eval $ac_link) 2>conftest.er1
 
5567
  ac_status=$?
 
5568
  grep -v '^ *+' conftest.er1 >conftest.err
 
5569
  rm -f conftest.er1
 
5570
  cat conftest.err >&5
 
5571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5572
  (exit $ac_status); } &&
 
5573
         { ac_try='test -z "$ac_c_werror_flag"
 
5574
                         || test ! -s conftest.err'
 
5575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5576
  (eval $ac_try) 2>&5
 
5577
  ac_status=$?
 
5578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5579
  (exit $ac_status); }; } &&
 
5580
         { ac_try='test -s conftest$ac_exeext'
 
5581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5582
  (eval $ac_try) 2>&5
 
5583
  ac_status=$?
 
5584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5585
  (exit $ac_status); }; }; then
 
5586
  ac_cv_func_snprintf=yes
 
5587
else
 
5588
  echo "$as_me: failed program was:" >&5
 
5589
sed 's/^/| /' conftest.$ac_ext >&5
 
5590
 
 
5591
ac_cv_func_snprintf=no
 
5592
fi
 
5593
rm -f conftest.err conftest.$ac_objext \
 
5594
      conftest$ac_exeext conftest.$ac_ext
 
5595
fi
 
5596
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
 
5597
echo "${ECHO_T}$ac_cv_func_snprintf" >&6
 
5598
if test $ac_cv_func_snprintf = yes; then
 
5599
  :
 
5600
else
 
5601
  SNPRINTF_O=./snprintf.o
 
5602
fi
 
5603
 
 
5604
echo "$as_me:$LINENO: checking for asprintf" >&5
 
5605
echo $ECHO_N "checking for asprintf... $ECHO_C" >&6
 
5606
if test "${ac_cv_func_asprintf+set}" = set; then
 
5607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5608
else
 
5609
  cat >conftest.$ac_ext <<_ACEOF
 
5610
/* confdefs.h.  */
 
5611
_ACEOF
 
5612
cat confdefs.h >>conftest.$ac_ext
 
5613
cat >>conftest.$ac_ext <<_ACEOF
 
5614
/* end confdefs.h.  */
 
5615
/* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
 
5616
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5617
#define asprintf innocuous_asprintf
 
5618
 
 
5619
/* System header to define __stub macros and hopefully few prototypes,
 
5620
    which can conflict with char asprintf (); below.
 
5621
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5622
    <limits.h> exists even on freestanding compilers.  */
 
5623
 
 
5624
#ifdef __STDC__
 
5625
# include <limits.h>
 
5626
#else
 
5627
# include <assert.h>
 
5628
#endif
 
5629
 
 
5630
#undef asprintf
 
5631
 
 
5632
/* Override any gcc2 internal prototype to avoid an error.  */
 
5633
#ifdef __cplusplus
 
5634
extern "C"
 
5635
{
 
5636
#endif
 
5637
/* We use char because int might match the return type of a gcc2
 
5638
   builtin and then its argument prototype would still apply.  */
 
5639
char asprintf ();
 
5640
/* The GNU C library defines this for functions which it implements
 
5641
    to always fail with ENOSYS.  Some functions are actually named
 
5642
    something starting with __ and the normal name is an alias.  */
 
5643
#if defined (__stub_asprintf) || defined (__stub___asprintf)
 
5644
choke me
 
5645
#else
 
5646
char (*f) () = asprintf;
 
5647
#endif
 
5648
#ifdef __cplusplus
 
5649
}
 
5650
#endif
 
5651
 
 
5652
int
 
5653
main ()
 
5654
{
 
5655
return f != asprintf;
 
5656
  ;
 
5657
  return 0;
 
5658
}
 
5659
_ACEOF
 
5660
rm -f conftest.$ac_objext conftest$ac_exeext
 
5661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5662
  (eval $ac_link) 2>conftest.er1
 
5663
  ac_status=$?
 
5664
  grep -v '^ *+' conftest.er1 >conftest.err
 
5665
  rm -f conftest.er1
 
5666
  cat conftest.err >&5
 
5667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5668
  (exit $ac_status); } &&
 
5669
         { ac_try='test -z "$ac_c_werror_flag"
 
5670
                         || test ! -s conftest.err'
 
5671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5672
  (eval $ac_try) 2>&5
 
5673
  ac_status=$?
 
5674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5675
  (exit $ac_status); }; } &&
 
5676
         { ac_try='test -s conftest$ac_exeext'
 
5677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5678
  (eval $ac_try) 2>&5
 
5679
  ac_status=$?
 
5680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5681
  (exit $ac_status); }; }; then
 
5682
  ac_cv_func_asprintf=yes
 
5683
else
 
5684
  echo "$as_me: failed program was:" >&5
 
5685
sed 's/^/| /' conftest.$ac_ext >&5
 
5686
 
 
5687
ac_cv_func_asprintf=no
 
5688
fi
 
5689
rm -f conftest.err conftest.$ac_objext \
 
5690
      conftest$ac_exeext conftest.$ac_ext
 
5691
fi
 
5692
echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
 
5693
echo "${ECHO_T}$ac_cv_func_asprintf" >&6
 
5694
if test $ac_cv_func_asprintf = yes; then
 
5695
  :
 
5696
else
 
5697
  SNPRINTF_O=./snprintf.o
 
5698
fi
 
5699
 
 
5700
echo "$as_me:$LINENO: checking for vasprintf" >&5
 
5701
echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6
 
5702
if test "${ac_cv_func_vasprintf+set}" = set; then
 
5703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5704
else
 
5705
  cat >conftest.$ac_ext <<_ACEOF
 
5706
/* confdefs.h.  */
 
5707
_ACEOF
 
5708
cat confdefs.h >>conftest.$ac_ext
 
5709
cat >>conftest.$ac_ext <<_ACEOF
 
5710
/* end confdefs.h.  */
 
5711
/* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
 
5712
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5713
#define vasprintf innocuous_vasprintf
 
5714
 
 
5715
/* System header to define __stub macros and hopefully few prototypes,
 
5716
    which can conflict with char vasprintf (); below.
 
5717
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5718
    <limits.h> exists even on freestanding compilers.  */
 
5719
 
 
5720
#ifdef __STDC__
 
5721
# include <limits.h>
 
5722
#else
 
5723
# include <assert.h>
 
5724
#endif
 
5725
 
 
5726
#undef vasprintf
 
5727
 
 
5728
/* Override any gcc2 internal prototype to avoid an error.  */
 
5729
#ifdef __cplusplus
 
5730
extern "C"
 
5731
{
 
5732
#endif
 
5733
/* We use char because int might match the return type of a gcc2
 
5734
   builtin and then its argument prototype would still apply.  */
 
5735
char vasprintf ();
 
5736
/* The GNU C library defines this for functions which it implements
 
5737
    to always fail with ENOSYS.  Some functions are actually named
 
5738
    something starting with __ and the normal name is an alias.  */
 
5739
#if defined (__stub_vasprintf) || defined (__stub___vasprintf)
 
5740
choke me
 
5741
#else
 
5742
char (*f) () = vasprintf;
 
5743
#endif
 
5744
#ifdef __cplusplus
 
5745
}
 
5746
#endif
 
5747
 
 
5748
int
 
5749
main ()
 
5750
{
 
5751
return f != vasprintf;
 
5752
  ;
 
5753
  return 0;
 
5754
}
 
5755
_ACEOF
 
5756
rm -f conftest.$ac_objext conftest$ac_exeext
 
5757
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5758
  (eval $ac_link) 2>conftest.er1
 
5759
  ac_status=$?
 
5760
  grep -v '^ *+' conftest.er1 >conftest.err
 
5761
  rm -f conftest.er1
 
5762
  cat conftest.err >&5
 
5763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5764
  (exit $ac_status); } &&
 
5765
         { ac_try='test -z "$ac_c_werror_flag"
 
5766
                         || test ! -s conftest.err'
 
5767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5768
  (eval $ac_try) 2>&5
 
5769
  ac_status=$?
 
5770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5771
  (exit $ac_status); }; } &&
 
5772
         { ac_try='test -s conftest$ac_exeext'
 
5773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5774
  (eval $ac_try) 2>&5
 
5775
  ac_status=$?
 
5776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5777
  (exit $ac_status); }; }; then
 
5778
  ac_cv_func_vasprintf=yes
 
5779
else
 
5780
  echo "$as_me: failed program was:" >&5
 
5781
sed 's/^/| /' conftest.$ac_ext >&5
 
5782
 
 
5783
ac_cv_func_vasprintf=no
 
5784
fi
 
5785
rm -f conftest.err conftest.$ac_objext \
 
5786
      conftest$ac_exeext conftest.$ac_ext
 
5787
fi
 
5788
echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
 
5789
echo "${ECHO_T}$ac_cv_func_vasprintf" >&6
 
5790
if test $ac_cv_func_vasprintf = yes; then
 
5791
  :
 
5792
else
 
5793
  SNPRINTF_O=./snprintf.o
 
5794
fi
 
5795
 
 
5796
 
 
5797
echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
 
5798
echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
 
5799
if test "${ac_cv_HAVE_C99_VSNPRINTF+set}" = set; then
 
5800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5801
else
 
5802
 
 
5803
if test "$cross_compiling" = yes; then
 
5804
  ac_cv_HAVE_C99_VSNPRINTF=cross
 
5805
else
 
5806
  cat >conftest.$ac_ext <<_ACEOF
 
5807
/* confdefs.h.  */
 
5808
_ACEOF
 
5809
cat confdefs.h >>conftest.$ac_ext
 
5810
cat >>conftest.$ac_ext <<_ACEOF
 
5811
/* end confdefs.h.  */
 
5812
 
 
5813
#include <sys/types.h>
 
5814
#include <stdarg.h>
 
5815
void foo(const char *format, ...) {
 
5816
       va_list ap;
 
5817
       int len;
 
5818
       char buf[5];
 
5819
 
 
5820
       va_start(ap, format);
 
5821
       len = vsnprintf(buf, 0, format, ap);
 
5822
       va_end(ap);
 
5823
       if (len != 5) exit(1);
 
5824
 
 
5825
       va_start(ap, format);
 
5826
       len = vsnprintf(0, 0, format, ap);
 
5827
       va_end(ap);
 
5828
       if (len != 5) exit(1);
 
5829
 
 
5830
       if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
 
5831
 
 
5832
       exit(0);
 
5833
}
 
5834
main() { foo("hello"); }
 
5835
 
 
5836
_ACEOF
 
5837
rm -f conftest$ac_exeext
 
5838
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5839
  (eval $ac_link) 2>&5
 
5840
  ac_status=$?
 
5841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5842
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5844
  (eval $ac_try) 2>&5
 
5845
  ac_status=$?
 
5846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5847
  (exit $ac_status); }; }; then
 
5848
  ac_cv_HAVE_C99_VSNPRINTF=yes
 
5849
else
 
5850
  echo "$as_me: program exited with status $ac_status" >&5
 
5851
echo "$as_me: failed program was:" >&5
 
5852
sed 's/^/| /' conftest.$ac_ext >&5
 
5853
 
 
5854
( exit $ac_status )
 
5855
ac_cv_HAVE_C99_VSNPRINTF=no
 
5856
fi
 
5857
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5858
fi
 
5859
fi
 
5860
echo "$as_me:$LINENO: result: $ac_cv_HAVE_C99_VSNPRINTF" >&5
 
5861
echo "${ECHO_T}$ac_cv_HAVE_C99_VSNPRINTF" >&6
 
5862
if test x"$ac_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
 
5863
 
 
5864
cat >>confdefs.h <<\_ACEOF
 
5865
#define HAVE_C99_VSNPRINTF 1
 
5866
_ACEOF
 
5867
 
 
5868
fi
 
5869
 
 
5870
 
 
5871
 
5282
5872
 
5283
5873
for ac_func in getopt_long
5284
5874
do
5997
6587
  check_for_ssl=yes
5998
6588
fi;
5999
6589
 
 
6590
ssl_dir=
6000
6591
ssl_inc_dir=
 
6592
ssl_lib_dir=
6001
6593
 
6002
6594
# Check whether --with-ssl or --without-ssl was given.
6003
6595
if test "${with_ssl+set}" = set; then
6015
6607
 
6016
6608
fi;
6017
6609
 
 
6610
# Check whether --with-ssl-lib or --without-ssl-lib was given.
 
6611
if test "${with_ssl_lib+set}" = set; then
 
6612
  withval="$with_ssl_lib"
 
6613
 
 
6614
        ssl_lib_dir=$withval
 
6615
 
 
6616
fi;
 
6617
 
6018
6618
# Check whether --with-kerberos-inc or --without-kerberos-inc was given.
6019
6619
if test "${with_kerberos_inc+set}" = set; then
6020
6620
  withval="$with_kerberos_inc"
6024
6624
fi;
6025
6625
 
6026
6626
if test x$check_for_ssl = xyes; then
6027
 
        echo "$as_me:$LINENO: checking for SSL" >&5
6028
 
echo $ECHO_N "checking for SSL... $ECHO_C" >&6
 
6627
        echo "$as_me:$LINENO: checking for SSL headers" >&5
 
6628
echo $ECHO_N "checking for SSL headers... $ECHO_C" >&6
6029
6629
        found_ssl=no
6030
6630
        for dir in $ssl_inc_dir $ssl_dir /usr/local/openssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr /usr/freeware/lib/openssl; do
6031
6631
                ssldir="$dir"
6032
6632
                if test -f "$dir/include/openssl/ssl.h"; then
6033
6633
                        found_ssl=yes
6034
6634
                        CFLAGS="$CFLAGS -I$dir/include/openssl -I$ssldir/include"
 
6635
                        sslincdir="$dir/include/openssl"
6035
6636
                        break
6036
6637
                fi
6037
6638
                if test -f "$dir/include/ssl.h"; then
6038
6639
                        found_ssl=yes
6039
6640
                        CFLAGS="$CFLAGS -I$dir/include"
 
6641
                        sslincdir="$dir/include"
6040
6642
                        break
6041
6643
                fi
6042
6644
                if test -f "$dir/ssl.h"; then
6043
6645
                        found_ssl=yes
6044
 
                        CFLAGS="$CFLAGS -I$dir/include"
 
6646
                        CFLAGS="$CFLAGS -I$dir"
 
6647
                        sslincdir="$dir"
6045
6648
                        ssldir="$dir/.."
6046
6649
                        break
6047
6650
                fi
6048
6651
                if test -f "$dir/openssl/ssl.h"; then
6049
6652
                        found_ssl=yes
6050
 
                        CFLAGS="$CFLAGS -I$dir/include"
 
6653
                        CFLAGS="$CFLAGS -I$dir/openssl"
 
6654
                        sslincdir="$dir/openssl"
6051
6655
                        ssldir="$dir/.."
6052
6656
                        break
6053
6657
                fi
6054
6658
        done
6055
6659
 
6056
6660
        if test x_$found_ssl != x_yes; then
6057
 
                { { echo "$as_me:$LINENO: error: Cannot find ssl libraries" >&5
 
6661
                { { echo "$as_me:$LINENO: error: Cannot find ssl headers" >&5
 
6662
echo "$as_me: error: Cannot find ssl headers" >&2;}
 
6663
   { (exit 1); exit 1; }; }
 
6664
        else
 
6665
 
 
6666
                printf "SSL headers found in $ssldir\n";
 
6667
 
 
6668
                                echo "$as_me:$LINENO: checking for SSL libraries" >&5
 
6669
echo $ECHO_N "checking for SSL libraries... $ECHO_C" >&6
 
6670
                found_ssl=no
 
6671
                for dir in $ssl_lib_dir $ssl_dir /usr/lib64 /usr/lib /usr/local/lib /usr/lib/ssl /usr/ssl/lib /usr/openssl/lib /usr/pkg/lib  /usr/freeware/lib/openssl; do
 
6672
                        ssllibdir="$dir"
 
6673
                        if test -f "$dir/libssl.so"; then
 
6674
                                found_ssl=yes
 
6675
                                break
 
6676
                        fi
 
6677
                done
 
6678
 
 
6679
                if test x_$found_ssl != x_yes; then
 
6680
                        { { echo "$as_me:$LINENO: error: Cannot find ssl libraries" >&5
6058
6681
echo "$as_me: error: Cannot find ssl libraries" >&2;}
6059
6682
   { (exit 1); exit 1; }; }
6060
 
        else
6061
 
                printf "SSL found in $ssldir\n";
6062
 
                LIBS="$LIBS -lssl -lcrypto";
6063
 
                if test x$ssl_lib_dir != x; then
6064
 
                        LDFLAGS="$LDFLAGS -L$ssl_lib_dir";
6065
6683
                else
6066
 
                        LDFLAGS="$LDFLAGS -L$ssldir/lib";
6067
 
                fi
6068
 
                cat >>confdefs.h <<_ACEOF
 
6684
                        printf "SSL libraries found in $ssllibdir\n";
 
6685
 
 
6686
                        LDFLAGS="$LDFLAGS -L$ssllibdir";
 
6687
                        LIBS="$LIBS -lssl -lcrypto";
 
6688
 
 
6689
                        cat >>confdefs.h <<_ACEOF
6069
6690
#define HAVE_SSL 1
6070
6691
_ACEOF
6071
6692
 
6072
6693
 
6073
6694
 
6074
 
                                echo ""
6075
 
                echo "*** Generating DH Parameters for SSL/TLS ***"
6076
 
                if test -f "$ssldir/sbin/openssl"; then
6077
 
                        sslbin=$ssldir/sbin/openssl
6078
 
                else
6079
 
                        sslbin=$ssldir/bin/openssl
 
6695
                                                echo ""
 
6696
                        echo "*** Generating DH Parameters for SSL/TLS ***"
 
6697
                        if test -f "$ssldir/sbin/openssl"; then
 
6698
                                sslbin=$ssldir/sbin/openssl
 
6699
                        else
 
6700
                                sslbin=$ssldir/bin/openssl
 
6701
                        fi
 
6702
                        # awk to strip off meta data at bottom of dhparam output
 
6703
                        $sslbin dhparam -C 512 | awk '/^-----/ {exit} {print}' > include/dh.h
6080
6704
                fi
6081
 
                # awk to strip off meta data at bottom of dhparam output
6082
 
                $sslbin dhparam -C 512 | awk '/^-----/ {exit} {print}' > include/dh.h
6083
6705
        fi
6084
6706
 
6085
6707
                echo "$as_me:$LINENO: checking for Kerberos include files" >&5
6108
6730
fi
6109
6731
 
6110
6732
 
 
6733
# Check whether --with-log_facility or --without-log_facility was given.
 
6734
if test "${with_log_facility+set}" = set; then
 
6735
  withval="$with_log_facility"
 
6736
  log_facility=$withval
 
6737
else
 
6738
  log_facility=daemon
 
6739
fi;
 
6740
 
 
6741
cat >>confdefs.h <<_ACEOF
 
6742
#define NRPE_LOG_FACILITY "$log_facility"
 
6743
_ACEOF
 
6744
 
 
6745
 
 
6746
 
6111
6747
# Check whether --with-nrpe_user or --without-nrpe_user was given.
6112
6748
if test "${with_nrpe_user+set}" = set; then
6113
6749
  withval="$with_nrpe_user"
6133
6769
fi;
6134
6770
 
6135
6771
 
6136
 
echo "GROUP: $nrpe_group"
6137
6772
NRPE_INSTALL_OPTS="-o $nrpe_user -g $nrpe_group"
6138
6773
 
6139
6774
 
6154
6789
# Check whether --with-nagios_group or --without-nagios_group was given.
6155
6790
if test "${with_nagios_group+set}" = set; then
6156
6791
  withval="$with_nagios_group"
6157
 
  nagios_grp=$withval
 
6792
  nagios_group=$withval
6158
6793
else
6159
6794
  nagios_group=nagios
6160
6795
fi;
6796
7431
s,@SET_MAKE@,$SET_MAKE,;t t
6797
7432
s,@CPP@,$CPP,;t t
6798
7433
s,@EGREP@,$EGREP,;t t
 
7434
s,@SNPRINTF_O@,$SNPRINTF_O,;t t
6799
7435
s,@OTHERLIBS@,$OTHERLIBS,;t t
6800
7436
s,@SOCKETLIBS@,$SOCKETLIBS,;t t
6801
7437
s,@LIBWRAPLIBS@,$LIBWRAPLIBS,;t t
6802
7438
s,@HAVE_SSL@,$HAVE_SSL,;t t
 
7439
s,@log_facility@,$log_facility,;t t
6803
7440
s,@nrpe_user@,$nrpe_user,;t t
6804
7441
s,@nrpe_group@,$nrpe_group,;t t
6805
7442
s,@NRPE_INSTALL_OPTS@,$NRPE_INSTALL_OPTS,;t t