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

« back to all changes in this revision

Viewing changes to 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,
698
698
# Identity of this package.
699
699
PACKAGE_NAME='ntp'
700
700
PACKAGE_TARNAME='ntp'
701
 
PACKAGE_VERSION='4.2.6'
702
 
PACKAGE_STRING='ntp 4.2.6'
 
701
PACKAGE_VERSION='4.2.6p1'
 
702
PACKAGE_STRING='ntp 4.2.6p1'
703
703
PACKAGE_BUGREPORT=''
704
704
PACKAGE_URL=''
705
705
 
744
744
am__EXEEXT_TRUE
745
745
LTLIBOBJS
746
746
LIBOBJS
 
747
subdirs
747
748
SAVECONFIG_ENABLED_FALSE
748
749
SAVECONFIG_ENABLED_TRUE
749
750
LSCF
796
797
FGREP
797
798
SED
798
799
LIBTOOL
799
 
ARLIB_DIR
800
 
subdirs
 
800
NTP_BINSUBDIR_IS_BIN_FALSE
 
801
NTP_BINSUBDIR_IS_BIN_TRUE
801
802
BINSUBDIR
802
803
NTP_CROSSCOMPILE_FALSE
803
804
NTP_CROSSCOMPILE_TRUE
1014
1015
CPP
1015
1016
YACC
1016
1017
YFLAGS'
1017
 
ac_subdirs_all='arlib
1018
 
sntp'
 
1018
ac_subdirs_all='sntp'
1019
1019
 
1020
1020
# Initialize some variables set by options.
1021
1021
ac_init_help=
1556
1556
  # Omit some internal or obsolete options to make the list less imposing.
1557
1557
  # This message is too long to be a string in the A/UX 3.1 sh.
1558
1558
  cat <<_ACEOF
1559
 
