~ubuntu-branches/debian/squeeze/ntp/squeeze

« back to all changes in this revision

Viewing changes to .pc/autotools.patch/configure

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2010-05-24 11:09:51 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100524110951-1o7gh469ygochf4n
Tags: 1:4.2.6.p1+dfsg-1
* New upstream version
  - They no longer ship arlib, adjust dfsg.patch.
  - Drop kfreebsd.patch, applied upstream
  - Update patches for upstream changes.
* Remove the obsolete config files:

  for ntp:
  - /etc/logcheck/ignore.d.server/ntp, removed in 1:4.2.6+dfsg-1
  - /etc/dhcp3/dhclient-enter-hooks.d/ntp, replaced by exit hooks in
    1:4.2.4p4+dfsg-3
  - /etc/network/if-up.d/ntp, removed in 1:4.2.4p0+dfsg-1

  for ntpdate:
  - /etc/dhcp3/dhclient-enter-hooks.d/ntpdate, replaced by exit hooks in
    1:4.2.4p4+dfsg-3

  Use dpkg 1.15.7.2's dpkg-maintscript-helper.  This needs
  a Pre-Depends to work, else it's never going to be removed.
  (Closes: #569530)
* Add "Depends: ${misc:Depends}" to ntp-doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.65 for ntp 4.2.6.
 
3
# Generated by GNU Autoconf 2.65 for ntp 4.2.6p1.
4
4
#
5
5
#
6
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
699
699
# Identity of this package.
700
700
PACKAGE_NAME='ntp'
701
701
PACKAGE_TARNAME='ntp'
702
 
PACKAGE_VERSION='4.2.6'
703
 
PACKAGE_STRING='ntp 4.2.6'
 
702
PACKAGE_VERSION='4.2.6p1'
 
703
PACKAGE_STRING='ntp 4.2.6p1'
704
704
PACKAGE_BUGREPORT=''
705
705
PACKAGE_URL=''
706
706
 
745
745
am__EXEEXT_TRUE
746
746
LTLIBOBJS
747
747
LIBOBJS
 
748
subdirs
748
749
SAVECONFIG_ENABLED_FALSE
749
750
SAVECONFIG_ENABLED_TRUE
750
751
LSCF
785
786
AR
786
787
ECHO
787
788
LN_S
788
 
ARLIB_DIR
789
 
subdirs
 
789
NTP_BINSUBDIR_IS_BIN_FALSE
 
790
NTP_BINSUBDIR_IS_BIN_TRUE
790
791
BINSUBDIR
791
792
NTP_CROSSCOMPILE_FALSE
792
793
NTP_CROSSCOMPILE_TRUE
1006
1007
CPP
1007
1008
YACC
1008
1009
YFLAGS'
1009
 
ac_subdirs_all='arlib
1010
 
sntp'
 
1010
ac_subdirs_all='sntp'
1011
1011
 
1012
1012
# Initialize some variables set by options.
1013
1013
ac_init_help=
1548
1548
  # Omit some internal or obsolete options to make the list less imposing.
1549
1549
  # This message is too long to be a string in the A/UX 3.1 sh.
1550
1550
  cat <<_ACEOF
1551
 
\`configure' configures ntp 4.2.6 to adapt to many kinds of systems.
 
1551
\`configure' configures ntp 4.2.6p1 to adapt to many kinds of systems.
1552
1552
 
1553
1553
Usage: $0 [OPTION]... [VAR=VALUE]...
1554
1554
 
1618
1618
 
1619
1619
if test -n "$ac_init_help"; then
1620
1620
  case $ac_init_help in
1621
 
     short | recursive ) echo "Configuration of ntp 4.2.6:";;
 
1621
     short | recursive ) echo "Configuration of ntp 4.2.6p1:";;
1622
1622
   esac
1623
1623
  cat <<\_ACEOF
1624
1624
 
1730
1730
  --with-libregex-cflags  libregex compile flags
1731
1731
  --with-libregex-libs    libregex link command arguments
1732
1732
  --with-binsubdir        bin ={bin,sbin}
1733
 
  --with-arlib            - Compile the async resolver library?
 
1733
  --with-arlib            - deprecated, arlib not distributed
1734
1734
  --without-rpath         s Disable auto-added -R linker paths
1735
1735
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1736
1736
  --with-pic              try to use only PIC/non-PIC objects [default=use
1826
1826
test -n "$ac_init_help" && exit $ac_status
1827
1827
if $ac_init_version; then
1828
1828
  cat <<\_ACEOF
1829
 
ntp configure 4.2.6
 
1829
ntp configure 4.2.6p1
1830
1830
generated by GNU Autoconf 2.65
1831
1831
 
1832
1832
Copyright (C) 2009 Free Software Foundation, Inc.
2480
2480
This file contains any messages produced by compilers while
2481
2481
running configure, to aid debugging if configure makes a mistake.
2482
2482
 
2483
 
It was created by ntp $as_me 4.2.6, which was
 
2483
It was created by ntp $as_me 4.2.6p1, which was
2484
2484
generated by GNU Autoconf 2.65.  Invocation command line was
2485
2485
 
2486
2486
  $ $0 $@
3413
3413
 
3414
3414
# Define the identity of the package.
3415
3415
 PACKAGE='ntp'
3416
 
 VERSION='4.2.6'
 
3416
 VERSION='4.2.6p1'
3417
3417
 
3418
3418
 
3419
3419
cat >>confdefs.h <<_ACEOF
6297
6297
 
6298
6298
# HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
6299
6299
case "$host" in
6300
 
 *-*-amigaos)
6301
 
    CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
6302
 
    ;;
6303
 
 *-*-hpux10.*)  # at least for hppa2.0-hp-hpux10.20
6304
 
    case "$GCC" in
6305
 
     yes)
6306
 
        ;;
6307
 
     *) CFLAGS="$CFLAGS -Wp,-H18816"
6308
 
        ;;
6309
 
    esac
6310
 
    ;;
6311
6300
 *-pc-cygwin*)
6312
6301
    CFLAGS="$CFLAGS -DSYS_CYGWIN32"
6313
6302
    ;;
6334
6323
esac
6335
6324
 
6336
6325
 
6337
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
 
6326
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6338
6327
$as_echo_n "checking additional compiler flags... " >&6; }
6339
 
if test "${ac_cv_os_cflags+set}" = set; then :
6340
 
  $as_echo_n "(cached) " >&6
6341
 
else
6342
 
 
6343
 
case "${host_os}" in
6344
 
        irix6* )
6345
 
                case "${CC}" in
6346
 
                        cc )
6347
 
                                # do not use 64-bit compiler
6348
 
                                ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84"
6349
 
                                ;;
6350
 
                esac
6351
 
                ;;
6352
 
# HMS: am-utils needed this but we don't (apparently)
6353
 
#       osf[[1-3]]* )
6354
 
#               # get the right version of struct sockaddr
6355
 
#               case "${CC}" in
6356
 
#                       cc )
6357
 
#                               ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
6358
 
#                               ;;
6359
 
#                       * )
6360
 
#                               ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
6361
 
#                               ;;
6362
 
#               esac
6363
 
#               ;;
6364
 
#       osf* )
6365
 
#               # get the right version of struct sockaddr
6366
 
#               case "${CC}" in
6367
 
#                       cc )
6368
 
#                               ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
6369
 
#                               ;;
6370
 
#                       * )
6371
 
#                               ac_cv_os_cflags="-D_SOCKADDR_LEN"
6372
 
#                               ;;
6373
 
#               esac
6374
 
#               ;;
6375
 
        aix[1-3]* )
6376
 
                ac_cv_os_cflags="" ;;
6377
 
        aix4.[0-2]* )
6378
 
                # turn on additional headers
6379
 
                ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6380
 
                ;;
6381
 
        aix5.3* )
6382
 
                # avoid circular dependencies in yp headers, and more
6383
 
                ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS -D_MSGQSUPPORT"
6384
 
                ;;
6385
 
        aix* )
6386
 
                # avoid circular dependencies in yp headers
6387
 
                ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS"
6388
 
                ;;
6389
 
        OFF-sunos4* )
6390
 
                # make sure passing whole structures is handled in gcc
6391
 
                case "${CC}" in
6392
 
                        gcc )
6393
 
                                ac_cv_os_cflags="-fpcc-struct-return"
6394
 
                                ;;
6395
 
                esac
6396
 
                ;;
6397
 
        sunos[34]* | solaris1* | solaris2.[0-5] | sunos5.[0-5] | solaris2.5.* | sunos5.5.* )
6398
 
                ac_cv_os_cflags="" ;;
6399
 
        solaris2* | sunos5* )
6400
 
                # turn on 64-bit file offset interface
6401
 
                case "${CC}" in
6402
 
                        * )
6403
 
                                ac_cv_os_cflags="-D_LARGEFILE64_SOURCE"
6404
 
                                ;;
6405
 
                esac
6406
 
                ;;
6407
 
        hpux* )
 
6328
    # allow ntp_os_flags to be preset to skip this stuff
 
6329
    case "${ntp_os_cflags+set}" in
 
6330
     set)
 
6331
        ;;
 
6332
     *)
 
6333
        ntp_os_cflags=""
 
6334
        case "$host_os" in
 
6335
         aix[1-3]*)
 
6336
            ;;
 
6337
         aix4.[0-2]*)
 
6338
            # turn on additional headers
 
6339
            ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
 
6340
            ;;
 
6341
         aix5.3*)
 
6342
            # avoid circular dependencies in yp headers, and more
 
6343
            ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
 
6344
            ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
 
6345
            ;;
 
6346
         aix*)
 
6347
            # avoid circular dependencies in yp headers
 
6348
            ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
 
6349
            ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
 
6350
            ;;
 
6351
         amigaos)
 
6352
            ntp_os_cflags="-DSYS_AMIGA"
 
6353
            ;;
 
6354
         darwin*|macosx*|rhapsody*)
 
6355
            ntp_os_cflags="-D_P1003_1B_VISIBLE"
 
6356
            ;;
 
6357
         hpux10.*)              # at least for hppa2.0-hp-hpux10.20
 
6358
            case "$GCC" in
 
6359
             yes)
 
6360
                ;;
 
6361
             *)
 
6362
                # use Ansi compiler on HPUX, and some -Wp magic
 
6363
                ntp_os_cflags="-Ae -Wp,-H18816"
 
6364
                ;;
 
6365
            esac
 
6366
            ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
 
6367
            ;;
 
6368
         hpux*)
 
6369
            case "$GCC" in
 
6370
             yes)
 
6371
                ;;
 
6372
             *)
6408
6373
                # use Ansi compiler on HPUX
6409
 
                case "${CC}" in
6410
 
                        cc )
6411
 
                                ac_cv_os_cflags="-Ae"
6412
 
                                ;;
 
6374
                ntp_os_cflags="-Ae"
 
6375
            esac
 
6376
            ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
 
6377
            ;;
 
6378
         irix6*)
 
6379
            case "$CC" in
 
6380
             cc)
 
6381
                # do not use 64-bit compiler
 
6382
                ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
 
6383
            esac
 
6384
            ;;
 
6385
         nextstep3)
 
6386
            ntp_os_cflags="-posix"
 
6387
            ;;
 
6388
         solaris1*|solaris2.[0-5]|solaris2.5.*)
 
6389
            ;;
 
6390
         sunos[34]*|sunos5.[0-5]|sunos5.5.*)
 
6391
            ;;
 
6392
         solaris2*|sunos5*)
 
6393
            # turn on 64-bit file offset interface
 
6394
            ntp_os_cflags="-D_LARGEFILE64_SOURCE"
 
6395
            ;;
 
6396
         vxworks*)
 
6397
            case "$build" in
 
6398
             $host)
 
6399
                ;;
 
6400
             *)
 
6401
                # Quick and dirty sanity check
 
6402
                case "$VX_KERNEL" in
 
6403
                 '')
 
6404
                    as_fn_error "See html/build/hints/vxworks.html" "$LINENO" 5
6413
6405
                esac
6414
 
                ;;
6415
 
        darwin* | macosx* | rhapsody* )
6416
 
                ac_cv_os_cflags="-D_P1003_1B_VISIBLE"
6417
 
                ;;
6418
 
        * )
6419
 
                ac_cv_os_cflags=""
6420
 
                ;;
6421
 
esac
6422
 
 
6423
 
fi
6424
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5
6425
 
$as_echo "$ac_cv_os_cflags" >&6; }
6426
 
CFLAGS="$CFLAGS $ac_cv_os_cflags"
 
6406
                ntp_os_cflags="-DSYS_VXWORKS"
 
6407
            esac
 
6408
            ;;
 
6409
        esac
 
6410
    esac
 
6411
    case "$ntp_os_flags" in
 
6412
     '')
 
6413
        ntp_os_cflags_msg="none needed"
 
6414
        ;;
 
6415
     *)
 
6416
        ntp_os_cflags_msg="$ntp_os_cflags"
 
6417
        CFLAGS="$CFLAGS $ntp_os_cflags"
 
6418
    esac
 
6419
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
 
6420
$as_echo "$ntp_os_cflags_msg" >&6; }
 
6421
    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6427
6422
 
6428
6423
 
6429
6424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
9439
9434
esac
9440
9435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
9441
9436
$as_echo "$use_binsubdir" >&6; }
 
9437
 
9442
9438
BINSUBDIR=$use_binsubdir
9443
9439
 
9444
 
 
9445
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5
9446
 
$as_echo_n "checking if we want to use arlib... " >&6; }
 
9440
 if test "bin" = "$BINSUBDIR"; then
 
9441
  NTP_BINSUBDIR_IS_BIN_TRUE=
 
9442
  NTP_BINSUBDIR_IS_BIN_FALSE='#'
 
9443
else
 
9444
  NTP_BINSUBDIR_IS_BIN_TRUE='#'
 
9445
  NTP_BINSUBDIR_IS_BIN_FALSE=
 
9446
fi
 
9447
 
 
9448
 
 
9449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
 
9450
$as_echo_n "checking for deprecated --with-arlib... " >&6; }
9447
9451
 
9448
9452
# Check whether --with-arlib was given.
9449
9453
if test "${with_arlib+set}" = set; then :
9455
9459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
9456
9460
$as_echo "$ans" >&6; }
9457
9461
 
9458
 
if test -d $srcdir/arlib
9459
 
then
9460
 
    case "$ans" in
9461
 
     yes)
9462
 
        ARLIB_DIR=arlib
9463
 
 
9464
 
 
9465
 
subdirs="$subdirs arlib"
9466
 
 
9467
 
        ;;
9468
 
    esac
9469
 
fi
9470
 
 
 
9462
case "$ans" in
 
9463
 yes)
 
9464
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
 
9465
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
 
9466
esac
9471
9467
 
9472
9468
 
9473
9469
# Check whether --with-rpath was given.
9506
9502
    ;;
9507
9503
esac
9508
9504
 
9509
 
case "$build" in
9510
 
 $host)
9511
 
    ;;
9512
 
 *) case "$host" in
9513
 
     *-*-vxworks*)
9514
 
        # Quick and dirty sanity check
9515
 
        case "$VX_KERNEL" in
9516
 
         '') as_fn_error "Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5
9517
 
            ;;
9518
 
        esac
9519
 
        CFLAGS="$CFLAGS -DSYS_VXWORKS"
9520
 
        ;;
9521
 
    esac
9522
 
    ;;
9523
 
esac
9524
 
 
9525
9505
for ac_prog in gawk mawk nawk awk
9526
9506
do
9527
9507
  # Extract the first word of "$ac_prog", so it can be a program name with args.
9620
9600
     yes)
9621
9601
        CFLAGS="$CFLAGS -Wstrict-overflow"
9622
9602
    esac
9623
 
    # if building with OpenSSL, -Wno-strict-prototypes is added later
9624
 
esac
9625
 
 
9626
 
case "$host" in
9627
 
 *-next-nextstep3)
9628
 
    CFLAGS="$CFLAGS -posix"
9629
 
    ;;
 
9603
    # -W[no-]strict-prototypes is added later depending on OpenSSL
9630
9604
esac
9631
9605
 
9632
9606
ac_busted_vpath_in_make=no
10172
10146
  ;;
10173
10147
*-*-irix6*)
10174
10148
  # Find out which ABI we are using.
10175
 
  echo '#line 10175 "configure"' > conftest.$ac_ext
 
10149
  echo '#line 10149 "configure"' > conftest.$ac_ext
10176
10150
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10177
10151
  (eval $ac_compile) 2>&5
10178
10152
  ac_status=$?
11307
11281
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11308
11282
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11309
11283
   -e 's:$: $lt_compiler_flag:'`
11310
 
   (eval echo "\"\$as_me:11310: $lt_compile\"" >&5)
 
11284
   (eval echo "\"\$as_me:11284: $lt_compile\"" >&5)
11311
11285
   (eval "$lt_compile" 2>conftest.err)
11312
11286
   ac_status=$?
11313
11287
   cat conftest.err >&5
11314
 
   echo "$as_me:11314: \$? = $ac_status" >&5
 
11288
   echo "$as_me:11288: \$? = $ac_status" >&5
11315
11289
   if (exit $ac_status) && test -s "$ac_outfile"; then
11316
11290
     # The compiler can only warn and ignore the option if not recognized
11317
11291
     # So say no if there are warnings other than the usual output.
11569
11543
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11570
11544
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11571
11545
   -e 's:$: $lt_compiler_flag:'`
11572
 
   (eval echo "\"\$as_me:11572: $lt_compile\"" >&5)
 
11546
   (eval echo "\"\$as_me:11546: $lt_compile\"" >&5)
11573
11547
   (eval "$lt_compile" 2>conftest.err)
11574
11548
   ac_status=$?
11575
11549
   cat conftest.err >&5
11576
 
   echo "$as_me:11576: \$? = $ac_status" >&5
 
11550
   echo "$as_me:11550: \$? = $ac_status" >&5
11577
11551
   if (exit $ac_status) && test -s "$ac_outfile"; then
11578
11552
     # The compiler can only warn and ignore the option if not recognized
11579
11553
     # So say no if there are warnings other than the usual output.
11631
11605
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11632
11606
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11633
11607
   -e 's:$: $lt_compiler_flag:'`
11634
 
   (eval echo "\"\$as_me:11634: $lt_compile\"" >&5)
 
11608
   (eval echo "\"\$as_me:11608: $lt_compile\"" >&5)
11635
11609
   (eval "$lt_compile" 2>out/conftest.err)
11636
11610
   ac_status=$?
11637
11611
   cat out/conftest.err >&5
11638
 
   echo "$as_me:11638: \$? = $ac_status" >&5
 
11612
   echo "$as_me:11612: \$? = $ac_status" >&5
11639
11613
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11640
11614
   then
11641
11615
     # The compiler can only warn and ignore the option if not recognized
13503
13477
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13504
13478
  lt_status=$lt_dlunknown
13505
13479
  cat > conftest.$ac_ext <<EOF
13506
 
#line 13506 "configure"
 
13480
#line 13480 "configure"
13507
13481
#include "confdefs.h"
13508
13482
 
13509
13483
#if HAVE_DLFCN_H
13601
13575
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13602
13576
  lt_status=$lt_dlunknown
13603
13577
  cat > conftest.$ac_ext <<EOF
13604
 
#line 13604 "configure"
 
13578
#line 13578 "configure"
13605
13579
#include "confdefs.h"
13606
13580
 
13607
13581
#if HAVE_DLFCN_H
14380
14354
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14381
14355
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14382
14356
   -e 's:$: $lt_compiler_flag:'`
14383
 
   (eval echo "\"\$as_me:14383: $lt_compile\"" >&5)
 
14357
   (eval echo "\"\$as_me:14357: $lt_compile\"" >&5)
14384
14358
   (eval "$lt_compile" 2>conftest.err)
14385
14359
   ac_status=$?
14386
14360
   cat conftest.err >&5
14387
 
   echo "$as_me:14387: \$? = $ac_status" >&5
 
14361
   echo "$as_me:14361: \$? = $ac_status" >&5
14388
14362
   if (exit $ac_status) && test -s "$ac_outfile"; then
14389
14363
     # The compiler can only warn and ignore the option if not recognized
14390
14364
     # So say no if there are warnings other than the usual output.
14642
14616
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14643
14617
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14644
14618
   -e 's:$: $lt_compiler_flag:'`
14645
 
   (eval echo "\"\$as_me:14645: $lt_compile\"" >&5)
 
14619
   (eval echo "\"\$as_me:14619: $lt_compile\"" >&5)
14646
14620
   (eval "$lt_compile" 2>conftest.err)
14647
14621
   ac_status=$?
14648
14622
   cat conftest.err >&5
14649
 
   echo "$as_me:14649: \$? = $ac_status" >&5
 
14623
   echo "$as_me:14623: \$? = $ac_status" >&5
14650
14624
   if (exit $ac_status) && test -s "$ac_outfile"; then
14651
14625
     # The compiler can only warn and ignore the option if not recognized
14652
14626
     # So say no if there are warnings other than the usual output.
14704
14678
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14705
14679
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14706
14680
   -e 's:$: $lt_compiler_flag:'`
14707
 
   (eval echo "\"\$as_me:14707: $lt_compile\"" >&5)
 
14681
   (eval echo "\"\$as_me:14681: $lt_compile\"" >&5)
14708
14682
   (eval "$lt_compile" 2>out/conftest.err)
14709
14683
   ac_status=$?
14710
14684
   cat out/conftest.err >&5
14711
 
   echo "$as_me:14711: \$? = $ac_status" >&5
 
14685
   echo "$as_me:14685: \$? = $ac_status" >&5
14712
14686
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14713
14687
   then
14714
14688
     # The compiler can only warn and ignore the option if not recognized
16576
16550
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16577
16551
  lt_status=$lt_dlunknown
16578
16552
  cat > conftest.$ac_ext <<EOF
16579
 
#line 16579 "configure"
 
16553
#line 16553 "configure"
16580
16554
#include "confdefs.h"
16581
16555
 
16582
16556
#if HAVE_DLFCN_H
16674
16648
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16675
16649
  lt_status=$lt_dlunknown
16676
16650
  cat > conftest.$ac_ext <<EOF
16677
 
#line 16677 "configure"
 
16651
#line 16651 "configure"
16678
16652
#include "confdefs.h"
16679
16653
 
16680
16654
#if HAVE_DLFCN_H
18440
18414
     no)
18441
18415
        ;;
18442
18416
     *)
18443
 
                        for ac_header in readline.h readline/readline.h histedit.h
 
18417
        for ac_header in readline.h readline/readline.h histedit.h
18444
18418
do :
18445
18419
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18446
18420
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18725
18699
 
18726
18700
fi
18727
18701
 
 
18702
case "$host" in
 
18703
 *-*-darwin*)
 
18704
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_9_init in -lresolv" >&5
 
18705
$as_echo_n "checking for res_9_init in -lresolv... " >&6; }
 
18706
if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then :
 
18707
  $as_echo_n "(cached) " >&6
 
18708
else
 
18709
  ac_check_lib_save_LIBS=$LIBS
 
18710
LIBS="-lresolv  $LIBS"
 
18711
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18712
/* end confdefs.h.  */
 
18713
 
 
18714
/* Override any GCC internal prototype to avoid an error.
 
18715
   Use char because int might match the return type of a GCC
 
18716
   builtin and then its argument prototype would still apply.  */
 
18717
#ifdef __cplusplus
 
18718
extern "C"
 
18719
#endif
 
18720
char res_9_init ();
 
18721
int
 
18722
main ()
 
18723
{
 
18724
return res_9_init ();
 
18725
  ;
 
18726
  return 0;
 
18727
}
 
18728
_ACEOF
 
18729
if ac_fn_c_try_link "$LINENO"; then :
 
18730
  ac_cv_lib_resolv_res_9_init=yes
 
18731
else
 
18732
  ac_cv_lib_resolv_res_9_init=no
 
18733
fi
 
18734
rm -f core conftest.err conftest.$ac_objext \
 
18735
    conftest$ac_exeext conftest.$ac_ext
 
18736
LIBS=$ac_check_lib_save_LIBS
 
18737
fi
 
18738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_9_init" >&5
 
18739
$as_echo "$ac_cv_lib_resolv_res_9_init" >&6; }
 
18740
if test "x$ac_cv_lib_resolv_res_9_init" = x""yes; then :
 
18741
  cat >>confdefs.h <<_ACEOF
 
18742
#define HAVE_LIBRESOLV 1
 
18743
_ACEOF
 
18744
 
 
18745
  LIBS="-lresolv $LIBS"
 
18746
 
 
18747
fi
 
18748
 
 
18749
    ;;
 
18750
esac
 
18751
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
 
18752
do :
 
18753
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18754
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
 
18755
#  include <sys/types.h>
 
18756
#endif
 
18757
#ifdef HAVE_NETINET_IN_H
 
18758
#  include <netinet/in.h>   /* inet_ functions / structs */
 
18759
#endif
 
18760
#ifdef HAVE_ARPA_NAMESER_H
 
18761
#  include <arpa/nameser.h> /* DNS HEADER struct */
 
18762
#endif
 
18763
#ifdef HAVE_NETDB_H
 
18764
#  include <netdb.h>
 
18765
#endif
 
18766
"
 
18767
eval as_val=\$$as_ac_Header
 
18768
   if test "x$as_val" = x""yes; then :
 
18769
  cat >>confdefs.h <<_ACEOF
 
18770
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18771
_ACEOF
 
18772
 
 
18773
fi
 
18774
 
 
18775
done
 
18776
 
 
18777
 
18728
18778
for ac_func in res_init __res_init
18729
18779
do :
18730
18780
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20472
20522
 *-*-sunos4*)
20473
20523
    ac_cv_var_override_hz=yes
20474
20524
    ;;
 
20525
 *-*-kfreebsd*)
 
20526
    ac_cv_var_override_hz=yes
 
20527
    ;;
20475
20528
esac
20476
20529
fi
20477
20530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_override_hz" >&5
20525
20578
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20526
20579
/* end confdefs.h.  */
20527
20580
 
 
20581
#include <stddef.h>
20528
20582
#include <linux/rtnetlink.h>
20529
20583
int
20530
20584
main ()
23094
23148
     *-*-unicosmp*)
23095
23149
        ans=no
23096
23150
        ;;
 
23151
     *-*-kfreebsd*)
 
23152
        ans=no
 
23153
        ;;
23097
23154
    esac
23098
23155
    ;;
23099
23156
esac
23205
23262
     *-*-unicosmp*)
23206
23263
        ans=no
23207
23264
        ;;
 
23265
     *-*-kfreebsd*)
 
23266
        ans=no
 
23267
        ;;
23208
23268
     *) ans=yes
23209
23269
        ;;
23210
23270
    esac
23265
23325
     *-*-unicosmp*)
23266
23326
        ans=no
23267
23327
        ;;
 
23328
     *-*-kfreebsd*)
 
23329
        ans=no
 
23330
        ;;
23268
23331
     *) ans=yes
23269
23332
        ;;
23270
23333
    esac
23515
23578
 ;;
23516
23579
esac
23517
23580
 
23518
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel multicast support" >&5
23519
 
$as_echo_n "checking for kernel multicast support... " >&6; }
23520
 
if test "${ac_cv_var_mcast+set}" = set; then :
 
23581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
 
23582
$as_echo_n "checking for multicast IP support... " >&6; }
 
23583
if test "${ntp_cv_multicast+set}" = set; then :
23521
23584
  $as_echo_n "(cached) " >&6
23522
23585
else
23523
 
  ac_cv_var_mcast=no
23524
 
  case "$host" in
23525
 
   i386-sequent-sysv4) ;;
23526
 
   *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23586
 
 
23587
        ntp_cv_multicast=no
 
23588
        case "$host" in
 
23589
         i386-sequent-sysv4)
 
23590
            ;;
 
23591
         *)
 
23592
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23527
23593
/* end confdefs.h.  */
23528
 
#include <netinet/in.h>
23529
 
#ifdef IP_ADD_MEMBERSHIP
23530
 
   yes
23531
 
#endif
23532
 
 
 
23594
 
 
23595
                        #ifdef HAVE_NETINET_IN_H
 
23596
                        #include <netinet/in.h>
 
23597
                        #endif
 
23598
 
 
23599
int
 
23600
main ()
 
23601
{
 
23602
 
 
23603
                        struct ip_mreq ipmr;
 
23604
                        ipmr.imr_interface.s_addr = 0;
 
23605
 
 
23606
 
 
23607
  ;
 
23608
  return 0;
 
23609
}
23533
23610
_ACEOF
23534
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23535
 
  $EGREP "yes" >/dev/null 2>&1; then :
23536
 
  ac_cv_var_mcast=yes
23537
 
fi
23538
 
rm -f conftest*
23539
 
 ;;
23540
 
  esac
23541
 
fi
23542
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_mcast" >&5
23543
 
$as_echo "$ac_cv_var_mcast" >&6; }
23544
 
case "$ac_cv_var_mcast" in
 
23611
if ac_fn_c_try_compile "$LINENO"; then :
 
23612
  ntp_cv_multicast=yes
 
23613
fi
 
23614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23615
        esac
 
23616
 
 
23617
 
 
23618
fi
 
23619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
 
23620
$as_echo "$ntp_cv_multicast" >&6; }
 
23621
 
 
23622
case "$ntp_cv_multicast" in
23545
23623
 yes)
23546
23624
 
23547
23625
$as_echo "#define MCAST 1" >>confdefs.h
23548
23626
 
23549
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
23550
 
$as_echo_n "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... " >&6; }
23551
 
if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then :
 
23627
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
 
23628
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
 
23629
if test "${ntp_cv_typeof_ip_multicast_loop+set}" = set; then :
23552
23630
  $as_echo_n "(cached) " >&6
23553
23631
else
23554
 
  case "$host" in
23555
 
         *-*-netbsd*|*-*-*linux*)
23556
 
            ac_cv_var_typeof_ip_multicast_loop=u_int
23557
 
            ;;
23558
 
         *-*-winnt*)
23559
 
            ac_cv_var_typeof_ip_multicast_loop=BOOL
23560
 
            ;;
23561
 
         *) ac_cv_var_typeof_ip_multicast_loop=u_char
23562
 
            ;;
23563
 
        esac
 
23632
 
 
23633
            case "$host" in
 
23634
             *-*-netbsd*|*-*-*linux*)
 
23635
                ntp_cv_typeof_ip_multicast_loop=u_int
 
23636
                ;;
 
23637
             *-*-winnt*)
 
23638
                ntp_cv_typeof_ip_multicast_loop=BOOL
 
23639
                ;;
 
23640
             *)
 
23641
                ntp_cv_typeof_ip_multicast_loop=u_char
 
23642
            esac
 
23643
 
 
23644
 
23564
23645
fi
23565
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
23566
 
$as_echo "$ac_cv_var_typeof_ip_multicast_loop" >&6; }
 
23646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
 
23647
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
23567
23648
 
23568
23649
cat >>confdefs.h <<_ACEOF
23569
 
#define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
 
23650
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
23570
23651
_ACEOF
23571
23652
 
23572
 
    ;;
23573
23653
esac
23574
23654
 
23575
23655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
25277
25357
esac
25278
25358
 
25279
25359
#
25280
 
# OpenSSL has a number of callback prototypes inside other function
25281
 
# prototypes which trigger copious warnings with -Wstrict-prototypes,
25282
 
# (which is included in -Wall).
 
25360
# Older OpenSSL headers have a number of callback prototypes inside
 
25361
# other function prototypes which trigger copious warnings with gcc's
 
25362
# -Wstrict-prototypes, which is included in -Wall.
25283
25363
#
25284
25364
# An example:
25285
25365
#
25286
25366
# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25287
 
#                 int (*cb)(), int sgckey);
25288
 
#                 ^^^^^^^^^^^
25289
 
#
25290
 
# The OpenSSL headers probably haven't been fixed in this regard
25291
 
# due to the hoops you have to jump through to stay compatible with
25292
 
# K&R C compilers.
25293
 
#
 
25367
#                 int (*cb)(), int sgckey);
 
25368
#                 ^^^^^^^^^^^
 
25369
#
 
25370
#
 
25371
#
 
25372
openssl_triggers_warnings=unknown
 
25373
SAVED_CFLAGS="$CFLAGS"
 
25374
 
25294
25375
case "$GCC$ntp_openssl" in
25295
25376
 yesyes)
25296
 
    CFLAGS="$CFLAGS -Wno-strict-prototypes"
 
25377
    CFLAGS="$CFLAGS -Werror"
 
25378
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25379
/* end confdefs.h.  */
 
25380
 /* see if -Werror breaks gcc */
 
25381
_ACEOF
 
25382
if ac_fn_c_try_compile "$LINENO"; then :
 
25383
  gcc_handles_Werror=yes
 
25384
else
 
25385
  gcc_handles_Werror=no
 
25386
 
 
25387
fi
 
25388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25389
    case "$gcc_handles_Werror" in
 
25390
     no)
 
25391
        # if this gcc doesn't do -Werror go ahead and use
 
25392
        # -Wstrict-prototypes.
 
25393
        openssl_triggers_warnings=yes
 
25394
        ;;
 
25395
     yes)
 
25396
        CFLAGS="$CFLAGS -Wstrict-prototypes"
 
25397
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25398
/* end confdefs.h.  */
 
25399
 
 
25400
                    #include "openssl/asn1_mac.h"
 
25401
                    #include "openssl/bn.h"
 
25402
                    #include "openssl/err.h"
 
25403
                    #include "openssl/evp.h"
 
25404
                    #include "openssl/pem.h"
 
25405
                    #include "openssl/rand.h"
 
25406
                    #include "openssl/x509v3.h"
 
25407
 
 
25408
int
 
25409
main ()
 
25410
{
 
25411
 /* empty body */
 
25412
 
 
25413
  ;
 
25414
  return 0;
 
25415
}
 
25416
_ACEOF
 
25417
if ac_fn_c_try_compile "$LINENO"; then :
 
25418
  openssl_triggers_warnings=no
 
25419
else
 
25420
  openssl_triggers_warnings=yes
 
25421
 
 
25422
fi
 
25423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25424
    esac
 
25425
    case "$openssl_triggers_warnings" in
 
25426
     yes)
 
25427
        CFLAGS="$SAVED_CFLAGS -Wno-strict-prototypes"
 
25428
        ;;
 
25429
     *)
 
25430
        CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
 
25431
    esac
 
25432
    ;;
 
25433
 yesno)
 
25434
    # gcc without OpenSSL
 
25435
    CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
25297
25436
esac
25298
25437
 
25299
25438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
26642
26781
 
26643
26782
case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
26644
26783
 yesyes)
26645
 
    ntp_have_linuxcaps=yes
 
26784
    case "$host" in
 
26785
     mips-sgi-irix*)
 
26786
        ntp_have_linuxcaps=no
 
26787
        ;;
 
26788
     *) ntp_have_linuxcaps=yes
 
26789
        ;;
 
26790
    esac
26646
26791
    ;;
26647
26792
 *)
26648
26793
    ntp_have_linuxcaps=no
27286
27431
ac_config_files="$ac_config_files util/Makefile"
27287
27432
 
27288
27433
 
 
27434
 
 
27435
 
27289
27436
subdirs="$subdirs sntp"
27290
27437
 
27291
27438
 
27422
27569
  as_fn_error "conditional \"NTP_CROSSCOMPILE\" was never defined.
27423
27570
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27424
27571
fi
 
27572
if test -z "${NTP_BINSUBDIR_IS_BIN_TRUE}" && test -z "${NTP_BINSUBDIR_IS_BIN_FALSE}"; then
 
27573
  as_fn_error "conditional \"NTP_BINSUBDIR_IS_BIN\" was never defined.
 
27574
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27575
fi
27425
27576
 
27426
27577
if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
27427
27578
  as_fn_error "conditional \"SAVECONFIG_ENABLED\" was never defined.
27835
27986
# report actual input values of CONFIG_FILES etc. instead of their
27836
27987
# values after options handling.
27837
27988
ac_log="
27838
 
This file was extended by ntp $as_me 4.2.6, which was
 
27989
This file was extended by ntp $as_me 4.2.6p1, which was
27839
27990
generated by GNU Autoconf 2.65.  Invocation command line was
27840
27991
 
27841
27992
  CONFIG_FILES    = $CONFIG_FILES
27901
28052
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27902
28053
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27903
28054
ac_cs_version="\\
27904
 
ntp config.status 4.2.6
 
28055
ntp config.status 4.2.6p1
27905
28056
configured by $0, generated by GNU Autoconf 2.65,
27906
28057
  with options \\"\$ac_cs_config\\"
27907
28058