source: rtems-tools/tools/4.11/ntp/rtems-ntp-4.2.6p5.diff @ f25fed3

4.104.115
Last change on this file since f25fed3 was f25fed3, checked in by Chris Johns <chrisj@…>, on 06/16/14 at 03:11:28

4.11: Add ntp patch.

This patch has issues related to the clock adjust interface but
it allows the package to build.

  • Property mode set to 100644
File size: 41.2 KB
  • ntp-4.2.6p5

    Only in ntp-4.2.6p5: autom4te.cache
    diff -rwu ntp-4.2.6p5.orig/configure ntp-4.2.6p5/configure
    old new  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.68 for ntp 4.2.6p5.
     3# Generated by GNU Autoconf 2.69 for ntp 4.2.6p5.
    44#
    55#
    6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
    8 # Foundation, Inc.
     6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    97#
    108#
    119# This configure script is free software; the Free Software Foundation
     
    134132# CDPATH.
    135133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    136134
     135# Use a proper internal environment variable to ensure we don't fall
     136  # into an infinite loop, continuously re-executing ourselves.
     137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
     138    _as_can_reexec=no; export _as_can_reexec;
     139    # We cannot yet assume a decent shell, so we have to provide a
     140# neutralization value for shells without unset; and this also
     141# works around shells that cannot unset nonexistent variables.
     142# Preserve -v and -x to the replacement shell.
     143BASH_ENV=/dev/null
     144ENV=/dev/null
     145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     146case $- in # ((((
     147  *v*x* | *x*v* ) as_opts=-vx ;;
     148  *v* ) as_opts=-v ;;
     149  *x* ) as_opts=-x ;;
     150  * ) as_opts= ;;
     151esac
     152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
     153# Admittedly, this is quite paranoid, since all the known shells bail
     154# out after a failed `exec'.
     155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
     156as_fn_exit 255
     157  fi
     158  # We don't want this to propagate to other subprocesses.
     159          { _as_can_reexec=; unset _as_can_reexec;}
    137160if test "x$CONFIG_SHELL" = x; then
    138161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    139162  emulate sh
     
    167190else
    168191  exitcode=1; echo positional parameters were not saved.
    169192fi
    170 test x\$exitcode = x0 || exit 1"
     193test x\$exitcode = x0 || exit 1
     194test -x / || exit 1"
    171195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    172196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    173197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
     
    220244
    221245
    222246      if test "x$CONFIG_SHELL" != x; then :
     247  export CONFIG_SHELL
    223248  # We cannot yet assume a decent shell, so we have to provide a
    224249        # neutralization value for shells without unset; and this also
    225250        # works around shells that cannot unset nonexistent variables.
     
    227252        BASH_ENV=/dev/null
    228253        ENV=/dev/null
    229254        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    230         export CONFIG_SHELL
    231255        case $- in # ((((
    232256          *v*x* | *x*v* ) as_opts=-vx ;;
    233257          *v* ) as_opts=-v ;;
    234258          *x* ) as_opts=-x ;;
    235259          * ) as_opts= ;;
    236260        esac
    237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
     261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
     262# Admittedly, this is quite paranoid, since all the known shells bail
     263# out after a failed `exec'.
     264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
     265exit 255
    238266fi
    239267
    240268    if test x$as_have_required = xno; then :
     
    336364
    337365
    338366} # as_fn_mkdir_p
     367
     368# as_fn_executable_p FILE
     369# -----------------------
     370# Test if FILE is an executable regular file.
     371as_fn_executable_p ()
     372{
     373  test -f "$1" && test -x "$1"
     374} # as_fn_executable_p
    339375# as_fn_append VAR VALUE
    340376# ----------------------
    341377# Append the text in VALUE to the end of the definition contained in VAR. Take
     
    457493  chmod +x "$as_me.lineno" ||
    458494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    459495
     496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
     497  # already done that, so ensure we don't try to do so again and fall
     498  # in an infinite loop.  This has already happened in practice.
     499  _as_can_reexec=no; export _as_can_reexec
    460500  # Don't try to exec as it changes $[0], causing all sort of problems
    461501  # (the dirname of $[0] is not the place where we might find the
    462502  # original and so on.  Autoconf is especially sensitive to this).
     
    491531    # ... but there are two gotchas:
    492532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    493533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    494     # In both cases, we have to default to `cp -p'.
     534    # In both cases, we have to default to `cp -pR'.
    495535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    496       as_ln_s='cp -p'
     536      as_ln_s='cp -pR'
    497537  elif ln conf$$.file conf$$ 2>/dev/null; then
    498538    as_ln_s=ln
    499539  else
    500     as_ln_s='cp -p'
     540    as_ln_s='cp -pR'
    501541  fi
    502542else
    503   as_ln_s='cp -p'
     543  as_ln_s='cp -pR'
    504544fi
    505545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    506546rmdir conf$$.dir 2>/dev/null
     
    512552  as_mkdir_p=false
    513553fi
    514554
    515 if test -x / >/dev/null 2>&1; then
    516555  as_test_x='test -x'
    517 else
    518   if ls -dL / >/dev/null 2>&1; then
    519     as_ls_L_option=L
    520   else
    521     as_ls_L_option=
    522   fi
    523   as_test_x='
    524     eval sh -c '\''
    525       if test -d "$1"; then
    526         test -d "$1/.";
    527       else
    528         case $1 in #(
    529         -*)set "./$1";;
    530         esac;
    531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    532         ???[sx]*):;;*)false;;esac;fi
    533     '\'' sh
    534   '
    535 fi
    536 as_executable_p=$as_test_x
     556as_executable_p=as_fn_executable_p
    537557
    538558# Sed expression to map a string onto a valid CPP name.
    539559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     
    13411361if test "x$host_alias" != x; then
    13421362  if test "x$build_alias" = x; then
    13431363    cross_compiling=maybe
    1344     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    1345     If a cross compiler is detected then cross compile mode will be used" >&2
    13461364  elif test "x$build_alias" != "x$host_alias"; then
    13471365    cross_compiling=yes
    13481366  fi
     
    17051723if $ac_init_version; then
    17061724  cat <<\_ACEOF
    17071725ntp configure 4.2.6p5
    1708 generated by GNU Autoconf 2.68
     1726generated by GNU Autoconf 2.69
    17091727
    1710 Copyright (C) 2010 Free Software Foundation, Inc.
     1728Copyright (C) 2012 Free Software Foundation, Inc.
    17111729This configure script is free software; the Free Software Foundation
    17121730gives unlimited permission to copy, distribute and modify it.
    17131731_ACEOF
     
    19801998         test ! -s conftest.err
    19811999       } && test -s conftest$ac_exeext && {
    19822000         test "$cross_compiling" = yes ||
    1983          $as_test_x conftest$ac_exeext
     2001         test -x conftest$ac_exeext
    19842002       }; then :
    19852003  ac_retval=0
    19862004else
     
    20702088main ()
    20712089{
    20722090static int test_array [1 - 2 * !(($2) >= 0)];
    2073 test_array [0] = 0
     2091test_array [0] = 0;
     2092return test_array [0];
    20742093
    20752094  ;
    20762095  return 0;
     
    20862105main ()
    20872106{
    20882107static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    2089 test_array [0] = 0
     2108test_array [0] = 0;
     2109return test_array [0];
    20902110
    20912111  ;
    20922112  return 0;
     
    21122132main ()
    21132133{
    21142134static int test_array [1 - 2 * !(($2) < 0)];
    2115 test_array [0] = 0
     2135test_array [0] = 0;
     2136return test_array [0];
    21162137
    21172138  ;
    21182139  return 0;
     
    21282149main ()
    21292150{
    21302151static int test_array [1 - 2 * !(($2) >= $ac_mid)];
    2131 test_array [0] = 0
     2152test_array [0] = 0;
     2153return test_array [0];
    21322154
    21332155  ;
    21342156  return 0;
     
    21622184main ()
    21632185{
    21642186static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    2165 test_array [0] = 0
     2187test_array [0] = 0;
     2188return test_array [0];
    21662189
    21672190  ;
    21682191  return 0;
     
    23592382running configure, to aid debugging if configure makes a mistake.
    23602383
    23612384It was created by ntp $as_me 4.2.6p5, which was
    2362 generated by GNU Autoconf 2.68.  Invocation command line was
     2385generated by GNU Autoconf 2.69.  Invocation command line was
    23632386
    23642387  $ $0 $@
    23652388
     
    28992922    # by default.
    29002923    for ac_prog in ginstall scoinst install; do
    29012924      for ac_exec_ext in '' $ac_executable_extensions; do
    2902         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
     2925        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    29032926          if test $ac_prog = install &&
    29042927            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    29052928            # AIX install.  It has an incompatible calling convention.
     
    30683091  IFS=$as_save_IFS
    30693092  test -z "$as_dir" && as_dir=.
    30703093    for ac_exec_ext in '' $ac_executable_extensions; do
    3071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    30723095    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    30733096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    30743097    break 2
     
    31083131  IFS=$as_save_IFS
    31093132  test -z "$as_dir" && as_dir=.
    31103133    for ac_exec_ext in '' $ac_executable_extensions; do
    3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    31123135    ac_cv_prog_ac_ct_STRIP="strip"
    31133136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    31143137    break 2
     
    31593182  test -z "$as_dir" && as_dir=.
    31603183    for ac_prog in mkdir gmkdir; do
    31613184         for ac_exec_ext in '' $ac_executable_extensions; do
    3162            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
     3185           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
    31633186           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
    31643187             'mkdir (GNU coreutils) '* | \
    31653188             'mkdir (coreutils) '* | \
     
    32123235  IFS=$as_save_IFS
    32133236  test -z "$as_dir" && as_dir=.
    32143237    for ac_exec_ext in '' $ac_executable_extensions; do
    3215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    32163239    ac_cv_prog_AWK="$ac_prog"
    32173240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    32183241    break 2
     
    35073530  IFS=$as_save_IFS
    35083531  test -z "$as_dir" && as_dir=.
    35093532    for ac_exec_ext in '' $ac_executable_extensions; do
    3510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    35113534    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    35123535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    35133536    break 2
     
    35473570  IFS=$as_save_IFS
    35483571  test -z "$as_dir" && as_dir=.
    35493572    for ac_exec_ext in '' $ac_executable_extensions; do
    3550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    35513574    ac_cv_prog_ac_ct_CC="gcc"
    35523575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    35533576    break 2
     
    36003623  IFS=$as_save_IFS
    36013624  test -z "$as_dir" && as_dir=.
    36023625    for ac_exec_ext in '' $ac_executable_extensions; do
    3603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    36043627    ac_cv_prog_CC="${ac_tool_prefix}cc"
    36053628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    36063629    break 2
     
    36413664  IFS=$as_save_IFS
    36423665  test -z "$as_dir" && as_dir=.
    36433666    for ac_exec_ext in '' $ac_executable_extensions; do
    3644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    36453668    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    36463669       ac_prog_rejected=yes
    36473670       continue
     
    36993722  IFS=$as_save_IFS
    37003723  test -z "$as_dir" && as_dir=.
    37013724    for ac_exec_ext in '' $ac_executable_extensions; do
    3702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    37033726    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    37043727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    37053728    break 2
     
    37433766  IFS=$as_save_IFS
    37443767  test -z "$as_dir" && as_dir=.
    37453768    for ac_exec_ext in '' $ac_executable_extensions; do
    3746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    37473770    ac_cv_prog_ac_ct_CC="$ac_prog"
    37483771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    37493772    break 2
     
    41894212/* end confdefs.h.  */
    41904213#include <stdarg.h>
    41914214#include <stdio.h>
    4192 #include <sys/types.h>
    4193 #include <sys/stat.h>
     4215struct stat;
    41944216/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    41954217struct buf { int x; };
    41964218FILE * (*rcsopen) (struct buf *, struct stat *, int);
     
    45574579    for ac_prog in grep ggrep; do
    45584580    for ac_exec_ext in '' $ac_executable_extensions; do
    45594581      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    4560       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     4582      as_fn_executable_p "$ac_path_GREP" || continue
    45614583# Check for GNU ac_path_GREP and select it if it is found.
    45624584  # Check for GNU $ac_path_GREP
    45634585case `"$ac_path_GREP" --version 2>&1` in
     
    46234645    for ac_prog in egrep; do
    46244646    for ac_exec_ext in '' $ac_executable_extensions; do
    46254647      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    4626       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     4648      as_fn_executable_p "$ac_path_EGREP" || continue
    46274649# Check for GNU ac_path_EGREP and select it if it is found.
    46284650  # Check for GNU $ac_path_EGREP
    46294651case `"$ac_path_EGREP" --version 2>&1` in
     
    49204942  IFS=$as_save_IFS
    49214943  test -z "$as_dir" && as_dir=.
    49224944    for ac_exec_ext in '' $ac_executable_extensions; do
    4923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    49244946    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    49254947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    49264948    break 2
     
    49604982  IFS=$as_save_IFS
    49614983  test -z "$as_dir" && as_dir=.
    49624984    for ac_exec_ext in '' $ac_executable_extensions; do
    4963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    49644986    ac_cv_prog_ac_ct_CC="gcc"
    49654987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    49664988    break 2
     
    50135035  IFS=$as_save_IFS
    50145036  test -z "$as_dir" && as_dir=.
    50155037    for ac_exec_ext in '' $ac_executable_extensions; do
    5016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     5038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    50175039    ac_cv_prog_CC="${ac_tool_prefix}cc"
    50185040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    50195041    break 2
     
    50545076  IFS=$as_save_IFS
    50555077  test -z "$as_dir" && as_dir=.
    50565078    for ac_exec_ext in '' $ac_executable_extensions; do
    5057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     5079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    50585080    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    50595081       ac_prog_rejected=yes
    50605082       continue
     
    51125134  IFS=$as_save_IFS
    51135135  test -z "$as_dir" && as_dir=.
    51145136    for ac_exec_ext in '' $ac_executable_extensions; do
    5115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     5137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    51165138    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    51175139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    51185140    break 2
     
    51565178  IFS=$as_save_IFS
    51575179  test -z "$as_dir" && as_dir=.
    51585180    for ac_exec_ext in '' $ac_executable_extensions; do
    5159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     5181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    51605182    ac_cv_prog_ac_ct_CC="$ac_prog"
    51615183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    51625184    break 2
     
    53525374/* end confdefs.h.  */
    53535375#include <stdarg.h>
    53545376#include <stdio.h>
    5355 #include <sys/types.h>
    5356 #include <sys/stat.h>
     5377struct stat;
    53575378/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    53585379struct buf { int x; };
    53595380FILE * (*rcsopen) (struct buf *, struct stat *, int);
     
    58485869  IFS=$as_save_IFS
    58495870  test -z "$as_dir" && as_dir=.
    58505871    for ac_exec_ext in '' $ac_executable_extensions; do
    5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     5872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    58525873    ac_cv_prog_YACC="$ac_prog"
    58535874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    58545875    break 2
     
    60306051  return 0;
    60316052}
    60326053_ACEOF
    6033 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
     6054for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
    60346055do
    60356056  CC="$ac_save_CC $ac_arg"
    60366057  if ac_fn_c_try_compile "$LINENO"; then :
     
    60706091/* end confdefs.h.  */
    60716092#include <stdarg.h>
    60726093#include <stdio.h>
    6073 #include <sys/types.h>
    6074 #include <sys/stat.h>
     6094struct stat;
    60756095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    60766096struct buf { int x; };
    60776097FILE * (*rcsopen) (struct buf *, struct stat *, int);
     
    72667286    for ac_prog in sed gsed; do
    72677287    for ac_exec_ext in '' $ac_executable_extensions; do
    72687288      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
    7269       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
     7289      as_fn_executable_p "$ac_path_SED" || continue
    72707290# Check for GNU ac_path_SED and select it if it is found.
    72717291  # Check for GNU $ac_path_SED
    72727292case `"$ac_path_SED" --version 2>&1` in
     
    78877907  IFS=$as_save_IFS
    78887908  test -z "$as_dir" && as_dir=.
    78897909    for ac_exec_ext in '' $ac_executable_extensions; do
    7890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    78917911    ac_cv_prog_AWK="$ac_prog"
    78927912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    78937913    break 2
     
    81188138    for ac_prog in sed gsed; do
    81198139    for ac_exec_ext in '' $ac_executable_extensions; do
    81208140      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
    8121       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
     8141      as_fn_executable_p "$ac_path_SED" || continue
    81228142# Check for GNU ac_path_SED and select it if it is found.
    81238143  # Check for GNU $ac_path_SED
    81248144case `"$ac_path_SED" --version 2>&1` in
     
    81978217    for ac_prog in fgrep; do
    81988218    for ac_exec_ext in '' $ac_executable_extensions; do
    81998219      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
    8200       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
     8220      as_fn_executable_p "$ac_path_FGREP" || continue
    82018221# Check for GNU ac_path_FGREP and select it if it is found.
    82028222  # Check for GNU $ac_path_FGREP
    82038223case `"$ac_path_FGREP" --version 2>&1` in
     
    84538473  IFS=$as_save_IFS
    84548474  test -z "$as_dir" && as_dir=.
    84558475    for ac_exec_ext in '' $ac_executable_extensions; do
    8456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    84578477    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    84588478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    84598479    break 2
     
    84978517  IFS=$as_save_IFS
    84988518  test -z "$as_dir" && as_dir=.
    84998519    for ac_exec_ext in '' $ac_executable_extensions; do
    8500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    85018521    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    85028522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    85038523    break 2
     
    89168936  IFS=$as_save_IFS
    89178937  test -z "$as_dir" && as_dir=.
    89188938    for ac_exec_ext in '' $ac_executable_extensions; do
    8919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    89208940    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    89218941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    89228942    break 2
     
    89568976  IFS=$as_save_IFS
    89578977  test -z "$as_dir" && as_dir=.
    89588978    for ac_exec_ext in '' $ac_executable_extensions; do
    8959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    89608980    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    89618981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    89628982    break 2
     
    92629282  IFS=$as_save_IFS
    92639283  test -z "$as_dir" && as_dir=.
    92649284    for ac_exec_ext in '' $ac_executable_extensions; do
    9265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     9285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    92669286    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    92679287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    92689288    break 2
     
    93029322  IFS=$as_save_IFS
    93039323  test -z "$as_dir" && as_dir=.
    93049324    for ac_exec_ext in '' $ac_executable_extensions; do
    9305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     9325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    93069326    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    93079327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    93089328    break 2
     
    94059425  IFS=$as_save_IFS
    94069426  test -z "$as_dir" && as_dir=.
    94079427    for ac_exec_ext in '' $ac_executable_extensions; do
    9408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     9428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    94099429    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    94109430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    94119431    break 2
     
    94499469  IFS=$as_save_IFS
    94509470  test -z "$as_dir" && as_dir=.
    94519471    for ac_exec_ext in '' $ac_executable_extensions; do
    9452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     9472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    94539473    ac_cv_prog_ac_ct_AR="$ac_prog"
    94549474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    94559475    break 2
     
    95749594  IFS=$as_save_IFS
    95759595  test -z "$as_dir" && as_dir=.
    95769596    for ac_exec_ext in '' $ac_executable_extensions; do
    9577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     9597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    95789598    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    95799599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    95809600    break 2
     
    96149634  IFS=$as_save_IFS
    96159635  test -z "$as_dir" && as_dir=.
    96169636    for ac_exec_ext in '' $ac_executable_extensions; do
    9617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     9637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    96189638    ac_cv_prog_ac_ct_STRIP="strip"
    96199639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    96209640    break 2
     
    96739693  IFS=$as_save_IFS
    96749694  test -z "$as_dir" && as_dir=.
    96759695    for ac_exec_ext in '' $ac_executable_extensions; do
    9676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     9696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    96779697    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    96789698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    96799699    break 2
     
    97139733  IFS=$as_save_IFS
    97149734  test -z "$as_dir" && as_dir=.
    97159735    for ac_exec_ext in '' $ac_executable_extensions; do
    9716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     9736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    97179737    ac_cv_prog_ac_ct_RANLIB="ranlib"
    97189738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    97199739    break 2
     
    1034810368  IFS=$as_save_IFS
    1034910369  test -z "$as_dir" && as_dir=.
    1035010370    for ac_exec_ext in '' $ac_executable_extensions; do
    10351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1035210372    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
    1035310373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1035410374    break 2
     
    1038810408  IFS=$as_save_IFS
    1038910409  test -z "$as_dir" && as_dir=.
    1039010410    for ac_exec_ext in '' $ac_executable_extensions; do
    10391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1039210412    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
    1039310413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1039410414    break 2
     
    1046810488  IFS=$as_save_IFS
    1046910489  test -z "$as_dir" && as_dir=.
    1047010490    for ac_exec_ext in '' $ac_executable_extensions; do
    10471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1047210492    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    1047310493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1047410494    break 2
     
    1050810528  IFS=$as_save_IFS
    1050910529  test -z "$as_dir" && as_dir=.
    1051010530    for ac_exec_ext in '' $ac_executable_extensions; do
    10511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1051210532    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    1051310533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1051410534    break 2
     
    1056010580  IFS=$as_save_IFS
    1056110581  test -z "$as_dir" && as_dir=.
    1056210582    for ac_exec_ext in '' $ac_executable_extensions; do
    10563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10583  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1056410584    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    1056510585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1056610586    break 2
     
    1060010620  IFS=$as_save_IFS
    1060110621  test -z "$as_dir" && as_dir=.
    1060210622    for ac_exec_ext in '' $ac_executable_extensions; do
    10603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1060410624    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    1060510625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1060610626    break 2
     
    1065210672  IFS=$as_save_IFS
    1065310673  test -z "$as_dir" && as_dir=.
    1065410674    for ac_exec_ext in '' $ac_executable_extensions; do
    10655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1065610676    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    1065710677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1065810678    break 2
     
    1069210712  IFS=$as_save_IFS
    1069310713  test -z "$as_dir" && as_dir=.
    1069410714    for ac_exec_ext in '' $ac_executable_extensions; do
    10695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1069610716    ac_cv_prog_ac_ct_LIPO="lipo"
    1069710717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1069810718    break 2
     
    1074410764  IFS=$as_save_IFS
    1074510765  test -z "$as_dir" && as_dir=.
    1074610766    for ac_exec_ext in '' $ac_executable_extensions; do
    10747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1074810768    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    1074910769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1075010770    break 2
     
    1078410804  IFS=$as_save_IFS
    1078510805  test -z "$as_dir" && as_dir=.
    1078610806    for ac_exec_ext in '' $ac_executable_extensions; do
    10787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1078810808    ac_cv_prog_ac_ct_OTOOL="otool"
    1078910809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1079010810    break 2
     
    1083610856  IFS=$as_save_IFS
    1083710857  test -z "$as_dir" && as_dir=.
    1083810858    for ac_exec_ext in '' $ac_executable_extensions; do
    10839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1084010860    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    1084110861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1084210862    break 2
     
    1087610896  IFS=$as_save_IFS
    1087710897  test -z "$as_dir" && as_dir=.
    1087810898    for ac_exec_ext in '' $ac_executable_extensions; do
    10879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     10899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1088010900    ac_cv_prog_ac_ct_OTOOL64="otool64"
    1088110901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1088210902    break 2
     
    1519415214  IFS=$as_save_IFS
    1519515215  test -z "$as_dir" && as_dir=.
    1519615216    for ac_exec_ext in '' $ac_executable_extensions; do
    15197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     15217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1519815218    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    1519915219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1520015220    break 2
     
    1523415254  IFS=$as_save_IFS
    1523515255  test -z "$as_dir" && as_dir=.
    1523615256    for ac_exec_ext in '' $ac_executable_extensions; do
    15237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     15257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1523815258    ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
    1523915259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1524015260    break 2
     
    1527415294  IFS=$as_save_IFS
    1527515295  test -z "$as_dir" && as_dir=.
    1527615296    for ac_exec_ext in '' $ac_executable_extensions; do
    15277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     15297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1527815298    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    1527915299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1528015300    break 2
     
    1534715367  IFS=$as_save_IFS
    1534815368  test -z "$as_dir" && as_dir=.
    1534915369    for ac_exec_ext in '' $ac_executable_extensions; do
    15350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     15370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1535115371    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    1535215372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1535315373    break 2
     
    1749317513int
    1749417514main ()
    1749517515{
    17496 /* FIXME: Include the comments suggested by Paul. */
     17516
    1749717517#ifndef __cplusplus
    17498   /* Ultrix mips cc rejects this.  */
     17518  /* Ultrix mips cc rejects this sort of thing.  */
    1749917519  typedef int charset[2];
    17500   const charset cs;
     17520  const charset cs = { 0, 0 };
    1750117521  /* SunOS 4.1.1 cc rejects this.  */
    1750217522  char const *const *pcpcc;
    1750317523  char **ppc;
     
    1751417534  ++pcpcc;
    1751517535  ppc = (char**) pcpcc;
    1751617536  pcpcc = (char const *const *) ppc;
    17517   { /* SCO 3.2v4 cc rejects this.  */
    17518     char *t;
     17537  { /* SCO 3.2v4 cc rejects this sort of thing.  */
     17538    char tx;
     17539    char *t = &tx;
    1751917540    char const *s = 0 ? (char *) 0 : (char const *) 0;
    1752017541
    1752117542    *t++ = 0;
     
    1753117552    iptr p = 0;
    1753217553    ++p;
    1753317554  }
    17534   { /* AIX XL C 1.02.0.0 rejects this saying
     17555  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
    1753517556       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    17536     struct s { int j; const int *ap[3]; };
    17537     struct s *b; b->j = 5;
     17557    struct s { int j; const int *ap[3]; } bx;
     17558    struct s *b = &bx; b->j = 5;
    1753817559  }
    1753917560  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    1754017561    const int foo = 10;
     
    1885218873main ()
    1885318874{
    1885418875static int test_array [1 - 2 * !(((char) -1) < 0)];
    18855 test_array [0] = 0
     18876test_array [0] = 0;
     18877return test_array [0];
    1885618878
    1885718879  ;
    1885818880  return 0;
     
    2064920671             m68k-*-mint*)
    2065020672                ans=no
    2065120673                ;;
     20674             *-*-rtems*)
     20675                ans=no
     20676                ;;
    2065220677            esac
    2065320678            ;;
    2065420679        esac
     
    2077520800             *-*-kfreebsd*)
    2077620801                ans=no
    2077720802                ;;
     20803             *-*-rtems*)
     20804                ans=no
     20805                ;;
    2077820806             *) ans=yes
    2077920807                ;;
    2078020808            esac
     
    2084220870             *-*-kfreebsd*)
    2084320871                ans=no
    2084420872                ;;
     20873             *-*-rtems*)
     20874                ans=no
     20875                ;;
    2084520876             *) ans=yes
    2084620877                ;;
    2084720878            esac
     
    2386023891
    2386123892esac
    2386223893
     23894case "$host" in
     23895 *-*-rtems*)
     23896    ntp_cv_make_tickadj=no
     23897    ;;
     23898 *)
    2386323899ntp_cv_make_tickadj=yes
     23900    ;;
     23901esac
     23902
    2386423903case "$can_kmem$ac_cv_var_tick$default_tickadj" in
    2386523904 nonono)        # Don't read KMEM, no presets.  Bogus.
    2386623905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
     
    2389523934esac
    2389623935
    2389723936
     23937
    2389823938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
    2389923939$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
    2390023940if ${ac_cv_make_ntptime+:} false; then :
     
    2392823968    # Do not bother
    2392923969    ntp_cv_make_tickadj=no
    2393023970    ;;
     23971 *-*-rtems*)
     23972    ntp_cv_make_tickadj=no
     23973    ;;
    2393123974 *-*-irix*)
    2393223975    ntp_cv_make_tickadj=no
    2393323976    ;;
     
    2395523998#
    2395623999{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
    2395724000
     24001case "$host" in
     24002 *-*-rtems*)
     24003    ntp_cv_make_tickadj=no
     24004    ;;
     24005esac
     24006
    2395824007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
    2395924008$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
    2396024009if ${ntp_cv_make_tickadj+:} false; then :
     
    2461424663if ${isc_cv_platform_havesalen+:} false; then :
    2461524664  $as_echo_n "(cached) " >&6
    2461624665else
    24617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24666  case "$host" in
     24667       *-*-rtems*)
     24668          isc_cv_platform_havesalen=no
     24669          ;;
     24670       *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2461824671/* end confdefs.h.  */
    2461924672
    2462024673                #include <sys/types.h>
     
    2463624689  isc_cv_platform_havesalen=yes
    2463724690else
    2463824691  isc_cv_platform_havesalen=no
    24639 
    2464024692fi
    2464124693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     24694          ;;
     24695    esac
    2464224696
    2464324697fi
    2464424698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
     
    2562825682    # ... but there are two gotchas:
    2562925683    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    2563025684    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    25631     # In both cases, we have to default to `cp -p'.
     25685    # In both cases, we have to default to `cp -pR'.
    2563225686    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    25633       as_ln_s='cp -p'
     25687      as_ln_s='cp -pR'
    2563425688  elif ln conf$$.file conf$$ 2>/dev/null; then
    2563525689    as_ln_s=ln
    2563625690  else
    25637     as_ln_s='cp -p'
     25691    as_ln_s='cp -pR'
    2563825692  fi
    2563925693else
    25640   as_ln_s='cp -p'
     25694  as_ln_s='cp -pR'
    2564125695fi
    2564225696rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    2564325697rmdir conf$$.dir 2>/dev/null
     
    2569725751  as_mkdir_p=false
    2569825752fi
    2569925753
    25700 if test -x / >/dev/null 2>&1; then
     25754
     25755# as_fn_executable_p FILE
     25756# -----------------------
     25757# Test if FILE is an executable regular file.
     25758as_fn_executable_p ()
     25759{
     25760  test -f "$1" && test -x "$1"
     25761} # as_fn_executable_p
    2570125762  as_test_x='test -x'
    25702 else
    25703   if ls -dL / >/dev/null 2>&1; then
    25704     as_ls_L_option=L
    25705   else
    25706     as_ls_L_option=
    25707   fi
    25708   as_test_x='
    25709     eval sh -c '\''
    25710       if test -d "$1"; then
    25711         test -d "$1/.";
    25712       else
    25713         case $1 in #(
    25714         -*)set "./$1";;
    25715         esac;
    25716         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    25717         ???[sx]*):;;*)false;;esac;fi
    25718     '\'' sh
    25719   '
    25720 fi
    25721 as_executable_p=$as_test_x
     25763as_executable_p=as_fn_executable_p
    2572225764
    2572325765# Sed expression to map a string onto a valid CPP name.
    2572425766as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     
    2574025782# values after options handling.
    2574125783ac_log="
    2574225784This file was extended by ntp $as_me 4.2.6p5, which was
    25743 generated by GNU Autoconf 2.68.  Invocation command line was
     25785generated by GNU Autoconf 2.69.  Invocation command line was
    2574425786
    2574525787  CONFIG_FILES    = $CONFIG_FILES
    2574625788  CONFIG_HEADERS  = $CONFIG_HEADERS
     
    2580625848ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    2580725849ac_cs_version="\\
    2580825850ntp config.status 4.2.6p5
    25809 configured by $0, generated by GNU Autoconf 2.68,
     25851configured by $0, generated by GNU Autoconf 2.69,
    2581025852  with options \\"\$ac_cs_config\\"
    2581125853
    25812 Copyright (C) 2010 Free Software Foundation, Inc.
     25854Copyright (C) 2012 Free Software Foundation, Inc.
    2581325855This config.status script is free software; the Free Software Foundation
    2581425856gives unlimited permission to copy, distribute and modify it."
    2581525857
     
    2590025942_ACEOF
    2590125943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    2590225944if \$ac_cs_recheck; then
    25903   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     25945  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    2590425946  shift
    2590525947  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
    2590625948  CONFIG_SHELL='$SHELL'
  • configure.ac

    diff -rwu ntp-4.2.6p5.orig/configure.ac ntp-4.2.6p5/configure.ac
    old new  
    22242224             m68k-*-mint*)
    22252225                ans=no
    22262226                ;;
     2227             *-*-rtems*)
     2228                ans=no
     2229                ;;
    22272230            esac
    22282231            ;;
    22292232        esac
     
    23202323             *-*-kfreebsd*)
    23212324                ans=no
    23222325                ;;
     2326             *-*-rtems*)
     2327                ans=no
     2328                ;;
    23232329             *) ans=yes
    23242330                ;;
    23252331            esac
     
    23802386             *-*-kfreebsd*)
    23812387                ans=no
    23822388                ;;
     2389             *-*-rtems*)
     2390                ans=no
     2391                ;;
    23832392             *) ans=yes
    23842393                ;;
    23852394            esac
     
    46464655    AC_DEFINE([SCO5_CLOCK], [1], [Do we want the SCO clock hacks?])
    46474656esac
    46484657
     4658case "$host" in
     4659 *-*-rtems*)
     4660    ntp_cv_make_tickadj=no
     4661    ;;
     4662 *)
    46494663ntp_cv_make_tickadj=yes
     4664    ;;
     4665esac
     4666
    46504667case "$can_kmem$ac_cv_var_tick$default_tickadj" in
    46514668 nonono)        # Don't read KMEM, no presets.  Bogus.
    46524669    AC_MSG_WARN([Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj.])
     
    46764693    ;;
    46774694esac
    46784695
     4696
    46794697AC_SUBST(MAKE_NTPTIME)
    46804698AC_CACHE_CHECK([if we want and can make the ntptime utility], ac_cv_make_ntptime,
    46814699[case "$host" in
     
    47034721    # Do not bother
    47044722    ntp_cv_make_tickadj=no
    47054723    ;;
     4724 *-*-rtems*)
     4725    ntp_cv_make_tickadj=no
     4726    ;;
    47064727 *-*-irix*)
    47074728    ntp_cv_make_tickadj=no
    47084729    ;;
     
    47304751#
    47314752AS_UNSET([ntp_cv_make_tickadj])
    47324753
     4754case "$host" in
     4755 *-*-rtems*)
     4756    ntp_cv_make_tickadj=no
     4757    ;;
     4758esac
     4759
    47334760AC_CACHE_CHECK(
    47344761    [if we want and can make the tickadj utility],
    47354762    [ntp_cv_make_tickadj],
     
    52705297AC_CACHE_CHECK(
    52715298    [struct sockaddr for sa_len],
    52725299    [isc_cv_platform_havesalen],
    5273     [AC_COMPILE_IFELSE(
     5300    [case "$host" in
     5301       *-*-rtems*)
     5302          isc_cv_platform_havesalen=no
     5303          ;;
     5304       *) AC_COMPILE_IFELSE(
    52745305        [AC_LANG_PROGRAM(
    52755306            [[
    52765307                #include <sys/types.h>
     
    52825313            ]]
    52835314        )],
    52845315        [isc_cv_platform_havesalen=yes],
    5285         [isc_cv_platform_havesalen=no]
    5286     )]
     5316            [isc_cv_platform_havesalen=no])
     5317          ;;
     5318    esac]
    52875319)
    52885320case "$isc_cv_platform_havesalen" in
    52895321 yes)
  • include/ntp_machine.h

    diff -rwu ntp-4.2.6p5.orig/include/ntp_machine.h ntp-4.2.6p5/include/ntp_machine.h
    old new  
    243243#define __int64 long long
    244244#endif
    245245
     246/*chrisj Tue June 10 22:03:55 2014*/
     247#ifdef __rtems__
     248
     249#define TIMEOFDAY               0x0     /* system wide realtime clock */
     250#define HAVE_GETCLOCK           1       /* configure does not set this ... */
     251#define HAVE_NO_NICE            1       /* configure does not set this ... */
     252#define HAVE_RANDOM             1       /* configure does not set this ...  */
     253#define HAVE_SRANDOM            1       /* configure does not set this ... */
     254
     255/* RTEMS specific additions to take care of its
     256 * unix (non)complicance
     257 */
     258
     259#include <rtems.h>
     260
     261#define _getch getchar
     262
     263#endif /* RTEMS */
     264
    246265/*casey Tue May 27 15:45:25 SAT 1997*/
    247266#ifdef SYS_VXWORKS
    248267
  • libntp/machines.c

    diff -rwu ntp-4.2.6p5.orig/libntp/machines.c ntp-4.2.6p5/libntp/machines.c
    old new  
    526526
    527527#endif /* not SYS_WINNT */
    528528
    529 #if defined (SYS_WINNT) || defined (SYS_VXWORKS) || defined(MPE)
     529static int tz_minuteswest;
     530static int tz_dsttime;
     531
     532#if __rtems__
     533#include <rtems.h>
     534#include <rtems/rtems/clock.h>
     535#include <rtems/score/todimpl.h>
     536int settimeofday(const struct timeval *tp, const struct timezone *tpz)
     537{
     538  int error = 0;
     539  if (tp) {
     540    Timestamp_Control tod_as_timestamp;
     541    if (tp->tv_usec >= 0 || tp->tv_usec < 1000000) {
     542      _Timestamp_Set( &tod_as_timestamp, tp->tv_sec, tp->tv_usec * 1000UL );
     543      // _Thread_Disable_dispatch();
     544      _TOD_Set_with_timestamp( &tod_as_timestamp );
     545      //  _Thread_Enable_dispatch();
     546    }
     547    else {
     548      error = EINVAL;
     549    }
     550  }
     551  if (tpz && error == 0) {
     552    tz_minuteswest = tpz->tz_minuteswest;
     553    tz_dsttime = tpz->tz_dsttime;
     554  }
     555  return error;
     556}
     557#endif
     558
     559#if defined (SYS_WINNT) || defined (SYS_VXWORKS) || defined(MPE) || defined(__rtems__)
    530560/* getpass is used in ntpq.c and ntpdc.c */
    531561
    532562char *
Note: See TracBrowser for help on using the repository browser.