\`configure' configures ntp 4.2.6 to adapt to many kinds of systems.
 
1559
\`configure' configures ntp 4.2.6p1 to adapt to many kinds of systems.
1560
1560
 
1561
1561
Usage: $0 [OPTION]... [VAR=VALUE]...
1562
1562
 
1626
1626
 
1627
1627
if test -n "$ac_init_help"; then
1628
1628
  case $ac_init_help in
1629
 
     short | recursive ) echo "Configuration of ntp 4.2.6:";;
 
1629
     short | recursive ) echo "Configuration of ntp 4.2.6p1:";;
1630
1630
   esac
1631
1631
  cat <<\_ACEOF
1632
1632
 
1736
1736
  --with-libregex-cflags  libregex compile flags
1737
1737
  --with-libregex-libs    libregex link command arguments
1738
1738
  --with-binsubdir        bin ={bin,sbin}
1739
 
  --with-arlib            - Compile the async resolver library?
 
1739
  --with-arlib            - deprecated, arlib not distributed
1740
1740
  --without-rpath         s Disable auto-added -R linker paths
1741
1741
  --with-pic              try to use only PIC/non-PIC objects [default=use
1742
1742
                          both]
1831
1831
test -n "$ac_init_help" && exit $ac_status
1832
1832
if $ac_init_version; then
1833
1833
  cat <<\_ACEOF
1834
 
ntp configure 4.2.6
 
1834
ntp configure 4.2.6p1
1835
1835
generated by GNU Autoconf 2.65
1836
1836
 
1837
1837
Copyright (C) 2009 Free Software Foundation, Inc.
2485
2485
This file contains any messages produced by compilers while
2486
2486
running configure, to aid debugging if configure makes a mistake.
2487
2487
 
2488
 
It was created by ntp $as_me 4.2.6, which was
 
2488
It was created by ntp $as_me 4.2.6p1, which was
2489
2489
generated by GNU Autoconf 2.65.  Invocation command line was
2490
2490
 
2491
2491
  $ $0 $@
3418
3418
 
3419
3419
# Define the identity of the package.
3420
3420
 PACKAGE='ntp'
3421
 
 VERSION='4.2.6'
 
3421
 VERSION='4.2.6p1'
3422
3422
 
3423
3423
 
3424
3424
cat >>confdefs.h <<_ACEOF
6308
6308
 
6309
6309
# HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
6310
6310
case "$host" in
6311
 
 *-*-amigaos)
6312
 
    CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
6313
 
    ;;
6314
 
 *-*-hpux10.*)  # at least for hppa2.0-hp-hpux10.20
6315
 
    case "$GCC" in
6316
 
     yes)
6317
 
        ;;
6318
 
     *) CFLAGS="$CFLAGS -Wp,-H18816"
6319
 
        ;;
6320
 
    esac
6321
 
    ;;
6322
6311
 *-pc-cygwin*)
6323
6312
    CFLAGS="$CFLAGS -DSYS_CYGWIN32"
6324
6313
    ;;
6345
6334
esac
6346
6335
 
6347
6336
 
6348
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
 
6337
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6349
6338
$as_echo_n "checking additional compiler flags... " >&6; }
6350
 
if test "${ac_cv_os_cflags+set}" = set; then :
6351
 
  $as_echo_n "(cached) " >&6
6352
 
else
6353
 
 
6354
 
case "${host_os}" in
6355
 
        irix6* )
6356
 
                case "${CC}" in
6357
 
                        cc )
6358
 
                                # do not use 64-bit compiler
6359
 
                                ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84"
6360
 
                                ;;
6361
 
                esac
6362
 
                ;;
6363
 
# HMS: am-utils needed this but we don't (apparently)
6364
 
#       osf[[1-3]]* )
6365
 
#               # get the right version of struct sockaddr
6366
 
#               case "${CC}" in
6367
 
#                       cc )
6368
 
#                               ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
6369
 
#                               ;;
6370
 
#                       * )
6371
 
#                               ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
6372
 
#                               ;;
6373
 
#               esac
6374
 
#               ;;
6375
 
#       osf* )
6376
 
#               # get the right version of struct sockaddr
6377
 
#               case "${CC}" in
6378
 
#                       cc )
6379
 
#                               ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
6380
 
#                               ;;
6381
 
#                       * )
6382
 
#                               ac_cv_os_cflags="-D_SOCKADDR_LEN"
6383
 
#                               ;;
6384
 
#               esac
6385
 
#               ;;
6386
 
        aix[1-3]* )
6387
 
                ac_cv_os_cflags="" ;;
6388
 
        aix4.[0-2]* )
6389
 
                # turn on additional headers
6390
 
                ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6391
 
                ;;
6392
 
        aix5.3* )
6393
 
                # avoid circular dependencies in yp headers, and more
6394
 
                ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS -D_MSGQSUPPORT"
6395
 
                ;;
6396
 
        aix* )
6397
 
                # avoid circular dependencies in yp headers
6398
 
                ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS"
6399
 
                ;;
6400
 
        OFF-sunos4* )
6401
 
                # make sure passing whole structures is handled in gcc
6402
 
                case "${CC}" in
6403
 
                        gcc )
6404
 
                                ac_cv_os_cflags="-fpcc-struct-return"
6405
 
                                ;;
6406
 
                esac
6407
 
                ;;
6408
 
        sunos[34]* | solaris1* | solaris2.[0-5] | sunos5.[0-5] | solaris2.5.* | sunos5.5.* )
6409
 
                ac_cv_os_cflags="" ;;
6410
 
        solaris2* | sunos5* )
6411
 
                # turn on 64-bit file offset interface
6412
 
                case "${CC}" in
6413
 
                        * )
6414
 
                                ac_cv_os_cflags="-D_LARGEFILE64_SOURCE"
6415
 
                                ;;
6416
 
                esac
6417
 
                ;;
6418
 
        hpux* )
 
6339
    # allow ntp_os_flags to be preset to skip this stuff
 
6340
    case "${ntp_os_cflags+set}" in
 
6341
     set)
 
6342
        ;;
 
6343
     *)
 
6344
        ntp_os_cflags=""
 
6345
        case "$host_os" in
 
6346
         aix[1-3]*)
 
6347
            ;;
 
6348
         aix4.[0-2]*)
 
6349
            # turn on additional headers
 
6350
            ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
 
6351
            ;;
 
6352
         aix5.3*)
 
6353
            # avoid circular dependencies in yp headers, and more
 
6354
            ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
 
6355
            ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
 
6356
            ;;
 
6357
         aix*)
 
6358
            # avoid circular dependencies in yp headers
 
6359
            ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
 
6360
            ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
 
6361
            ;;
 
6362
         amigaos)
 
6363
            ntp_os_cflags="-DSYS_AMIGA"
 
6364
            ;;
 
6365
         darwin*|macosx*|rhapsody*)
 
6366
            ntp_os_cflags="-D_P1003_1B_VISIBLE"
 
6367
            ;;
 
6368
         hpux10.*)              # at least for hppa2.0-hp-hpux10.20
 
6369
            case "$GCC" in
 
6370
             yes)
 
6371
                ;;
 
6372
             *)
 
6373
                # use Ansi compiler on HPUX, and some -Wp magic
 
6374
                ntp_os_cflags="-Ae -Wp,-H18816"
 
6375
                ;;
 
6376
            esac
 
6377
            ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
 
6378
            ;;
 
6379
         hpux*)
 
6380
            case "$GCC" in
 
6381
             yes)
 
6382
                ;;
 
6383
             *)
6419
6384
                # use Ansi compiler on HPUX
6420
 
                case "${CC}" in
6421
 
                        cc )
6422
 
                                ac_cv_os_cflags="-Ae"
6423
 
                                ;;
 
6385
                ntp_os_cflags="-Ae"
 
6386
            esac
 
6387
            ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
 
6388
            ;;
 
6389
         irix6*)
 
6390
            case "$CC" in
 
6391
             cc)
 
6392
                # do not use 64-bit compiler
 
6393
                ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
 
6394
            esac
 
6395
            ;;
 
6396
         nextstep3)
 
6397
            ntp_os_cflags="-posix"
 
6398
            ;;
 
6399
         solaris1*|solaris2.[0-5]|solaris2.5.*)
 
6400
            ;;
 
6401
         sunos[34]*|sunos5.[0-5]|sunos5.5.*)
 
6402
            ;;
 
6403
         solaris2*|sunos5*)
 
6404
            # turn on 64-bit file offset interface
 
6405
            ntp_os_cflags="-D_LARGEFILE64_SOURCE"
 
6406
            ;;
 
6407
         vxworks*)
 
6408
            case "$build" in
 
6409
             $host)
 
6410
                ;;
 
6411
             *)
 
6412
                # Quick and dirty sanity check
 
6413
                case "$VX_KERNEL" in
 
6414
                 '')
 
6415
                    as_fn_error "See html/build/hints/vxworks.html" "$LINENO" 5
6424
6416
                esac
6425
 
                ;;
6426
 
        darwin* | macosx* | rhapsody* )
6427
 
                ac_cv_os_cflags="-D_P1003_1B_VISIBLE"
6428
 
                ;;
6429
 
        * )
6430
 
                ac_cv_os_cflags=""
6431
 
                ;;
6432
 
esac
6433
 
 
6434
 
fi
6435
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5
6436
 
$as_echo "$ac_cv_os_cflags" >&6; }
6437
 
CFLAGS="$CFLAGS $ac_cv_os_cflags"
 
6417
                ntp_os_cflags="-DSYS_VXWORKS"
 
6418
            esac
 
6419
            ;;
 
6420
        esac
 
6421
    esac
 
6422
    case "$ntp_os_flags" in
 
6423
     '')
 
6424
        ntp_os_cflags_msg="none needed"
 
6425
        ;;
 
6426
     *)
 
6427
        ntp_os_cflags_msg="$ntp_os_cflags"
 
6428
        CFLAGS="$CFLAGS $ntp_os_cflags"
 
6429
    esac
 
6430
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
 
6431
$as_echo "$ntp_os_cflags_msg" >&6; }
 
6432
    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6438
6433
 
6439
6434
 
6440
6435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
9450
9445
esac
9451
9446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
9452
9447
$as_echo "$use_binsubdir" >&6; }
 
9448
 
9453
9449
BINSUBDIR=$use_binsubdir
9454
9450
 
9455
 
 
9456
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5
9457
 
$as_echo_n "checking if we want to use arlib... " >&6; }
 
9451
 if test "bin" = "$BINSUBDIR"; then
 
9452
  NTP_BINSUBDIR_IS_BIN_TRUE=
 
9453
  NTP_BINSUBDIR_IS_BIN_FALSE='#'
 
9454
else
 
9455
  NTP_BINSUBDIR_IS_BIN_TRUE='#'
 
9456
  NTP_BINSUBDIR_IS_BIN_FALSE=
 
9457
fi
 
9458
 
 
9459
 
 
9460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
 
9461
$as_echo_n "checking for deprecated --with-arlib... " >&6; }
9458
9462
 
9459
9463
# Check whether --with-arlib was given.
9460
9464
if test "${with_arlib+set}" = set; then :
9466
9470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
9467
9471
$as_echo "$ans" >&6; }
9468
9472
 
9469
 
if test -d $srcdir/arlib
9470
 
then
9471
 
    case "$ans" in
9472
 
     yes)
9473
 
        ARLIB_DIR=arlib
9474
 
 
9475
 
 
9476
 
subdirs="$subdirs arlib"
9477
 
 
9478
 
        ;;
9479
 
    esac
9480
 
fi
9481
 
 
 
9473
case "$ans" in
 
9474
 yes)
 
9475
    { $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
 
9476
$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;}
 
9477
esac
9482
9478
 
9483
9479
 
9484
9480
# Check whether --with-rpath was given.
9517
9513
    ;;
9518
9514
esac
9519
9515
 
9520
 
case "$build" in
9521
 
 $host)
9522
 
    ;;
9523
 
 *) case "$host" in
9524
 
     *-*-vxworks*)
9525
 
        # Quick and dirty sanity check
9526
 
        case "$VX_KERNEL" in
9527
 
         '') as_fn_error "Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5
9528
 
            ;;
9529
 
        esac
9530
 
        CFLAGS="$CFLAGS -DSYS_VXWORKS"
9531
 
        ;;
9532
 
    esac
9533
 
    ;;
9534
 
esac
9535
 
 
9536
9516
for ac_prog in gawk mawk nawk awk
9537
9517
do
9538
9518
  # Extract the first word of "$ac_prog", so it can be a program name with args.
9631
9611
     yes)
9632
9612
        CFLAGS="$CFLAGS -Wstrict-overflow"
9633
9613
    esac
9634
 
    # if building with OpenSSL, -Wno-strict-prototypes is added later
9635
 
esac
9636
 
 
9637
 
case "$host" in
9638
 
 *-next-nextstep3)
9639
 
    CFLAGS="$CFLAGS -posix"
9640
 
    ;;
 
9614
    # -W[no-]strict-prototypes is added later depending on OpenSSL
9641
9615
esac
9642
9616
 
9643
9617
ac_busted_vpath_in_make=no
10152
10126
else
10153
10127
  lt_cv_nm_interface="BSD nm"
10154
10128
  echo "int some_variable = 0;" > conftest.$ac_ext
10155
 
  (eval echo "\"\$as_me:10155: $ac_compile\"" >&5)
 
10129
  (eval echo "\"\$as_me:10129: $ac_compile\"" >&5)
10156
10130
  (eval "$ac_compile" 2>conftest.err)
10157
10131
  cat conftest.err >&5
10158
 
  (eval echo "\"\$as_me:10158: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
10132
  (eval echo "\"\$as_me:10132: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10159
10133
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10160
10134
  cat conftest.err >&5
10161
 
  (eval echo "\"\$as_me:10161: output\"" >&5)
 
10135
  (eval echo "\"\$as_me:10135: output\"" >&5)
10162
10136
  cat conftest.out >&5
10163
10137
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10164
10138
    lt_cv_nm_interface="MS dumpbin"
11363
11337
  ;;
11364
11338
*-*-irix6*)
11365
11339
  # Find out which ABI we are using.
11366
 
  echo '#line 11366 "configure"' > conftest.$ac_ext
 
11340
  echo '#line 11340 "configure"' > conftest.$ac_ext
11367
11341
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11368
11342
  (eval $ac_compile) 2>&5
11369
11343
  ac_status=$?
12595
12569
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12596
12570
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12597
12571
   -e 's:$: $lt_compiler_flag:'`
