home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / inetutils-1.2-diffs.gz / inetutils-1.2-diffs
Text File  |  1996-10-13  |  87KB  |  2,896 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/fsf/inetutils/Product-Info amiga/fsf/inetutils/Product-Info
  12. --- baseline/fsf/inetutils/Product-Info    Wed Dec 31 17:00:00 1969
  13. +++ amiga/fsf/inetutils/Product-Info    Sat Sep 28 00:00:00 1996
  14. @@ -0,0 +1,27 @@
  15. +.name
  16. +inetutils
  17. +.fullname
  18. +GNU inetutils
  19. +.type
  20. +Programmer Tool
  21. +.short
  22. +Networking utilities and servers
  23. +.description
  24. +This is a distribution of common networking utilities and servers.
  25. +
  26. +They are currently all from the 4.4BSD-Lite2 distribution, with some changes
  27. +to make them compatible with the GNU hurd (in particular, the hurd does not
  28. +define some arbitrary limits, such as MAXPATHLEN), and to remove some minor
  29. +BSD dependencies.  A GNU build environment has also been added.
  30. +
  31. +As this release is intended mainly to support the GNU hurd, which is
  32. +source compatible with BSD in many ways, there are probably many BSD
  33. +dependencies remaining.
  34. +.version
  35. +1.2
  36. +.author
  37. +Free Software Foundation
  38. +.distribution
  39. +GNU Public License
  40. +.described-by
  41. +Fred Fish (fnf@amigalib.com)
  42. diff -rup --new-file baseline/fsf/inetutils/config.sub amiga/fsf/inetutils/config.sub
  43. --- baseline/fsf/inetutils/config.sub    Sun Jul  7 10:26:19 1996
  44. +++ amiga/fsf/inetutils/config.sub    Sat Sep 28 00:00:00 1996
  45. @@ -184,11 +184,11 @@ case $basic_machine in
  46.          os=-sysv
  47.          ;;
  48.      amiga | amiga-*)
  49. -        basic_machine=m68k-cbm
  50. +        basic_machine=m68k-unknown
  51.          ;;
  52. -    amigados)
  53. -        basic_machine=m68k-cbm
  54. -        os=-amigados
  55. +    amigaos)
  56. +        basic_machine=m68k-unknown
  57. +        os=-amigaos
  58.          ;;
  59.      amigaunix | amix)
  60.          basic_machine=m68k-cbm
  61. @@ -655,7 +655,7 @@ case $os in
  62.      -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  63.            | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  64.            | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  65. -          | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \
  66. +          | -amigaos* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \
  67.            | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
  68.            | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
  69.            | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
  70. @@ -785,7 +785,7 @@ case $basic_machine in
  71.          os=-sysv
  72.          ;;
  73.      *-cbm)
  74. -        os=-amigados
  75. +        os=-amigaos
  76.          ;;
  77.      *-dg)
  78.          os=-dgux
  79. diff -rup --new-file baseline/fsf/inetutils/configure amiga/fsf/inetutils/configure
  80. --- baseline/fsf/inetutils/configure    Wed Aug 21 09:46:31 1996
  81. +++ amiga/fsf/inetutils/configure    Mon Sep 30 22:46:21 1996
  82. @@ -21,11 +21,6 @@ ac_help="$ac_help
  83.    --enable-encryption     enable encryption"
  84.  ac_help="$ac_help
  85.    --enable-authentication enable connection authentication"
  86. -ac_help="$ac_help
  87. -  --with-PATHVAR=PATH     Set the value of PATHVAR to PATH
  88. -                          PATHVAR is the name of a \`PATH_FOO' variable,
  89. -                          downcased, with \`_' changed to \`-'
  90. -  --without-PATHVAR       Never define PATHVAR by any method"
  91.  
  92.  # Initialize some variables set by options.
  93.  # The variables have the same names as the options, with
  94. @@ -59,6 +54,9 @@ libdir='${exec_prefix}/lib'
  95.  includedir='${prefix}/include'
  96.  oldincludedir='/usr/include'
  97.  infodir='${prefix}/info'
  98. +guidedir='${prefix}/guide'
  99. +psdir='${prefix}/ps'
  100. +dvidir='${prefix}/dvi'
  101.  mandir='${prefix}/man'
  102.  
  103.  # Initialize some other variables.
  104. @@ -173,6 +171,9 @@ Directory and file names:
  105.    --includedir=DIR        C header files in DIR [PREFIX/include]
  106.    --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  107.    --infodir=DIR           info documentation in DIR [PREFIX/info]
  108. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  109. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  110. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  111.    --mandir=DIR            man documentation in DIR [PREFIX/man]
  112.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  113.    --program-prefix=PREFIX prepend PREFIX to installed program names
  114. @@ -215,6 +216,18 @@ EOF
  115.    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  116.      infodir="$ac_optarg" ;;
  117.  
  118. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  119. +   ac_prev=guidedir ;;
  120. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  121. +
  122. + -psdir | --psdir | --psdi | --psd | --ps)
  123. +   ac_prev=psdir ;;
  124. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  125. +
  126. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  127. +   ac_prev=dvidir ;;
  128. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  129. +
  130.    -libdir | --libdir | --libdi | --libd)
  131.      ac_prev=libdir ;;
  132.    -libdir=* | --libdir=* | --libdi=* | --libd=*)
  133. @@ -530,24 +543,6 @@ fi
  134.  
  135.  # Get macros that we use
  136.  
  137. -# For case-conversion with sed
  138. -IU_UCASE=ABCDEFGHIJKLMNOPQRSTUVWXYZ
  139. -iu_lcase=abcdefghijklmnopqrstuvwxyz
  140. -
  141. -
  142. -
  143. -
  144. -
  145. -
  146. -
  147. -
  148. -
  149. -
  150. -
  151. -
  152. -
  153. -
  154. -
  155.  
  156.  # Generate <config.h>; note that we use a `header' subdirectory, which
  157.  # contains all include files distributed with inetutils, and an `include'
  158. @@ -743,7 +738,7 @@ else
  159.    yes;
  160.  #endif
  161.  EOF
  162. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  163. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  164.    ac_cv_prog_gcc=yes
  165.  else
  166.    ac_cv_prog_gcc=no
  167. @@ -770,9 +765,9 @@ fi
  168.  
  169.  echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  170.      if test $ac_cv_prog_gcc_g = yes; then
  171. -      CFLAGS="-g -O"
  172. +      CFLAGS="-g -O2"
  173.      else
  174. -      CFLAGS="-O"
  175. +      CFLAGS="-O2"
  176.      fi
  177.    fi
  178.  else
  179. @@ -795,13 +790,13 @@ else
  180.    # On the NeXT, cc -E runs the code through the compiler's parser,
  181.    # not just through cpp.
  182.    cat > conftest.$ac_ext <<EOF
  183. -#line 799 "configure"
  184. +#line 794 "configure"
  185.  #include "confdefs.h"
  186.  #include <assert.h>
  187.  Syntax Error
  188.  EOF
  189.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  190. -{ (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  191. +{ (eval echo configure:800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  192.  ac_err=`grep -v '^ *+' conftest.out`
  193.  if test -z "$ac_err"; then
  194.    :
  195. @@ -810,13 +805,13 @@ else
  196.    rm -rf conftest*
  197.    CPP="${CC-cc} -E -traditional-cpp"
  198.    cat > conftest.$ac_ext <<EOF
  199. -#line 814 "configure"
  200. +#line 809 "configure"
  201.  #include "confdefs.h"
  202.  #include <assert.h>
  203.  Syntax Error
  204.  EOF
  205.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  206. -{ (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  207. +{ (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  208.  ac_err=`grep -v '^ *+' conftest.out`
  209.  if test -z "$ac_err"; then
  210.    :
  211. @@ -862,6 +857,7 @@ ac_configure=$ac_aux_dir/configure # Thi
  212.  # SunOS /usr/etc/install
  213.  # IRIX /sbin/install
  214.  # AIX /bin/install
  215. +# AmigaOS /c/install
  216.  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  217.  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  218.  # ./install, which can be erroneously created by make from ./install.sh.
  219. @@ -874,7 +870,7 @@ else
  220.    for ac_dir in $PATH; do
  221.      # Account for people who put trailing slashes in PATH elements.
  222.      case "$ac_dir/" in
  223. -    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  224. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  225.      *)
  226.        # OSF1 and SCO ODT 3.0 have their own names for install.
  227.        for ac_prog in ginstall installbsd scoinst install; do
  228. @@ -1133,12 +1129,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  229.    echo $ac_n "(cached) $ac_c" 1>&6
  230.  else
  231.    cat > conftest.$ac_ext <<EOF
  232. -#line 1137 "configure"
  233. +#line 1133 "configure"
  234.  #include "confdefs.h"
  235.  #include <$ac_hdr>
  236.  EOF
  237.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  238. -{ (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  239. +{ (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  240.  ac_err=`grep -v '^ *+' conftest.out`
  241.  if test -z "$ac_err"; then
  242.    rm -rf conftest*
  243. @@ -1171,7 +1167,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  244.    echo $ac_n "(cached) $ac_c" 1>&6
  245.  else
  246.    cat > conftest.$ac_ext <<EOF
  247. -#line 1175 "configure"
  248. +#line 1171 "configure"
  249.  #include "confdefs.h"
  250.  /* System header to define __stub macros and hopefully few prototypes,
  251.      which can conflict with char $ac_func(); below.  */
  252. @@ -1181,7 +1177,7 @@ else
  253.      builtin and then its argument prototype would still apply.  */
  254.  char $ac_func();
  255.  
  256. -int main() { return 0; }
  257. +int main() { t(); return 0; }
  258.  int t() {
  259.  
  260.  /* The GNU C library defines this for functions which it implements
  261. @@ -1195,7 +1191,7 @@ $ac_func();
  262.  
  263.  ; return 0; }
  264.  EOF
  265. -if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  266. +if { (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  267.    rm -rf conftest*
  268.    eval "ac_cv_func_$ac_func=yes"
  269.  else
  270. @@ -1225,7 +1221,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  271.    echo $ac_n "(cached) $ac_c" 1>&6
  272.  else
  273.    cat > conftest.$ac_ext <<EOF
  274. -#line 1229 "configure"
  275. +#line 1225 "configure"
  276.  #include "confdefs.h"
  277.  /* System header to define __stub macros and hopefully few prototypes,
  278.      which can conflict with char $ac_func(); below.  */
  279. @@ -1235,7 +1231,7 @@ else
  280.      builtin and then its argument prototype would still apply.  */
  281.  char $ac_func();
  282.  
  283. -int main() { return 0; }
  284. +int main() { t(); return 0; }
  285.  int t() {
  286.  
  287.  /* The GNU C library defines this for functions which it implements
  288. @@ -1249,7 +1245,7 @@ $ac_func();
  289.  
  290.  ; return 0; }
  291.  EOF
  292. -if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  293. +if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  294.    rm -rf conftest*
  295.    eval "ac_cv_func_$ac_func=yes"
  296.  else
  297. @@ -1276,7 +1272,7 @@ if eval "test \"`echo '$''{'ac_cv_func_s
  298.    echo $ac_n "(cached) $ac_c" 1>&6
  299.  else
  300.    cat > conftest.$ac_ext <<EOF
  301. -#line 1280 "configure"
  302. +#line 1276 "configure"
  303.  #include "confdefs.h"
  304.  /* System header to define __stub macros and hopefully few prototypes,
  305.      which can conflict with char setpgid(); below.  */
  306. @@ -1286,7 +1282,7 @@ else
  307.      builtin and then its argument prototype would still apply.  */
  308.  char setpgid();
  309.  
  310. -int main() { return 0; }
  311. +int main() { t(); return 0; }
  312.  int t() {
  313.  
  314.  /* The GNU C library defines this for functions which it implements
  315. @@ -1300,7 +1296,7 @@ setpgid();
  316.  
  317.  ; return 0; }
  318.  EOF
  319. -if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  320. +if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  321.    rm -rf conftest*
  322.    eval "ac_cv_func_setpgid=yes"
  323.  else
  324. @@ -1323,117 +1319,19 @@ fi
  325.  
  326.  
  327.  # EWOULDBLOCK is more or less the BSD version of posix EAGAIN.
  328. -
  329. -      echo $ac_n "checking for EWOULDBLOCK""... $ac_c" 1>&6
  330. -if eval "test \"`echo '$''{'inetutils_cv_macro_ewouldblock'+set}'`\" = set"; then
  331. -  echo $ac_n "(cached) $ac_c" 1>&6
  332. -else
  333. -  cat > conftest.$ac_ext <<EOF
  334. -#line 1333 "configure"
  335. -#include "confdefs.h"
  336. -#include <errno.h>
  337. -#if defined(EWOULDBLOCK) 
  338. -IU_CHECK_MACRO_EWOULDBLOCK
  339. -#endif
  340. -
  341. -EOF
  342. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  343. -  egrep "IU_CHECK_MACRO_EWOULDBLOCK" >/dev/null 2>&1; then
  344. -  rm -rf conftest*
  345. -  inetutils_cv_macro_ewouldblock=yes
  346. -else
  347. -  rm -rf conftest*
  348. -  inetutils_cv_macro_ewouldblock=no
  349. -fi
  350. -rm -f conftest*
  351. -
  352. -fi
  353. -
  354. -echo "$ac_t""$inetutils_cv_macro_ewouldblock" 1>&6   
  355. -if test "$inetutils_cv_macro_ewouldblock" = yes; then
  356. -  :
  357. -else
  358. -  cat >> confdefs.h <<\EOF
  359. +IU_CHECK_MACRO(EWOULDBLOCK, #include <errno.h>, ,
  360. +  :, cat >> confdefs.h <<\EOF
  361.  #define EWOULDBLOCK EAGAIN
  362.  EOF
  363. -
  364. -fi    
  365. -
  366. -    echo $ac_n "checking whether errno is declared""... $ac_c" 1>&6
  367. -if eval "test \"`echo '$''{'inetutils_cv_decl_errno'+set}'`\" = set"; then
  368. -  echo $ac_n "(cached) $ac_c" 1>&6
  369. -else
  370. -  cat > conftest.$ac_ext <<EOF
  371. -#line 1368 "configure"
  372. -#include "confdefs.h"
  373. -#include <errno.h>
  374. -
  375. -int main() { return 0; }
  376. -int t() {
  377. -char *iu_x = (char *)errno
  378. -; return 0; }
  379. -EOF
  380. -if { (eval echo configure:1377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  381. -  rm -rf conftest*
  382. -  inetutils_cv_decl_errno=yes
  383. -else
  384. -  rm -rf conftest*
  385. -  inetutils_cv_decl_errno=no
  386. -fi
  387. -rm -f conftest*
  388. -
  389. -fi
  390. -
  391. -echo "$ac_t""$inetutils_cv_decl_errno" 1>&6
  392. -  
  393. -if test "$inetutils_cv_decl_errno" = yes; then
  394. -  cat >> confdefs.h <<\EOF
  395. -#define HAVE_ERRNO_DECL 1
  396. -EOF
  397. -
  398. -else
  399. -  :
  400. -fi  
  401. +)
  402. +IU_CHECK_DECL(errno, #include <errno.h>)
  403.  
  404.  # __P is the standard name for the ansi-or-not-ansi arg-decl macro.
  405.  # We define our own version in <config.h> if the system doesn't supply one.
  406. -
  407. -      echo $ac_n "checking for __P""... $ac_c" 1>&6
  408. -if eval "test \"`echo '$''{'inetutils_cv_macro___p'+set}'`\" = set"; then
  409. -  echo $ac_n "(cached) $ac_c" 1>&6
  410. -else
  411. -  cat > conftest.$ac_ext <<EOF
  412. -#line 1407 "configure"
  413. -#include "confdefs.h"
  414. -#ifdef HAVE_SYS_CDEFS_H
  415. -#include <sys/cdefs.h>
  416. -#endif 
  417. -#if defined(__P) 
  418. -IU_CHECK_MACRO___P
  419. -#endif
  420. -
  421. -EOF
  422. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  423. -  egrep "IU_CHECK_MACRO___P" >/dev/null 2>&1; then
  424. -  rm -rf conftest*
  425. -  inetutils_cv_macro___p=yes
  426. -else
  427. -  rm -rf conftest*
  428. -  inetutils_cv_macro___p=no
  429. -fi
  430. -rm -f conftest*
  431. -
  432. -fi
  433. -
  434. -echo "$ac_t""$inetutils_cv_macro___p" 1>&6   
  435. -if test "$inetutils_cv_macro___p" = yes; then
  436. -  cat >> confdefs.h <<\EOF
  437. -#define HAVE___P 1
  438. -EOF
  439. -
  440. -else
  441. -  :
  442. -fi    
  443. +IU_CHECK_MACRO(__P,
  444. +   #ifdef HAVE_SYS_CDEFS_H
  445. +    #include <sys/cdefs.h>
  446. +    #endif )
  447.  
  448.  # libutil is a 4.4BSD library that defines several functions handy for
  449.  # inetutil daemons, doing such things as utmp frobbing, and pty setup.
  450. @@ -1445,19 +1343,19 @@ else
  451.    ac_save_LIBS="$LIBS"
  452.  LIBS="-lutil  $LIBS"
  453.  cat > conftest.$ac_ext <<EOF
  454. -#line 1449 "configure"
  455. +#line 1347 "configure"
  456.  #include "confdefs.h"
  457.  /* Override any gcc2 internal prototype to avoid an error.  */
  458.  /* We use char because int might match the return type of a gcc2
  459.      builtin and then its argument prototype would still apply.  */
  460.  char logout();
  461.  
  462. -int main() { return 0; }
  463. +int main() { t(); return 0; }
  464.  int t() {
  465.  logout()
  466.  ; return 0; }
  467.  EOF
  468. -if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  469. +if { (eval echo configure:1359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  470.    rm -rf conftest*
  471.    eval "ac_cv_lib_$ac_lib_var=yes"
  472.  else
  473. @@ -1487,7 +1385,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  474.    echo $ac_n "(cached) $ac_c" 1>&6
  475.  else
  476.    cat > conftest.$ac_ext <<EOF
  477. -#line 1491 "configure"
  478. +#line 1389 "configure"
  479.  #include "confdefs.h"
  480.  /* System header to define __stub macros and hopefully few prototypes,
  481.      which can conflict with char $ac_func(); below.  */
  482. @@ -1497,7 +1395,7 @@ else
  483.      builtin and then its argument prototype would still apply.  */
  484.  char $ac_func();
  485.  
  486. -int main() { return 0; }
  487. +int main() { t(); return 0; }
  488.  int t() {
  489.  
  490.  /* The GNU C library defines this for functions which it implements
  491. @@ -1511,7 +1409,7 @@ $ac_func();
  492.  
  493.  ; return 0; }
  494.  EOF
  495. -if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  496. +if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  497.    rm -rf conftest*
  498.    eval "ac_cv_func_$ac_func=yes"
  499.  else
  500. @@ -1538,116 +1436,7 @@ LIBS="$_SAVE_LIBS"
  501.  # instead of compile time, which is very handy for distributing binary
  502.  # version programs that automatically adapt -- in inetutils case, to whether
  503.  # or not crypt is available.
  504. -
  505. -  echo $ac_n "checking whether gcc weak references work""... $ac_c" 1>&6
  506. -if eval "test \"`echo '$''{'inetutils_cv_attr_weak_refs'+set}'`\" = set"; then
  507. -  echo $ac_n "(cached) $ac_c" 1>&6
  508. -else
  509. -  cat > conftest.$ac_ext <<EOF
  510. -#line 1548 "configure"
  511. -#include "confdefs.h"
  512. -
  513. -int main() { return 0; }
  514. -int t() {
  515. -extern char *not_defined (char *, char *) __attribute__ ((weak));
  516. -    if (not_defined) puts ("yes"); 
  517. -; return 0; }
  518. -EOF
  519. -if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  520. -  rm -rf conftest*
  521. -  inetutils_cv_attr_weak_refs=yes
  522. -else
  523. -  rm -rf conftest*
  524. -  inetutils_cv_attr_weak_refs=no
  525. -fi
  526. -rm -f conftest*
  527. -
  528. -fi
  529. -
  530. -echo "$ac_t""$inetutils_cv_attr_weak_refs" 1>&6
  531. -  if test "$inetutils_cv_weak_refs" = yes; then
  532. -    cat >> confdefs.h <<\EOF
  533. -#define HAVE_WEAK_REFS 1
  534. -EOF
  535. - cat >> confdefs.h <<\EOF
  536. -#define HAVE_ATTR_WEAK_REFS 1
  537. -EOF
  538. -
  539. -  else
  540. -    echo $ac_n "checking whether pragma weak references work""... $ac_c" 1>&6
  541. -if eval "test \"`echo '$''{'inetutils_cv_pragma_weak_refs'+set}'`\" = set"; then
  542. -  echo $ac_n "(cached) $ac_c" 1>&6
  543. -else
  544. -  cat > conftest.$ac_ext <<EOF
  545. -#line 1583 "configure"
  546. -#include "confdefs.h"
  547. -
  548. -int main() { return 0; }
  549. -int t() {
  550. -extern char *not_defined (char *, char *);
  551. -#pragma weak not_defined
  552. -     if (not_defined) puts ("yes"); 
  553. -; return 0; }
  554. -EOF
  555. -if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  556. -  rm -rf conftest*
  557. -  inetutils_cv_pragma_weak_refs=yes
  558. -else
  559. -  rm -rf conftest*
  560. -  inetutils_cv_pragma_weak_refs=no
  561. -fi
  562. -rm -f conftest*
  563. -
  564. -fi
  565. -
  566. -echo "$ac_t""$inetutils_cv_pragma_weak_refs" 1>&6
  567. -    if test "$inetutils_cv_pragma_weak_refs" = yes; then
  568. -      cat >> confdefs.h <<\EOF
  569. -#define HAVE_WEAK_REFS 1
  570. -EOF
  571. - cat >> confdefs.h <<\EOF
  572. -#define HAVE_PRAGMA_WEAK_REFS 1
  573. -EOF
  574. -
  575. -    else
  576. -      echo $ac_n "checking whether asm weak references work""... $ac_c" 1>&6
  577. -if eval "test \"`echo '$''{'inetutils_cv_asm_weak_refs'+set}'`\" = set"; then
  578. -  echo $ac_n "(cached) $ac_c" 1>&6
  579. -else
  580. -  cat > conftest.$ac_ext <<EOF
  581. -#line 1619 "configure"
  582. -#include "confdefs.h"
  583. -
  584. -int main() { return 0; }
  585. -int t() {
  586. -extern char *not_defined (char *, char *);
  587. -       asm (".weak not_defined");
  588. -       if (not_defined) puts ("yes"); 
  589. -; return 0; }
  590. -EOF
  591. -if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  592. -  rm -rf conftest*
  593. -  inetutils_cv_asm_weak_refs=yes
  594. -else
  595. -  rm -rf conftest*
  596. -  inetutils_cv_asm_weak_refs=no
  597. -fi
  598. -rm -f conftest*
  599. -
  600. -fi
  601. -
  602. -echo "$ac_t""$inetutils_cv_asm_weak_refs" 1>&6
  603. -      if test "$inetutils_cv_asm_weak_refs" = yes; then
  604. -    cat >> confdefs.h <<\EOF
  605. -#define HAVE_WEAK_REFS 1
  606. -EOF
  607. - cat >> confdefs.h <<\EOF
  608. -#define HAVE_ASM_WEAK_REFS 1
  609. -EOF
  610. -
  611. -      fi
  612. -    fi
  613. -  fi
  614. +IU_CHECK_WEAK_REFS
  615.  
  616.  # See if there's a separate libcrypt (many systems put crypt there)
  617.  echo $ac_n "checking for -lcrypt""... $ac_c" 1>&6
  618. @@ -1658,19 +1447,19 @@ else
  619.    ac_save_LIBS="$LIBS"
  620.  LIBS="-lcrypt  $LIBS"
  621.  cat > conftest.$ac_ext <<EOF
  622. -#line 1662 "configure"
  623. +#line 1451 "configure"
  624.  #include "confdefs.h"
  625.  /* Override any gcc2 internal prototype to avoid an error.  */
  626.  /* We use char because int might match the return type of a gcc2
  627.      builtin and then its argument prototype would still apply.  */
  628.  char crypt();
  629.  
  630. -int main() { return 0; }
  631. +int main() { t(); return 0; }
  632.  int t() {
  633.  crypt()
  634.  ; return 0; }
  635.  EOF
  636. -if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  637. +if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  638.    rm -rf conftest*
  639.    eval "ac_cv_lib_$ac_lib_var=yes"
  640.  else
  641. @@ -1699,7 +1488,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  642.    echo $ac_n "(cached) $ac_c" 1>&6
  643.  else
  644.    cat > conftest.$ac_ext <<EOF
  645. -#line 1703 "configure"
  646. +#line 1492 "configure"
  647.  #include "confdefs.h"
  648.  /* System header to define __stub macros and hopefully few prototypes,
  649.      which can conflict with char $ac_func(); below.  */
  650. @@ -1709,7 +1498,7 @@ else
  651.      builtin and then its argument prototype would still apply.  */
  652.  char $ac_func();
  653.  
  654. -int main() { return 0; }
  655. +int main() { t(); return 0; }
  656.  int t() {
  657.  
  658.  /* The GNU C library defines this for functions which it implements
  659. @@ -1723,7 +1512,7 @@ $ac_func();
  660.  
  661.  ; return 0; }
  662.  EOF
  663. -if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  664. +if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  665.    rm -rf conftest*
  666.    eval "ac_cv_func_$ac_func=yes"
  667.  else
  668. @@ -1747,104 +1536,17 @@ done
  669.  
  670.  LIBS="$_SAVE_LIBS"
  671.  # ... and see if it's declared anywhere
  672. -
  673. -    echo $ac_n "checking whether crypt is declared""... $ac_c" 1>&6
  674. -if eval "test \"`echo '$''{'inetutils_cv_decl_crypt'+set}'`\" = set"; then
  675. -  echo $ac_n "(cached) $ac_c" 1>&6
  676. -else
  677. -  cat > conftest.$ac_ext <<EOF
  678. -#line 1757 "configure"
  679. -#include "confdefs.h"
  680. -#include <unistd.h>
  681. -
  682. -int main() { return 0; }
  683. -int t() {
  684. -char *iu_x = (char *)crypt
  685. -; return 0; }
  686. -EOF
  687. -if { (eval echo configure:1766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  688. -  rm -rf conftest*
  689. -  inetutils_cv_decl_crypt=yes
  690. -else
  691. -  rm -rf conftest*
  692. -  inetutils_cv_decl_crypt=no
  693. -fi
  694. -rm -f conftest*
  695. -
  696. -fi
  697. -
  698. -echo "$ac_t""$inetutils_cv_decl_crypt" 1>&6
  699. -  
  700. -if test "$inetutils_cv_decl_crypt" = yes; then
  701. -  cat >> confdefs.h <<\EOF
  702. -#define HAVE_CRYPT_DECL 1
  703. -EOF
  704. -
  705. -else
  706. -  :
  707. -fi  
  708. +IU_CHECK_DECL(crypt, #include <unistd.h>)
  709.  
  710.  # Look for the posix SEEK_ macros (for lseek), and if not found, try the
  711.  # similar berkeley L_ macros; if neither can be found, use the classic unix
  712.  # values.
  713. -
  714. -      echo $ac_n "checking for SEEK_ macros""... $ac_c" 1>&6
  715. -if eval "test \"`echo '$''{'inetutils_cv_macro_seek__macros'+set}'`\" = set"; then
  716. -  echo $ac_n "(cached) $ac_c" 1>&6
  717. -else
  718. -  cat > conftest.$ac_ext <<EOF
  719. -#line 1797 "configure"
  720. -#include "confdefs.h"
  721. -#include <unistd.h>
  722. -#if defined(SEEK_SET) && defined(SEEK_CUR) && defined(SEEK_END) 
  723. -IU_CHECK_MACRO_SEEK__MACROS
  724. -#endif
  725. -
  726. -EOF
  727. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  728. -  egrep "IU_CHECK_MACRO_SEEK__MACROS" >/dev/null 2>&1; then
  729. -  rm -rf conftest*
  730. -  inetutils_cv_macro_seek__macros=yes
  731. -else
  732. -  rm -rf conftest*
  733. -  inetutils_cv_macro_seek__macros=no
  734. -fi
  735. -rm -f conftest*
  736. -
  737. -fi
  738. -
  739. -echo "$ac_t""$inetutils_cv_macro_seek__macros" 1>&6   
  740. -if test "$inetutils_cv_macro_seek__macros" = yes; then
  741. -  :
  742. -else
  743. -  echo $ac_n "checking for L_ seek macros""... $ac_c" 1>&6
  744. -if eval "test \"`echo '$''{'inetutils_cv_macro_l__seek_macros'+set}'`\" = set"; then
  745. -  echo $ac_n "(cached) $ac_c" 1>&6
  746. -else
  747. -  cat > conftest.$ac_ext <<EOF
  748. -#line 1826 "configure"
  749. -#include "confdefs.h"
  750. -#include <unistd.h>
  751. -#if defined(L_SET) && defined(L_INCR) && defined(L_XTND) 
  752. -IU_CHECK_MACRO_L__SEEK_MACROS
  753. -#endif
  754. -
  755. -EOF
  756. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  757. -  egrep "IU_CHECK_MACRO_L__SEEK_MACROS" >/dev/null 2>&1; then
  758. -  rm -rf conftest*
  759. -  inetutils_cv_macro_l__seek_macros=yes
  760. -else
  761. -  rm -rf conftest*
  762. -  inetutils_cv_macro_l__seek_macros=no
  763. -fi
  764. -rm -f conftest*
  765. -
  766. -fi
  767. -
  768. -echo "$ac_t""$inetutils_cv_macro_l__seek_macros" 1>&6   
  769. -if test "$inetutils_cv_macro_l__seek_macros" = yes; then
  770. -  cat >> confdefs.h <<\EOF
  771. +IU_CHECK_MACRO(SEEK_ macros,
  772. +  #include <unistd.h>, SEEK_SET SEEK_CUR SEEK_END,
  773. +  :,
  774. +  IU_CHECK_MACRO(L_ seek macros,
  775. +    #include <unistd.h>, L_SET L_INCR L_XTND,
  776. +    cat >> confdefs.h <<\EOF
  777.  #define SEEK_SET L_SET
  778.  EOF
  779.  
  780. @@ -1855,9 +1557,8 @@ EOF
  781.      cat >> confdefs.h <<\EOF
  782.  #define SEEK_END L_XTND
  783.  EOF
  784. -
  785. -else
  786. -  cat >> confdefs.h <<\EOF
  787. +,
  788. +    cat >> confdefs.h <<\EOF
  789.  #define SEEK_SET 0
  790.  EOF
  791.  
  792. @@ -1868,372 +1569,58 @@ EOF
  793.      cat >> confdefs.h <<\EOF
  794.  #define SEEK_END 2
  795.  EOF
  796. -
  797. -fi    
  798. -fi    
  799. +))
  800.  
  801.  # See where to find fd_set (bit-vectors for select) manipulation macros.
  802. +IU_CHECK_MACRO(fd_set macros, #include <sys/types.h>,
  803. +  FD_ZERO FD_CLR FD_SET FD_ISSET)
  804. +if test "$inetutils_cv_fd_set_macros" = no; then
  805. +  IU_CHECK_MACRO(fd_set macros in <sys/time.h>, #include <sys/time.h>,
  806. +    FD_ZERO FD_CLR FD_SET FD_ISSET)
  807. +fi
  808.  
  809. -      echo $ac_n "checking for fd_set macros""... $ac_c" 1>&6
  810. -if eval "test \"`echo '$''{'inetutils_cv_macro_fd_set_macros'+set}'`\" = set"; then
  811. -  echo $ac_n "(cached) $ac_c" 1>&6
  812. -else
  813. -  cat > conftest.$ac_ext <<EOF
  814. -#line 1883 "configure"
  815. -#include "confdefs.h"
  816. -#include <sys/types.h>
  817. -#if defined(FD_ZERO) && defined(FD_CLR) && defined(FD_SET) && defined(FD_ISSET) 
  818. -IU_CHECK_MACRO_FD_SET_MACROS
  819. -#endif
  820. +# See if stat includes sub-second time information (the st_?timespec form is
  821. +# from bsd, and the st_?time_usec form is used by the hurd; the latter will
  822. +# eventually be replaced by the former).
  823. +IU_CHECK_STRUCT_FIELD(stat, st_mtimespec,
  824. +   #include <sys/types.h>
  825. +    #include <sys/stat.h> ,
  826. +  :,
  827. +  IU_CHECK_STRUCT_FIELD(stat, st_mtime_usec,
  828. +     #include <sys/types.h>
  829. +      #include <sys/stat.h>))
  830.  
  831. -EOF
  832. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  833. -  egrep "IU_CHECK_MACRO_FD_SET_MACROS" >/dev/null 2>&1; then
  834. -  rm -rf conftest*
  835. -  inetutils_cv_macro_fd_set_macros=yes
  836. -else
  837. -  rm -rf conftest*
  838. -  inetutils_cv_macro_fd_set_macros=no
  839. +# See if a termcap library is available (under one of several names)
  840. +IU_LIB_TERMCAP
  841. +# If not, add a bogus version of tgetent to libinetutils, as that's the only
  842. +# function actually used (to check terminal type validity), modulo any
  843. +# dependencies from curses.
  844. +if test -z "$LIBTERMCAP"; then
  845. +  # Some packages include termcap just ;
  846. +  # for those cases, we really don't need termcap.
  847. +  LIBOBJS="$LIBOBJS stub_tgetent.o"
  848.  fi
  849. -rm -f conftest*
  850.  
  851. +# Only talk uses curses, so only check for it if we want that
  852. +if test "$enable_talk" != no; then
  853. +  IU_LIB_CURSES
  854.  fi
  855. -
  856. -echo "$ac_t""$inetutils_cv_macro_fd_set_macros" 1>&6   
  857. -if test "$inetutils_cv_macro_fd_set_macros" = yes; then
  858. -  cat >> confdefs.h <<\EOF
  859. -#define HAVE_FD_SET_MACROS 1
  860. +if test "$enable_talk" = yes -a "$ac_cv_lib_curses_initscr" != yes; then
  861. +  echo "configure: warning: curses is not available" 1>&2
  862. +fi
  863. +enable_talk="$ac_cv_lib_curses_initscr"
  864. +if test "$enable_talk" = yes; then
  865. +  SERVERS="$SERVERS talkd"
  866. +  CLIENTS="$CLIENTS talk"
  867. +  # We may need our own definition for struct osockaddr (equivalent to the
  868. +  # old 4.3BSD struct sockaddr, and used in grotty bsd talk protocol)
  869. +  IU_CHECK_TYPE(struct osockaddr,
  870. +     #include <sys/types.h>
  871. +      #include <sys/socket.h> ,
  872. +    :, cat >> confdefs.h <<\EOF
  873. +#define HAVE_OSOCKADDR_H 1
  874.  EOF
  875. -
  876. -else
  877. -  :
  878. -fi    
  879. -if test "$inetutils_cv_fd_set_macros" = no; then
  880. -  
  881. -      echo $ac_n "checking for fd_set macros in <sys/time.h>""... $ac_c" 1>&6
  882. -if eval "test \"`echo '$''{'inetutils_cv_macro_fd_set_macros_in_sys_time_h'+set}'`\" = set"; then
  883. -  echo $ac_n "(cached) $ac_c" 1>&6
  884. -else
  885. -  cat > conftest.$ac_ext <<EOF
  886. -#line 1919 "configure"
  887. -#include "confdefs.h"
  888. -#include <sys/time.h>
  889. -#if defined(FD_ZERO) && defined(FD_CLR) && defined(FD_SET) && defined(FD_ISSET) 
  890. -IU_CHECK_MACRO_FD_SET_MACROS_IN_SYS_TIME_H
  891. -#endif
  892. -
  893. -EOF
  894. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  895. -  egrep "IU_CHECK_MACRO_FD_SET_MACROS_IN_SYS_TIME_H" >/dev/null 2>&1; then
  896. -  rm -rf conftest*
  897. -  inetutils_cv_macro_fd_set_macros_in_sys_time_h=yes
  898. -else
  899. -  rm -rf conftest*
  900. -  inetutils_cv_macro_fd_set_macros_in_sys_time_h=no
  901. -fi
  902. -rm -f conftest*
  903. -
  904. -fi
  905. -
  906. -echo "$ac_t""$inetutils_cv_macro_fd_set_macros_in_sys_time_h" 1>&6   
  907. -if test "$inetutils_cv_macro_fd_set_macros_in_sys_time_h" = yes; then
  908. -  cat >> confdefs.h <<\EOF
  909. -#define HAVE_FD_SET_MACROS_IN_SYS_TIME_H 1
  910. -EOF
  911. -
  912. -else
  913. -  :
  914. -fi    
  915. -fi
  916. -
  917. -# See if stat includes sub-second time information (the st_?timespec form is
  918. -# from bsd, and the st_?time_usec form is used by the hurd; the latter will
  919. -# eventually be replaced by the former).
  920. -
  921. -    echo $ac_n "checking whether struct stat has st_mtimespec field""... $ac_c" 1>&6
  922. -if eval "test \"`echo '$''{'inetutils_cv_struct_stat_st_mtimespec'+set}'`\" = set"; then
  923. -  echo $ac_n "(cached) $ac_c" 1>&6
  924. -else
  925. -  cat > conftest.$ac_ext <<EOF
  926. -#line 1959 "configure"
  927. -#include "confdefs.h"
  928. -#include <sys/types.h>
  929. -#include <sys/stat.h> 
  930. -
  931. -int main() { return 0; }
  932. -int t() {
  933. -struct stat iu_x; int iu_y = sizeof iu_x.st_mtimespec;
  934. -; return 0; }
  935. -EOF
  936. -if { (eval echo configure:1969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  937. -  rm -rf conftest*
  938. -  inetutils_cv_struct_stat_st_mtimespec=yes
  939. -else
  940. -  rm -rf conftest*
  941. -  inetutils_cv_struct_stat_st_mtimespec=no
  942. -fi
  943. -rm -f conftest*
  944. -
  945. -fi
  946. -
  947. -echo "$ac_t""$inetutils_cv_struct_stat_st_mtimespec" 1>&6
  948. -  
  949. -if test "$inetutils_cv_struct_stat_st_mtimespec" = yes; then
  950. -  :
  951. -else
  952. -  
  953. -    echo $ac_n "checking whether struct stat has st_mtime_usec field""... $ac_c" 1>&6
  954. -if eval "test \"`echo '$''{'inetutils_cv_struct_stat_st_mtime_usec'+set}'`\" = set"; then
  955. -  echo $ac_n "(cached) $ac_c" 1>&6
  956. -else
  957. -  cat > conftest.$ac_ext <<EOF
  958. -#line 1991 "configure"
  959. -#include "confdefs.h"
  960. -#include <sys/types.h>
  961. -#include <sys/stat.h>
  962. -
  963. -int main() { return 0; }
  964. -int t() {
  965. -struct stat iu_x; int iu_y = sizeof iu_x.st_mtime_usec;
  966. -; return 0; }
  967. -EOF
  968. -if { (eval echo configure:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  969. -  rm -rf conftest*
  970. -  inetutils_cv_struct_stat_st_mtime_usec=yes
  971. -else
  972. -  rm -rf conftest*
  973. -  inetutils_cv_struct_stat_st_mtime_usec=no
  974. -fi
  975. -rm -f conftest*
  976. -
  977. -fi
  978. -
  979. -echo "$ac_t""$inetutils_cv_struct_stat_st_mtime_usec" 1>&6
  980. -  
  981. -if test "$inetutils_cv_struct_stat_st_mtime_usec" = yes; then
  982. -  cat >> confdefs.h <<\EOF
  983. -#define HAVE_STAT_ST_MTIME_USEC 1
  984. -EOF
  985. -
  986. -else
  987. -  :
  988. -fi  
  989. -fi  
  990. -
  991. -# See if a termcap library is available (under one of several names)
  992. -
  993. -  echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  994. -ac_lib_var=`echo termcap'_'tgetent | tr './+\055' '__p_'`
  995. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  996. -  echo $ac_n "(cached) $ac_c" 1>&6
  997. -else
  998. -  ac_save_LIBS="$LIBS"
  999. -LIBS="-ltermcap  $LIBS"
  1000. -cat > conftest.$ac_ext <<EOF
  1001. -#line 2034 "configure"
  1002. -#include "confdefs.h"
  1003. -/* Override any gcc2 internal prototype to avoid an error.  */
  1004. -/* We use char because int might match the return type of a gcc2
  1005. -    builtin and then its argument prototype would still apply.  */
  1006. -char tgetent();
  1007. -
  1008. -int main() { return 0; }
  1009. -int t() {
  1010. -tgetent()
  1011. -; return 0; }
  1012. -EOF
  1013. -if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1014. -  rm -rf conftest*
  1015. -  eval "ac_cv_lib_$ac_lib_var=yes"
  1016. -else
  1017. -  rm -rf conftest*
  1018. -  eval "ac_cv_lib_$ac_lib_var=no"
  1019. -fi
  1020. -rm -f conftest*
  1021. -LIBS="$ac_save_LIBS"
  1022. -
  1023. -fi
  1024. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1025. -  echo "$ac_t""yes" 1>&6
  1026. -  LIBTERMCAP=-ltermcap
  1027. -else
  1028. -  echo "$ac_t""no" 1>&6
  1029. -fi
  1030. -
  1031. -  if test "$ac_cv_lib_termcap_tgetent" = no; then
  1032. -    echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
  1033. -ac_lib_var=`echo termlib'_'tgetent | tr './+\055' '__p_'`
  1034. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1035. -  echo $ac_n "(cached) $ac_c" 1>&6
  1036. -else
  1037. -  ac_save_LIBS="$LIBS"
  1038. -LIBS="-ltermlib  $LIBS"
  1039. -cat > conftest.$ac_ext <<EOF
  1040. -#line 2073 "configure"
  1041. -#include "confdefs.h"
  1042. -/* Override any gcc2 internal prototype to avoid an error.  */
  1043. -/* We use char because int might match the return type of a gcc2
  1044. -    builtin and then its argument prototype would still apply.  */
  1045. -char tgetent();
  1046. -
  1047. -int main() { return 0; }
  1048. -int t() {
  1049. -tgetent()
  1050. -; return 0; }
  1051. -EOF
  1052. -if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1053. -  rm -rf conftest*
  1054. -  eval "ac_cv_lib_$ac_lib_var=yes"
  1055. -else
  1056. -  rm -rf conftest*
  1057. -  eval "ac_cv_lib_$ac_lib_var=no"
  1058. -fi
  1059. -rm -f conftest*
  1060. -LIBS="$ac_save_LIBS"
  1061. -
  1062. -fi
  1063. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1064. -  echo "$ac_t""yes" 1>&6
  1065. -  LIBTERMCAP=-ltermlib
  1066. -else
  1067. -  echo "$ac_t""no" 1>&6
  1068. -fi
  1069. -
  1070. -  fi
  1071. -  
  1072. -# If not, add a bogus version of tgetent to libinetutils, as that's the only
  1073. -# function actually used (to check terminal type validity), modulo any
  1074. -# dependencies from curses.
  1075. -if test -z "$LIBTERMCAP"; then
  1076. -  # Some packages include termcap just ;
  1077. -  # for those cases, we really don't need termcap.
  1078. -  LIBOBJS="$LIBOBJS stub_tgetent.o"
  1079. -fi
  1080. -
  1081. -# Only talk uses curses, so only check for it if we want that
  1082. -if test "$enable_talk" != no; then
  1083. -  
  1084. -  
  1085. -  _IU_SAVE_LIBS="$LIBS"
  1086. -  LIBS="$LIBTERMCAP"
  1087. -  echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  1088. -ac_lib_var=`echo curses'_'initscr | tr './+\055' '__p_'`
  1089. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1090. -  echo $ac_n "(cached) $ac_c" 1>&6
  1091. -else
  1092. -  ac_save_LIBS="$LIBS"
  1093. -LIBS="-lcurses  $LIBS"
  1094. -cat > conftest.$ac_ext <<EOF
  1095. -#line 2128 "configure"
  1096. -#include "confdefs.h"
  1097. -/* Override any gcc2 internal prototype to avoid an error.  */
  1098. -/* We use char because int might match the return type of a gcc2
  1099. -    builtin and then its argument prototype would still apply.  */
  1100. -char initscr();
  1101. -
  1102. -int main() { return 0; }
  1103. -int t() {
  1104. -initscr()
  1105. -; return 0; }
  1106. -EOF
  1107. -if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1108. -  rm -rf conftest*
  1109. -  eval "ac_cv_lib_$ac_lib_var=yes"
  1110. -else
  1111. -  rm -rf conftest*
  1112. -  eval "ac_cv_lib_$ac_lib_var=no"
  1113. -fi
  1114. -rm -f conftest*
  1115. -LIBS="$ac_save_LIBS"
  1116. -
  1117. -fi
  1118. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1119. -  echo "$ac_t""yes" 1>&6
  1120. -  LIBCURSES="-lcurses"
  1121. -else
  1122. -  echo "$ac_t""no" 1>&6
  1123. -fi
  1124. -
  1125. -  if test "$LIBCURSES" -a "$LIBTERMCAP"; then
  1126. -    echo $ac_n "checking whether curses needs $LIBTERMCAP""... $ac_c" 1>&6
  1127. -if eval "test \"`echo '$''{'inetutils_cv_curses_needs_termcap'+set}'`\" = set"; then
  1128. -  echo $ac_n "(cached) $ac_c" 1>&6
  1129. -else
  1130. -  LIBS="$LIBCURSES"
  1131. -      cat > conftest.$ac_ext <<EOF
  1132. -#line 2165 "configure"
  1133. -#include "confdefs.h"
  1134. -#include <curses.h>
  1135. -int main() { return 0; }
  1136. -int t() {
  1137. -initscr ();
  1138. -; return 0; }
  1139. -EOF
  1140. -if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1141. -  rm -rf conftest*
  1142. -  inetutils_cv_curses_needs_termcap=no
  1143. -else
  1144. -  rm -rf conftest*
  1145. -  inetutils_cv_curses_needs_termcap=yes
  1146. -fi
  1147. -rm -f conftest*
  1148. -
  1149. -fi
  1150. -
  1151. -echo "$ac_t""$inetutils_cv_curses_needs_termcap" 1>&6
  1152. -      if test "$inetutils_cv_curses_needs_termcap" = yes; then
  1153. -    LIBCURSES="$LIBCURSES $LIBTERMCAP"
  1154. -      fi
  1155. -  fi
  1156. -  LIBS="$_IU_SAVE_LIBS"
  1157. -  
  1158. -fi
  1159. -if test "$enable_talk" = yes -a "$ac_cv_lib_curses_initscr" != yes; then
  1160. -  echo "configure: warning: curses is not available" 1>&2
  1161. -fi
  1162. -enable_talk="$ac_cv_lib_curses_initscr"
  1163. -if test "$enable_talk" = yes; then
  1164. -  SERVERS="$SERVERS talkd"
  1165. -  CLIENTS="$CLIENTS talk"
  1166. -  # We may need our own definition for struct osockaddr (equivalent to the
  1167. -  # old 4.3BSD struct sockaddr, and used in grotty bsd talk protocol)
  1168. -  
  1169. -    echo $ac_n "checking whether struct osockaddr is defined""... $ac_c" 1>&6
  1170. -if eval "test \"`echo '$''{'inetutils_cv_type_struct_osockaddr'+set}'`\" = set"; then
  1171. -  echo $ac_n "(cached) $ac_c" 1>&6
  1172. -else
  1173. -  cat > conftest.$ac_ext <<EOF
  1174. -#line 2207 "configure"
  1175. -#include "confdefs.h"
  1176. -#include <sys/types.h>
  1177. -#include <sys/socket.h> 
  1178. -
  1179. -int main() { return 0; }
  1180. -int t() {
  1181. -struct osockaddr iu_x;
  1182. -; return 0; }
  1183. -EOF
  1184. -if { (eval echo configure:2217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1185. -  rm -rf conftest*
  1186. -  inetutils_cv_type_struct_osockaddr=yes
  1187. -else
  1188. -  rm -rf conftest*
  1189. -  inetutils_cv_type_struct_osockaddr=no
  1190. -fi
  1191. -rm -f conftest*
  1192. -
  1193. -fi
  1194. -
  1195. -echo "$ac_t""$inetutils_cv_type_struct_osockaddr" 1>&6
  1196. -  
  1197. -if test "$inetutils_cv_type_struct_osockaddr" = yes; then
  1198. -  :
  1199. -else
  1200. -  cat >> confdefs.h <<\EOF
  1201. -#define HAVE_OSOCKADDR_H 1
  1202. -EOF
  1203. - INCLUDES="$INCLUDES osockaddr.h"
  1204. -fi  
  1205. + INCLUDES="$INCLUDES osockaddr.h")
  1206.  fi
  1207.  # SUBDIRS gets talk subdirs regardless of whether we're building them
  1208.  SUBDIRS="$SUBDIRS talkd talk"
  1209. @@ -2250,19 +1637,19 @@ else
  1210.    ac_save_LIBS="$LIBS"
  1211.  LIBS="-lglob  $LIBS"
  1212.  cat > conftest.$ac_ext <<EOF
  1213. -#line 2254 "configure"
  1214. +#line 1641 "configure"
  1215.  #include "confdefs.h"
  1216.  /* Override any gcc2 internal prototype to avoid an error.  */
  1217.  /* We use char because int might match the return type of a gcc2
  1218.      builtin and then its argument prototype would still apply.  */
  1219.  char glob();
  1220.  
  1221. -int main() { return 0; }
  1222. +int main() { t(); return 0; }
  1223.  int t() {
  1224.  glob()
  1225.  ; return 0; }
  1226.  EOF
  1227. -if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1228. +if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1229.    rm -rf conftest*
  1230.    eval "ac_cv_lib_$ac_lib_var=yes"
  1231.  else
  1232. @@ -2287,7 +1674,7 @@ if eval "test \"`echo '$''{'ac_cv_func_g
  1233.    echo $ac_n "(cached) $ac_c" 1>&6
  1234.  else
  1235.    cat > conftest.$ac_ext <<EOF
  1236. -#line 2291 "configure"
  1237. +#line 1678 "configure"
  1238.  #include "confdefs.h"
  1239.  /* System header to define __stub macros and hopefully few prototypes,
  1240.      which can conflict with char glob(); below.  */
  1241. @@ -2297,7 +1684,7 @@ else
  1242.      builtin and then its argument prototype would still apply.  */
  1243.  char glob();
  1244.  
  1245. -int main() { return 0; }
  1246. +int main() { t(); return 0; }
  1247.  int t() {
  1248.  
  1249.  /* The GNU C library defines this for functions which it implements
  1250. @@ -2311,7 +1698,7 @@ glob();
  1251.  
  1252.  ; return 0; }
  1253.  EOF
  1254. -if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1255. +if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1256.    rm -rf conftest*
  1257.    eval "ac_cv_func_glob=yes"
  1258.  else
  1259. @@ -2323,38 +1710,9 @@ rm -f conftest*
  1260.  fi
  1261.  if eval "test \"`echo '$ac_cv_func_'glob`\" = yes"; then
  1262.    echo "$ac_t""yes" 1>&6
  1263. -  
  1264. -      echo $ac_n "checking for system glob is ok""... $ac_c" 1>&6
  1265. -if eval "test \"`echo '$''{'inetutils_cv_macro_system_glob_is_ok'+set}'`\" = set"; then
  1266. -  echo $ac_n "(cached) $ac_c" 1>&6
  1267. -else
  1268. -  cat > conftest.$ac_ext <<EOF
  1269. -#line 2333 "configure"
  1270. -#include "confdefs.h"
  1271. -#include <glob.h>
  1272. -#if defined(GLOB_BRACE) && defined(GLOB_TILDE) 
  1273. -IU_CHECK_MACRO_SYSTEM_GLOB_IS_OK
  1274. -#endif
  1275. -
  1276. -EOF
  1277. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1278. -  egrep "IU_CHECK_MACRO_SYSTEM_GLOB_IS_OK" >/dev/null 2>&1; then
  1279. -  rm -rf conftest*
  1280. -  inetutils_cv_macro_system_glob_is_ok=yes
  1281. -else
  1282. -  rm -rf conftest*
  1283. -  inetutils_cv_macro_system_glob_is_ok=no
  1284. -fi
  1285. -rm -f conftest*
  1286. -
  1287. -fi
  1288. -
  1289. -echo "$ac_t""$inetutils_cv_macro_system_glob_is_ok" 1>&6   
  1290. -if test "$inetutils_cv_macro_system_glob_is_ok" = yes; then
  1291. -  sys_glob=yes
  1292. -else
  1293. -  :
  1294. -fi    
  1295. +  IU_CHECK_MACRO(system glob is ok,
  1296. +      #include <glob.h>, GLOB_BRACE GLOB_TILDE,
  1297. +      sys_glob=yes)
  1298.  else
  1299.    echo "$ac_t""no" 1>&6
  1300.  fi
  1301. @@ -2380,19 +1738,19 @@ else
  1302.    ac_save_LIBS="$LIBS"
  1303.  LIBS="-lkrb  $LIBS"
  1304.  cat > conftest.$ac_ext <<EOF
  1305. -#line 2384 "configure"
  1306. +#line 1742 "configure"
  1307.  #include "confdefs.h"
  1308.  /* Override any gcc2 internal prototype to avoid an error.  */
  1309.  /* We use char because int might match the return type of a gcc2
  1310.      builtin and then its argument prototype would still apply.  */
  1311.  char krb_mk_req();
  1312.  
  1313. -int main() { return 0; }
  1314. +int main() { t(); return 0; }
  1315.  int t() {
  1316.  krb_mk_req()
  1317.  ; return 0; }
  1318.  EOF
  1319. -if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1320. +if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1321.    rm -rf conftest*
  1322.    eval "ac_cv_lib_$ac_lib_var=yes"
  1323.  else
  1324. @@ -2418,19 +1776,19 @@ else
  1325.    ac_save_LIBS="$LIBS"
  1326.  LIBS="-ldes  $LIBS"
  1327.  cat > conftest.$ac_ext <<EOF
  1328. -#line 2422 "configure"
  1329. +#line 1780 "configure"
  1330.  #include "confdefs.h"
  1331.  /* Override any gcc2 internal prototype to avoid an error.  */
  1332.  /* We use char because int might match the return type of a gcc2
  1333.      builtin and then its argument prototype would still apply.  */
  1334.  char des_key_sched();
  1335.  
  1336. -int main() { return 0; }
  1337. +int main() { t(); return 0; }
  1338.  int t() {
  1339.  des_key_sched()
  1340.  ; return 0; }
  1341.  EOF
  1342. -if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1343. +if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1344.    rm -rf conftest*
  1345.    eval "ac_cv_lib_$ac_lib_var=yes"
  1346.  else
  1347. @@ -2477,7 +1835,7 @@ if eval "test \"`echo '$''{'ac_cv_func_g
  1348.    echo $ac_n "(cached) $ac_c" 1>&6
  1349.  else
  1350.    cat > conftest.$ac_ext <<EOF
  1351. -#line 2481 "configure"
  1352. +#line 1839 "configure"
  1353.  #include "confdefs.h"
  1354.  /* System header to define __stub macros and hopefully few prototypes,
  1355.      which can conflict with char getopt_long(); below.  */
  1356. @@ -2487,7 +1845,7 @@ else
  1357.      builtin and then its argument prototype would still apply.  */
  1358.  char getopt_long();
  1359.  
  1360. -int main() { return 0; }
  1361. +int main() { t(); return 0; }
  1362.  int t() {
  1363.  
  1364.  /* The GNU C library defines this for functions which it implements
  1365. @@ -2501,7 +1859,7 @@ getopt_long();
  1366.  
  1367.  ; return 0; }
  1368.  EOF
  1369. -if { (eval echo configure:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1370. +if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1371.    rm -rf conftest*
  1372.    eval "ac_cv_func_getopt_long=yes"
  1373.  else
  1374. @@ -2527,7 +1885,7 @@ if eval "test \"`echo '$''{'ac_cv_func_v
  1375.    echo $ac_n "(cached) $ac_c" 1>&6
  1376.  else
  1377.    cat > conftest.$ac_ext <<EOF
  1378. -#line 2531 "configure"
  1379. +#line 1889 "configure"
  1380.  #include "confdefs.h"
  1381.  /* System header to define __stub macros and hopefully few prototypes,
  1382.      which can conflict with char verrx(); below.  */
  1383. @@ -2537,7 +1895,7 @@ else
  1384.      builtin and then its argument prototype would still apply.  */
  1385.  char verrx();
  1386.  
  1387. -int main() { return 0; }
  1388. +int main() { t(); return 0; }
  1389.  int t() {
  1390.  
  1391.  /* The GNU C library defines this for functions which it implements
  1392. @@ -2551,7 +1909,7 @@ verrx();
  1393.  
  1394.  ; return 0; }
  1395.  EOF
  1396. -if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1397. +if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1398.    rm -rf conftest*
  1399.    eval "ac_cv_func_verrx=yes"
  1400.  else
  1401. @@ -2571,150 +1929,10 @@ INCLUDES="$INCLUDES err.h"
  1402.  fi
  1403.  
  1404.  
  1405. -
  1406. -    echo $ac_n "checking whether struct lastlog is defined""... $ac_c" 1>&6
  1407. -if eval "test \"`echo '$''{'inetutils_cv_type_struct_lastlog'+set}'`\" = set"; then
  1408. -  echo $ac_n "(cached) $ac_c" 1>&6
  1409. -else
  1410. -  cat > conftest.$ac_ext <<EOF
  1411. -#line 2581 "configure"
  1412. -#include "confdefs.h"
  1413. -#include <utmp.h>
  1414. -
  1415. -int main() { return 0; }
  1416. -int t() {
  1417. -struct lastlog iu_x;
  1418. -; return 0; }
  1419. -EOF
  1420. -if { (eval echo configure:2590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1421. -  rm -rf conftest*
  1422. -  inetutils_cv_type_struct_lastlog=yes
  1423. -else
  1424. -  rm -rf conftest*
  1425. -  inetutils_cv_type_struct_lastlog=no
  1426. -fi
  1427. -rm -f conftest*
  1428. -
  1429. -fi
  1430. -
  1431. -echo "$ac_t""$inetutils_cv_type_struct_lastlog" 1>&6
  1432. -  
  1433. -if test "$inetutils_cv_type_struct_lastlog" = yes; then
  1434. -  cat >> confdefs.h <<\EOF
  1435. -#define HAVE_STRUCT_LASTLOG 1
  1436. -EOF
  1437. -
  1438. -else
  1439. -  :
  1440. -fi  
  1441. -
  1442. -    echo $ac_n "checking whether struct utmp has ut_type field""... $ac_c" 1>&6
  1443. -if eval "test \"`echo '$''{'inetutils_cv_struct_utmp_ut_type'+set}'`\" = set"; then
  1444. -  echo $ac_n "(cached) $ac_c" 1>&6
  1445. -else
  1446. -  cat > conftest.$ac_ext <<EOF
  1447. -#line 2617 "configure"
  1448. -#include "confdefs.h"
  1449. -#include <utmp.h>
  1450. -
  1451. -int main() { return 0; }
  1452. -int t() {
  1453. -struct utmp iu_x; int iu_y = sizeof iu_x.ut_type;
  1454. -; return 0; }
  1455. -EOF
  1456. -if { (eval echo configure:2626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1457. -  rm -rf conftest*
  1458. -  inetutils_cv_struct_utmp_ut_type=yes
  1459. -else
  1460. -  rm -rf conftest*
  1461. -  inetutils_cv_struct_utmp_ut_type=no
  1462. -fi
  1463. -rm -f conftest*
  1464. -
  1465. -fi
  1466. -
  1467. -echo "$ac_t""$inetutils_cv_struct_utmp_ut_type" 1>&6
  1468. -  
  1469. -if test "$inetutils_cv_struct_utmp_ut_type" = yes; then
  1470. -  cat >> confdefs.h <<\EOF
  1471. -#define HAVE_UTMP_UT_TYPE 1
  1472. -EOF
  1473. -
  1474. -else
  1475. -  :
  1476. -fi  
  1477. -
  1478. -    echo $ac_n "checking whether struct utmp has ut_host field""... $ac_c" 1>&6
  1479. -if eval "test \"`echo '$''{'inetutils_cv_struct_utmp_ut_host'+set}'`\" = set"; then
  1480. -  echo $ac_n "(cached) $ac_c" 1>&6
  1481. -else
  1482. -  cat > conftest.$ac_ext <<EOF
  1483. -#line 2653 "configure"
  1484. -#include "confdefs.h"
  1485. -#include <utmp.h>
  1486. -
  1487. -int main() { return 0; }
  1488. -int t() {
  1489. -struct utmp iu_x; int iu_y = sizeof iu_x.ut_host;
  1490. -; return 0; }
  1491. -EOF
  1492. -if { (eval echo configure:2662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1493. -  rm -rf conftest*
  1494. -  inetutils_cv_struct_utmp_ut_host=yes
  1495. -else
  1496. -  rm -rf conftest*
  1497. -  inetutils_cv_struct_utmp_ut_host=no
  1498. -fi
  1499. -rm -f conftest*
  1500. -
  1501. -fi
  1502. -
  1503. -echo "$ac_t""$inetutils_cv_struct_utmp_ut_host" 1>&6
  1504. -  
  1505. -if test "$inetutils_cv_struct_utmp_ut_host" = yes; then
  1506. -  cat >> confdefs.h <<\EOF
  1507. -#define HAVE_UTMP_UT_HOST 1
  1508. -EOF
  1509. -
  1510. -else
  1511. -  :
  1512. -fi  
  1513. -
  1514. -    echo $ac_n "checking whether struct utmp has ut_tv field""... $ac_c" 1>&6
  1515. -if eval "test \"`echo '$''{'inetutils_cv_struct_utmp_ut_tv'+set}'`\" = set"; then
  1516. -  echo $ac_n "(cached) $ac_c" 1>&6
  1517. -else
  1518. -  cat > conftest.$ac_ext <<EOF
  1519. -#line 2689 "configure"
  1520. -#include "confdefs.h"
  1521. -#include <utmp.h>
  1522. -
  1523. -int main() { return 0; }
  1524. -int t() {
  1525. -struct utmp iu_x; int iu_y = sizeof iu_x.ut_tv;
  1526. -; return 0; }
  1527. -EOF
  1528. -if { (eval echo configure:2698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1529. -  rm -rf conftest*
  1530. -  inetutils_cv_struct_utmp_ut_tv=yes
  1531. -else
  1532. -  rm -rf conftest*
  1533. -  inetutils_cv_struct_utmp_ut_tv=no
  1534. -fi
  1535. -rm -f conftest*
  1536. -
  1537. -fi
  1538. -
  1539. -echo "$ac_t""$inetutils_cv_struct_utmp_ut_tv" 1>&6
  1540. -  
  1541. -if test "$inetutils_cv_struct_utmp_ut_tv" = yes; then
  1542. -  cat >> confdefs.h <<\EOF
  1543. -#define HAVE_UTMP_UT_TV 1
  1544. -EOF
  1545. -
  1546. -else
  1547. -  :
  1548. -fi  
  1549. +IU_CHECK_TYPE(struct lastlog, #include <utmp.h>)
  1550. +IU_CHECK_STRUCT_FIELD(utmp, ut_type, #include <utmp.h>)
  1551. +IU_CHECK_STRUCT_FIELD(utmp, ut_host, #include <utmp.h>)
  1552. +IU_CHECK_STRUCT_FIELD(utmp, ut_tv, #include <utmp.h>)
  1553.  
  1554.  # See if the system has strerror, and replace it if not
  1555.  echo $ac_n "checking for strerror""... $ac_c" 1>&6
  1556. @@ -2722,7 +1940,7 @@ if eval "test \"`echo '$''{'ac_cv_func_s
  1557.    echo $ac_n "(cached) $ac_c" 1>&6
  1558.  else
  1559.    cat > conftest.$ac_ext <<EOF
  1560. -#line 2726 "configure"
  1561. +#line 1944 "configure"
  1562.  #include "confdefs.h"
  1563.  /* System header to define __stub macros and hopefully few prototypes,
  1564.      which can conflict with char strerror(); below.  */
  1565. @@ -2732,7 +1950,7 @@ else
  1566.      builtin and then its argument prototype would still apply.  */
  1567.  char strerror();
  1568.  
  1569. -int main() { return 0; }
  1570. +int main() { t(); return 0; }
  1571.  int t() {
  1572.  
  1573.  /* The GNU C library defines this for functions which it implements
  1574. @@ -2746,7 +1964,7 @@ strerror();
  1575.  
  1576.  ; return 0; }
  1577.  EOF
  1578. -if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1579. +if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1580.    rm -rf conftest*
  1581.    eval "ac_cv_func_strerror=yes"
  1582.  else
  1583. @@ -2771,7 +1989,7 @@ if eval "test \"`echo '$''{'ac_cv_func_s
  1584.    echo $ac_n "(cached) $ac_c" 1>&6
  1585.  else
  1586.    cat > conftest.$ac_ext <<EOF
  1587. -#line 2775 "configure"
  1588. +#line 1993 "configure"
  1589.  #include "confdefs.h"
  1590.  /* System header to define __stub macros and hopefully few prototypes,
  1591.      which can conflict with char sys_errlist(); below.  */
  1592. @@ -2781,7 +1999,7 @@ else
  1593.      builtin and then its argument prototype would still apply.  */
  1594.  char sys_errlist();
  1595.  
  1596. -int main() { return 0; }
  1597. +int main() { t(); return 0; }
  1598.  int t() {
  1599.  
  1600.  /* The GNU C library defines this for functions which it implements
  1601. @@ -2795,7 +2013,7 @@ sys_errlist();
  1602.  
  1603.  ; return 0; }
  1604.  EOF
  1605. -if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1606. +if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1607.    rm -rf conftest*
  1608.    eval "ac_cv_func_sys_errlist=yes"
  1609.  else
  1610. @@ -2813,46 +2031,11 @@ else
  1611.  fi
  1612.  
  1613.    if test "$ac_cv_func_sys_errlist" = yes; then
  1614. -    
  1615. -    echo $ac_n "checking whether sys_errlist is declared""... $ac_c" 1>&6
  1616. -if eval "test \"`echo '$''{'inetutils_cv_decl_sys_errlist'+set}'`\" = set"; then
  1617. -  echo $ac_n "(cached) $ac_c" 1>&6
  1618. -else
  1619. -  cat > conftest.$ac_ext <<EOF
  1620. -#line 2823 "configure"
  1621. -#include "confdefs.h"
  1622. -
  1623. -#include <stdio.h>
  1624. -#ifdef HAVE_ERRNO_H
  1625. -#include <errno.h>
  1626. -#endif
  1627. -
  1628. -int main() { return 0; }
  1629. -int t() {
  1630. -char *iu_x = (char *)sys_errlist
  1631. -; return 0; }
  1632. -EOF
  1633. -if { (eval echo configure:2836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1634. -  rm -rf conftest*
  1635. -  inetutils_cv_decl_sys_errlist=yes
  1636. -else
  1637. -  rm -rf conftest*
  1638. -  inetutils_cv_decl_sys_errlist=no
  1639. -fi
  1640. -rm -f conftest*
  1641. -
  1642. -fi
  1643. -
  1644. -echo "$ac_t""$inetutils_cv_decl_sys_errlist" 1>&6
  1645. -  
  1646. -if test "$inetutils_cv_decl_sys_errlist" = yes; then
  1647. -  cat >> confdefs.h <<\EOF
  1648. -#define HAVE_SYS_ERRLIST_DECL 1
  1649. -EOF
  1650. -
  1651. -else
  1652. -  :
  1653. -fi  
  1654. +    IU_CHECK_DECL(sys_errlist, 
  1655. +      #include <stdio.h>
  1656. +      #ifdef HAVE_ERRNO_H
  1657. +      #include <errno.h>
  1658. +      #endif)
  1659.    fi
  1660.  fi
  1661.  
  1662. @@ -2862,7 +2045,7 @@ if eval "test \"`echo '$''{'ac_cv_func_h
  1663.    echo $ac_n "(cached) $ac_c" 1>&6
  1664.  else
  1665.    cat > conftest.$ac_ext <<EOF
  1666. -#line 2866 "configure"
  1667. +#line 2049 "configure"
  1668.  #include "confdefs.h"
  1669.  /* System header to define __stub macros and hopefully few prototypes,
  1670.      which can conflict with char hstrerror(); below.  */
  1671. @@ -2872,7 +2055,7 @@ else
  1672.      builtin and then its argument prototype would still apply.  */
  1673.  char hstrerror();
  1674.  
  1675. -int main() { return 0; }
  1676. +int main() { t(); return 0; }
  1677.  int t() {
  1678.  
  1679.  /* The GNU C library defines this for functions which it implements
  1680. @@ -2886,7 +2069,7 @@ hstrerror();
  1681.  
  1682.  ; return 0; }
  1683.  EOF
  1684. -if { (eval echo configure:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1685. +if { (eval echo configure:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1686.    rm -rf conftest*
  1687.    eval "ac_cv_func_hstrerror=yes"
  1688.  else
  1689. @@ -2905,42 +2088,7 @@ LIBOBJS="$LIBOBJS hstrerror.o"
  1690.  fi
  1691.  
  1692.  if test "$ac_cv_func_hstrerror" = yes; then
  1693. -  
  1694. -    echo $ac_n "checking whether hstrerror is declared""... $ac_c" 1>&6
  1695. -if eval "test \"`echo '$''{'inetutils_cv_decl_hstrerror'+set}'`\" = set"; then
  1696. -  echo $ac_n "(cached) $ac_c" 1>&6
  1697. -else
  1698. -  cat > conftest.$ac_ext <<EOF
  1699. -#line 2915 "configure"
  1700. -#include "confdefs.h"
  1701. -#include <netdb.h>
  1702. -
  1703. -int main() { return 0; }
  1704. -int t() {
  1705. -char *iu_x = (char *)hstrerror
  1706. -; return 0; }
  1707. -EOF
  1708. -if { (eval echo configure:2924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1709. -  rm -rf conftest*
  1710. -  inetutils_cv_decl_hstrerror=yes
  1711. -else
  1712. -  rm -rf conftest*
  1713. -  inetutils_cv_decl_hstrerror=no
  1714. -fi
  1715. -rm -f conftest*
  1716. -
  1717. -fi
  1718. -
  1719. -echo "$ac_t""$inetutils_cv_decl_hstrerror" 1>&6
  1720. -  
  1721. -if test "$inetutils_cv_decl_hstrerror" = yes; then
  1722. -  cat >> confdefs.h <<\EOF
  1723. -#define HAVE_HSTRERROR_DECL 1
  1724. -EOF
  1725. -
  1726. -else
  1727. -  :
  1728. -fi  
  1729. +  IU_CHECK_DECL(hstrerror, #include <netdb.h>)
  1730.  else
  1731.    # No hstrerror, so see if the H_ERRLIST variable can be used by ours
  1732.    echo $ac_n "checking for h_errlist""... $ac_c" 1>&6
  1733. @@ -2948,7 +2096,7 @@ if eval "test \"`echo '$''{'ac_cv_func_h
  1734.    echo $ac_n "(cached) $ac_c" 1>&6
  1735.  else
  1736.    cat > conftest.$ac_ext <<EOF
  1737. -#line 2952 "configure"
  1738. +#line 2100 "configure"
  1739.  #include "confdefs.h"
  1740.  /* System header to define __stub macros and hopefully few prototypes,
  1741.      which can conflict with char h_errlist(); below.  */
  1742. @@ -2958,7 +2106,7 @@ else
  1743.      builtin and then its argument prototype would still apply.  */
  1744.  char h_errlist();
  1745.  
  1746. -int main() { return 0; }
  1747. +int main() { t(); return 0; }
  1748.  int t() {
  1749.  
  1750.  /* The GNU C library defines this for functions which it implements
  1751. @@ -2972,7 +2120,7 @@ h_errlist();
  1752.  
  1753.  ; return 0; }
  1754.  EOF
  1755. -if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1756. +if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1757.    rm -rf conftest*
  1758.    eval "ac_cv_func_h_errlist=yes"
  1759.  else
  1760. @@ -2990,42 +2138,7 @@ else
  1761.  fi
  1762.  
  1763.    if test "$ac_cv_func_h_errlist" = yes; then
  1764. -    
  1765. -    echo $ac_n "checking whether h_errlist is declared""... $ac_c" 1>&6
  1766. -if eval "test \"`echo '$''{'inetutils_cv_decl_h_errlist'+set}'`\" = set"; then
  1767. -  echo $ac_n "(cached) $ac_c" 1>&6
  1768. -else
  1769. -  cat > conftest.$ac_ext <<EOF
  1770. -#line 3000 "configure"
  1771. -#include "confdefs.h"
  1772. -#include <netdb.h>
  1773. -
  1774. -int main() { return 0; }
  1775. -int t() {
  1776. -char *iu_x = (char *)h_errlist
  1777. -; return 0; }
  1778. -EOF
  1779. -if { (eval echo configure:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1780. -  rm -rf conftest*
  1781. -  inetutils_cv_decl_h_errlist=yes
  1782. -else
  1783. -  rm -rf conftest*
  1784. -  inetutils_cv_decl_h_errlist=no
  1785. -fi
  1786. -rm -f conftest*
  1787. -
  1788. -fi
  1789. -
  1790. -echo "$ac_t""$inetutils_cv_decl_h_errlist" 1>&6
  1791. -  
  1792. -if test "$inetutils_cv_decl_h_errlist" = yes; then
  1793. -  cat >> confdefs.h <<\EOF
  1794. -#define HAVE_H_ERRLIST_DECL 1
  1795. -EOF
  1796. -
  1797. -else
  1798. -  :
  1799. -fi  
  1800. +    IU_CHECK_DECL(h_errlist, #include <netdb.h>)
  1801.    fi
  1802.  fi
  1803.  if test "$ac_cv_func_hstrerror" = yes -o "$ac_cv_func_h_errlist" = yes; then
  1804. @@ -3045,7 +2158,7 @@ if eval "test \"`echo '$''{'ac_cv_type_s
  1805.    echo $ac_n "(cached) $ac_c" 1>&6
  1806.  else
  1807.    cat > conftest.$ac_ext <<EOF
  1808. -#line 3049 "configure"
  1809. +#line 2162 "configure"
  1810.  #include "confdefs.h"
  1811.  #include <sys/types.h>
  1812.  #include <signal.h>
  1813. @@ -3063,7 +2176,7 @@ int t() {
  1814.  int i;
  1815.  ; return 0; }
  1816.  EOF
  1817. -if { (eval echo configure:3067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1818. +if { (eval echo configure:2180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1819.    rm -rf conftest*
  1820.    ac_cv_type_signal=void
  1821.  else
  1822. @@ -3081,43 +2194,9 @@ EOF
  1823.  
  1824.  
  1825.  # sig_t is the type of a signal handler (4.4BSD)
  1826. -
  1827. -    echo $ac_n "checking whether sig_t is defined""... $ac_c" 1>&6
  1828. -if eval "test \"`echo '$''{'inetutils_cv_type_sig_t'+set}'`\" = set"; then
  1829. -  echo $ac_n "(cached) $ac_c" 1>&6
  1830. -else
  1831. -  cat > conftest.$ac_ext <<EOF
  1832. -#line 3091 "configure"
  1833. -#include "confdefs.h"
  1834. -#include <sys/types.h>
  1835. -#include <sys/signal.h> 
  1836. -
  1837. -int main() { return 0; }
  1838. -int t() {
  1839. -sig_t iu_x;
  1840. -; return 0; }
  1841. -EOF
  1842. -if { (eval echo configure:3101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1843. -  rm -rf conftest*
  1844. -  inetutils_cv_type_sig_t=yes
  1845. -else
  1846. -  rm -rf conftest*
  1847. -  inetutils_cv_type_sig_t=no
  1848. -fi
  1849. -rm -f conftest*
  1850. -
  1851. -fi
  1852. -
  1853. -echo "$ac_t""$inetutils_cv_type_sig_t" 1>&6
  1854. -  
  1855. -if test "$inetutils_cv_type_sig_t" = yes; then
  1856. -  cat >> confdefs.h <<\EOF
  1857. -#define HAVE_SIG_T 1
  1858. -EOF
  1859. -
  1860. -else
  1861. -  :
  1862. -fi  
  1863. +IU_CHECK_TYPE(sig_t,
  1864. +   #include <sys/types.h>
  1865. +    #include <sys/signal.h> )
  1866.  
  1867.  # See if the __PROGNAME variable is defined, otherwise use our own.
  1868.  echo $ac_n "checking for __progname""... $ac_c" 1>&6
  1869. @@ -3125,7 +2204,7 @@ if eval "test \"`echo '$''{'ac_cv_func__
  1870.    echo $ac_n "(cached) $ac_c" 1>&6
  1871.  else
  1872.    cat > conftest.$ac_ext <<EOF
  1873. -#line 3129 "configure"
  1874. +#line 2208 "configure"
  1875.  #include "confdefs.h"
  1876.  /* System header to define __stub macros and hopefully few prototypes,
  1877.      which can conflict with char __progname(); below.  */
  1878. @@ -3135,7 +2214,7 @@ else
  1879.      builtin and then its argument prototype would still apply.  */
  1880.  char __progname();
  1881.  
  1882. -int main() { return 0; }
  1883. +int main() { t(); return 0; }
  1884.  int t() {
  1885.  
  1886.  /* The GNU C library defines this for functions which it implements
  1887. @@ -3149,7 +2228,7 @@ __progname();
  1888.  
  1889.  ; return 0; }
  1890.  EOF
  1891. -if { (eval echo configure:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1892. +if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1893.    rm -rf conftest*
  1894.    eval "ac_cv_func___progname=yes"
  1895.  else
  1896. @@ -3177,7 +2256,7 @@ if eval "test \"`echo '$''{'ac_cv_func_s
  1897.    echo $ac_n "(cached) $ac_c" 1>&6
  1898.  else
  1899.    cat > conftest.$ac_ext <<EOF
  1900. -#line 3181 "configure"
  1901. +#line 2260 "configure"
  1902.  #include "confdefs.h"
  1903.  /* System header to define __stub macros and hopefully few prototypes,
  1904.      which can conflict with char snprintf(); below.  */
  1905. @@ -3187,7 +2266,7 @@ else
  1906.      builtin and then its argument prototype would still apply.  */
  1907.  char snprintf();
  1908.  
  1909. -int main() { return 0; }
  1910. +int main() { t(); return 0; }
  1911.  int t() {
  1912.  
  1913.  /* The GNU C library defines this for functions which it implements
  1914. @@ -3201,7 +2280,7 @@ snprintf();
  1915.  
  1916.  ; return 0; }
  1917.  EOF
  1918. -if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1919. +if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1920.    rm -rf conftest*
  1921.    eval "ac_cv_func_snprintf=yes"
  1922.  else
  1923. @@ -3239,239 +2318,7 @@ fi
  1924.  # details.
  1925.  PATHDEFS_MAKE=pathdefs.make
  1926.  PATHS_DEFS=paths.defs
  1927. -
  1928. -  ac_safe=`echo "paths.h" | tr './\055' '___'`
  1929. -echo $ac_n "checking for paths.h""... $ac_c" 1>&6
  1930. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1931. -  echo $ac_n "(cached) $ac_c" 1>&6
  1932. -else
  1933. -  cat > conftest.$ac_ext <<EOF
  1934. -#line 3250 "configure"
  1935. -#include "confdefs.h"
  1936. -#include <paths.h>
  1937. -EOF
  1938. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1939. -{ (eval echo configure:3255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1940. -ac_err=`grep -v '^ *+' conftest.out`
  1941. -if test -z "$ac_err"; then
  1942. -  rm -rf conftest*
  1943. -  eval "ac_cv_header_$ac_safe=yes"
  1944. -else
  1945. -  echo "$ac_err" >&5
  1946. -  rm -rf conftest*
  1947. -  eval "ac_cv_header_$ac_safe=no"
  1948. -fi
  1949. -rm -f conftest*
  1950. -fi
  1951. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1952. -  echo "$ac_t""yes" 1>&6
  1953. -  cat >> confdefs.h <<\EOF
  1954. -#define HAVE_PATHS_H 1
  1955. -EOF
  1956. - iu_paths_h="<paths.h>"
  1957. -else
  1958. -  echo "$ac_t""no" 1>&6
  1959. -fi
  1960. -
  1961. -  # If we cannot run a trivial program, we must be cross compiling.
  1962. -echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1963. -if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1964. -  echo $ac_n "(cached) $ac_c" 1>&6
  1965. -else
  1966. -  if test "$cross_compiling" = yes; then
  1967. -  ac_cv_c_cross=yes
  1968. -else
  1969. -cat > conftest.$ac_ext <<EOF
  1970. -#line 3286 "configure"
  1971. -#include "confdefs.h"
  1972. -main(){return(0);}
  1973. -EOF
  1974. -{ (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1975. -if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1976. -  ac_cv_c_cross=no
  1977. -else
  1978. -  ac_cv_c_cross=yes
  1979. -fi
  1980. -fi
  1981. -rm -fr conftest*
  1982. -fi
  1983. -
  1984. -echo "$ac_t""$ac_cv_c_cross" 1>&6
  1985. -cross_compiling=$ac_cv_c_cross
  1986. -
  1987. -              # Check whether --with-PATHVAR or --without-PATHVAR was given.
  1988. -if test "${with_PATHVAR+set}" = set; then
  1989. -  withval="$with_PATHVAR"
  1990. -  :
  1991. -fi
  1992. -
  1993. -  while read iu_path iu_search; do
  1994. -    test "$iu_path" = "#" -o -z "$iu_path" && continue
  1995. -
  1996. -    iu_pathvar="`echo $iu_path  | sed y/${IU_UCASE}/${iu_lcase}/`"
  1997. -    echo $ac_n "checking for value of $iu_path""... $ac_c" 1>&6
  1998. -
  1999. -    iu_val='' iu_hdr='' iu_sym=''
  2000. -    iu_cached='' iu_defaulted=''
  2001. -    iu_cross_conflict=''
  2002. -    if test "`eval echo '$'{with_$iu_pathvar+set}`" = set; then
  2003. -      # User-supplied value
  2004. -      eval iu_val=\"'$'with_$iu_pathvar\"
  2005. -    elif test "`eval echo '$'{inetutils_cv_$iu_pathvar+set}`" = set; then
  2006. -      # Cached value
  2007. -      eval iu_val=\"'$'inetutils_cv_$iu_pathvar\"
  2008. -      iu_cached="(cached) "
  2009. -    elif test "`eval echo '$'{inetutils_cv_hdr_$iu_pathvar+set}`" = set; then
  2010. -      # Cached non-value
  2011. -      eval iu_hdr=\"'$'inetutils_cv_hdr_$iu_pathvar\"
  2012. -      eval iu_sym=\"'$'inetutils_cv_hdr_sym_$iu_pathvar\"
  2013. -      iu_cached="(cached) "
  2014. -    else
  2015. -      # search for a reasonable value
  2016. -
  2017. -      iu_test_type=e        # `exists'
  2018. -      iu_default='' iu_prev_cross_test=''
  2019. -      for iu_try in $iu_paths_h $iu_search; do
  2020. -    iu_cross_test=''
  2021. -    case "$iu_try" in
  2022. -      "<"*">"*)
  2023. -        # <HEADER.h> and <HEADER.h>:SYMBOL -- look for SYMBOL in <HEADER.h>
  2024. -        # SYMBOL defaults to _$iu_path (e.g., _PATH_FOO)
  2025. -        eval iu_hdr=\'`echo "$iu_try" |sed 's/:.*$//'`\'
  2026. -        eval iu_sym=\'`echo "$iu_try" |sed -n 's/^<^>*>:\(.*\)$/\1/p'`\'
  2027. -        test "$iu_sym" || iu_sym="_$iu_path"
  2028. -        cat > conftest.$ac_ext <<EOF
  2029. -#line 3345 "configure"
  2030. -#include "confdefs.h"
  2031. -#include $iu_hdr
  2032. -#ifdef $iu_sym
  2033. -HAVE_$iu_sym
  2034. -#endif
  2035. -EOF
  2036. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2037. -  egrep "HAVE_$iu_sym" >/dev/null 2>&1; then
  2038. -  rm -rf conftest*
  2039. -  :
  2040. -else
  2041. -  rm -rf conftest*
  2042. -  iu_hdr='' iu_sym=''
  2043. -fi
  2044. -rm -f conftest*
  2045. -
  2046. -        ;;
  2047. -
  2048. -      search:*)
  2049. -        # Do a path search.  The syntax here is: search:NAME[:PATH]...
  2050. -
  2051. -        # Path searches always generate potential conflicts
  2052. -        test "$cross_compiling" = yes && { iu_cross_conflict=yes; continue; }
  2053. -
  2054. -        IFS="${IFS=     }"; iu_save_ifs="$IFS"; IFS="${IFS}:"
  2055. -        read iu_cmd iu_name iu_spath <<EOF
  2056. -$iu_try
  2057. -EOF
  2058. -        test "$iu_spath" || iu_spath="$PATH"
  2059. -        for iu_dir in $iu_spath; do
  2060. -          test -z "$iu_dir" && iu_dir=.
  2061. -          if test -$iu_test_type "$iu_dir/$iu_name"; then
  2062. -        iu_val="$iu_dir/$iu_name"
  2063. -        break
  2064. -          fi
  2065. -        done
  2066. -        IFS="$iu_save_ifs"
  2067. -        ;;
  2068. -
  2069. -      no) iu_default=no;;
  2070. -      x|d|f|c|b) iu_test_type=$iu_try;;
  2071. -
  2072. -      *)
  2073. -        # Just try the given name, with make-var substitution.  Besides 
  2074. -        # yielding a value if found, this also sets the default.
  2075. -
  2076. -        case "$iu_try" in "\""*"\"")
  2077. -          # strip off quotes
  2078. -          iu_try="`echo $iu_try | sed -e 's/^.//' -e 's/.$//'`"
  2079. -        esac
  2080. -
  2081. -        test -z "$iu_default" && iu_default="$iu_try"
  2082. -        test "$cross_compiling" = yes && { iu_cross_test=yes; continue; }
  2083. -
  2084. -        # See if the value begins with a $(FOO)/${FOO} make variable
  2085. -        # corresponding to a shell variable, and if so set try_exp to the
  2086. -        # value thereof.  Recurse.
  2087. -        iu_try_exp="$iu_try"
  2088. -        
  2089. -        iu_try_var="`echo "$iu_try_exp" |sed -n 's;^\$[({]\([-_a-zA-Z]*\)[)}].*;\1;p'`"
  2090. -        while eval test \"$iu_try_var\" && eval test '${'$iu_try_var'+set}'; do
  2091. -          # yes, and there's a corresponding shell variable, which substitute
  2092. -          if eval test \"'$'"$iu_try_var"\" = NONE; then
  2093. -        # Not filled in by configure yet
  2094. -        case "$iu_try_var" in
  2095. -          prefix | exec_prefix)
  2096. -            iu_try_exp="$ac_default_prefix`echo "$iu_try_exp" |sed 's;^\$[({][-_a-zA-Z]*[)}];;'`";;
  2097. -        esac
  2098. -        iu_try_var=''    # Stop expansion here
  2099. -          else
  2100. -        # Use the actual value of the shell variable
  2101. -        eval iu_try_exp=\"`echo "$iu_try_exp" |sed 's;^\$[({]\([-_a-zA-Z]*\)[)}];\$\1;'`\"
  2102. -        iu_try_var="`echo "$iu_try_exp" |sed -n 's;^\$[({]\([-_a-zA-Z]*\)[)}].*;\1;p'`"
  2103. -          fi
  2104. -        done
  2105. -        
  2106. -
  2107. -        test -$iu_test_type "$iu_try_exp" && iu_val="$iu_try"
  2108. -        ;;
  2109. -
  2110. -    esac
  2111. -
  2112. -    test "$iu_val" -o "$iu_hdr" && break
  2113. -    test "$iu_cross_test" -a "$iu_prev_cross_test" && iu_cross_conflict=yes
  2114. -    iu_prev_cross_test=$iu_cross_test
  2115. -      done
  2116. -
  2117. -      if test -z "$iu_val" -a -z "$iu_hdr"; then
  2118. -    if test -z "$iu_default"; then
  2119. -      iu_val=no
  2120. -    else
  2121. -      iu_val="$iu_default"
  2122. -      iu_defaulted="(default) "
  2123. -    fi
  2124. -      fi
  2125. -    fi
  2126. -
  2127. -    if test "$iu_val"; then
  2128. -      echo "$ac_t""${iu_cached}${iu_defaulted}$iu_val" 1>&6
  2129. -      test "$iu_cross_conflict" -a "$iu_defaulted" \
  2130. -    && echo "configure: warning: may be incorrect because of cross-compilation" 1>&2
  2131. -      if test "$iu_val" != no; then
  2132. -    iu_pathdef="`echo $iu_path | sed 's/^PATH_/PATHDEF_/'`"
  2133. -    echo $iu_pathdef = -D$iu_path='\"'"$iu_val"'\"'
  2134. -      fi
  2135. -      test "$iu_cached" || eval inetutils_cv_$iu_pathvar=\'"$iu_val"\'
  2136. -    elif test "$iu_hdr"; then
  2137. -      echo "$ac_t""${iu_cached}from $iu_sym in $iu_hdr" 1>&6
  2138. -      test "$iu_cached" || eval inetutils_cv_hdr_$iu_pathvar=\'"$iu_hdr"\'
  2139. -      test "$iu_cached" || eval inetutils_cv_hdr_sym_$iu_pathvar=\'"$iu_sym"\'
  2140. -    fi
  2141. -  done <$srcdir/paths >$PATHDEFS_MAKE
  2142. -  
  2143. -
  2144. -  # Generate a file of #ifdefs that defaults PATH_FOO macros to _PATH_FOO (or
  2145. -  # some other symbol) (excluding any who's value is set to `no').
  2146. -  while read iu_path iu_search; do
  2147. -    test "$iu_path" = "#" -o -z "$iu_path" && continue
  2148. -    iu_pathvar="`echo $iu_path  | sed y/${IU_UCASE}/${iu_lcase}/`"
  2149. -    test "`eval echo '$'{inetutils_cv_$iu_pathvar}`" = no && continue
  2150. -    eval iu_sym=\"'$'inetutils_cv_hdr_sym_$iu_pathvar\"
  2151. -    if test "$iu_sym"; then
  2152. -      cat <<EOF
  2153. -#ifndef $iu_path
  2154. -#define $iu_path $iu_sym
  2155. -#endif
  2156. -EOF
  2157. -    fi
  2158. -  done <$srcdir/paths >$PATHS_DEFS
  2159. -  
  2160. +IU_CONFIG_PATHS($srcdir/paths, PATHDEFS_MAKE, PATHS_DEFS)
  2161.  
  2162.  # Supply optional header files by linking a copy into the object include dir
  2163.  LINK_SRCS="$LINK_SRCS `for I in $INCLUDES; do echo $ac_n ' 'headers/$I$ac_c; done`"
  2164. @@ -3534,7 +2381,9 @@ DEFS=-DHAVE_CONFIG_H
  2165.  : ${CONFIG_STATUS=./config.status}
  2166.  
  2167.  echo creating $CONFIG_STATUS
  2168. -rm -f $CONFIG_STATUS
  2169. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  2170. +# being executed, so just move it out of the way instead.
  2171. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2172.  cat > $CONFIG_STATUS <<EOF
  2173.  #! /bin/sh
  2174.  # Generated automatically by configure.
  2175. @@ -3596,6 +2445,9 @@ s%@libdir@%$libdir%g
  2176.  s%@includedir@%$includedir%g
  2177.  s%@oldincludedir@%$oldincludedir%g
  2178.  s%@infodir@%$infodir%g
  2179. +s%@guidedir@%$guidedir%g
  2180. +s%@psdir@%$psdir%g
  2181. +s%@dvidir@%$dvidir%g
  2182.  s%@mandir@%$mandir%g
  2183.  s%@COMMON@%$COMMON%g
  2184.  s%@SERVERS@%$SERVERS%g
  2185. @@ -3623,16 +2475,10 @@ s%@RANLIB@%$RANLIB%g
  2186.  s%@RM@%$RM%g
  2187.  s%@LIBUTIL@%$LIBUTIL%g
  2188.  s%@LIBCRYPT@%$LIBCRYPT%g
  2189. -s%@LIBTERMCAP@%$LIBTERMCAP%g
  2190. -s%@LIBCURSES@%$LIBCURSES%g
  2191.  s%@subdirs@%$subdirs%g
  2192.  s%@LIBGLOB@%$LIBGLOB%g
  2193.  s%@LIBAUTH@%$LIBAUTH%g
  2194.  s%@SERVERS_OR_CLIENTS@%$SERVERS_OR_CLIENTS%g
  2195. -/@PATHDEFS_MAKE@/r $PATHDEFS_MAKE
  2196. -s%@PATHDEFS_MAKE@%%g
  2197. -/@PATHS_DEFS@/r $PATHS_DEFS
  2198. -s%@PATHS_DEFS@%%g
  2199.  
  2200.  CEOF
  2201.  EOF
  2202. @@ -3847,6 +2693,7 @@ done
  2203.  exit 0
  2204.  EOF
  2205.  chmod +x $CONFIG_STATUS
  2206. +rm -f CONFIG.STATUS.old
  2207.  rm -fr confdefs* $ac_clean_files
  2208.  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2209.  
  2210. diff -rup --new-file baseline/fsf/inetutils/glob/configure amiga/fsf/inetutils/glob/configure
  2211. --- baseline/fsf/inetutils/glob/configure    Sat Mar  2 03:01:02 1996
  2212. +++ amiga/fsf/inetutils/glob/configure    Mon Sep 30 22:46:32 1996
  2213. @@ -1,8 +1,8 @@
  2214.  #! /bin/sh
  2215.  
  2216.  # Guess values for system-dependent variables and create Makefiles.
  2217. -# Generated automatically using autoconf version 2.7 
  2218. -# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  2219. +# Generated automatically using autoconf version 2.10 
  2220. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  2221.  #
  2222.  # This configure script is free software; the Free Software Foundation
  2223.  # gives unlimited permission to copy, distribute and modify it.
  2224. @@ -44,6 +44,9 @@ libdir='${exec_prefix}/lib'
  2225.  includedir='${prefix}/include'
  2226.  oldincludedir='/usr/include'
  2227.  infodir='${prefix}/info'
  2228. +guidedir='${prefix}/guide'
  2229. +psdir='${prefix}/ps'
  2230. +dvidir='${prefix}/dvi'
  2231.  mandir='${prefix}/man'
  2232.  
  2233.  # Initialize some other variables.
  2234. @@ -158,6 +161,9 @@ Directory and file names:
  2235.    --includedir=DIR        C header files in DIR [PREFIX/include]
  2236.    --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  2237.    --infodir=DIR           info documentation in DIR [PREFIX/info]
  2238. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  2239. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  2240. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  2241.    --mandir=DIR            man documentation in DIR [PREFIX/man]
  2242.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  2243.    --program-prefix=PREFIX prepend PREFIX to installed program names
  2244. @@ -200,6 +206,18 @@ EOF
  2245.    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  2246.      infodir="$ac_optarg" ;;
  2247.  
  2248. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  2249. +   ac_prev=guidedir ;;
  2250. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  2251. +
  2252. + -psdir | --psdir | --psdi | --psd | --ps)
  2253. +   ac_prev=psdir ;;
  2254. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  2255. +
  2256. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  2257. +   ac_prev=dvidir ;;
  2258. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  2259. +
  2260.    -libdir | --libdir | --libdi | --libd)
  2261.      ac_prev=libdir ;;
  2262.    -libdir=* | --libdir=* | --libdi=* | --libd=*)
  2263. @@ -330,7 +348,7 @@ EOF
  2264.      verbose=yes ;;
  2265.  
  2266.    -version | --version | --versio | --versi | --vers)
  2267. -    echo "configure generated by autoconf version 2.7"
  2268. +    echo "configure generated by autoconf version 2.10"
  2269.      exit 0 ;;
  2270.  
  2271.    -with-* | --with-*)
  2272. @@ -597,7 +615,7 @@ else
  2273.    yes;
  2274.  #endif
  2275.  EOF
  2276. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2277. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2278.    ac_cv_prog_gcc=yes
  2279.  else
  2280.    ac_cv_prog_gcc=no
  2281. @@ -624,9 +642,9 @@ fi
  2282.  
  2283.  echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  2284.      if test $ac_cv_prog_gcc_g = yes; then
  2285. -      CFLAGS="-g -O"
  2286. +      CFLAGS="-g -O2"
  2287.      else
  2288. -      CFLAGS="-O"
  2289. +      CFLAGS="-O2"
  2290.      fi
  2291.    fi
  2292.  else
  2293. @@ -705,13 +723,13 @@ else
  2294.    # On the NeXT, cc -E runs the code through the compiler's parser,
  2295.    # not just through cpp.
  2296.    cat > conftest.$ac_ext <<EOF
  2297. -#line 709 "configure"
  2298. +#line 727 "configure"
  2299.  #include "confdefs.h"
  2300.  #include <assert.h>
  2301.  Syntax Error
  2302.  EOF
  2303.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2304. -{ (eval echo configure:715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2305. +{ (eval echo configure:733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2306.  ac_err=`grep -v '^ *+' conftest.out`
  2307.  if test -z "$ac_err"; then
  2308.    :
  2309. @@ -720,13 +738,13 @@ else
  2310.    rm -rf conftest*
  2311.    CPP="${CC-cc} -E -traditional-cpp"
  2312.    cat > conftest.$ac_ext <<EOF
  2313. -#line 724 "configure"
  2314. +#line 742 "configure"
  2315.  #include "confdefs.h"
  2316.  #include <assert.h>
  2317.  Syntax Error
  2318.  EOF
  2319.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2320. -{ (eval echo configure:730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2321. +{ (eval echo configure:748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2322.  ac_err=`grep -v '^ *+' conftest.out`
  2323.  if test -z "$ac_err"; then
  2324.    :
  2325. @@ -747,7 +765,7 @@ fi
  2326.  echo "$ac_t""$CPP" 1>&6
  2327.              echo $ac_n "checking for AIX""... $ac_c" 1>&6
  2328.  cat > conftest.$ac_ext <<EOF
  2329. -#line 751 "configure"
  2330. +#line 769 "configure"
  2331.  #include "confdefs.h"
  2332.  #ifdef _AIX
  2333.    yes
  2334. @@ -774,12 +792,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  2335.    echo $ac_n "(cached) $ac_c" 1>&6
  2336.  else
  2337.    cat > conftest.$ac_ext <<EOF
  2338. -#line 778 "configure"
  2339. +#line 796 "configure"
  2340.  #include "confdefs.h"
  2341.  #include <minix/config.h>
  2342.  EOF
  2343.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2344. -{ (eval echo configure:783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2345. +{ (eval echo configure:801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2346.  ac_err=`grep -v '^ *+' conftest.out`
  2347.  if test -z "$ac_err"; then
  2348.    rm -rf conftest*
  2349. @@ -839,7 +857,7 @@ if eval "test \"`echo '$''{'ac_cv_c_cons
  2350.    echo $ac_n "(cached) $ac_c" 1>&6
  2351.  else
  2352.    cat > conftest.$ac_ext <<EOF
  2353. -#line 843 "configure"
  2354. +#line 861 "configure"
  2355.  #include "confdefs.h"
  2356.  
  2357.  int main() { return 0; }
  2358. @@ -889,7 +907,7 @@ ccp = (char const *const *) p;
  2359.  
  2360.  ; return 0; }
  2361.  EOF
  2362. -if { (eval echo configure:893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2363. +if { (eval echo configure:911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2364.    rm -rf conftest*
  2365.    ac_cv_c_const=yes
  2366.  else
  2367. @@ -917,11 +935,11 @@ else
  2368.    ac_cv_c_cross=yes
  2369.  else
  2370.  cat > conftest.$ac_ext <<EOF
  2371. -#line 921 "configure"
  2372. +#line 939 "configure"
  2373.  #include "confdefs.h"
  2374.  main(){return(0);}
  2375.  EOF
  2376. -{ (eval echo configure:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2377. +{ (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2378.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2379.    ac_cv_c_cross=no
  2380.  else
  2381. @@ -939,7 +957,7 @@ if eval "test \"`echo '$''{'ac_cv_header
  2382.    echo $ac_n "(cached) $ac_c" 1>&6
  2383.  else
  2384.    cat > conftest.$ac_ext <<EOF
  2385. -#line 943 "configure"
  2386. +#line 961 "configure"
  2387.  #include "confdefs.h"
  2388.  #include <stdlib.h>
  2389.  #include <stdarg.h>
  2390. @@ -947,7 +965,7 @@ else
  2391.  #include <float.h>
  2392.  EOF
  2393.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2394. -{ (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2395. +{ (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2396.  ac_err=`grep -v '^ *+' conftest.out`
  2397.  if test -z "$ac_err"; then
  2398.    rm -rf conftest*
  2399. @@ -962,7 +980,7 @@ rm -f conftest*
  2400.  if test $ac_cv_header_stdc = yes; then
  2401.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2402.  cat > conftest.$ac_ext <<EOF
  2403. -#line 966 "configure"
  2404. +#line 984 "configure"
  2405.  #include "confdefs.h"
  2406.  #include <string.h>
  2407.  EOF
  2408. @@ -980,7 +998,7 @@ fi
  2409.  if test $ac_cv_header_stdc = yes; then
  2410.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2411.  cat > conftest.$ac_ext <<EOF
  2412. -#line 984 "configure"
  2413. +#line 1002 "configure"
  2414.  #include "confdefs.h"
  2415.  #include <stdlib.h>
  2416.  EOF
  2417. @@ -1001,7 +1019,7 @@ if test "$cross_compiling" = yes; then
  2418.    :
  2419.  else
  2420.  cat > conftest.$ac_ext <<EOF
  2421. -#line 1005 "configure"
  2422. +#line 1023 "configure"
  2423.  #include "confdefs.h"
  2424.  #include <ctype.h>
  2425.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2426. @@ -1012,7 +1030,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  2427.  exit (0); }
  2428.  
  2429.  EOF
  2430. -{ (eval echo configure:1016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2431. +{ (eval echo configure:1034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2432.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2433.    :
  2434.  else
  2435. @@ -1039,12 +1057,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  2436.    echo $ac_n "(cached) $ac_c" 1>&6
  2437.  else
  2438.    cat > conftest.$ac_ext <<EOF
  2439. -#line 1043 "configure"
  2440. +#line 1061 "configure"
  2441.  #include "confdefs.h"
  2442.  #include <$ac_hdr>
  2443.  EOF
  2444.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2445. -{ (eval echo configure:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2446. +{ (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2447.  ac_err=`grep -v '^ *+' conftest.out`
  2448.  if test -z "$ac_err"; then
  2449.    rm -rf conftest*
  2450. @@ -1077,7 +1095,7 @@ if eval "test \"`echo '$''{'ac_cv_header
  2451.    echo $ac_n "(cached) $ac_c" 1>&6
  2452.  else
  2453.    cat > conftest.$ac_ext <<EOF
  2454. -#line 1081 "configure"
  2455. +#line 1099 "configure"
  2456.  #include "confdefs.h"
  2457.  #include <sys/types.h>
  2458.  #include <$ac_hdr>
  2459. @@ -1086,7 +1104,7 @@ int t() {
  2460.  DIR *dirp = 0;
  2461.  ; return 0; }
  2462.  EOF
  2463. -if { (eval echo configure:1090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2464. +if { (eval echo configure:1108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2465.    rm -rf conftest*
  2466.    eval "ac_cv_header_dirent_$ac_safe=yes"
  2467.  else
  2468. @@ -1110,22 +1128,26 @@ done
  2469.  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  2470.  if test $ac_header_dirent = dirent.h; then
  2471.  echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  2472. -ac_lib_var=`echo dir | tr '.-/+' '___p'`
  2473. +ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  2474.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2475.    echo $ac_n "(cached) $ac_c" 1>&6
  2476.  else
  2477.    ac_save_LIBS="$LIBS"
  2478.  LIBS="-ldir  $LIBS"
  2479.  cat > conftest.$ac_ext <<EOF
  2480. -#line 1121 "configure"
  2481. +#line 1139 "configure"
  2482.  #include "confdefs.h"
  2483. +/* Override any gcc2 internal prototype to avoid an error.  */
  2484. +/* We use char because int might match the return type of a gcc2
  2485. +    builtin and then its argument prototype would still apply.  */
  2486. +char opendir();
  2487.  
  2488. -int main() { return 0; }
  2489. +int main() { t(); return 0; }
  2490.  int t() {
  2491.  opendir()
  2492.  ; return 0; }
  2493.  EOF
  2494. -if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2495. +if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2496.    rm -rf conftest*
  2497.    eval "ac_cv_lib_$ac_lib_var=yes"
  2498.  else
  2499. @@ -1145,22 +1167,26 @@ fi
  2500.  
  2501.  else
  2502.  echo $ac_n "checking for -lx""... $ac_c" 1>&6
  2503. -ac_lib_var=`echo x | tr '.-/+' '___p'`
  2504. +ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  2505.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2506.    echo $ac_n "(cached) $ac_c" 1>&6
  2507.  else
  2508.    ac_save_LIBS="$LIBS"
  2509.  LIBS="-lx  $LIBS"
  2510.  cat > conftest.$ac_ext <<EOF
  2511. -#line 1156 "configure"
  2512. +#line 1178 "configure"
  2513.  #include "confdefs.h"
  2514. +/* Override any gcc2 internal prototype to avoid an error.  */
  2515. +/* We use char because int might match the return type of a gcc2
  2516. +    builtin and then its argument prototype would still apply.  */
  2517. +char opendir();
  2518.  
  2519. -int main() { return 0; }
  2520. +int main() { t(); return 0; }
  2521.  int t() {
  2522.  opendir()
  2523.  ; return 0; }
  2524.  EOF
  2525. -if { (eval echo configure:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2526. +if { (eval echo configure:1190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2527.    rm -rf conftest*
  2528.    eval "ac_cv_lib_$ac_lib_var=yes"
  2529.  else
  2530. @@ -1188,13 +1214,13 @@ else
  2531.    ac_cv_func_closedir_void=yes
  2532.  else
  2533.  cat > conftest.$ac_ext <<EOF
  2534. -#line 1192 "configure"
  2535. +#line 1218 "configure"
  2536.  #include "confdefs.h"
  2537.  #include <sys/types.h>
  2538.  #include <$ac_header_dirent>
  2539.  int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  2540.  EOF
  2541. -{ (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2542. +{ (eval echo configure:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2543.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2544.    ac_cv_func_closedir_void=no
  2545.  else
  2546. @@ -1219,15 +1245,15 @@ if eval "test \"`echo '$''{'ac_cv_header
  2547.    echo $ac_n "(cached) $ac_c" 1>&6
  2548.  else
  2549.    cat > conftest.$ac_ext <<EOF
  2550. -#line 1223 "configure"
  2551. +#line 1249 "configure"
  2552.  #include "confdefs.h"
  2553.  #include <alloca.h>
  2554. -int main() { return 0; }
  2555. +int main() { t(); return 0; }
  2556.  int t() {
  2557.  char *p = alloca(2 * sizeof(int));
  2558.  ; return 0; }
  2559.  EOF
  2560. -if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2561. +if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2562.    rm -rf conftest*
  2563.    ac_cv_header_alloca_h=yes
  2564.  else
  2565. @@ -1251,7 +1277,7 @@ if eval "test \"`echo '$''{'ac_cv_func_a
  2566.    echo $ac_n "(cached) $ac_c" 1>&6
  2567.  else
  2568.    cat > conftest.$ac_ext <<EOF
  2569. -#line 1255 "configure"
  2570. +#line 1281 "configure"
  2571.  #include "confdefs.h"
  2572.  
  2573.  #ifdef __GNUC__
  2574. @@ -1270,12 +1296,12 @@ char *alloca ();
  2575.  # endif
  2576.  #endif
  2577.  
  2578. -int main() { return 0; }
  2579. +int main() { t(); return 0; }
  2580.  int t() {
  2581.  char *p = (char *) alloca(1);
  2582.  ; return 0; }
  2583.  EOF
  2584. -if { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2585. +if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2586.    rm -rf conftest*
  2587.    ac_cv_func_alloca=yes
  2588.  else
  2589. @@ -1310,7 +1336,7 @@ if eval "test \"`echo '$''{'ac_cv_os_cra
  2590.    echo $ac_n "(cached) $ac_c" 1>&6
  2591.  else
  2592.    cat > conftest.$ac_ext <<EOF
  2593. -#line 1314 "configure"
  2594. +#line 1340 "configure"
  2595.  #include "confdefs.h"
  2596.  #if defined(CRAY) && ! defined(CRAY2)
  2597.  webecray
  2598. @@ -1339,15 +1365,17 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  2599.    echo $ac_n "(cached) $ac_c" 1>&6
  2600.  else
  2601.    cat > conftest.$ac_ext <<EOF
  2602. -#line 1343 "configure"
  2603. +#line 1369 "configure"
  2604.  #include "confdefs.h"
  2605.  /* System header to define __stub macros and hopefully few prototypes,
  2606.      which can conflict with char $ac_func(); below.  */
  2607.  #include <assert.h>
  2608.  /* Override any gcc2 internal prototype to avoid an error.  */
  2609. +/* We use char because int might match the return type of a gcc2
  2610. +    builtin and then its argument prototype would still apply.  */
  2611.  char $ac_func();
  2612.  
  2613. -int main() { return 0; }
  2614. +int main() { t(); return 0; }
  2615.  int t() {
  2616.  
  2617.  /* The GNU C library defines this for functions which it implements
  2618. @@ -1361,7 +1389,7 @@ $ac_func();
  2619.  
  2620.  ; return 0; }
  2621.  EOF
  2622. -if { (eval echo configure:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2623. +if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2624.    rm -rf conftest*
  2625.    eval "ac_cv_func_$ac_func=yes"
  2626.  else
  2627. @@ -1393,7 +1421,7 @@ else
  2628.    ac_cv_c_stack_direction=0
  2629.  else
  2630.  cat > conftest.$ac_ext <<EOF
  2631. -#line 1397 "configure"
  2632. +#line 1425 "configure"
  2633.  #include "confdefs.h"
  2634.  find_stack_direction ()
  2635.  {
  2636. @@ -1412,7 +1440,7 @@ main ()
  2637.    exit (find_stack_direction() < 0);
  2638.  }
  2639.  EOF
  2640. -{ (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2641. +{ (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2642.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2643.    ac_cv_c_stack_direction=1
  2644.  else
  2645. @@ -1437,7 +1465,7 @@ else
  2646.    ac_cv_func_strcoll=no
  2647.  else
  2648.  cat > conftest.$ac_ext <<EOF
  2649. -#line 1441 "configure"
  2650. +#line 1469 "configure"
  2651.  #include "confdefs.h"
  2652.  #include <string.h>
  2653.  main ()
  2654. @@ -1447,7 +1475,7 @@ main ()
  2655.      strcoll ("123", "456") >= 0);
  2656.  }
  2657.  EOF
  2658. -{ (eval echo configure:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2659. +{ (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2660.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2661.    ac_cv_func_strcoll=yes
  2662.  else
  2663. @@ -1532,7 +1560,9 @@ rm -f conftest.defs
  2664.  : ${CONFIG_STATUS=./config.status}
  2665.  
  2666.  echo creating $CONFIG_STATUS
  2667. -rm -f $CONFIG_STATUS
  2668. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  2669. +# being executed, so just move it out of the way instead.
  2670. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2671.  cat > $CONFIG_STATUS <<EOF
  2672.  #! /bin/sh
  2673.  # Generated automatically by configure.
  2674. @@ -1553,7 +1583,7 @@ do
  2675.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2676.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2677.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2678. -    echo "$CONFIG_STATUS generated by autoconf version 2.7"
  2679. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2680.      exit 0 ;;
  2681.    -help | --help | --hel | --he | --h)
  2682.      echo "\$ac_cs_usage"; exit 0 ;;
  2683. @@ -1592,6 +1622,9 @@ s%@libdir@%$libdir%g
  2684.  s%@includedir@%$includedir%g
  2685.  s%@oldincludedir@%$oldincludedir%g
  2686.  s%@infodir@%$infodir%g
  2687. +s%@guidedir@%$guidedir%g
  2688. +s%@psdir@%$psdir%g
  2689. +s%@dvidir@%$dvidir%g
  2690.  s%@mandir@%$mandir%g
  2691.  s%@CC@%$CC%g
  2692.  s%@AR@%$AR%g
  2693. @@ -1659,6 +1692,7 @@ rm -f conftest.subs
  2694.  exit 0
  2695.  EOF
  2696.  chmod +x $CONFIG_STATUS
  2697. +rm -f CONFIG.STATUS.old
  2698.  rm -fr confdefs* $ac_clean_files
  2699.  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2700.  
  2701. diff -rup --new-file baseline/fsf/inetutils/manifests/src amiga/fsf/inetutils/manifests/src
  2702. --- baseline/fsf/inetutils/manifests/src    Wed Dec 31 17:00:00 1969
  2703. +++ amiga/fsf/inetutils/manifests/src    Sat Sep 28 00:00:00 1996
  2704. @@ -0,0 +1,191 @@
  2705. +fsf/inetutils/ChangeLog
  2706. +fsf/inetutils/INSTALL
  2707. +fsf/inetutils/Makefile.in
  2708. +fsf/inetutils/NEWS
  2709. +fsf/inetutils/Product-Info
  2710. +fsf/inetutils/README
  2711. +fsf/inetutils/TODO
  2712. +fsf/inetutils/config.guess
  2713. +fsf/inetutils/config.make.in
  2714. +fsf/inetutils/config.sub
  2715. +fsf/inetutils/configure
  2716. +fsf/inetutils/configure.in
  2717. +fsf/inetutils/ftp/Makefile.in
  2718. +fsf/inetutils/ftp/cmds.c
  2719. +fsf/inetutils/ftp/cmdtab.c
  2720. +fsf/inetutils/ftp/domacro.c
  2721. +fsf/inetutils/ftp/extern.h
  2722. +fsf/inetutils/ftp/ftp.1
  2723. +fsf/inetutils/ftp/ftp.c
  2724. +fsf/inetutils/ftp/ftp_var.h
  2725. +fsf/inetutils/ftp/main.c
  2726. +fsf/inetutils/ftp/ruserpass.c
  2727. +fsf/inetutils/ftpd/Makefile.in
  2728. +fsf/inetutils/ftpd/extern.h
  2729. +fsf/inetutils/ftpd/ftpcmd.y
  2730. +fsf/inetutils/ftpd/ftpd.8
  2731. +fsf/inetutils/ftpd/ftpd.c
  2732. +fsf/inetutils/ftpd/popen.c
  2733. +fsf/inetutils/glob/COPYING.LIB
  2734. +fsf/inetutils/glob/ChangeLog
  2735. +fsf/inetutils/glob/Makefile.ami
  2736. +fsf/inetutils/glob/Makefile.in
  2737. +fsf/inetutils/glob/SCOPTIONS
  2738. +fsf/inetutils/glob/SMakefile
  2739. +fsf/inetutils/glob/configure
  2740. +fsf/inetutils/glob/configure.bat
  2741. +fsf/inetutils/glob/configure.in
  2742. +fsf/inetutils/glob/fnmatch.c
  2743. +fsf/inetutils/glob/fnmatch.h
  2744. +fsf/inetutils/glob/glob.c
  2745. +fsf/inetutils/glob/glob.h
  2746. +fsf/inetutils/headers/Makefile.in
  2747. +fsf/inetutils/headers/acconfig.h
  2748. +fsf/inetutils/headers/arpa/ftp.h
  2749. +fsf/inetutils/headers/arpa/telnet.h
  2750. +fsf/inetutils/headers/arpa/tftp.h
  2751. +fsf/inetutils/headers/config.h.in
  2752. +fsf/inetutils/headers/confpaths.h.in
  2753. +fsf/inetutils/headers/crypt.h
  2754. +fsf/inetutils/headers/err.h
  2755. +fsf/inetutils/headers/getopt.h
  2756. +fsf/inetutils/headers/osockaddr.h
  2757. +fsf/inetutils/headers/version.h
  2758. +fsf/inetutils/inetd/Makefile.in
  2759. +fsf/inetutils/inetd/inetd.8
  2760. +fsf/inetutils/inetd/inetd.c
  2761. +fsf/inetutils/install-sh
  2762. +fsf/inetutils/libinetutils/Makefile.in
  2763. +fsf/inetutils/libinetutils/cleansess.c
  2764. +fsf/inetutils/libinetutils/daemon.c
  2765. +fsf/inetutils/libinetutils/getopt.c
  2766. +fsf/inetutils/libinetutils/getopt1.c
  2767. +fsf/inetutils/libinetutils/hstrerror.c
  2768. +fsf/inetutils/libinetutils/localhost.c
  2769. +fsf/inetutils/libinetutils/logout.c
  2770. +fsf/inetutils/libinetutils/logwtmp.c
  2771. +fsf/inetutils/libinetutils/logwtmpko.c
  2772. +fsf/inetutils/libinetutils/strdup.c
  2773. +fsf/inetutils/libinetutils/strerror.c
  2774. +fsf/inetutils/libinetutils/stub_tgetent.c
  2775. +fsf/inetutils/libinetutils/ttymsg.c
  2776. +fsf/inetutils/libinetutils/version.c
  2777. +fsf/inetutils/libtelnet/Makefile.in
  2778. +fsf/inetutils/libtelnet/auth-proto.h
  2779. +fsf/inetutils/libtelnet/auth.c
  2780. +fsf/inetutils/libtelnet/auth.h
  2781. +fsf/inetutils/libtelnet/enc-proto.h
  2782. +fsf/inetutils/libtelnet/enc_des.c
  2783. +fsf/inetutils/libtelnet/encrypt.c
  2784. +fsf/inetutils/libtelnet/encrypt.h
  2785. +fsf/inetutils/libtelnet/genget.c
  2786. +fsf/inetutils/libtelnet/getent.c
  2787. +fsf/inetutils/libtelnet/kerberos.c
  2788. +fsf/inetutils/libtelnet/kerberos5.c
  2789. +fsf/inetutils/libtelnet/key-proto.h
  2790. +fsf/inetutils/libtelnet/krb4encpwd.c
  2791. +fsf/inetutils/libtelnet/misc-proto.h
  2792. +fsf/inetutils/libtelnet/misc.c
  2793. +fsf/inetutils/libtelnet/misc.h
  2794. +fsf/inetutils/libtelnet/read_password.c
  2795. +fsf/inetutils/libtelnet/rsaencpwd.c
  2796. +fsf/inetutils/libtelnet/spx.c
  2797. +fsf/inetutils/manifests/bin
  2798. +fsf/inetutils/manifests/src
  2799. +fsf/inetutils/mkinstalldirs
  2800. +fsf/inetutils/paths
  2801. +fsf/inetutils/rcp/Makefile.in
  2802. +fsf/inetutils/rcp/extern.h
  2803. +fsf/inetutils/rcp/rcp.1
  2804. +fsf/inetutils/rcp/rcp.c
  2805. +fsf/inetutils/rcp/util.c
  2806. +fsf/inetutils/rexecd/Makefile.in
  2807. +fsf/inetutils/rexecd/rexecd.8
  2808. +fsf/inetutils/rexecd/rexecd.c
  2809. +fsf/inetutils/rlogin/Makefile.in
  2810. +fsf/inetutils/rlogin/krb.h
  2811. +fsf/inetutils/rlogin/rlogin.1
  2812. +fsf/inetutils/rlogin/rlogin.c
  2813. +fsf/inetutils/rlogind/Makefile.in
  2814. +fsf/inetutils/rlogind/rlogind.8
  2815. +fsf/inetutils/rlogind/rlogind.c
  2816. +fsf/inetutils/rsh/Makefile.in
  2817. +fsf/inetutils/rsh/rsh.1
  2818. +fsf/inetutils/rsh/rsh.c
  2819. +fsf/inetutils/rshd/Makefile.in
  2820. +fsf/inetutils/rshd/rshd.8
  2821. +fsf/inetutils/rshd/rshd.c
  2822. +fsf/inetutils/rules.make
  2823. +fsf/inetutils/syslog/Makefile.in
  2824. +fsf/inetutils/syslog/syslog.1
  2825. +fsf/inetutils/syslog/syslog.c
  2826. +fsf/inetutils/syslogd/Makefile.in
  2827. +fsf/inetutils/syslogd/syslog.conf.5
  2828. +fsf/inetutils/syslogd/syslogd.8
  2829. +fsf/inetutils/syslogd/syslogd.c
  2830. +fsf/inetutils/talk/Makefile.in
  2831. +fsf/inetutils/talk/ctl.c
  2832. +fsf/inetutils/talk/ctl_transact.c
  2833. +fsf/inetutils/talk/display.c
  2834. +fsf/inetutils/talk/get_addrs.c
  2835. +fsf/inetutils/talk/get_names.c
  2836. +fsf/inetutils/talk/init_disp.c
  2837. +fsf/inetutils/talk/invite.c
  2838. +fsf/inetutils/talk/io.c
  2839. +fsf/inetutils/talk/look_up.c
  2840. +fsf/inetutils/talk/msgs.c
  2841. +fsf/inetutils/talk/talk.1
  2842. +fsf/inetutils/talk/talk.c
  2843. +fsf/inetutils/talk/talk.h
  2844. +fsf/inetutils/talk/talk_ctl.h
  2845. +fsf/inetutils/talkd/Makefile.in
  2846. +fsf/inetutils/talkd/announce.c
  2847. +fsf/inetutils/talkd/print.c
  2848. +fsf/inetutils/talkd/process.c
  2849. +fsf/inetutils/talkd/table.c
  2850. +fsf/inetutils/talkd/talkd.8
  2851. +fsf/inetutils/talkd/talkd.c
  2852. +fsf/inetutils/telnet/Makefile.in
  2853. +fsf/inetutils/telnet/authenc.c
  2854. +fsf/inetutils/telnet/commands.c
  2855. +fsf/inetutils/telnet/defines.h
  2856. +fsf/inetutils/telnet/externs.h
  2857. +fsf/inetutils/telnet/fdset.h
  2858. +fsf/inetutils/telnet/general.h
  2859. +fsf/inetutils/telnet/krb4-proto.h
  2860. +fsf/inetutils/telnet/main.c
  2861. +fsf/inetutils/telnet/network.c
  2862. +fsf/inetutils/telnet/ring.c
  2863. +fsf/inetutils/telnet/ring.h
  2864. +fsf/inetutils/telnet/sys_bsd.c
  2865. +fsf/inetutils/telnet/telnet.1
  2866. +fsf/inetutils/telnet/telnet.c
  2867. +fsf/inetutils/telnet/terminal.c
  2868. +fsf/inetutils/telnet/tn3270.c
  2869. +fsf/inetutils/telnet/types.h
  2870. +fsf/inetutils/telnet/utilities.c
  2871. +fsf/inetutils/telnetd/Makefile.in
  2872. +fsf/inetutils/telnetd/authenc.c
  2873. +fsf/inetutils/telnetd/defs.h
  2874. +fsf/inetutils/telnetd/ext.h
  2875. +fsf/inetutils/telnetd/global.c
  2876. +fsf/inetutils/telnetd/slc.c
  2877. +fsf/inetutils/telnetd/state.c
  2878. +fsf/inetutils/telnetd/sys_term.c
  2879. +fsf/inetutils/telnetd/telnetd.8
  2880. +fsf/inetutils/telnetd/telnetd.c
  2881. +fsf/inetutils/telnetd/telnetd.h
  2882. +fsf/inetutils/telnetd/termstat.c
  2883. +fsf/inetutils/telnetd/utility.c
  2884. +fsf/inetutils/tftp/Makefile.in
  2885. +fsf/inetutils/tftp/extern.h
  2886. +fsf/inetutils/tftp/main.c
  2887. +fsf/inetutils/tftp/tftp.1
  2888. +fsf/inetutils/tftp/tftp.c
  2889. +fsf/inetutils/tftp/tftpsubs.c
  2890. +fsf/inetutils/tftp/tftpsubs.h
  2891. +fsf/inetutils/tftpd/Makefile.in
  2892. +fsf/inetutils/tftpd/tftpd.8
  2893. +fsf/inetutils/tftpd/tftpd.c
  2894. +fsf/inetutils/uucpd/Makefile.in
  2895. +fsf/inetutils/uucpd/uucpd.c
  2896.