12598
 
   (eval echo "\"\$as_me:12598: $lt_compile\"" >&5)
 
12572
   (eval echo "\"\$as_me:12572: $lt_compile\"" >&5)
12599
12573
   (eval "$lt_compile" 2>conftest.err)
12600
12574
   ac_status=$?
12601
12575
   cat conftest.err >&5
12602
 
   echo "$as_me:12602: \$? = $ac_status" >&5
 
12576
   echo "$as_me:12576: \$? = $ac_status" >&5
12603
12577
   if (exit $ac_status) && test -s "$ac_outfile"; then
12604
12578
     # The compiler can only warn and ignore the option if not recognized
12605
12579
     # So say no if there are warnings other than the usual output.
12934
12908
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12935
12909
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12936
12910
   -e 's:$: $lt_compiler_flag:'`
12937
 
   (eval echo "\"\$as_me:12937: $lt_compile\"" >&5)
 
12911
   (eval echo "\"\$as_me:12911: $lt_compile\"" >&5)
12938
12912
   (eval "$lt_compile" 2>conftest.err)
12939
12913
   ac_status=$?
12940
12914
   cat conftest.err >&5
12941
 
   echo "$as_me:12941: \$? = $ac_status" >&5
 
12915
   echo "$as_me:12915: \$? = $ac_status" >&5
12942
12916
   if (exit $ac_status) && test -s "$ac_outfile"; then
12943
12917
     # The compiler can only warn and ignore the option if not recognized
12944
12918
     # So say no if there are warnings other than the usual output.
13039
13013
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13040
13014
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13041
13015
   -e 's:$: $lt_compiler_flag:'`
13042
 
   (eval echo "\"\$as_me:13042: $lt_compile\"" >&5)
 
13016
   (eval echo "\"\$as_me:13016: $lt_compile\"" >&5)
13043
13017
   (eval "$lt_compile" 2>out/conftest.err)
13044
13018
   ac_status=$?
13045
13019
   cat out/conftest.err >&5
13046
 
   echo "$as_me:13046: \$? = $ac_status" >&5
 
13020
   echo "$as_me:13020: \$? = $ac_status" >&5
13047
13021
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13048
13022
   then
13049
13023
     # The compiler can only warn and ignore the option if not recognized
13094
13068
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13095
13069
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13096
13070
   -e 's:$: $lt_compiler_flag:'`
13097
 
   (eval echo "\"\$as_me:13097: $lt_compile\"" >&5)
 
13071
   (eval echo "\"\$as_me:13071: $lt_compile\"" >&5)
13098
13072
   (eval "$lt_compile" 2>out/conftest.err)
13099
13073
   ac_status=$?
13100
13074
   cat out/conftest.err >&5
13101
 
   echo "$as_me:13101: \$? = $ac_status" >&5
 
13075
   echo "$as_me:13075: \$? = $ac_status" >&5
13102
13076
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13103
13077
   then
13104
13078
     # The compiler can only warn and ignore the option if not recognized
15478
15452
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15479
15453
  lt_status=$lt_dlunknown
15480
15454
  cat > conftest.$ac_ext <<_LT_EOF
15481
 
#line 15481 "configure"
 
15455
#line 15455 "configure"
15482
15456
#include "confdefs.h"
15483
15457
 
15484
15458
#if HAVE_DLFCN_H
15574
15548
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15575
15549
  lt_status=$lt_dlunknown
15576
15550
  cat > conftest.$ac_ext <<_LT_EOF
15577
 
#line 15577 "configure"
 
15551
#line 15551 "configure"
15578
15552
#include "confdefs.h"
15579
15553
 
15580
15554
#if HAVE_DLFCN_H
16533
16507
     no)
16534
16508
        ;;
16535
16509
     *)
16536
 
                        for ac_header in readline.h readline/readline.h histedit.h
 
16510
        for ac_header in readline.h readline/readline.h histedit.h
16537
16511
do :
16538
16512
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16539
16513
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16818
16792
 
16819
16793
fi
16820
16794
 
 
16795
case "$host" in
 
16796
 *-*-darwin*)
 
16797
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_9_init in -lresolv" >&5
 
16798
$as_echo_n "checking for res_9_init in -lresolv... " >&6; }
 
16799
if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then :
 
16800
  $as_echo_n "(cached) " >&6
 
16801
else
 
16802
  ac_check_lib_save_LIBS=$LIBS
 
16803
LIBS="-lresolv  $LIBS"
 
16804
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16805
/* end confdefs.h.  */
 
16806
 
 
16807
/* Override any GCC internal prototype to avoid an error.
 
16808
   Use char because int might match the return type of a GCC
 
16809
   builtin and then its argument prototype would still apply.  */
 
16810
#ifdef __cplusplus
 
16811
extern "C"
 
16812
#endif
 
16813
char res_9_init ();
 
16814
int
 
16815
main ()
 
16816
{
 
16817
return res_9_init ();
 
16818
  ;
 
16819
  return 0;
 
16820
}
 
16821
_ACEOF
 
16822
if ac_fn_c_try_link "$LINENO"; then :
 
16823
  ac_cv_lib_resolv_res_9_init=yes
 
16824
else
 
16825
  ac_cv_lib_resolv_res_9_init=no
 
16826
fi
 
16827
rm -f core conftest.err conftest.$ac_objext \
 
16828
    conftest$ac_exeext conftest.$ac_ext
 
16829
LIBS=$ac_check_lib_save_LIBS
 
16830
fi
 
16831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_9_init" >&5
 
16832
$as_echo "$ac_cv_lib_resolv_res_9_init" >&6; }
 
16833
if test "x$ac_cv_lib_resolv_res_9_init" = x""yes; then :
 
16834
  cat >>confdefs.h <<_ACEOF
 
16835
#define HAVE_LIBRESOLV 1
 
16836
_ACEOF
 
16837
 
 
16838
  LIBS="-lresolv $LIBS"
 
16839
 
 
16840
fi
 
16841
 
 
16842
    ;;
 
16843
esac
 
16844
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
 
16845
do :
 
16846
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
16847
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
 
16848
#  include <sys/types.h>
 
16849
#endif
 
16850
#ifdef HAVE_NETINET_IN_H
 
16851
#  include <netinet/in.h>   /* inet_ functions / structs */
 
16852
#endif
 
16853
#ifdef HAVE_ARPA_NAMESER_H
 
16854
#  include <arpa/nameser.h> /* DNS HEADER struct */
 
16855
#endif
 
16856
#ifdef HAVE_NETDB_H
 
16857
#  include <netdb.h>
 
16858
#endif
 
16859
"
 
16860
eval as_val=\$$as_ac_Header
 
16861
   if test "x$as_val" = x""yes; then :
 
16862
  cat >>confdefs.h <<_ACEOF
 
16863
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
16864
_ACEOF
 
16865
 
 
16866
fi
 
16867
 
 
16868
done
 
16869
 
 
16870
 
16821
16871
for ac_func in res_init __res_init
16822
16872
do :
16823
16873
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18621
18671
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18622
18672
/* end confdefs.h.  */
18623
18673
 
 
18674
#include <stddef.h>
18624
18675
#include <linux/rtnetlink.h>
18625
18676
int
18626
18677
main ()
21620
21671
 ;;
21621
21672
esac
21622
21673
 
21623
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel multicast support" >&5
21624
 
$as_echo_n "checking for kernel multicast support... " >&6; }
21625
 
if test "${ac_cv_var_mcast+set}" = set; then :
 
21674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
 
21675
$as_echo_n "checking for multicast IP support... " >&6; }
 
21676
if test "${ntp_cv_multicast+set}" = set; then :
21626
21677
  $as_echo_n "(cached) " >&6
21627
21678
else
21628
 
  ac_cv_var_mcast=no
21629
 
  case "$host" in
21630
 
   i386-sequent-sysv4) ;;
21631
 
   *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21679
 
 
21680
        ntp_cv_multicast=no
 
21681
        case "$host" in
 
21682
         i386-sequent-sysv4)
 
21683
            ;;
 
21684
         *)
 
21685
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21632
21686
/* end confdefs.h.  */
21633
 
#include <netinet/in.h>
21634
 
#ifdef IP_ADD_MEMBERSHIP
21635
 
   yes
21636
 
#endif
21637
 
 
 
21687
 
 
21688
                        #ifdef HAVE_NETINET_IN_H
 
21689
                        #include <netinet/in.h>
 
21690
                        #endif
 
21691
 
 
21692
int
 
21693
main ()
 
21694
{
 
21695
 
 
21696
                        struct ip_mreq ipmr;
 
21697
                        ipmr.imr_interface.s_addr = 0;
 
21698
 
 
21699
 
 
21700
  ;
 
21701
  return 0;
 
21702
}
21638
21703
_ACEOF
21639
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21640
 
  $EGREP "yes" >/dev/null 2>&1; then :
21641
 
  ac_cv_var_mcast=yes
21642
 
fi
21643
 
rm -f conftest*
21644
 
 ;;
21645
 
  esac
21646
 
fi
21647
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_mcast" >&5
21648
 
$as_echo "$ac_cv_var_mcast" >&6; }
21649
 
case "$ac_cv_var_mcast" in
 
21704
if ac_fn_c_try_compile "$LINENO"; then :
 
21705
  ntp_cv_multicast=yes
 
21706
fi
 
21707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21708
        esac
 
21709
 
 
21710
 
 
21711
fi
 
21712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
 
21713
$as_echo "$ntp_cv_multicast" >&6; }
 
21714
 
 
21715
case "$ntp_cv_multicast" in
21650
21716
 yes)
21651
21717
 
21652
21718
$as_echo "#define MCAST 1" >>confdefs.h
21653
21719
 
21654
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
21655
 
$as_echo_n "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... " >&6; }
21656
 
if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then :
 
21720
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
 
21721
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
 
21722
if test "${ntp_cv_typeof_ip_multicast_loop+set}" = set; then :
21657
21723
  $as_echo_n "(cached) " >&6
21658
21724
else
21659
 
  case "$host" in
21660
 
         *-*-netbsd*|*-*-*linux*)
21661
 
            ac_cv_var_typeof_ip_multicast_loop=u_int
21662
 
            ;;
21663
 
         *-*-winnt*)
21664
 
            ac_cv_var_typeof_ip_multicast_loop=BOOL
21665
 
            ;;
21666
 
         *) ac_cv_var_typeof_ip_multicast_loop=u_char
21667
 
            ;;
21668
 
        esac
 
21725
 
 
21726
            case "$host" in
 
21727
             *-*-netbsd*|*-*-*linux*)
 
21728
                ntp_cv_typeof_ip_multicast_loop=u_int
 
21729
                ;;
 
21730
             *-*-winnt*)
 
21731
                ntp_cv_typeof_ip_multicast_loop=BOOL
 
21732
                ;;
 
21733
             *)
 
21734
                ntp_cv_typeof_ip_multicast_loop=u_char
 
21735
            esac
 
21736
 
 
21737
 
21669
21738
fi
21670
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
21671
 
$as_echo "$ac_cv_var_typeof_ip_multicast_loop" >&6; }
 
21739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
 
21740
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
21672
21741
 
21673
21742
cat >>confdefs.h <<_ACEOF
21674
 
#define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
 
21743
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
21675
21744
_ACEOF
21676
21745
 
21677
 
    ;;
21678
21746
esac
21679
21747
 
21680
21748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
23342
23410
esac
23343
23411
 
23344
23412
#
23345
 
# OpenSSL has a number of callback prototypes inside other function
23346
 
# prototypes which trigger copious warnings with -Wstrict-prototypes,
23347
 
# (which is included in -Wall).
 
23413
# Older OpenSSL headers have a number of callback prototypes inside
 
23414
# other function prototypes which trigger copious warnings with gcc's
 
23415
# -Wstrict-prototypes, which is included in -Wall.
23348
23416
#
23349
23417
# An example:
23350
23418
#
23351
23419
# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
23352
 
#                 int (*cb)(), int sgckey);
23353
 
#                 ^^^^^^^^^^^
23354
 
#
23355
 
# The OpenSSL headers probably haven't been fixed in this regard
23356
 
# due to the hoops you have to jump through to stay compatible with
23357
 
# K&R C compilers.
23358
 
#
 
23420
#                 int (*cb)(), int sgckey);
 
23421
#                 ^^^^^^^^^^^
 
23422
#
 
23423
#
 
23424
#
 
23425
openssl_triggers_warnings=unknown
 
23426
SAVED_CFLAGS="$CFLAGS"
 
23427
 
23359
23428
case "$GCC$ntp_openssl" in
23360
23429
 yesyes)
23361
 
    CFLAGS="$CFLAGS -Wno-strict-prototypes"
 
23430
    CFLAGS="$CFLAGS -Werror"
 
23431
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23432
/* end confdefs.h.  */
 
23433
 /* see if -Werror breaks gcc */
 
23434
_ACEOF
 
23435
if ac_fn_c_try_compile "$LINENO"; then :
 
23436
  gcc_handles_Werror=yes
 
23437
else
 
23438
  gcc_handles_Werror=no
 
23439
 
 
23440
fi
 
23441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23442
    case "$gcc_handles_Werror" in
 
23443
     no)
 
23444
        # if this gcc doesn't do -Werror go ahead and use
 
23445
        # -Wstrict-prototypes.
 
23446
        openssl_triggers_warnings=yes
 
23447
        ;;
 
23448
     yes)
 
23449
        CFLAGS="$CFLAGS -Wstrict-prototypes"
 
23450
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23451
/* end confdefs.h.  */
 
23452
 
 
23453
                    #include "openssl/asn1_mac.h"
 
23454
                    #include "openssl/bn.h"
 
23455
                    #include "openssl/err.h"
 
23456
                    #include "openssl/evp.h"
 
23457
                    #include "openssl/pem.h"
 
23458
                    #include "openssl/rand.h"
 
23459
                    #include "openssl/x509v3.h"
 
23460
 
 
23461
int
 
23462
main ()
 
23463
{
 
23464
 /* empty body */
 
23465
 
 
23466
  ;
 
23467
  return 0;
 
23468
}
 
23469
_ACEOF
 
23470
if ac_fn_c_try_compile "$LINENO"; then :
 
23471
  openssl_triggers_warnings=no
 
23472
else
 
23473
  openssl_triggers_warnings=yes
 
23474
 
 
23475
fi
 
23476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23477
    esac
 
23478
    case "$openssl_triggers_warnings" in
 
23479
     yes)
 
23480
        CFLAGS="$SAVED_CFLAGS -Wno-strict-prototypes"
 
23481
        ;;
 
23482
     *)
 
23483
        CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
 
23484
    esac
 
23485
    ;;
 
23486
 yesno)
 
23487
    # gcc without OpenSSL
 
23488
    CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
23362
23489
esac
23363
23490
 
23364
23491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
24707
24834
 
24708
24835
case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
24709
24836
 yesyes)
24710
 
    ntp_have_linuxcaps=yes
 
24837
    case "$host" in
 
24838
     mips-sgi-irix*)
 
24839
        ntp_have_linuxcaps=no
 
24840
        ;;
 
24841
     *) ntp_have_linuxcaps=yes
 
24842
        ;;
 
24843
    esac
24711
24844
    ;;
24712
24845
 *)
24713
24846
    ntp_have_linuxcaps=no
25347
25480
ac_config_files="$ac_config_files util/Makefile"
25348
25481
 
25349
25482
 
 
25483
 
 
25484
 
25350
25485
subdirs="$subdirs sntp"
25351
25486
 
25352
25487
 
25483
25618
  as_fn_error "conditional \"NTP_CROSSCOMPILE\" was never defined.
25484
25619
Usually this means the macro was only invoked conditionally." "$LINENO" 5
25485
25620
fi
 
25621
if test -z "${NTP_BINSUBDIR_IS_BIN_TRUE}" && test -z "${NTP_BINSUBDIR_IS_BIN_FALSE}"; then
 
25622
  as_fn_error "conditional \"NTP_BINSUBDIR_IS_BIN\" was never defined.
 
25623
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
25624
fi
25486
25625
 
25487
25626
if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
25488
25627
  as_fn_error "conditional \"SAVECONFIG_ENABLED\" was never defined.
25896
26035
# report actual input values of CONFIG_FILES etc. instead of their
25897
26036
# values after options handling.
25898
26037
ac_log="
25899
 
This file was extended by ntp $as_me 4.2.6, which was
 
26038
This file was extended by ntp $as_me 4.2.6p1, which was
25900
26039
generated by GNU Autoconf 2.65.  Invocation command line was
25901
26040
 
25902
26041
  CONFIG_FILES    = $CONFIG_FILES
25962
26101
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25963
26102
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25964
26103
ac_cs_version="\\
25965
 
ntp config.status 4.2.6
 
26104
ntp config.status 4.2.6p1
25966
26105
configured by $0, generated by GNU Autoconf 2.65,
25967
26106
  with options \\"\$ac_cs_config\\"
25968
26107