home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / diffs / make-3.71.diffs < prev    next >
Encoding:
Text File  |  1995-01-21  |  234.7 KB  |  7,602 lines

  1. diff -rc --new-file make-3.71/Makefile.in /gnu/src/amiga/make-3.71/Makefile.in
  2. *** make-3.71/Makefile.in    Sat May 21 20:48:45 1994
  3. --- /gnu/src/amiga/make-3.71/Makefile.in    Sun Jul 10 10:30:36 1994
  4. ***************
  5. *** 77,83 ****
  6.   extras = @LIBOBJS@
  7.   
  8.   # Common prefix for machine-independent installed files.
  9. ! prefix = /usr/local
  10.   # Common prefix for machine-dependent installed files.
  11.   exec_prefix = $(prefix)
  12.   
  13. --- 77,83 ----
  14.   extras = @LIBOBJS@
  15.   
  16.   # Common prefix for machine-independent installed files.
  17. ! prefix = /gnu
  18.   # Common prefix for machine-dependent installed files.
  19.   exec_prefix = $(prefix)
  20.   
  21. ***************
  22. *** 173,179 ****
  23.   @SET_MAKE@
  24.   
  25.   glob/libglob.a: FORCE config.h
  26. !     cd glob; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
  27.                CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' \
  28.                RANLIB='$(RANLIB)' \
  29.                libglob.a
  30. --- 173,179 ----
  31.   @SET_MAKE@
  32.   
  33.   glob/libglob.a: FORCE config.h
  34. !     @cd glob; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
  35.                CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' \
  36.                RANLIB='$(RANLIB)' \
  37.                libglob.a
  38. ***************
  39. *** 258,264 ****
  40.   
  41.   .PHONY: glob-clean glob-realclean
  42.   glob-clean glob-realclean:
  43. !     cd glob; $(MAKE) $@
  44.   
  45.   Makefile: config.status $(srcdir)/Makefile.in
  46.       $(SHELL) config.status
  47. --- 258,264 ----
  48.   
  49.   .PHONY: glob-clean glob-realclean
  50.   glob-clean glob-realclean:
  51. !     @cd glob; $(MAKE) $@
  52.   
  53.   Makefile: config.status $(srcdir)/Makefile.in
  54.       $(SHELL) config.status
  55. diff -rc --new-file make-3.71/Product-Info /gnu/src/amiga/make-3.71/Product-Info
  56. *** make-3.71/Product-Info    Thu Jan  1 00:00:00 1970
  57. --- /gnu/src/amiga/make-3.71/Product-Info    Tue Jul 12 17:37:16 1994
  58. ***************
  59. *** 0 ****
  60. --- 1,24 ----
  61. + .name
  62. + make
  63. + .fullname
  64. + GNU make
  65. + .type
  66. + Programmer Tool
  67. + .short
  68. + POSIX compatible "make" program
  69. + .description
  70. + The "make" utility automatically determines which pieces of a large
  71. + program need to be recompiled, and issues commands to recompile them.
  72. + GNU "make" conforms to section 6.2 of "IEEE Standard 1003.2-1992"
  73. + (POSIX.2).
  74. + .version
  75. + 3.71
  76. + .author
  77. + Richard Stallman
  78. + Roland McGrath
  79. + .restrictions
  80. + Amiga binary requires ixemul.library.
  81. + .distribution
  82. + GNU Public License
  83. + .described-by
  84. + Fred Fish (fnf@amigalib.com)
  85. diff -rc --new-file make-3.71/arscan.c /gnu/src/amiga/make-3.71/arscan.c
  86. *** make-3.71/arscan.c    Wed Feb 16 21:32:47 1994
  87. --- /gnu/src/amiga/make-3.71/arscan.c    Wed Jun 22 21:10:17 1994
  88. ***************
  89. *** 22,27 ****
  90. --- 22,30 ----
  91.   #else
  92.   #include <sys/file.h>
  93.   #endif
  94. + #ifdef amigados
  95. + #include <stdlib.h>
  96. + #endif
  97.   
  98.   #ifndef    NO_ARCHIVES
  99.   
  100. diff -rc --new-file make-3.71/configure /gnu/src/amiga/make-3.71/configure
  101. *** make-3.71/configure    Sat May 21 20:37:43 1994
  102. --- /gnu/src/amiga/make-3.71/configure    Mon Dec 19 16:23:21 1994
  103. ***************
  104. *** 1,67 ****
  105.   #!/bin/sh
  106. - # From configure.in I"cfiguei
  107.   
  108. ! #!/bin/sh
  109.   # Guess values for system-dependent variables and create Makefiles.
  110. ! # Generated automatically using autoconf version 1.11 
  111. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  112. ! # This configure script is free software; you can redistribute it and/or
  113. ! # modify it under the terms of the GNU General Public License as published
  114. ! # by the Free Software Foundation; either version 2, or (at your option)
  115. ! # any later version.
  116. ! # This script is distributed in the hope that it will be useful, but
  117. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  118. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  119. ! # Public License for more details.
  120. ! # You should have received a copy of the GNU General Public License
  121. ! # along with this program; if not, write to the Free Software
  122. ! # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  123. ! # Save the original args to write them into config.status later.
  124. ! configure_args="$*"
  125.   
  126. ! # Only options that might do something get documented.
  127. ! ac_usage="Usage: configure [options] [host]
  128. ! Options: [defaults in brackets after descriptions]
  129. ! --build=BUILD        configure for building on BUILD [BUILD=HOST]
  130. ! --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  131. ! --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  132. ! --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  133. ! --help            print this message
  134. ! --host=HOST        configure for HOST [guessed]
  135. ! --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  136. ! --quiet, --silent    do not print \`checking for...' messages
  137. ! --srcdir=DIR        find the sources in DIR [configure dir or ..]
  138. ! --target=TARGET        configure for TARGET [TARGET=HOST]
  139. ! --verbose        print results of checks
  140. ! --version        print the version of autoconf that created configure
  141. ! --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  142. ! --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  143. ! --x-includes=DIR    X include files are in DIR
  144. ! --x-libraries=DIR    X library files are in DIR"
  145.   
  146.   # Initialize some variables set by options.
  147.   # The variables have the same names as the options, with
  148.   # dashes changed to underlines.
  149.   build=NONE
  150. ! exec_prefix=
  151.   host=NONE
  152.   no_create=
  153.   nonopt=NONE
  154. ! norecursion=
  155. ! prefix=
  156. ! program_prefix=
  157. ! program_suffix=
  158. ! program_transform_name=
  159.   silent=
  160.   srcdir=
  161.   target=NONE
  162.   verbose=
  163. ! x_includes=
  164. ! x_libraries=
  165.   
  166.   ac_prev=
  167.   for ac_option
  168. --- 1,44 ----
  169.   #!/bin/sh
  170.   
  171. ! # From configure.in Id: configure.in,v 1.36 1994/05/17 02:59:57 roland Exp 
  172.   # Guess values for system-dependent variables and create Makefiles.
  173. ! # Generated automatically using autoconf version 2.1 
  174. ! # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  175. ! #
  176. ! # This configure script is free software; the Free Software Foundation
  177. ! # gives unlimited permission to copy, distribute and modify it.
  178.   
  179. ! # Defaults:
  180. ! ac_help=
  181. ! ac_default_prefix=/gnu
  182. ! # Any additions from configure.in:
  183. ! ac_help="$ac_help
  184. !   --with-customs"
  185.   
  186.   # Initialize some variables set by options.
  187.   # The variables have the same names as the options, with
  188.   # dashes changed to underlines.
  189.   build=NONE
  190. ! cache_file=./config.cache
  191. ! exec_prefix=NONE
  192.   host=NONE
  193.   no_create=
  194.   nonopt=NONE
  195. ! no_recursion=
  196. ! prefix=NONE
  197. ! program_prefix=NONE
  198. ! program_suffix=NONE
  199. ! program_transform_name=s,x,x,
  200.   silent=
  201. + site=
  202.   srcdir=
  203.   target=NONE
  204.   verbose=
  205. ! x_includes=NONE
  206. ! x_libraries=NONE
  207. ! # Initialize some other variables.
  208. ! subdirs=
  209.   
  210.   ac_prev=
  211.   for ac_option
  212. ***************
  213. *** 74,87 ****
  214.       continue
  215.     fi
  216.   
  217. -   # Accept (but ignore some of) the important Cygnus configure
  218. -   # options, so we can diagnose typos.
  219.     case "$ac_option" in
  220. !   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  221.     *) ac_optarg= ;;
  222.     esac
  223.   
  224.     case "$ac_option" in
  225.   
  226.     -build | --build | --buil | --bui | --bu | --b)
  227. --- 51,63 ----
  228.       continue
  229.     fi
  230.   
  231.     case "$ac_option" in
  232. !   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  233.     *) ac_optarg= ;;
  234.     esac
  235.   
  236. +   # Accept the important Cygnus configure options, so we can diagnose typos.
  237.     case "$ac_option" in
  238.   
  239.     -build | --build | --buil | --bui | --bu | --b)
  240. ***************
  241. *** 89,117 ****
  242.     -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  243.       build="$ac_optarg" ;;
  244.   
  245.     -disable-* | --disable-*)
  246. !     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  247. !     # Reject names that aren't valid shell variable names.
  248. !     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  249. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  250.       fi
  251. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  252.       eval "enable_${ac_feature}=no" ;;
  253.   
  254.     -enable-* | --enable-*)
  255. !     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  256. !     # Reject names that aren't valid shell variable names.
  257. !     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  258. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  259.       fi
  260. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  261.       case "$ac_option" in
  262.         *=*) ;;
  263.         *) ac_optarg=yes ;;
  264.       esac
  265.       eval "enable_${ac_feature}='$ac_optarg'" ;;
  266.   
  267. -   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  268.     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  269.     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  270.     | --exec | --exe | --ex)
  271. --- 65,99 ----
  272.     -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  273.       build="$ac_optarg" ;;
  274.   
  275. +   -cache-file | --cache-file | --cache-fil | --cache-fi \
  276. +   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  277. +     ac_prev=cache_file ;;
  278. +   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  279. +   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  280. +     cache_file="$ac_optarg" ;;
  281.     -disable-* | --disable-*)
  282. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  283. !     # Reject names that are not valid shell variable names.
  284. !     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  285. !       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  286.       fi
  287. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  288.       eval "enable_${ac_feature}=no" ;;
  289.   
  290.     -enable-* | --enable-*)
  291. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  292. !     # Reject names that are not valid shell variable names.
  293. !     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  294. !       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  295.       fi
  296. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  297.       case "$ac_option" in
  298.         *=*) ;;
  299.         *) ac_optarg=yes ;;
  300.       esac
  301.       eval "enable_${ac_feature}='$ac_optarg'" ;;
  302.   
  303.     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  304.     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  305.     | --exec | --exe | --ex)
  306. ***************
  307. *** 122,132 ****
  308.       exec_prefix="$ac_optarg" ;;
  309.   
  310.     -gas | --gas | --ga | --g)
  311. !     with_gas=yes ;; # Obsolete; use --with-gas.
  312.   
  313.     -help | --help | --hel | --he)
  314.       cat << EOF
  315. ! $ac_usage
  316.   EOF
  317.       exit 0 ;;
  318.   
  319. --- 104,145 ----
  320.       exec_prefix="$ac_optarg" ;;
  321.   
  322.     -gas | --gas | --ga | --g)
  323. !     # Obsolete; use --with-gas.
  324. !     with_gas=yes ;;
  325.   
  326.     -help | --help | --hel | --he)
  327. +     # Omit some internal or obsolete options to make the list less imposing.
  328. +     # This message is too long to be a string in the A/UX 3.1 sh.
  329.       cat << EOF
  330. ! Usage: configure [options] [host]
  331. ! Options: [defaults in brackets after descriptions]
  332. ! Configuration:
  333. !   --cache-file=FILE       cache test results in FILE
  334. !   --help                  print this message
  335. !   --no-create             do not create output files
  336. !   --quiet, --silent       do not print \`checking...' messages
  337. !   --version               print the version of autoconf that created configure
  338. ! Directory and file names:
  339. !   --prefix=PREFIX         install architecture-independent files in PREFIX
  340. !                           [$ac_default_prefix]
  341. !   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  342. !                           [same as prefix]
  343. !   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  344. !   --program-prefix=PREFIX prepend PREFIX to installed program names
  345. !   --program-suffix=SUFFIX append SUFFIX to installed program names
  346. !   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  347. ! Host type:
  348. !   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  349. !   --host=HOST             configure for HOST [guessed]
  350. !   --target=TARGET         configure for TARGET [TARGET=HOST]
  351. ! Features and packages:
  352. !   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  353. !   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  354. !   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  355. !   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  356. !   --x-includes=DIR        X include files are in DIR
  357. !   --x-libraries=DIR       X library files are in DIR
  358. ! --enable and --with options recognized:$ac_help
  359.   EOF
  360.       exit 0 ;;
  361.   
  362. ***************
  363. *** 136,150 ****
  364.       host="$ac_optarg" ;;
  365.   
  366.     -nfp | --nfp | --nf)
  367. !     with_fp=no ;; # Obsolete; use --without-fp.
  368.   
  369.     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  370.     | --no-cr | --no-c)
  371.       no_create=yes ;;
  372.   
  373. !   -norecursion | --norecursion | --norecursio | --norecursi \
  374. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  375. !     norecursion=yes ;;
  376.   
  377.     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  378.       ac_prev=prefix ;;
  379. --- 149,164 ----
  380.       host="$ac_optarg" ;;
  381.   
  382.     -nfp | --nfp | --nf)
  383. !     # Obsolete; use --without-fp.
  384. !     with_fp=no ;;
  385.   
  386.     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  387.     | --no-cr | --no-c)
  388.       no_create=yes ;;
  389.   
  390. !   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  391. !   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  392. !     no_recursion=yes ;;
  393.   
  394.     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  395.       ac_prev=prefix ;;
  396. ***************
  397. *** 186,191 ****
  398. --- 200,210 ----
  399.     | -silent | --silent | --silen | --sile | --sil)
  400.       silent=yes ;;
  401.   
  402. +   -site | --site | --sit)
  403. +     ac_prev=site ;;
  404. +   -site=* | --site=* | --sit=*)
  405. +     site="$ac_optarg" ;;
  406.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  407.       ac_prev=srcdir ;;
  408.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  409. ***************
  410. *** 200,215 ****
  411.       verbose=yes ;;
  412.   
  413.     -version | --version | --versio | --versi | --vers)
  414. !     echo "configure generated by autoconf version 1.11"
  415.       exit 0 ;;
  416.   
  417.     -with-* | --with-*)
  418. !     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  419. !     # Reject names that aren't valid shell variable names.
  420. !     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  421. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  422.       fi
  423. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  424.       case "$ac_option" in
  425.         *=*) ;;
  426.         *) ac_optarg=yes ;;
  427. --- 219,234 ----
  428.       verbose=yes ;;
  429.   
  430.     -version | --version | --versio | --versi | --vers)
  431. !     echo "configure generated by autoconf version 2.1"
  432.       exit 0 ;;
  433.   
  434.     -with-* | --with-*)
  435. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  436. !     # Reject names that are not valid shell variable names.
  437. !     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  438. !       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  439.       fi
  440. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  441.       case "$ac_option" in
  442.         *=*) ;;
  443.         *) ac_optarg=yes ;;
  444. ***************
  445. *** 217,231 ****
  446.       eval "with_${ac_package}='$ac_optarg'" ;;
  447.   
  448.     -without-* | --without-*)
  449. !     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  450. !     # Reject names that aren't valid shell variable names.
  451. !     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  452. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  453.       fi
  454. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  455.       eval "with_${ac_package}=no" ;;
  456.   
  457. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  458.   
  459.     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  460.     | --x-incl | --x-inc | --x-in | --x-i)
  461. --- 236,252 ----
  462.       eval "with_${ac_package}='$ac_optarg'" ;;
  463.   
  464.     -without-* | --without-*)
  465. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  466. !     # Reject names that are not valid shell variable names.
  467. !     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  468. !       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  469.       fi
  470. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  471.       eval "with_${ac_package}=no" ;;
  472.   
  473. !   --x)
  474. !     # Obsolete; use --with-x.
  475. !     with_x=yes ;;
  476.   
  477.     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  478.     | --x-incl | --x-inc | --x-in | --x-i)
  479. ***************
  480. *** 241,255 ****
  481.     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  482.       x_libraries="$ac_optarg" ;;
  483.   
  484. !   -*) echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  485.       ;;
  486.   
  487.     *) 
  488. !     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  489. !       echo "configure: warning: $ac_option: invalid host type" >&2
  490.       fi
  491.       if test "x$nonopt" != xNONE; then
  492. !       echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  493.       fi
  494.       nonopt="$ac_option"
  495.       ;;
  496. --- 262,276 ----
  497.     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  498.       x_libraries="$ac_optarg" ;;
  499.   
  500. !   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  501.       ;;
  502.   
  503.     *) 
  504. !     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  505. !       echo "configure: warning: $ac_option: invalid host type" 1>&2
  506.       fi
  507.       if test "x$nonopt" != xNONE; then
  508. !       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  509.       fi
  510.       nonopt="$ac_option"
  511.       ;;
  512. ***************
  513. *** 258,293 ****
  514.   done
  515.   
  516.   if test -n "$ac_prev"; then
  517. !   echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  518.   fi
  519.   
  520.   trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  521. - trap 'rm -fr confdefs* $ac_clean_files' 0
  522.   
  523. ! # Save the original args if we used an alternate arg parser.
  524. ! ac_configure_temp="${configure_args-$*}"
  525. ! # Strip out --no-create and --norecursion so they don't pile up.
  526. ! configure_args=
  527. ! for ac_arg in $ac_configure_temp; do
  528.     case "$ac_arg" in
  529.     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  530.     | --no-cr | --no-c) ;;
  531. !   -norecursion | --norecursion | --norecursio | --norecursi \
  532. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  533. !   *) configure_args="$configure_args $ac_arg" ;;
  534.     esac
  535.   done
  536.   
  537.   # NLS nuisances.
  538.   # These must not be set unconditionally because not all systems understand
  539.   # e.g. LANG=C (notably SCO).
  540. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  541. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  542.   
  543.   # confdefs.h avoids OS command line length limits that DEFS can exceed.
  544.   rm -rf conftest* confdefs.h
  545.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  546. ! echo > confdefs.h
  547.   
  548.   # A filename unique to this package, relative to the directory that
  549.   # configure is in, which we can look for to find out if srcdir is correct.
  550. --- 279,335 ----
  551.   done
  552.   
  553.   if test -n "$ac_prev"; then
  554. !   { echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  555.   fi
  556.   
  557.   trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  558.   
  559. ! # File descriptor usage:
  560. ! # 0 unused; standard input
  561. ! # 1 file creation
  562. ! # 2 errors and warnings
  563. ! # 3 unused; some systems may open it to /dev/tty
  564. ! # 4 checking for... messages and results
  565. ! # 5 compiler messages saved in config.log
  566. ! if test "$silent" = yes; then
  567. !   exec 4>/dev/null
  568. ! else
  569. !   exec 4>&1
  570. ! fi
  571. ! exec 5>./config.log
  572. ! echo "\
  573. ! This file contains any messages produced by compilers while
  574. ! running configure, to aid debugging if configure makes a mistake.
  575. ! " 1>&5
  576. ! # Strip out --no-create and --no-recursion so they do not pile up.
  577. ! # Also quote any args containing shell metacharacters.
  578. ! ac_configure_args=
  579. ! for ac_arg
  580. ! do
  581.     case "$ac_arg" in
  582.     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  583.     | --no-cr | --no-c) ;;
  584. !   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  585. !   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  586. !   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  587. !   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  588. !   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  589.     esac
  590.   done
  591.   
  592.   # NLS nuisances.
  593. + # Only set LANG and LC_ALL to C if already set.
  594.   # These must not be set unconditionally because not all systems understand
  595.   # e.g. LANG=C (notably SCO).
  596. ! if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  597. ! if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  598.   
  599.   # confdefs.h avoids OS command line length limits that DEFS can exceed.
  600.   rm -rf conftest* confdefs.h
  601.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  602. ! /bin/echo > confdefs.h
  603.   
  604.   # A filename unique to this package, relative to the directory that
  605.   # configure is in, which we can look for to find out if srcdir is correct.
  606. ***************
  607. *** 296,392 ****
  608.   # Find the source files, if location was not specified.
  609.   if test -z "$srcdir"; then
  610.     ac_srcdir_defaulted=yes
  611. !   # Try the directory containing this script, then `..'.
  612.     ac_prog=$0
  613. !   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  614.     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  615.     srcdir=$ac_confdir
  616.     if test ! -r $srcdir/$ac_unique_file; then
  617.       srcdir=..
  618.     fi
  619.   fi
  620.   if test ! -r $srcdir/$ac_unique_file; then
  621. !   if test x$ac_srcdir_defaulted = xyes; then
  622. !     echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  623.     else
  624. !     echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  625.     fi
  626.   fi
  627.   ac_ext=c
  628.   # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  629. ! ac_cpp='${CPP}'
  630. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  631.   
  632.           
  633.   
  634.   # We want these before the checks, so the checks can modify their values.
  635. ! test -z "$CFLAGS" && CFLAGS=-g 
  636. ! test -z "$LDFLAGS" && LDFLAGS=-g 
  637.   
  638. ! cat > conftestmake <<'EOF'
  639.   all:
  640. !     @echo 'ac_maketemp="${MAKE}"'
  641.   EOF
  642.   # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  643.   eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  644. ! if test -n "$ac_maketemp"; then SET_MAKE=
  645. ! else SET_MAKE="MAKE=${MAKE-make}"; fi
  646.   rm -f conftestmake
  647. ! if test -z "$CC"; then
  648. !   # Extract the first word of `gcc', so it can be a program name with args.
  649. !   set ac_dummy gcc; ac_word=$2
  650. !   test -n "$silent" || echo "checking for $ac_word"
  651.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  652.     for ac_dir in $PATH; do
  653.       test -z "$ac_dir" && ac_dir=.
  654.       if test -f $ac_dir/$ac_word; then
  655. !       CC="gcc"
  656.         break
  657.       fi
  658.     done
  659.     IFS="$ac_save_ifs"
  660.   fi
  661. - test -z "$CC" && CC="cc"
  662. - test -n "$CC" && test -n "$verbose" && echo "    setting CC to $CC"
  663.   
  664. ! # Find out if we are using GNU C, under whatever name.
  665. ! cat > conftest.c <<EOF
  666.   #ifdef __GNUC__
  667. !   yes
  668.   #endif
  669.   EOF
  670. ! ${CC-cc} -E conftest.c > conftest.out 2>&1
  671. ! if egrep yes conftest.out >/dev/null 2>&1; then
  672. !   GCC=1 # For later tests.
  673.   fi
  674.   rm -f conftest*
  675.   
  676. ! # Make sure to not get the incompatible SysV /etc/install and
  677. ! # /usr/sbin/install, which might be in PATH before a BSD-like install,
  678. ! # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  679. ! # or the AFS install, which mishandles nonexistent args, or
  680. ! # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  681. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  682. ! # syntax.  Sigh.
  683. ! #
  684. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  685. ! #     anyway.
  686. ! # This turns out not to be true, so the mere pathname isn't an indication
  687. ! # of whether the program works.  What we really need is a set of tests for
  688. ! # the install program to see if it actually works in all the required ways.
  689. ! #
  690. ! # Avoid using ./install, which might have been erroneously created
  691. ! # by make from ./install.sh.
  692. ! if test -z "${INSTALL}"; then
  693. !   test -n "$silent" || echo "checking for a BSD compatible install"
  694. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  695.     for ac_dir in $PATH; do
  696.       case "$ac_dir" in
  697. !     ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  698.       *)
  699.         # OSF1 and SCO ODT 3.0 have their own names for install.
  700. !       for ac_prog in installbsd scoinst install; do
  701.           if test -f $ac_dir/$ac_prog; then
  702.         if test $ac_prog = install &&
  703.               grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  704. --- 338,552 ----
  705.   # Find the source files, if location was not specified.
  706.   if test -z "$srcdir"; then
  707.     ac_srcdir_defaulted=yes
  708. !   # Try the directory containing this script, then its parent.
  709.     ac_prog=$0
  710. !   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  711.     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  712.     srcdir=$ac_confdir
  713.     if test ! -r $srcdir/$ac_unique_file; then
  714.       srcdir=..
  715.     fi
  716. + else
  717. +   ac_srcdir_defaulted=no
  718.   fi
  719.   if test ! -r $srcdir/$ac_unique_file; then
  720. !   if test "$ac_srcdir_defaulted" = yes; then
  721. !     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  722. !   else
  723. !     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  724. !   fi
  725. ! fi
  726. ! srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  727. ! # Prefer explicitly selected file to automatically selected ones.
  728. ! if test -z "$CONFIG_SITE"; then
  729. !   if test "x$prefix" != xNONE; then
  730. !     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  731.     else
  732. !     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  733. !   fi
  734. ! fi
  735. ! for ac_site_file in $CONFIG_SITE; do
  736. !   if test -r "$ac_site_file"; then
  737. !     echo "loading site script $ac_site_file"
  738. !     . "$ac_site_file"
  739.     fi
  740. + done
  741. + if test -r "$cache_file"; then
  742. +   echo "loading cache $cache_file"
  743. +   . $cache_file
  744. + else
  745. +   echo "creating cache $cache_file"
  746. +   > $cache_file
  747.   fi
  748.   ac_ext=c
  749.   # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  750. ! ac_cpp='$CPP $CPPFLAGS'
  751. ! ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  752. ! ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  753. ! if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  754. !   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  755. !   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  756. !     ac_n= ac_c='
  757. ! ' ac_t='    '
  758. !   else
  759. !     ac_n=-n ac_c= ac_t=
  760. !   fi
  761. ! else
  762. !   ac_n= ac_c='\c' ac_t=
  763. ! fi
  764.   
  765.           
  766.   
  767.   # We want these before the checks, so the checks can modify their values.
  768. ! test -z "$CFLAGS" && CFLAGS=-O2 
  769. ! test -z "$LDFLAGS" && LDFLAGS= 
  770.   
  771. ! /bin/echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4
  772. ! set dummy ${MAKE-make}; ac_make=$2
  773. ! if eval "test \"`echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  774. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  775. ! else
  776. !   cat > conftestmake <<\EOF
  777.   all:
  778. !     @/bin/echo 'ac_maketemp="${MAKE}"'
  779.   EOF
  780.   # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  781.   eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  782. ! if test -n "$ac_maketemp"; then
  783. !   eval ac_cv_prog_make_${ac_make}_set=yes
  784. ! else
  785. !   eval ac_cv_prog_make_${ac_make}_set=no
  786. ! fi
  787.   rm -f conftestmake
  788. ! fi
  789. ! if eval "test \"`/bin/echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  790. !   /bin/echo "$ac_t""yes" 1>&4
  791. !   SET_MAKE=
  792. ! else
  793. !   /bin/echo "$ac_t""no" 1>&4
  794. !   SET_MAKE="MAKE=${MAKE-make}"
  795. ! fi
  796. ! # Extract the first word of "gcc", so it can be a program name with args.
  797. ! set dummy gcc; ac_word=$2
  798. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  799. ! if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  800. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  801. ! else
  802. !   if test -n "$CC"; then
  803. !   ac_cv_prog_CC="$CC" # Let the user override the test.
  804. ! else
  805.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  806.     for ac_dir in $PATH; do
  807.       test -z "$ac_dir" && ac_dir=.
  808.       if test -f $ac_dir/$ac_word; then
  809. !       ac_cv_prog_CC="gcc"
  810.         break
  811.       fi
  812.     done
  813.     IFS="$ac_save_ifs"
  814. +   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  815. + fi
  816. + fi
  817. + CC="$ac_cv_prog_CC"
  818. + if test -n "$CC"; then
  819. +   /bin/echo "$ac_t""$CC" 1>&4
  820. + else
  821. +   /bin/echo "$ac_t""no" 1>&4
  822.   fi
  823.   
  824. ! /bin/echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  825. ! if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  826. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  827. ! else
  828. !   cat > conftest.c <<EOF
  829.   #ifdef __GNUC__
  830. !   yes;
  831.   #endif
  832.   EOF
  833. ! if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  834. !   ac_cv_prog_gcc=yes
  835. ! else
  836. !   ac_cv_prog_gcc=no
  837. ! fi
  838. ! fi
  839. ! /bin/echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  840. ! if test $ac_cv_prog_gcc = yes; then
  841. !   GCC=yes
  842. !   if test "${CFLAGS+set}" != set; then
  843. !     /bin/echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  844. ! if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  845. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  846. ! else
  847. !   echo 'void f(){}' > conftest.c
  848. ! if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  849. !   ac_cv_prog_gcc_g=yes
  850. ! else
  851. !   ac_cv_prog_gcc_g=no
  852.   fi
  853.   rm -f conftest*
  854.   
  855. ! fi
  856. !     /bin/echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  857. !     if test $ac_cv_prog_gcc_g = yes; then
  858. !       # Amiga hack - suppress automatically using -g for now
  859. !       # Also default to using -O2
  860. !       CFLAGS="-O2"
  861. !     else
  862. !       CFLAGS="-O2"
  863. !     fi
  864. !   fi
  865. ! else
  866. !   GCC=
  867. !   test "${CFLAGS+set}" = set || CFLAGS="-g"
  868. ! fi
  869. ! ac_aux_dir=
  870. ! for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  871. !   if test -f $ac_dir/install-sh; then
  872. !     ac_aux_dir=$ac_dir
  873. !     ac_install_sh="$ac_aux_dir/install-sh -c"
  874. !     break
  875. !   elif test -f $ac_dir/install.sh; then
  876. !     ac_aux_dir=$ac_dir
  877. !     ac_install_sh="$ac_aux_dir/install.sh -c"
  878. !     break
  879. !   fi
  880. ! done
  881. ! if test -z "$ac_aux_dir"; then
  882. !   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  883. ! fi
  884. ! ac_config_guess=$ac_aux_dir/config.guess
  885. ! ac_config_sub=$ac_aux_dir/config.sub
  886. ! ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  887. ! # Find a good install program.  We prefer a C program (faster),
  888. ! # so one script is as good as another.  But avoid the broken or
  889. ! # incompatible versions:
  890. ! # SysV /etc/install, /usr/sbin/install
  891. ! # SunOS /usr/etc/install
  892. ! # IRIX /sbin/install
  893. ! # AIX /bin/install
  894. ! # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  895. ! # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  896. ! # ./install, which can be erroneously created by make from ./install.sh.
  897. ! /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  898. ! if test -z "$INSTALL"; then
  899. ! if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  900. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  901. ! else
  902. !     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  903.     for ac_dir in $PATH; do
  904.       case "$ac_dir" in
  905. !     ''|.|/gnu/etc) ;;
  906.       *)
  907.         # OSF1 and SCO ODT 3.0 have their own names for install.
  908. !       for ac_prog in ginstall installbsd scoinst install; do
  909.           if test -f $ac_dir/$ac_prog; then
  910.         if test $ac_prog = install &&
  911.               grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  912. ***************
  913. *** 394,400 ****
  914.           # OSF/1 installbsd also uses dspmsg, but is usable.
  915.           :
  916.         else
  917. !         INSTALL="$ac_dir/$ac_prog -c"
  918.           break 2
  919.         fi
  920.       fi
  921. --- 554,560 ----
  922.           # OSF/1 installbsd also uses dspmsg, but is usable.
  923.           :
  924.         else
  925. !         ac_cv_path_install="$ac_dir/$ac_prog -c"
  926.           break 2
  927.         fi
  928.       fi
  929. ***************
  930. *** 403,835 ****
  931.       esac
  932.     done
  933.     IFS="$ac_save_ifs"
  934. - fi
  935. - if test -z "$INSTALL"; then
  936.     # As a last resort, use the slow shell script.
  937. !   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  938. !     if test -f $ac_dir/install.sh; then
  939. !       INSTALL="$ac_dir/install.sh -c"; break
  940. !     fi
  941. !   done
  942.   fi
  943. ! if test -z "$INSTALL"; then
  944. !   echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  945.   fi
  946. ! test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  947.   
  948. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  949.   # It thinks the first close brace ends the variable substitution.
  950.   test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  951. - test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  952.   
  953.   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  954. - test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  955.   
  956. ! if test -z "$RANLIB"; then
  957. !   # Extract the first word of `ranlib', so it can be a program name with args.
  958. !   set ac_dummy ranlib; ac_word=$2
  959. !   test -n "$silent" || echo "checking for $ac_word"
  960.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  961.     for ac_dir in $PATH; do
  962.       test -z "$ac_dir" && ac_dir=.
  963.       if test -f $ac_dir/$ac_word; then
  964. !       RANLIB="ranlib"
  965.         break
  966.       fi
  967.     done
  968.     IFS="$ac_save_ifs"
  969.   fi
  970. - test -z "$RANLIB" && RANLIB=":"
  971. - test -n "$RANLIB" && test -n "$verbose" && echo "    setting RANLIB to $RANLIB"
  972.   
  973. ! test -n "$silent" || echo "checking how to run the C preprocessor"
  974.   if test -z "$CPP"; then
  975. !   # This must be in double quotes, not single quotes, because CPP may get
  976. !   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  977. !   # make.  It must be expanded now.
  978.     CPP="${CC-cc} -E"
  979. !   cat > conftest.${ac_ext} <<EOF
  980.   #include "confdefs.h"
  981. ! #include <stdio.h>
  982.   Syntax Error
  983.   EOF
  984. ! # Some shells (Coherent) do redirections in the wrong order, so need
  985. ! # the parens.
  986. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  987.   if test -z "$ac_err"; then
  988.     :
  989.   else
  990.     rm -rf conftest*
  991.     CPP="${CC-cc} -E -traditional-cpp"
  992. !   cat > conftest.${ac_ext} <<EOF
  993.   #include "confdefs.h"
  994. ! #include <stdio.h>
  995.   Syntax Error
  996.   EOF
  997. ! # Some shells (Coherent) do redirections in the wrong order, so need
  998. ! # the parens.
  999. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1000.   if test -z "$ac_err"; then
  1001.     :
  1002.   else
  1003.     rm -rf conftest*
  1004.     CPP=/lib/cpp
  1005.   fi
  1006.   rm -f conftest*
  1007.   fi
  1008.   rm -f conftest*
  1009.   fi
  1010. ! test -n "$verbose" && echo "    setting CPP to $CPP"
  1011. !             test -n "$silent" || echo "checking for AIX"
  1012. ! cat > conftest.${ac_ext} <<EOF
  1013.   #include "confdefs.h"
  1014.   #ifdef _AIX
  1015.     yes
  1016.   #endif
  1017.   
  1018.   EOF
  1019. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1020. ! if egrep "yes" conftest.out >/dev/null 2>&1; then
  1021.     rm -rf conftest*
  1022. !   
  1023. ! {
  1024. ! test -n "$verbose" && \
  1025. ! echo "    defining _ALL_SOURCE"
  1026. ! echo "#define" _ALL_SOURCE "1" >> confdefs.h
  1027. ! DEFS="$DEFS -D_ALL_SOURCE=1"
  1028. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_ALL_SOURCE\${ac_dB}_ALL_SOURCE\${ac_dC}1\${ac_dD}
  1029. ! \${ac_uA}_ALL_SOURCE\${ac_uB}_ALL_SOURCE\${ac_uC}1\${ac_uD}
  1030. ! \${ac_eA}_ALL_SOURCE\${ac_eB}_ALL_SOURCE\${ac_eC}1\${ac_eD}
  1031. ! "
  1032. ! }
  1033.   
  1034.   fi
  1035.   rm -f conftest*
  1036.   
  1037.   
  1038. ! test -n "$silent" || echo "checking for POSIXized ISC"
  1039. ! if test -d /etc/conf/kconfig.d &&
  1040. !   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1041.   then
  1042. !   ISC=1 # If later tests want to check for ISC.
  1043. !   
  1044. ! {
  1045. ! test -n "$verbose" && \
  1046. ! echo "    defining _POSIX_SOURCE"
  1047. ! echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  1048. ! DEFS="$DEFS -D_POSIX_SOURCE=1"
  1049. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  1050. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  1051. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  1052. ! "
  1053. ! }
  1054.   
  1055. !   if test -n "$GCC"; then
  1056.       CC="$CC -posix"
  1057.     else
  1058.       CC="$CC -Xp"
  1059.     fi
  1060.   fi
  1061.   
  1062. ! test -n "$silent" || echo "checking for minix/config.h"
  1063. ! cat > conftest.${ac_ext} <<EOF
  1064.   #include "confdefs.h"
  1065.   #include <minix/config.h>
  1066.   EOF
  1067. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1068. ! # the parens.
  1069. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1070.   if test -z "$ac_err"; then
  1071.     rm -rf conftest*
  1072. !   MINIX=1
  1073.   fi
  1074.   rm -f conftest*
  1075.   
  1076. ! # The Minix shell can't assign to the same variable on the same line!
  1077. ! if test -n "$MINIX"; then
  1078. !   
  1079. ! {
  1080. ! test -n "$verbose" && \
  1081. ! echo "    defining _POSIX_SOURCE"
  1082. ! echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  1083. ! DEFS="$DEFS -D_POSIX_SOURCE=1"
  1084. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  1085. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  1086. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  1087. ! "
  1088. ! }
  1089.   
  1090. !   
  1091. ! {
  1092. ! test -n "$verbose" && \
  1093. ! echo "    defining" _POSIX_1_SOURCE to be "2"
  1094. ! echo "#define" _POSIX_1_SOURCE "2" >> confdefs.h
  1095. ! DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  1096. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_1_SOURCE\${ac_dB}_POSIX_1_SOURCE\${ac_dC}2\${ac_dD}
  1097. ! \${ac_uA}_POSIX_1_SOURCE\${ac_uB}_POSIX_1_SOURCE\${ac_uC}2\${ac_uD}
  1098. ! \${ac_eA}_POSIX_1_SOURCE\${ac_eB}_POSIX_1_SOURCE\${ac_eC}2\${ac_eD}
  1099. ! "
  1100. ! }
  1101.   
  1102. !   
  1103. ! {
  1104. ! test -n "$verbose" && \
  1105. ! echo "    defining _MINIX"
  1106. ! echo "#define" _MINIX "1" >> confdefs.h
  1107. ! DEFS="$DEFS -D_MINIX=1"
  1108. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_MINIX\${ac_dB}_MINIX\${ac_dC}1\${ac_dD}
  1109. ! \${ac_uA}_MINIX\${ac_uB}_MINIX\${ac_uC}1\${ac_uD}
  1110. ! \${ac_eA}_MINIX\${ac_eB}_MINIX\${ac_eC}1\${ac_eD}
  1111. ! "
  1112. ! }
  1113.   
  1114.   fi
  1115.   
  1116. ! test -n "$silent" || echo "checking for ANSI C header files"
  1117. ! cat > conftest.${ac_ext} <<EOF
  1118.   #include "confdefs.h"
  1119.   #include <stdlib.h>
  1120.   #include <stdarg.h>
  1121.   #include <string.h>
  1122.   #include <float.h>
  1123.   EOF
  1124. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1125. ! # the parens.
  1126. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1127.   if test -z "$ac_err"; then
  1128.     rm -rf conftest*
  1129.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1130. ! echo '#include "confdefs.h"
  1131. ! #include <string.h>' > conftest.${ac_ext}
  1132. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1133. ! if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1134.     rm -rf conftest*
  1135. !   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1136. ! cat > conftest.${ac_ext} <<EOF
  1137.   #include "confdefs.h"
  1138.   #include <ctype.h>
  1139.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1140.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1141. ! #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  1142.   int main () { int i; for (i = 0; i < 256; i++)
  1143.   if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1144.   exit (0); }
  1145.   
  1146.   EOF
  1147. ! eval $ac_compile
  1148.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1149. !   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1150. ! echo '#include "confdefs.h"
  1151. ! #include <stdlib.h>' > conftest.${ac_ext}
  1152. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1153. ! if egrep "free" conftest.out >/dev/null 2>&1; then
  1154. !   rm -rf conftest*
  1155. !   
  1156. ! {
  1157. ! test -n "$verbose" && \
  1158. ! echo "    defining STDC_HEADERS"
  1159. ! echo "#define" STDC_HEADERS "1" >> confdefs.h
  1160. ! DEFS="$DEFS -DSTDC_HEADERS=1"
  1161. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  1162. ! \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  1163. ! \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  1164. ! "
  1165. ! }
  1166.   fi
  1167. - rm -f conftest*
  1168.   fi
  1169.   rm -fr conftest*
  1170.   fi
  1171. ! rm -f conftest*
  1172.   
  1173.   fi
  1174. - rm -f conftest*
  1175.   
  1176. ! test -n "$silent" || echo "checking for directory library header"
  1177. ! ac_dir_header=
  1178. ! if test -z "$ac_dir_header"; then
  1179. !   test -n "$silent" || echo "checking for dirent.h"
  1180. ! cat > conftest.${ac_ext} <<EOF
  1181.   #include "confdefs.h"
  1182.   #include <sys/types.h>
  1183. ! #include <dirent.h>
  1184.   int main() { return 0; }
  1185. ! int t() { DIR *dirp = 0;; return 0; }
  1186.   EOF
  1187.   if eval $ac_compile; then
  1188.     rm -rf conftest*
  1189. !   
  1190. ! {
  1191. ! test -n "$verbose" && \
  1192. ! echo "    defining DIRENT"
  1193. ! echo "#define" DIRENT "1" >> confdefs.h
  1194. ! DEFS="$DEFS -DDIRENT=1"
  1195. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}DIRENT\${ac_dB}DIRENT\${ac_dC}1\${ac_dD}
  1196. ! \${ac_uA}DIRENT\${ac_uB}DIRENT\${ac_uC}1\${ac_uD}
  1197. ! \${ac_eA}DIRENT\${ac_eB}DIRENT\${ac_eC}1\${ac_eD}
  1198. ! "
  1199. ! }
  1200. !  ac_dir_header=dirent.h
  1201.   fi
  1202.   rm -f conftest*
  1203.   fi
  1204. ! if test -z "$ac_dir_header"; then
  1205. !   test -n "$silent" || echo "checking for sys/ndir.h"
  1206. ! cat > conftest.${ac_ext} <<EOF
  1207.   #include "confdefs.h"
  1208.   #include <sys/types.h>
  1209. ! #include <sys/ndir.h>
  1210. ! int main() { return 0; }
  1211. ! int t() { DIR *dirp = 0;; return 0; }
  1212.   EOF
  1213. ! if eval $ac_compile; then
  1214. !   rm -rf conftest*
  1215. !   
  1216. ! {
  1217. ! test -n "$verbose" && \
  1218. ! echo "    defining SYSNDIR"
  1219. ! echo "#define" SYSNDIR "1" >> confdefs.h
  1220. ! DEFS="$DEFS -DSYSNDIR=1"
  1221. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSNDIR\${ac_dB}SYSNDIR\${ac_dC}1\${ac_dD}
  1222. ! \${ac_uA}SYSNDIR\${ac_uB}SYSNDIR\${ac_uC}1\${ac_uD}
  1223. ! \${ac_eA}SYSNDIR\${ac_eB}SYSNDIR\${ac_eC}1\${ac_eD}
  1224. ! "
  1225. ! }
  1226. !  ac_dir_header=sys/ndir.h
  1227.   fi
  1228. - rm -f conftest*
  1229.   fi
  1230. ! if test -z "$ac_dir_header"; then
  1231. !   test -n "$silent" || echo "checking for sys/dir.h"
  1232. ! cat > conftest.${ac_ext} <<EOF
  1233. ! #include "confdefs.h"
  1234. ! #include <sys/types.h>
  1235. ! #include <sys/dir.h>
  1236. ! int main() { return 0; }
  1237. ! int t() { DIR *dirp = 0;; return 0; }
  1238.   EOF
  1239. - if eval $ac_compile; then
  1240. -   rm -rf conftest*
  1241. -   
  1242. - {
  1243. - test -n "$verbose" && \
  1244. - echo "    defining SYSDIR"
  1245. - echo "#define" SYSDIR "1" >> confdefs.h
  1246. - DEFS="$DEFS -DSYSDIR=1"
  1247. - ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSDIR\${ac_dB}SYSDIR\${ac_dC}1\${ac_dD}
  1248. - \${ac_uA}SYSDIR\${ac_uB}SYSDIR\${ac_uC}1\${ac_uD}
  1249. - \${ac_eA}SYSDIR\${ac_eB}SYSDIR\${ac_eC}1\${ac_eD}
  1250. - "
  1251. - }
  1252. -  ac_dir_header=sys/dir.h
  1253.   
  1254.   fi
  1255. ! rm -f conftest*
  1256. ! fi
  1257. ! if test -z "$ac_dir_header"; then
  1258. !   test -n "$silent" || echo "checking for ndir.h"
  1259. ! cat > conftest.${ac_ext} <<EOF
  1260.   #include "confdefs.h"
  1261.   #include <sys/types.h>
  1262. - #include <ndir.h>
  1263. - int main() { return 0; }
  1264. - int t() { DIR *dirp = 0;; return 0; }
  1265.   EOF
  1266. ! if eval $ac_compile; then
  1267.     rm -rf conftest*
  1268. !   
  1269. ! {
  1270. ! test -n "$verbose" && \
  1271. ! echo "    defining NDIR"
  1272. ! echo "#define" NDIR "1" >> confdefs.h
  1273. ! DEFS="$DEFS -DNDIR=1"
  1274. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NDIR\${ac_dB}NDIR\${ac_dC}1\${ac_dD}
  1275. ! \${ac_uA}NDIR\${ac_uB}NDIR\${ac_uC}1\${ac_uD}
  1276. ! \${ac_eA}NDIR\${ac_eB}NDIR\${ac_eC}1\${ac_eD}
  1277. ! "
  1278. ! }
  1279. !  ac_dir_header=ndir.h
  1280.   fi
  1281.   rm -f conftest*
  1282.   fi
  1283.   
  1284. ! test -n "$silent" || echo "checking for closedir return value"
  1285. ! cat > conftest.${ac_ext} <<EOF
  1286. ! #include "confdefs.h"
  1287. ! #include <sys/types.h>
  1288. ! #include <$ac_dir_header>
  1289. ! int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1290.   EOF
  1291. - eval $ac_compile
  1292. - if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1293. -   :
  1294. - else
  1295. -   
  1296. - {
  1297. - test -n "$verbose" && \
  1298. - echo "    defining VOID_CLOSEDIR"
  1299. - echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
  1300. - DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1301. - ac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_CLOSEDIR\${ac_dB}VOID_CLOSEDIR\${ac_dC}1\${ac_dD}
  1302. - \${ac_uA}VOID_CLOSEDIR\${ac_uB}VOID_CLOSEDIR\${ac_uC}1\${ac_uD}
  1303. - \${ac_eA}VOID_CLOSEDIR\${ac_eB}VOID_CLOSEDIR\${ac_eC}1\${ac_eD}
  1304. - "
  1305. - }
  1306.   
  1307.   fi
  1308. ! rm -fr conftest*
  1309. ! test -n "$silent" || echo "checking for uid_t in sys/types.h"
  1310. ! echo '#include "confdefs.h"
  1311. ! #include <sys/types.h>' > conftest.${ac_ext}
  1312. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1313. ! if egrep "uid_t" conftest.out >/dev/null 2>&1; then
  1314. !   :
  1315.   else
  1316. !   rm -rf conftest*
  1317. !   
  1318. ! {
  1319. ! test -n "$verbose" && \
  1320. ! echo "    defining" uid_t to be "int"
  1321. ! echo "#define" uid_t "int" >> confdefs.h
  1322. ! DEFS="$DEFS -Duid_t=int"
  1323. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}uid_t\${ac_dB}uid_t\${ac_dC}int\${ac_dD}
  1324. ! \${ac_uA}uid_t\${ac_uB}uid_t\${ac_uC}int\${ac_uD}
  1325. ! \${ac_eA}uid_t\${ac_eB}uid_t\${ac_eC}int\${ac_eD}
  1326. ! "
  1327. ! }
  1328. !  
  1329. ! {
  1330. ! test -n "$verbose" && \
  1331. ! echo "    defining" gid_t to be "int"
  1332. ! echo "#define" gid_t "int" >> confdefs.h
  1333. ! DEFS="$DEFS -Dgid_t=int"
  1334. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}gid_t\${ac_dB}gid_t\${ac_dC}int\${ac_dD}
  1335. ! \${ac_uA}gid_t\${ac_uB}gid_t\${ac_uC}int\${ac_uD}
  1336. ! \${ac_eA}gid_t\${ac_eB}gid_t\${ac_eC}int\${ac_eD}
  1337. ! "
  1338. ! }
  1339.   
  1340. ! fi
  1341. ! rm -f conftest*
  1342. !             test -n "$silent" || echo "checking for type of array argument to getgroups"
  1343. ! ac_prog='/* Thanks to Mike Rendell for this test.  */
  1344.   #include <sys/types.h>
  1345.   #define NGID 256
  1346.   #undef MAX
  1347. ! #define MAX(x,y) ((x) > (y) ? (x) : (y))
  1348.   main()
  1349.   {
  1350.     gid_t gidset[NGID];
  1351. --- 563,1001 ----
  1352.       esac
  1353.     done
  1354.     IFS="$ac_save_ifs"
  1355.     # As a last resort, use the slow shell script.
  1356. !   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  1357.   fi
  1358. !   INSTALL="$ac_cv_path_install"
  1359.   fi
  1360. ! /bin/echo "$ac_t""$INSTALL" 1>&4
  1361.   
  1362. ! # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1363.   # It thinks the first close brace ends the variable substitution.
  1364.   test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1365.   
  1366.   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1367.   
  1368. ! # Extract the first word of "ranlib", so it can be a program name with args.
  1369. ! set dummy ranlib; ac_word=$2
  1370. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  1371. ! if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1372. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1373. ! else
  1374. !   if test -n "$RANLIB"; then
  1375. !   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1376. ! else
  1377.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1378.     for ac_dir in $PATH; do
  1379.       test -z "$ac_dir" && ac_dir=.
  1380.       if test -f $ac_dir/$ac_word; then
  1381. !       ac_cv_prog_RANLIB="ranlib"
  1382.         break
  1383.       fi
  1384.     done
  1385.     IFS="$ac_save_ifs"
  1386. +   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1387. + fi
  1388. + fi
  1389. + RANLIB="$ac_cv_prog_RANLIB"
  1390. + if test -n "$RANLIB"; then
  1391. +   /bin/echo "$ac_t""$RANLIB" 1>&4
  1392. + else
  1393. +   /bin/echo "$ac_t""no" 1>&4
  1394.   fi
  1395.   
  1396. ! /bin/echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  1397. ! # On Suns, sometimes $CPP names a directory.
  1398. ! if test -n "$CPP" && test -d "$CPP"; then
  1399. !   CPP=
  1400. ! fi
  1401.   if test -z "$CPP"; then
  1402. ! if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  1403. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1404. ! else
  1405. !     # This must be in double quotes, not single quotes, because CPP may get
  1406. !   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1407.     CPP="${CC-cc} -E"
  1408. !   # On the NeXT, cc -E runs the code through the compiler's parser,
  1409. !   # not just through cpp.
  1410. !   cat > conftest.$ac_ext <<EOF
  1411. ! #line 623 "configure"
  1412.   #include "confdefs.h"
  1413. ! #include <assert.h>
  1414.   Syntax Error
  1415.   EOF
  1416. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1417. ! ac_err=`grep -v '^ *+' conftest.out`
  1418.   if test -z "$ac_err"; then
  1419.     :
  1420.   else
  1421. +   /bin/echo "$ac_err" >&5
  1422.     rm -rf conftest*
  1423.     CPP="${CC-cc} -E -traditional-cpp"
  1424. !   cat > conftest.$ac_ext <<EOF
  1425. ! #line 637 "configure"
  1426.   #include "confdefs.h"
  1427. ! #include <assert.h>
  1428.   Syntax Error
  1429.   EOF
  1430. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1431. ! ac_err=`grep -v '^ *+' conftest.out`
  1432.   if test -z "$ac_err"; then
  1433.     :
  1434.   else
  1435. +   /bin/echo "$ac_err" >&5
  1436.     rm -rf conftest*
  1437.     CPP=/lib/cpp
  1438.   fi
  1439.   rm -f conftest*
  1440.   fi
  1441.   rm -f conftest*
  1442. +   ac_cv_prog_CPP="$CPP"
  1443. + fi
  1444.   fi
  1445. ! CPP="$ac_cv_prog_CPP"
  1446. ! /bin/echo "$ac_t""$CPP" 1>&4
  1447. !             /bin/echo $ac_n "checking for AIX""... $ac_c" 1>&4
  1448. ! cat > conftest.$ac_ext <<EOF
  1449. ! #line 661 "configure"
  1450.   #include "confdefs.h"
  1451.   #ifdef _AIX
  1452.     yes
  1453.   #endif
  1454.   
  1455.   EOF
  1456. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1457. !   egrep "yes" >/dev/null 2>&1; then
  1458.     rm -rf conftest*
  1459. !   /bin/echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
  1460. ! #define _ALL_SOURCE 1
  1461. ! EOF
  1462.   
  1463. + else
  1464. +   rm -rf conftest*
  1465. +   /bin/echo "$ac_t""no" 1>&4
  1466.   fi
  1467.   rm -f conftest*
  1468.   
  1469.   
  1470. ! /bin/echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  1471. ! if test -d /gnu/etc/conf/kconfig.d &&
  1472. !   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  1473.   then
  1474. !   /bin/echo "$ac_t""yes" 1>&4
  1475. !   ISC=yes # If later tests want to check for ISC.
  1476. !   cat >> confdefs.h <<\EOF
  1477. ! #define _POSIX_SOURCE 1
  1478. ! EOF
  1479.   
  1480. !   if test "$GCC" = yes; then
  1481.       CC="$CC -posix"
  1482.     else
  1483.       CC="$CC -Xp"
  1484.     fi
  1485. + else
  1486. +   /bin/echo "$ac_t""no" 1>&4
  1487. +   ISC=
  1488.   fi
  1489.   
  1490. ! ac_safe=`/bin/echo "minix/config.h" | tr './\055' '___'`
  1491. ! /bin/echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  1492. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1493. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1494. ! else
  1495. !   cat > conftest.$ac_ext <<EOF
  1496. ! #line 708 "configure"
  1497.   #include "confdefs.h"
  1498.   #include <minix/config.h>
  1499.   EOF
  1500. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1501. ! ac_err=`grep -v '^ *+' conftest.out`
  1502.   if test -z "$ac_err"; then
  1503.     rm -rf conftest*
  1504. !   eval "ac_cv_header_$ac_safe=yes"
  1505. ! else
  1506. !   /bin/echo "$ac_err" >&5
  1507. !   rm -rf conftest*
  1508. !   eval "ac_cv_header_$ac_safe=no"
  1509.   fi
  1510.   rm -f conftest*
  1511. + fi
  1512. + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1513. +   /bin/echo "$ac_t""yes" 1>&4
  1514. +   MINIX=yes
  1515. + else
  1516. +   /bin/echo "$ac_t""no" 1>&4
  1517. + MINIX=
  1518. + fi
  1519.   
  1520. ! if test "$MINIX" = yes; then
  1521. !   cat >> confdefs.h <<\EOF
  1522. ! #define _POSIX_SOURCE 1
  1523. ! EOF
  1524.   
  1525. !   cat >> confdefs.h <<\EOF
  1526. ! #define _POSIX_1_SOURCE 2
  1527. ! EOF
  1528.   
  1529. !   cat >> confdefs.h <<\EOF
  1530. ! #define _MINIX 1
  1531. ! EOF
  1532. ! fi
  1533.   
  1534. + # If we cannot run a trivial program, we must be cross compiling.
  1535. + /bin/echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  1536. + if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  1537. +   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1538. + else
  1539. +   if test "$cross_compiling" = yes; then
  1540. +   ac_cv_cross=yes
  1541. + else
  1542. + cat > conftest.$ac_ext <<EOF
  1543. + #line 756 "configure"
  1544. + #include "confdefs.h"
  1545. + main(){return(0);}
  1546. + EOF
  1547. + eval $ac_link
  1548. + if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1549. +   ac_cv_c_cross=no
  1550. + else
  1551. +   ac_cv_c_cross=yes
  1552.   fi
  1553. + fi
  1554. + rm -fr conftest*
  1555. + fi
  1556. + cross_compiling=$ac_cv_c_cross
  1557. + /bin/echo "$ac_t""$ac_cv_c_cross" 1>&4
  1558.   
  1559. ! /bin/echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  1560. ! if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  1561. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1562. ! else
  1563. !   cat > conftest.$ac_ext <<EOF
  1564. ! #line 777 "configure"
  1565.   #include "confdefs.h"
  1566.   #include <stdlib.h>
  1567.   #include <stdarg.h>
  1568.   #include <string.h>
  1569.   #include <float.h>
  1570.   EOF
  1571. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1572. ! ac_err=`grep -v '^ *+' conftest.out`
  1573.   if test -z "$ac_err"; then
  1574.     rm -rf conftest*
  1575. +   ac_cv_header_stdc=yes
  1576. + else
  1577. +   /bin/echo "$ac_err" >&5
  1578. +   rm -rf conftest*
  1579. +   ac_cv_header_stdc=no
  1580. + fi
  1581. + rm -f conftest*
  1582. + if test $ac_cv_header_stdc = yes; then
  1583.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1584. ! cat > conftest.$ac_ext <<EOF
  1585. ! #line 799 "configure"
  1586. ! #include "confdefs.h"
  1587. ! #include <string.h>
  1588. ! EOF
  1589. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1590. !   egrep "memchr" >/dev/null 2>&1; then
  1591. !   :
  1592. ! else
  1593. !   rm -rf conftest*
  1594. !   ac_cv_header_stdc=no
  1595. ! fi
  1596. ! rm -f conftest*
  1597. ! fi
  1598. ! if test $ac_cv_header_stdc = yes; then
  1599. !   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1600. ! cat > conftest.$ac_ext <<EOF
  1601. ! #line 817 "configure"
  1602. ! #include "confdefs.h"
  1603. ! #include <stdlib.h>
  1604. ! EOF
  1605. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1606. !   egrep "free" >/dev/null 2>&1; then
  1607. !   :
  1608. ! else
  1609.     rm -rf conftest*
  1610. !   ac_cv_header_stdc=no
  1611. ! fi
  1612. ! rm -f conftest*
  1613. ! fi
  1614. ! if test $ac_cv_header_stdc = yes; then
  1615. !   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1616. ! if test "$cross_compiling" = yes; then
  1617. !   ac_cv_header_stdc=no
  1618. ! else
  1619. ! cat > conftest.$ac_ext <<EOF
  1620. ! #line 838 "configure"
  1621.   #include "confdefs.h"
  1622.   #include <ctype.h>
  1623.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1624.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1625. ! #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1626.   int main () { int i; for (i = 0; i < 256; i++)
  1627.   if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1628.   exit (0); }
  1629.   
  1630.   EOF
  1631. ! eval $ac_link
  1632.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1633. !   :
  1634. ! else
  1635. !   ac_cv_header_stdc=no
  1636.   fi
  1637.   fi
  1638.   rm -fr conftest*
  1639.   fi
  1640. ! fi
  1641. ! /bin/echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1642. ! if test $ac_cv_header_stdc = yes; then
  1643. !   cat >> confdefs.h <<\EOF
  1644. ! #define STDC_HEADERS 1
  1645. ! EOF
  1646.   
  1647.   fi
  1648.   
  1649. ! ac_header_dirent=no
  1650. ! for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  1651. !   ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  1652. ! /bin/echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
  1653. ! if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1654. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1655. ! else
  1656. !   cat > conftest.$ac_ext <<EOF
  1657. ! #line 875 "configure"
  1658.   #include "confdefs.h"
  1659.   #include <sys/types.h>
  1660. ! #include <$ac_hdr>
  1661.   int main() { return 0; }
  1662. ! int t() {
  1663. ! DIR *dirp = 0;
  1664. ! ; return 0; }
  1665.   EOF
  1666.   if eval $ac_compile; then
  1667.     rm -rf conftest*
  1668. !   eval "ac_cv_header_dirent_$ac_safe=yes"
  1669. ! else
  1670. !   rm -rf conftest*
  1671. !   eval "ac_cv_header_dirent_$ac_safe=no"
  1672.   fi
  1673.   rm -f conftest*
  1674. + fi
  1675. + if eval "test \"`/bin/echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1676. +   /bin/echo "$ac_t""yes" 1>&4
  1677. +   ac_header_dirent=$ac_hdr; break
  1678. + else
  1679. +   /bin/echo "$ac_t""no" 1>&4
  1680.   fi
  1681. ! done
  1682. ! case "$ac_header_dirent" in
  1683. ! dirent.h) cat >> confdefs.h <<\EOF
  1684. ! #define DIRENT 1
  1685. ! EOF
  1686. !  ;;
  1687. ! sys/ndir.h) cat >> confdefs.h <<\EOF
  1688. ! #define SYSNDIR 1
  1689. ! EOF
  1690. !  ;;
  1691. ! sys/dir.h) cat >> confdefs.h <<\EOF
  1692. ! #define SYSDIR 1
  1693. ! EOF
  1694. !  ;;
  1695. ! ndir.h) cat >> confdefs.h <<\EOF
  1696. ! #define NDIR 1
  1697. ! EOF
  1698. !  ;;
  1699. ! esac
  1700. ! /bin/echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&4
  1701. ! if eval "test \"`echo '${'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1702. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1703. ! else
  1704. !   if test "$cross_compiling" = yes; then
  1705. !     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1706. ! else
  1707. ! cat > conftest.$ac_ext <<EOF
  1708. ! #line 930 "configure"
  1709.   #include "confdefs.h"
  1710.   #include <sys/types.h>
  1711. ! #include <$ac_header_dirent>
  1712. ! int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1713.   EOF
  1714. ! eval $ac_link
  1715. ! if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1716. !   ac_cv_func_closedir_void=no
  1717. ! else
  1718. !   ac_cv_func_closedir_void=yes
  1719.   fi
  1720.   fi
  1721. ! rm -fr conftest*
  1722. ! fi
  1723. ! /bin/echo "$ac_t""$ac_cv_func_closedir_void" 1>&4
  1724. ! if test $ac_cv_func_closedir_void = yes; then
  1725. !   cat >> confdefs.h <<\EOF
  1726. ! #define VOID_CLOSEDIR 1
  1727.   EOF
  1728.   
  1729.   fi
  1730. ! /bin/echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&4
  1731. ! if eval "test \"`echo '${'ac_cv_type_uid_t'+set}'`\" = set"; then
  1732. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1733. ! else
  1734. !   cat > conftest.$ac_ext <<EOF
  1735. ! #line 958 "configure"
  1736.   #include "confdefs.h"
  1737.   #include <sys/types.h>
  1738.   EOF
  1739. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1740. !   egrep "uid_t" >/dev/null 2>&1; then
  1741.     rm -rf conftest*
  1742. !   ac_cv_type_uid_t=yes
  1743. ! else
  1744. !   rm -rf conftest*
  1745. !   ac_cv_type_uid_t=no
  1746.   fi
  1747.   rm -f conftest*
  1748.   fi
  1749. + /bin/echo "$ac_t""$ac_cv_type_uid_t" 1>&4
  1750. + if test $ac_cv_type_uid_t = no; then
  1751. +   cat >> confdefs.h <<\EOF
  1752. + #define uid_t int
  1753. + EOF
  1754.   
  1755. !   cat >> confdefs.h <<\EOF
  1756. ! #define gid_t int
  1757.   EOF
  1758.   
  1759.   fi
  1760. !             /bin/echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&4
  1761. ! if eval "test \"`echo '${'ac_cv_type_getgroups'+set}'`\" = set"; then
  1762. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1763.   else
  1764. !   if test "$cross_compiling" = yes; then
  1765. !   ac_cv_type_getgroups=cross
  1766. ! else
  1767. ! cat > conftest.$ac_ext <<EOF
  1768. ! #line 992 "configure"
  1769. ! #include "confdefs.h"
  1770.   
  1771. ! /* Thanks to Mike Rendell for this test.  */
  1772.   #include <sys/types.h>
  1773.   #define NGID 256
  1774.   #undef MAX
  1775. ! #define MAX(x, y) ((x) > (y) ? (x) : (y))
  1776.   main()
  1777.   {
  1778.     gid_t gidset[NGID];
  1779. ***************
  1780. *** 844,910 ****
  1781.     /* Exit non-zero if getgroups seems to require an array of ints.  This
  1782.        happens when gid_t is short but getgroups modifies an array of ints.  */
  1783.     exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  1784. - }'
  1785. - cat > conftest.${ac_ext} <<EOF
  1786. - #include "confdefs.h"
  1787. - $ac_prog
  1788. - EOF
  1789. - eval $ac_compile
  1790. - if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1791. -   
  1792. - {
  1793. - test -n "$verbose" && \
  1794. - echo "    defining" GETGROUPS_T to be "gid_t"
  1795. - echo "#define" GETGROUPS_T "gid_t" >> confdefs.h
  1796. - DEFS="$DEFS -DGETGROUPS_T=gid_t"
  1797. - ac_sed_defs="${ac_sed_defs}\${ac_dA}GETGROUPS_T\${ac_dB}GETGROUPS_T\${ac_dC}gid_t\${ac_dD}
  1798. - \${ac_uA}GETGROUPS_T\${ac_uB}GETGROUPS_T\${ac_uC}gid_t\${ac_uD}
  1799. - \${ac_eA}GETGROUPS_T\${ac_eB}GETGROUPS_T\${ac_eC}gid_t\${ac_eD}
  1800. - "
  1801.   }
  1802.   
  1803.   else
  1804. !   
  1805. ! {
  1806. ! test -n "$verbose" && \
  1807. ! echo "    defining" GETGROUPS_T to be "int"
  1808. ! echo "#define" GETGROUPS_T "int" >> confdefs.h
  1809. ! DEFS="$DEFS -DGETGROUPS_T=int"
  1810. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}GETGROUPS_T\${ac_dB}GETGROUPS_T\${ac_dC}int\${ac_dD}
  1811. ! \${ac_uA}GETGROUPS_T\${ac_uB}GETGROUPS_T\${ac_uC}int\${ac_uD}
  1812. ! \${ac_eA}GETGROUPS_T\${ac_eB}GETGROUPS_T\${ac_eC}int\${ac_eD}
  1813. ! "
  1814. ! }
  1815.   fi
  1816.   rm -fr conftest*
  1817. ! test -n "$silent" || echo "checking for pid_t in sys/types.h"
  1818. ! echo '#include "confdefs.h"
  1819. ! #include <sys/types.h>' > conftest.${ac_ext}
  1820. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1821. ! if egrep "pid_t" conftest.out >/dev/null 2>&1; then
  1822. !   :
  1823.   else
  1824.     rm -rf conftest*
  1825. !   
  1826. ! {
  1827. ! test -n "$verbose" && \
  1828. ! echo "    defining" pid_t to be "int"
  1829. ! echo "#define" pid_t "int" >> confdefs.h
  1830. ! DEFS="$DEFS -Dpid_t=int"
  1831. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}pid_t\${ac_dB}pid_t\${ac_dC}int\${ac_dD}
  1832. ! \${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD}
  1833. ! \${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD}
  1834. ! "
  1835. ! }
  1836.   
  1837.   fi
  1838.   rm -f conftest*
  1839.   
  1840. ! test -n "$silent" || echo "checking for return type of signal handlers"
  1841. ! cat > conftest.${ac_ext} <<EOF
  1842.   #include "confdefs.h"
  1843.   #include <sys/types.h>
  1844.   #include <signal.h>
  1845. --- 1010,1087 ----
  1846.     /* Exit non-zero if getgroups seems to require an array of ints.  This
  1847.        happens when gid_t is short but getgroups modifies an array of ints.  */
  1848.     exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  1849.   }
  1850.   
  1851. ! EOF
  1852. ! eval $ac_link
  1853. ! if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1854. !     ac_cv_type_getgroups=gid_t
  1855.   else
  1856. !   ac_cv_type_getgroups=int
  1857. ! fi
  1858.   fi
  1859.   rm -fr conftest*
  1860. ! if test $ac_cv_type_getgroups = cross; then
  1861. !         cat > conftest.$ac_ext <<EOF
  1862. ! #line 1027 "configure"
  1863. ! #include "confdefs.h"
  1864. ! #include <unistd.h>
  1865. ! EOF
  1866. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1867. !   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  1868. !   rm -rf conftest*
  1869. !   ac_cv_type_getgroups=gid_t
  1870.   else
  1871.     rm -rf conftest*
  1872. !   ac_cv_type_getgroups=int
  1873. ! fi
  1874. ! rm -f conftest*
  1875.   
  1876.   fi
  1877. + fi
  1878. + /bin/echo "$ac_t""$ac_cv_type_getgroups" 1>&4
  1879. + cat >> confdefs.h <<EOF
  1880. + #define GETGROUPS_T $ac_cv_type_getgroups
  1881. + EOF
  1882. + /bin/echo $ac_n "checking for pid_t""... $ac_c" 1>&4
  1883. + if eval "test \"`echo '${'ac_cv_type_pid_t'+set}'`\" = set"; then
  1884. +   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1885. + else
  1886. +   cat > conftest.$ac_ext <<EOF
  1887. + #line 1054 "configure"
  1888. + #include "confdefs.h"
  1889. + #include <sys/types.h>
  1890. + #if STDC_HEADERS
  1891. + #include <stdlib.h>
  1892. + #endif
  1893. + EOF
  1894. + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1895. +   egrep "pid_t" >/dev/null 2>&1; then
  1896. +   rm -rf conftest*
  1897. +   ac_cv_type_pid_t=yes
  1898. + else
  1899. +   rm -rf conftest*
  1900. +   ac_cv_type_pid_t=no
  1901. + fi
  1902.   rm -f conftest*
  1903.   
  1904. ! fi
  1905. ! /bin/echo "$ac_t""$ac_cv_type_pid_t" 1>&4
  1906. ! if test $ac_cv_type_pid_t = no; then
  1907. !   cat >> confdefs.h <<\EOF
  1908. ! #define pid_t int
  1909. ! EOF
  1910. ! fi
  1911. ! /bin/echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
  1912. ! if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
  1913. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1914. ! else
  1915. !   cat > conftest.$ac_ext <<EOF
  1916. ! #line 1085 "configure"
  1917.   #include "confdefs.h"
  1918.   #include <sys/types.h>
  1919.   #include <signal.h>
  1920. ***************
  1921. *** 913,1035 ****
  1922.   #endif
  1923.   extern void (*signal ()) ();
  1924.   int main() { return 0; }
  1925. ! int t() { int i;; return 0; }
  1926.   EOF
  1927.   if eval $ac_compile; then
  1928.     rm -rf conftest*
  1929. !   
  1930. ! {
  1931. ! test -n "$verbose" && \
  1932. ! echo "    defining" RETSIGTYPE to be "void"
  1933. ! echo "#define" RETSIGTYPE "void" >> confdefs.h
  1934. ! DEFS="$DEFS -DRETSIGTYPE=void"
  1935. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  1936. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  1937. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  1938. ! "
  1939. ! }
  1940.   else
  1941.     rm -rf conftest*
  1942. !   
  1943. ! {
  1944. ! test -n "$verbose" && \
  1945. ! echo "    defining" RETSIGTYPE to be "int"
  1946. ! echo "#define" RETSIGTYPE "int" >> confdefs.h
  1947. ! DEFS="$DEFS -DRETSIGTYPE=int"
  1948. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  1949. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  1950. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  1951. ! "
  1952. ! }
  1953.   fi
  1954.   rm -f conftest*
  1955.   
  1956.   
  1957.   for ac_hdr in unistd.h limits.h sys/param.h fcntl.h string.h memory.h \
  1958.               sys/timeb.h
  1959.   do
  1960. ! ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1961. ! test -n "$silent" || echo "checking for ${ac_hdr}"
  1962. ! cat > conftest.${ac_ext} <<EOF
  1963. ! #include "confdefs.h"
  1964. ! #include <${ac_hdr}>
  1965. ! EOF
  1966. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1967. ! # the parens.
  1968. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1969.   if test -z "$ac_err"; then
  1970.     rm -rf conftest*
  1971. !   
  1972. ! {
  1973. ! test -n "$verbose" && \
  1974. ! echo "    defining ${ac_tr_hdr}"
  1975. ! echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1976. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1977. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  1978. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  1979. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  1980. ! "
  1981. ! }
  1982.   fi
  1983.   rm -f conftest*
  1984.   done
  1985.   
  1986. ! test -n "$silent" || echo "checking whether $CC and cc understand -c and -o together"
  1987.   echo 'foo(){}' > conftest.c
  1988.   # Make sure it works both with $CC and with simple cc.
  1989.   # We do the test twice because some compilers refuse to overwrite an
  1990.   # existing .o file with -o, though they will create one.
  1991. ! if ${CC-cc} -c conftest.c -o conftest.o >/dev/null 2>&1 \
  1992. !  && test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o >/dev/null 2>&1
  1993.   then
  1994. !   # Test first that cc exists at all.
  1995. !   if cc -c conftest.c >/dev/null 2>&1
  1996. !   then
  1997. !     if cc -c conftest.c -o conftest2.o >/dev/null 2>&1 && \
  1998. !        test -f conftest2.o && cc -c conftest.c -o conftest2.o >/dev/null 2>&1
  1999.       then
  2000. !       :
  2001. !     else
  2002. !       
  2003. ! {
  2004. ! test -n "$verbose" && \
  2005. ! echo "    defining NO_MINUS_C_MINUS_O"
  2006. ! echo "#define" NO_MINUS_C_MINUS_O "1" >> confdefs.h
  2007. ! DEFS="$DEFS -DNO_MINUS_C_MINUS_O=1"
  2008. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_MINUS_C_MINUS_O\${ac_dB}NO_MINUS_C_MINUS_O\${ac_dC}1\${ac_dD}
  2009. ! \${ac_uA}NO_MINUS_C_MINUS_O\${ac_uB}NO_MINUS_C_MINUS_O\${ac_uC}1\${ac_uD}
  2010. ! \${ac_eA}NO_MINUS_C_MINUS_O\${ac_eB}NO_MINUS_C_MINUS_O\${ac_eC}1\${ac_eD}
  2011. ! "
  2012. ! }
  2013.       fi
  2014.     fi
  2015.   else
  2016. !   
  2017. ! {
  2018. ! test -n "$verbose" && \
  2019. ! echo "    defining NO_MINUS_C_MINUS_O"
  2020. ! echo "#define" NO_MINUS_C_MINUS_O "1" >> confdefs.h
  2021. ! DEFS="$DEFS -DNO_MINUS_C_MINUS_O=1"
  2022. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_MINUS_C_MINUS_O\${ac_dB}NO_MINUS_C_MINUS_O\${ac_dC}1\${ac_dD}
  2023. ! \${ac_uA}NO_MINUS_C_MINUS_O\${ac_uB}NO_MINUS_C_MINUS_O\${ac_uC}1\${ac_uD}
  2024. ! \${ac_eA}NO_MINUS_C_MINUS_O\${ac_eB}NO_MINUS_C_MINUS_O\${ac_eC}1\${ac_eD}
  2025. ! "
  2026. ! }
  2027.   
  2028.   fi
  2029. - rm -f conftest*
  2030.   
  2031. ! ac_prog='/* Ultrix mips cc rejects this.  */
  2032.   typedef int charset[2]; const charset x;
  2033.   /* SunOS 4.1.1 cc rejects this.  */
  2034.   char const *const *ccp;
  2035.   char **p;
  2036.   /* AIX XL C 1.02.0.0 rejects this.
  2037.      It does not let you subtract one const X* pointer from another in an arm
  2038.      of an if-expression whose if-part is not a constant expression */
  2039. --- 1090,1213 ----
  2040.   #endif
  2041.   extern void (*signal ()) ();
  2042.   int main() { return 0; }
  2043. ! int t() {
  2044. ! int i;
  2045. ! ; return 0; }
  2046.   EOF
  2047.   if eval $ac_compile; then
  2048.     rm -rf conftest*
  2049. !   ac_cv_type_signal=void
  2050.   else
  2051.     rm -rf conftest*
  2052. !   ac_cv_type_signal=int
  2053.   fi
  2054.   rm -f conftest*
  2055.   
  2056. + fi
  2057. + /bin/echo "$ac_t""$ac_cv_type_signal" 1>&4
  2058. + cat >> confdefs.h <<EOF
  2059. + #define RETSIGTYPE $ac_cv_type_signal
  2060. + EOF
  2061.   
  2062.   for ac_hdr in unistd.h limits.h sys/param.h fcntl.h string.h memory.h \
  2063.               sys/timeb.h
  2064.   do
  2065. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  2066. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  2067. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2068. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2069. ! else
  2070. !   cat > conftest.$ac_ext <<EOF
  2071. ! #line 1123 "configure"
  2072. ! #include "confdefs.h"
  2073. ! #include <$ac_hdr>
  2074. ! EOF
  2075. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2076. ! ac_err=`grep -v '^ *+' conftest.out`
  2077.   if test -z "$ac_err"; then
  2078.     rm -rf conftest*
  2079. !   eval "ac_cv_header_$ac_safe=yes"
  2080. ! else
  2081. !   /bin/echo "$ac_err" >&5
  2082. !   rm -rf conftest*
  2083. !   eval "ac_cv_header_$ac_safe=no"
  2084.   fi
  2085.   rm -f conftest*
  2086. + fi
  2087. + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2088. +   /bin/echo "$ac_t""yes" 1>&4
  2089. +     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2090. +   cat >> confdefs.h <<EOF
  2091. + #define $ac_tr_hdr 1
  2092. + EOF
  2093. +  
  2094. + else
  2095. +   /bin/echo "$ac_t""no" 1>&4
  2096. + fi
  2097.   done
  2098.   
  2099. ! if test "x$CC" != xcc; then
  2100. !   /bin/echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&4
  2101. ! else
  2102. !   /bin/echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&4
  2103. ! fi
  2104. ! set dummy $CC; ac_cc=$2
  2105. ! if eval "test \"`echo '${'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
  2106. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2107. ! else
  2108. !   eval ac_cv_prog_cc_${ac_cc}_c_o=no
  2109.   echo 'foo(){}' > conftest.c
  2110.   # Make sure it works both with $CC and with simple cc.
  2111.   # We do the test twice because some compilers refuse to overwrite an
  2112.   # existing .o file with -o, though they will create one.
  2113. ! if ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5 &&
  2114. !   test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5
  2115.   then
  2116. !   if test "x$CC" != xcc; then
  2117. !     # Test first that cc exists at all.
  2118. !     if cc -c conftest.c 1>&5 2>&5
  2119.       then
  2120. !       if cc -c conftest.c -o conftest2.o 1>&5 2>&5 &&
  2121. !         test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&5 2>&5
  2122. !       then
  2123. !         eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  2124. !       fi
  2125.       fi
  2126.     fi
  2127. + fi
  2128. + rm -f conftest*
  2129. + fi
  2130. + if eval "test \"`/bin/echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  2131. +   /bin/echo "$ac_t""yes" 1>&4
  2132.   else
  2133. !   /bin/echo "$ac_t""no" 1>&4
  2134. !   cat >> confdefs.h <<\EOF
  2135. ! #define NO_MINUS_C_MINUS_O 1
  2136. ! EOF
  2137.   
  2138.   fi
  2139.   
  2140. ! /bin/echo $ac_n "checking for working const""... $ac_c" 1>&4
  2141. ! if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  2142. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2143. ! else
  2144. !   cat > conftest.$ac_ext <<EOF
  2145. ! #line 1198 "configure"
  2146. ! #include "confdefs.h"
  2147. ! int main() { return 0; }
  2148. ! int t() {
  2149. ! /* Ultrix mips cc rejects this.  */
  2150.   typedef int charset[2]; const charset x;
  2151.   /* SunOS 4.1.1 cc rejects this.  */
  2152.   char const *const *ccp;
  2153.   char **p;
  2154. + /* NEC SVR4.0.2 mips cc rejects this.  */
  2155. + struct point {int x, y;};
  2156. + static struct point const zero;
  2157.   /* AIX XL C 1.02.0.0 rejects this.
  2158.      It does not let you subtract one const X* pointer from another in an arm
  2159.      of an if-expression whose if-part is not a constant expression */
  2160. ***************
  2161. *** 1046,1052 ****
  2162.     *t++ = 0;
  2163.   }
  2164.   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2165. !   int x[] = {25,17};
  2166.     const int *foo = &x[0];
  2167.     ++foo;
  2168.   }
  2169. --- 1224,1230 ----
  2170.     *t++ = 0;
  2171.   }
  2172.   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2173. !   int x[] = {25, 17};
  2174.     const int *foo = &x[0];
  2175.     ++foo;
  2176.   }
  2177. ***************
  2178. *** 1062,1138 ****
  2179.   }
  2180.   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2181.     const int foo = 10;
  2182. ! }'
  2183. ! test -n "$silent" || echo "checking for lack of working const"
  2184. ! cat > conftest.${ac_ext} <<EOF
  2185. ! #include "confdefs.h"
  2186.   
  2187. ! int main() { return 0; }
  2188. ! int t() { $ac_prog; return 0; }
  2189.   EOF
  2190.   if eval $ac_compile; then
  2191. !   :
  2192.   else
  2193.     rm -rf conftest*
  2194. !   
  2195. ! {
  2196. ! test -n "$verbose" && \
  2197. ! echo "    defining" const to be empty
  2198. ! echo "#define" const "" >> confdefs.h
  2199. ! DEFS="$DEFS -Dconst="
  2200. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
  2201. ! \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
  2202. ! \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
  2203. ! "
  2204. ! }
  2205.   fi
  2206.   rm -f conftest*
  2207. !             test -n "$silent" || echo "checking for broken stat file mode macros"
  2208. ! cat > conftest.${ac_ext} <<EOF
  2209.   #include "confdefs.h"
  2210.   #include <sys/types.h>
  2211.   #include <sys/stat.h>
  2212.   #ifdef S_ISBLK
  2213. ! #if S_ISBLK (S_IFDIR)
  2214.   You lose.
  2215. ! #endif
  2216. ! #ifdef S_IFCHR
  2217. ! #if S_ISBLK (S_IFCHR)
  2218.   You lose.
  2219.   #endif
  2220. ! #endif /* S_IFCHR */
  2221. ! #endif /* S_ISBLK */
  2222.   #ifdef S_ISLNK
  2223. ! #if S_ISLNK (S_IFREG)
  2224.   You lose.
  2225.   #endif
  2226. ! #endif /* S_ISLNK */
  2227.   #ifdef S_ISSOCK
  2228. ! #if S_ISSOCK (S_IFREG)
  2229.   You lose.
  2230.   #endif
  2231. - #endif /* S_ISSOCK */
  2232.   
  2233.   EOF
  2234. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2235. ! if egrep "You lose" conftest.out >/dev/null 2>&1; then
  2236.     rm -rf conftest*
  2237. !   
  2238. ! {
  2239. ! test -n "$verbose" && \
  2240. ! echo "    defining STAT_MACROS_BROKEN"
  2241. ! echo "#define" STAT_MACROS_BROKEN "1" >> confdefs.h
  2242. ! DEFS="$DEFS -DSTAT_MACROS_BROKEN=1"
  2243. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_MACROS_BROKEN\${ac_dB}STAT_MACROS_BROKEN\${ac_dC}1\${ac_dD}
  2244. ! \${ac_uA}STAT_MACROS_BROKEN\${ac_uB}STAT_MACROS_BROKEN\${ac_uC}1\${ac_uD}
  2245. ! \${ac_eA}STAT_MACROS_BROKEN\${ac_eB}STAT_MACROS_BROKEN\${ac_eC}1\${ac_eD}
  2246. ! "
  2247. ! }
  2248.   
  2249.   
  2250.   fi
  2251. - rm -f conftest*
  2252.   
  2253.   
  2254.   
  2255. --- 1240,1317 ----
  2256.   }
  2257.   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2258.     const int foo = 10;
  2259. ! }
  2260.   
  2261. ! ; return 0; }
  2262.   EOF
  2263.   if eval $ac_compile; then
  2264. !   rm -rf conftest*
  2265. !   ac_cv_c_const=yes
  2266.   else
  2267.     rm -rf conftest*
  2268. !   ac_cv_c_const=no
  2269.   fi
  2270.   rm -f conftest*
  2271. ! fi
  2272. ! /bin/echo "$ac_t""$ac_cv_c_const" 1>&4
  2273. ! if test $ac_cv_c_const = no; then
  2274. !   cat >> confdefs.h <<\EOF
  2275. ! #define const 
  2276. ! EOF
  2277. ! fi
  2278. !             /bin/echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&4
  2279. ! if eval "test \"`echo '${'ac_cv_header_stat_broken'+set}'`\" = set"; then
  2280. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2281. ! else
  2282. !   cat > conftest.$ac_ext <<EOF
  2283. ! #line 1270 "configure"
  2284.   #include "confdefs.h"
  2285.   #include <sys/types.h>
  2286.   #include <sys/stat.h>
  2287.   #ifdef S_ISBLK
  2288. ! # if S_ISBLK (S_IFDIR)
  2289.   You lose.
  2290. ! # endif
  2291. ! # ifdef S_IFCHR
  2292. ! #  if S_ISBLK (S_IFCHR)
  2293.   You lose.
  2294. + #  endif
  2295. + # endif
  2296.   #endif
  2297.   #ifdef S_ISLNK
  2298. ! # if S_ISLNK (S_IFREG)
  2299.   You lose.
  2300. + # endif
  2301.   #endif
  2302.   #ifdef S_ISSOCK
  2303. ! # if S_ISSOCK (S_IFREG)
  2304.   You lose.
  2305. + # endif
  2306.   #endif
  2307.   
  2308.   EOF
  2309. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2310. !   egrep "You lose" >/dev/null 2>&1; then
  2311.     rm -rf conftest*
  2312. !   ac_cv_header_stat_broken=yes
  2313. ! else
  2314. !   rm -rf conftest*
  2315. !   ac_cv_header_stat_broken=no
  2316. ! fi
  2317. ! rm -f conftest*
  2318.   
  2319. + fi
  2320. + /bin/echo "$ac_t""$ac_cv_header_stat_broken" 1>&4
  2321. + if test $ac_cv_header_stat_broken = yes; then
  2322. +   cat >> confdefs.h <<\EOF
  2323. + #define STAT_MACROS_BROKEN 1
  2324. + EOF
  2325.   
  2326.   fi
  2327.   
  2328.   
  2329.   
  2330. ***************
  2331. *** 1141,1425 ****
  2332.             dup2 getcwd sigsetmask getgroups setlinebuf \
  2333.             seteuid setegid setreuid setregid strerror
  2334.   do
  2335. ! ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  2336. ! test -n "$silent" || echo "checking for ${ac_func}"
  2337. ! cat > conftest.${ac_ext} <<EOF
  2338.   #include "confdefs.h"
  2339. ! #include <ctype.h>
  2340.   int main() { return 0; }
  2341. ! int t() { 
  2342.   /* The GNU C library defines this for functions which it implements
  2343.       to always fail with ENOSYS.  Some functions are actually named
  2344.       something starting with __ and the normal name is an alias.  */
  2345. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  2346.   choke me
  2347.   #else
  2348. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2349. ! extern char ${ac_func}(); ${ac_func}();
  2350.   #endif
  2351.   ; return 0; }
  2352.   EOF
  2353. ! if eval $ac_compile; then
  2354.     rm -rf conftest*
  2355. !   {
  2356. ! test -n "$verbose" && \
  2357. ! echo "    defining ${ac_tr_func}"
  2358. ! echo "#define" ${ac_tr_func} "1" >> confdefs.h
  2359. ! DEFS="$DEFS -D${ac_tr_func}=1"
  2360. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  2361. ! \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  2362. ! \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  2363. ! "
  2364. ! }
  2365.   fi
  2366.   rm -f conftest*
  2367.   done
  2368.   
  2369.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2370.   # for constant arguments.  Useless!
  2371. ! test -n "$silent" || echo "checking for working alloca.h"
  2372. ! cat > conftest.${ac_ext} <<EOF
  2373.   #include "confdefs.h"
  2374.   #include <alloca.h>
  2375.   int main() { return 0; }
  2376. ! int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  2377.   EOF
  2378. ! if eval $ac_compile; then
  2379.     rm -rf conftest*
  2380. !   
  2381. ! {
  2382. ! test -n "$verbose" && \
  2383. ! echo "    defining HAVE_ALLOCA_H"
  2384. ! echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  2385. ! DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  2386. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
  2387. ! \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
  2388. ! \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
  2389. ! "
  2390. ! }
  2391.   
  2392.   
  2393.   fi
  2394. - rm -f conftest*
  2395.   
  2396. ! ac_decl="#ifdef __GNUC__
  2397. ! #define alloca __builtin_alloca
  2398. ! #else
  2399. ! #if HAVE_ALLOCA_H
  2400. ! #include <alloca.h>
  2401.   #else
  2402. ! #ifdef _AIX
  2403.    #pragma alloca
  2404. ! #else
  2405.   char *alloca ();
  2406.   #endif
  2407. ! #endif
  2408. ! #endif
  2409. ! "
  2410. ! test -n "$silent" || echo "checking for alloca"
  2411. ! cat > conftest.${ac_ext} <<EOF
  2412. ! #include "confdefs.h"
  2413. ! $ac_decl
  2414.   int main() { return 0; }
  2415. ! int t() { char *p = (char *) alloca(1);; return 0; }
  2416.   EOF
  2417. ! if eval $ac_compile; then
  2418.     rm -rf conftest*
  2419. !   
  2420. ! {
  2421. ! test -n "$verbose" && \
  2422. ! echo "    defining HAVE_ALLOCA"
  2423. ! echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  2424. ! DEFS="$DEFS -DHAVE_ALLOCA=1"
  2425. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
  2426. ! \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
  2427. ! \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
  2428. ! "
  2429. ! }
  2430.   
  2431.   
  2432.   else
  2433. !   rm -rf conftest*
  2434. !   ac_alloca_missing=1
  2435. ! cat > conftest.${ac_ext} <<EOF
  2436.   #include "confdefs.h"
  2437.   #if defined(CRAY) && ! defined(CRAY2)
  2438. ! winnitude
  2439.   #else
  2440. ! lossage
  2441.   #endif
  2442.   
  2443.   EOF
  2444. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2445. ! if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  2446.     rm -rf conftest*
  2447. !   test -n "$silent" || echo "checking for _getb67"
  2448. ! cat > conftest.${ac_ext} <<EOF
  2449.   #include "confdefs.h"
  2450. ! #include <ctype.h>
  2451.   int main() { return 0; }
  2452. ! int t() { 
  2453.   /* The GNU C library defines this for functions which it implements
  2454.       to always fail with ENOSYS.  Some functions are actually named
  2455.       something starting with __ and the normal name is an alias.  */
  2456.   #if defined (__stub__getb67) || defined (__stub____getb67)
  2457.   choke me
  2458.   #else
  2459. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2460. ! extern char _getb67(); _getb67();
  2461.   #endif
  2462.   ; return 0; }
  2463.   EOF
  2464. ! if eval $ac_compile; then
  2465.     rm -rf conftest*
  2466. !   {
  2467. ! test -n "$verbose" && \
  2468. ! echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  2469. ! echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  2470. ! DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  2471. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
  2472. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
  2473. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
  2474. ! "
  2475. ! }
  2476.   
  2477.   
  2478.   else
  2479. !   rm -rf conftest*
  2480. !   test -n "$silent" || echo "checking for GETB67"
  2481. ! cat > conftest.${ac_ext} <<EOF
  2482.   #include "confdefs.h"
  2483. ! #include <ctype.h>
  2484.   int main() { return 0; }
  2485. ! int t() { 
  2486.   /* The GNU C library defines this for functions which it implements
  2487.       to always fail with ENOSYS.  Some functions are actually named
  2488.       something starting with __ and the normal name is an alias.  */
  2489.   #if defined (__stub_GETB67) || defined (__stub___GETB67)
  2490.   choke me
  2491.   #else
  2492. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2493. ! extern char GETB67(); GETB67();
  2494.   #endif
  2495.   ; return 0; }
  2496.   EOF
  2497. ! if eval $ac_compile; then
  2498.     rm -rf conftest*
  2499. !   {
  2500. ! test -n "$verbose" && \
  2501. ! echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  2502. ! echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  2503. ! DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  2504. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
  2505. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
  2506. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
  2507. ! "
  2508. ! }
  2509.   
  2510.   
  2511.   else
  2512. !   rm -rf conftest*
  2513. !   test -n "$silent" || echo "checking for getb67"
  2514. ! cat > conftest.${ac_ext} <<EOF
  2515.   #include "confdefs.h"
  2516. ! #include <ctype.h>
  2517.   int main() { return 0; }
  2518. ! int t() { 
  2519.   /* The GNU C library defines this for functions which it implements
  2520.       to always fail with ENOSYS.  Some functions are actually named
  2521.       something starting with __ and the normal name is an alias.  */
  2522.   #if defined (__stub_getb67) || defined (__stub___getb67)
  2523.   choke me
  2524.   #else
  2525. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2526. ! extern char getb67(); getb67();
  2527.   #endif
  2528.   ; return 0; }
  2529.   EOF
  2530. ! if eval $ac_compile; then
  2531.     rm -rf conftest*
  2532. !   {
  2533. ! test -n "$verbose" && \
  2534. ! echo "    defining" CRAY_STACKSEG_END to be "getb67"
  2535. ! echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  2536. ! DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  2537. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
  2538. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
  2539. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
  2540. ! "
  2541. ! }
  2542.   fi
  2543.   rm -f conftest*
  2544.   
  2545.   fi
  2546. ! rm -f conftest*
  2547.   
  2548.   fi
  2549. - rm -f conftest*
  2550.   
  2551.   fi
  2552. - rm -f conftest*
  2553.   
  2554.   fi
  2555. - rm -f conftest*
  2556. - if test -n "$ac_alloca_missing"; then
  2557. -   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2558. -   # that cause trouble.  Some versions do not even contain alloca or
  2559. -   # contain a buggy version.  If you still want to use their alloca,
  2560. -   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2561. -   ALLOCA=alloca.o
  2562. -   
  2563. - {
  2564. - test -n "$verbose" && \
  2565. - echo "    defining C_ALLOCA"
  2566. - echo "#define" C_ALLOCA "1" >> confdefs.h
  2567. - DEFS="$DEFS -DC_ALLOCA=1"
  2568. - ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
  2569. - \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
  2570. - \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
  2571. - "
  2572. - }
  2573.   
  2574. -   test -n "$silent" || echo "checking stack direction for C alloca"
  2575. -   test -n "$silent" || echo "checking whether cross-compiling"
  2576. - # If we cannot run a trivial program, we must be cross compiling.
  2577. - cat > conftest.${ac_ext} <<EOF
  2578. - #include "confdefs.h"
  2579. - main(){exit(0);}
  2580. - EOF
  2581. - eval $ac_compile
  2582. - if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2583. -   :
  2584. - else
  2585. -   cross_compiling=1
  2586.   fi
  2587. - rm -fr conftest*
  2588. - if test -n "$cross_compiling"
  2589. - then
  2590. -   
  2591. - {
  2592. - test -n "$verbose" && \
  2593. - echo "    defining" STACK_DIRECTION to be "0"
  2594. - echo "#define" STACK_DIRECTION "0" >> confdefs.h
  2595. - DEFS="$DEFS -DSTACK_DIRECTION=0"
  2596. - ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
  2597. - \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
  2598. - \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
  2599. - "
  2600. - }
  2601.   
  2602.   else
  2603. ! cat > conftest.${ac_ext} <<EOF
  2604.   #include "confdefs.h"
  2605.   find_stack_direction ()
  2606.   {
  2607. --- 1320,1636 ----
  2608.             dup2 getcwd sigsetmask getgroups setlinebuf \
  2609.             seteuid setegid setreuid setregid strerror
  2610.   do
  2611. ! /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  2612. ! if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2613. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2614. ! else
  2615. !   cat > conftest.$ac_ext <<EOF
  2616. ! #line 1329 "configure"
  2617.   #include "confdefs.h"
  2618. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2619. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2620. ! char $ac_func(); 
  2621.   int main() { return 0; }
  2622. ! int t() {
  2623.   /* The GNU C library defines this for functions which it implements
  2624.       to always fail with ENOSYS.  Some functions are actually named
  2625.       something starting with __ and the normal name is an alias.  */
  2626. ! #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2627.   choke me
  2628.   #else
  2629. ! $ac_func();
  2630.   #endif
  2631.   ; return 0; }
  2632.   EOF
  2633. ! if eval $ac_link; then
  2634.     rm -rf conftest*
  2635. !   eval "ac_cv_func_$ac_func=yes"
  2636. ! else
  2637. !   rm -rf conftest*
  2638. !   eval "ac_cv_func_$ac_func=no"
  2639.   fi
  2640.   rm -f conftest*
  2641. + fi
  2642. + if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2643. +   /bin/echo "$ac_t""yes" 1>&4
  2644. +     ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  2645. +   cat >> confdefs.h <<EOF
  2646. + #define $ac_tr_func 1
  2647. + EOF
  2648. +  
  2649. + else
  2650. +   /bin/echo "$ac_t""no" 1>&4
  2651. + fi
  2652.   done
  2653.   
  2654.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2655.   # for constant arguments.  Useless!
  2656. ! /bin/echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  2657. ! if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2658. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2659. ! else
  2660. !   cat > conftest.$ac_ext <<EOF
  2661. ! #line 1378 "configure"
  2662.   #include "confdefs.h"
  2663.   #include <alloca.h>
  2664.   int main() { return 0; }
  2665. ! int t() {
  2666. ! char *p = alloca(2 * sizeof(int));
  2667. ! ; return 0; }
  2668.   EOF
  2669. ! if eval $ac_link; then
  2670.     rm -rf conftest*
  2671. !   ac_cv_header_alloca_h=yes
  2672. ! else
  2673. !   rm -rf conftest*
  2674. !   ac_cv_header_alloca_h=no
  2675. ! fi
  2676. ! rm -f conftest*
  2677.   
  2678. + fi
  2679. + /bin/echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  2680. + if test $ac_cv_header_alloca_h = yes; then
  2681. +   cat >> confdefs.h <<\EOF
  2682. + #define HAVE_ALLOCA_H 1
  2683. + EOF
  2684.   
  2685.   fi
  2686.   
  2687. ! /bin/echo $ac_n "checking for alloca""... $ac_c" 1>&4
  2688. ! if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  2689. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2690. ! else
  2691. !   cat > conftest.$ac_ext <<EOF
  2692. ! #line 1409 "configure"
  2693. ! #include "confdefs.h"
  2694. ! #ifdef __GNUC__
  2695. ! # define alloca __builtin_alloca
  2696.   #else
  2697. ! # if HAVE_ALLOCA_H
  2698. ! #  include <alloca.h>
  2699. ! # else
  2700. ! #  ifdef _AIX
  2701.    #pragma alloca
  2702. ! #  else
  2703. ! #   ifndef alloca /* predefined by HP cc +Olibcalls */
  2704.   char *alloca ();
  2705. + #   endif
  2706. + #  endif
  2707. + # endif
  2708.   #endif
  2709.   int main() { return 0; }
  2710. ! int t() {
  2711. ! char *p = (char *) alloca(1);
  2712. ! ; return 0; }
  2713.   EOF
  2714. ! if eval $ac_link; then
  2715.     rm -rf conftest*
  2716. !   ac_cv_func_alloca=yes
  2717. ! else
  2718. !   rm -rf conftest*
  2719. !   ac_cv_func_alloca=no
  2720. ! fi
  2721. ! rm -f conftest*
  2722.   
  2723. + fi
  2724. + /bin/echo "$ac_t""$ac_cv_func_alloca" 1>&4
  2725. + if test $ac_cv_func_alloca = yes; then
  2726. +   cat >> confdefs.h <<\EOF
  2727. + #define HAVE_ALLOCA 1
  2728. + EOF
  2729. + fi
  2730.   
  2731. + if test $ac_cv_func_alloca = no; then
  2732. +   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2733. +   # that cause trouble.  Some versions do not even contain alloca or
  2734. +   # contain a buggy version.  If you still want to use their alloca,
  2735. +   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2736. +   ALLOCA=alloca.o
  2737. +   cat >> confdefs.h <<\EOF
  2738. + #define C_ALLOCA 1
  2739. + EOF
  2740. + /bin/echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  2741. + if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  2742. +   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2743.   else
  2744. !   cat > conftest.$ac_ext <<EOF
  2745. ! #line 1467 "configure"
  2746.   #include "confdefs.h"
  2747.   #if defined(CRAY) && ! defined(CRAY2)
  2748. ! webecray
  2749.   #else
  2750. ! wenotbecray
  2751.   #endif
  2752.   
  2753.   EOF
  2754. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2755. !   egrep "webecray" >/dev/null 2>&1; then
  2756.     rm -rf conftest*
  2757. !   ac_cv_os_cray=yes
  2758. ! else
  2759. !   rm -rf conftest*
  2760. !   ac_cv_os_cray=no
  2761. ! fi
  2762. ! rm -f conftest*
  2763. ! fi
  2764. ! /bin/echo "$ac_t""$ac_cv_os_cray" 1>&4
  2765. ! if test $ac_cv_os_cray = yes; then
  2766. ! /bin/echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  2767. ! if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  2768. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2769. ! else
  2770. !   cat > conftest.$ac_ext <<EOF
  2771. ! #line 1494 "configure"
  2772.   #include "confdefs.h"
  2773. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2774. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2775. ! char _getb67(); 
  2776.   int main() { return 0; }
  2777. ! int t() {
  2778.   /* The GNU C library defines this for functions which it implements
  2779.       to always fail with ENOSYS.  Some functions are actually named
  2780.       something starting with __ and the normal name is an alias.  */
  2781.   #if defined (__stub__getb67) || defined (__stub____getb67)
  2782.   choke me
  2783.   #else
  2784. ! _getb67();
  2785.   #endif
  2786.   ; return 0; }
  2787.   EOF
  2788. ! if eval $ac_link; then
  2789.     rm -rf conftest*
  2790. !   eval "ac_cv_func__getb67=yes"
  2791. ! else
  2792. !   rm -rf conftest*
  2793. !   eval "ac_cv_func__getb67=no"
  2794. ! fi
  2795. ! rm -f conftest*
  2796.   
  2797. + fi
  2798. + if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  2799. +   /bin/echo "$ac_t""yes" 1>&4
  2800. +   cat >> confdefs.h <<\EOF
  2801. + #define CRAY_STACKSEG_END _getb67
  2802. + EOF
  2803.   
  2804.   else
  2805. !   /bin/echo "$ac_t""no" 1>&4
  2806. ! /bin/echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  2807. ! if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  2808. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2809. ! else
  2810. !   cat > conftest.$ac_ext <<EOF
  2811. ! #line 1537 "configure"
  2812.   #include "confdefs.h"
  2813. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2814. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2815. ! char GETB67(); 
  2816.   int main() { return 0; }
  2817. ! int t() {
  2818.   /* The GNU C library defines this for functions which it implements
  2819.       to always fail with ENOSYS.  Some functions are actually named
  2820.       something starting with __ and the normal name is an alias.  */
  2821.   #if defined (__stub_GETB67) || defined (__stub___GETB67)
  2822.   choke me
  2823.   #else
  2824. ! GETB67();
  2825.   #endif
  2826.   ; return 0; }
  2827.   EOF
  2828. ! if eval $ac_link; then
  2829.     rm -rf conftest*
  2830. !   eval "ac_cv_func_GETB67=yes"
  2831. ! else
  2832. !   rm -rf conftest*
  2833. !   eval "ac_cv_func_GETB67=no"
  2834. ! fi
  2835. ! rm -f conftest*
  2836.   
  2837. + fi
  2838. + if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  2839. +   /bin/echo "$ac_t""yes" 1>&4
  2840. +   cat >> confdefs.h <<\EOF
  2841. + #define CRAY_STACKSEG_END GETB67
  2842. + EOF
  2843.   
  2844.   else
  2845. !   /bin/echo "$ac_t""no" 1>&4
  2846. ! /bin/echo $ac_n "checking for getb67""... $ac_c" 1>&4
  2847. ! if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  2848. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2849. ! else
  2850. !   cat > conftest.$ac_ext <<EOF
  2851. ! #line 1580 "configure"
  2852.   #include "confdefs.h"
  2853. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2854. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2855. ! char getb67(); 
  2856.   int main() { return 0; }
  2857. ! int t() {
  2858.   /* The GNU C library defines this for functions which it implements
  2859.       to always fail with ENOSYS.  Some functions are actually named
  2860.       something starting with __ and the normal name is an alias.  */
  2861.   #if defined (__stub_getb67) || defined (__stub___getb67)
  2862.   choke me
  2863.   #else
  2864. ! getb67();
  2865.   #endif
  2866.   ; return 0; }
  2867.   EOF
  2868. ! if eval $ac_link; then
  2869.     rm -rf conftest*
  2870. !   eval "ac_cv_func_getb67=yes"
  2871. ! else
  2872. !   rm -rf conftest*
  2873. !   eval "ac_cv_func_getb67=no"
  2874.   fi
  2875.   rm -f conftest*
  2876.   
  2877.   fi
  2878. ! if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  2879. !   /bin/echo "$ac_t""yes" 1>&4
  2880. !   cat >> confdefs.h <<\EOF
  2881. ! #define CRAY_STACKSEG_END getb67
  2882. ! EOF
  2883.   
  2884. + else
  2885. +   /bin/echo "$ac_t""no" 1>&4
  2886.   fi
  2887.   
  2888.   fi
  2889.   
  2890.   fi
  2891.   
  2892.   fi
  2893.   
  2894. + /bin/echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  2895. + if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2896. +   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2897. + else
  2898. +   if test "$cross_compiling" = yes; then
  2899. +   ac_cv_c_stack_direction=0
  2900.   else
  2901. ! cat > conftest.$ac_ext <<EOF
  2902. ! #line 1634 "configure"
  2903.   #include "confdefs.h"
  2904.   find_stack_direction ()
  2905.   {
  2906. ***************
  2907. *** 1438,1505 ****
  2908.     exit (find_stack_direction() < 0);
  2909.   }
  2910.   EOF
  2911. ! eval $ac_compile
  2912.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2913. !   
  2914. ! {
  2915. ! test -n "$verbose" && \
  2916. ! echo "    defining" STACK_DIRECTION to be "1"
  2917. ! echo "#define" STACK_DIRECTION "1" >> confdefs.h
  2918. ! DEFS="$DEFS -DSTACK_DIRECTION=1"
  2919. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
  2920. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
  2921. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
  2922. ! "
  2923. ! }
  2924.   else
  2925. !   
  2926. ! {
  2927. ! test -n "$verbose" && \
  2928. ! echo "    defining" STACK_DIRECTION to be "-1"
  2929. ! echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  2930. ! DEFS="$DEFS -DSTACK_DIRECTION=-1"
  2931. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
  2932. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
  2933. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
  2934. ! "
  2935. ! }
  2936.   fi
  2937.   fi
  2938.   rm -fr conftest*
  2939.   fi
  2940.   
  2941. ! test -n "$silent" || echo "checking for vfork.h"
  2942. ! cat > conftest.${ac_ext} <<EOF
  2943.   #include "confdefs.h"
  2944.   #include <vfork.h>
  2945.   EOF
  2946. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2947. ! # the parens.
  2948. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2949.   if test -z "$ac_err"; then
  2950.     rm -rf conftest*
  2951. !   
  2952. ! {
  2953. ! test -n "$verbose" && \
  2954. ! echo "    defining HAVE_VFORK_H"
  2955. ! echo "#define" HAVE_VFORK_H "1" >> confdefs.h
  2956. ! DEFS="$DEFS -DHAVE_VFORK_H=1"
  2957. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VFORK_H\${ac_dB}HAVE_VFORK_H\${ac_dC}1\${ac_dD}
  2958. ! \${ac_uA}HAVE_VFORK_H\${ac_uB}HAVE_VFORK_H\${ac_uC}1\${ac_uD}
  2959. ! \${ac_eA}HAVE_VFORK_H\${ac_eB}HAVE_VFORK_H\${ac_eC}1\${ac_eD}
  2960. ! "
  2961. ! }
  2962.   fi
  2963.   rm -f conftest*
  2964.   
  2965. ! test -n "$silent" || echo "checking for working vfork"
  2966.   
  2967. ! cat > conftest.${ac_ext} <<EOF
  2968.   #include "confdefs.h"
  2969.   /* Thanks to Paul Eggert for this test.  */
  2970.   #include <stdio.h>
  2971. --- 1649,1712 ----
  2972.     exit (find_stack_direction() < 0);
  2973.   }
  2974.   EOF
  2975. ! eval $ac_link
  2976.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2977. !   ac_cv_c_stack_direction=1
  2978.   else
  2979. !   ac_cv_c_stack_direction=-1
  2980.   fi
  2981.   fi
  2982.   rm -fr conftest*
  2983.   fi
  2984. + /bin/echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  2985. + cat >> confdefs.h <<EOF
  2986. + #define STACK_DIRECTION $ac_cv_c_stack_direction
  2987. + EOF
  2988.   
  2989. ! fi
  2990. ! ac_safe=`/bin/echo "vfork.h" | tr './\055' '___'`
  2991. ! /bin/echo $ac_n "checking for vfork.h""... $ac_c" 1>&4
  2992. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2993. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2994. ! else
  2995. !   cat > conftest.$ac_ext <<EOF
  2996. ! #line 1675 "configure"
  2997.   #include "confdefs.h"
  2998.   #include <vfork.h>
  2999.   EOF
  3000. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3001. ! ac_err=`grep -v '^ *+' conftest.out`
  3002.   if test -z "$ac_err"; then
  3003.     rm -rf conftest*
  3004. !   eval "ac_cv_header_$ac_safe=yes"
  3005. ! else
  3006. !   /bin/echo "$ac_err" >&5
  3007. !   rm -rf conftest*
  3008. !   eval "ac_cv_header_$ac_safe=no"
  3009.   fi
  3010.   rm -f conftest*
  3011. + fi
  3012. + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3013. +   /bin/echo "$ac_t""yes" 1>&4
  3014. +   cat >> confdefs.h <<\EOF
  3015. + #define HAVE_VFORK_H 1
  3016. + EOF
  3017.   
  3018. ! else
  3019. !   /bin/echo "$ac_t""no" 1>&4
  3020. ! fi
  3021.   
  3022. ! /bin/echo $ac_n "checking for working vfork""... $ac_c" 1>&4
  3023. ! if eval "test \"`echo '${'ac_cv_func_vfork'+set}'`\" = set"; then
  3024. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3025. ! else
  3026. !   
  3027. ! if test "$cross_compiling" = yes; then
  3028. !   ac_cv_func_vfork=no
  3029. ! else
  3030. ! cat > conftest.$ac_ext <<EOF
  3031. ! #line 1710 "configure"
  3032.   #include "confdefs.h"
  3033.   /* Thanks to Paul Eggert for this test.  */
  3034.   #include <stdio.h>
  3035. ***************
  3036. *** 1512,1533 ****
  3037.   #ifdef HAVE_VFORK_H
  3038.   #include <vfork.h>
  3039.   #endif
  3040.   static int signalled;
  3041.   static RETSIGTYPE catch (s) int s; { signalled = 1; }
  3042.   main() {
  3043.     pid_t parent = getpid ();
  3044.     pid_t child;
  3045.   
  3046.     signal (SIGINT, catch);
  3047.   
  3048.     child = vfork ();
  3049.   
  3050.     if (child == 0) {
  3051. !     /* On sparc systems, changes by the child to local and incoming
  3052. !        argument registers are propagated back to the parent.
  3053. !        The compiler is told about this with #include <vfork.h>,
  3054. !        but some compilers (e.g. gcc -O) don't grok <vfork.h>.
  3055. !        Test for this by using lots of local variables, at least
  3056.          as many local variables as main has allocated so far
  3057.          including compiler temporaries.  4 locals are enough for
  3058.          gcc 1.40.3 on a sparc, but we use 8 to be safe.
  3059. --- 1719,1769 ----
  3060.   #ifdef HAVE_VFORK_H
  3061.   #include <vfork.h>
  3062.   #endif
  3063. + /* On sparc systems, changes by the child to local and incoming
  3064. +    argument registers are propagated back to the parent.
  3065. +    The compiler is told about this with #include <vfork.h>,
  3066. +    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
  3067. +    Test for this by using a static variable whose address
  3068. +    is put into a register that is clobbered by the vfork.  */
  3069. + static
  3070. + #ifdef __cplusplus
  3071. + sparc_address_test (int arg)
  3072. + #else
  3073. + sparc_address_test (arg) int arg;
  3074. + #endif
  3075. + {
  3076. +   static pid_t child;
  3077. +   if (!child) {
  3078. +     child = vfork ();
  3079. +     if (child < 0)
  3080. +       perror ("vfork");
  3081. +     if (!child) {
  3082. +       arg = getpid();
  3083. +       write(-1, "", 0);
  3084. +       _exit (arg);
  3085. +     }
  3086. +   }
  3087. + }
  3088.   static int signalled;
  3089.   static RETSIGTYPE catch (s) int s; { signalled = 1; }
  3090.   main() {
  3091.     pid_t parent = getpid ();
  3092.     pid_t child;
  3093.   
  3094. +   sparc_address_test ();
  3095. + #ifdef __amigados__
  3096. +   /* Force this test to succeed for AmigaDOS, which has a fairly good
  3097. +      vfork() emulation, but doesn't support fork() at all.  -fnf */
  3098. +   exit (0);
  3099. + #endif
  3100.     signal (SIGINT, catch);
  3101.   
  3102.     child = vfork ();
  3103.   
  3104.     if (child == 0) {
  3105. !     /* Here is another test for sparc vfork register problems.
  3106. !        This test uses lots of local variables, at least
  3107.          as many local variables as main has allocated so far
  3108.          including compiler temporaries.  4 locals are enough for
  3109.          gcc 1.40.3 on a sparc, but we use 8 to be safe.
  3110. ***************
  3111. *** 1583,1612 ****
  3112.     }
  3113.   }
  3114.   EOF
  3115. ! eval $ac_compile
  3116.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3117. !   :
  3118.   else
  3119. !   
  3120. ! {
  3121. ! test -n "$verbose" && \
  3122. ! echo "    defining" vfork to be "fork"
  3123. ! echo "#define" vfork "fork" >> confdefs.h
  3124. ! DEFS="$DEFS -Dvfork=fork"
  3125. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}vfork\${ac_dB}vfork\${ac_dC}fork\${ac_dD}
  3126. ! \${ac_uA}vfork\${ac_uB}vfork\${ac_uC}fork\${ac_uD}
  3127. ! \${ac_eA}vfork\${ac_eB}vfork\${ac_eC}fork\${ac_eD}
  3128. ! "
  3129. ! }
  3130.   fi
  3131.   rm -fr conftest*
  3132.   
  3133. ! cat > conftest.${ac_ext} <<EOF
  3134.   #include "confdefs.h"
  3135.   #include <stdio.h>
  3136.   /* If setvbuf has the reversed format, exit 0. */
  3137.   main () {
  3138.     /* This call has the arguments reversed.
  3139.        A reversed system may check and see that the address of main
  3140.        is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  3141. --- 1819,1861 ----
  3142.     }
  3143.   }
  3144.   EOF
  3145. ! eval $ac_link
  3146.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3147. !   ac_cv_func_vfork=yes
  3148.   else
  3149. !   ac_cv_func_vfork=no
  3150. ! fi
  3151.   fi
  3152.   rm -fr conftest*
  3153. + fi
  3154. + /bin/echo "$ac_t""$ac_cv_func_vfork" 1>&4
  3155. + if test $ac_cv_func_vfork = no; then
  3156. +   cat >> confdefs.h <<\EOF
  3157. + #define vfork fork
  3158. + EOF
  3159.   
  3160. ! fi
  3161. ! /bin/echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&4
  3162. ! if eval "test \"`echo '${'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
  3163. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3164. ! else
  3165. !   if test "$cross_compiling" = yes; then
  3166. !     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3167. ! else
  3168. ! cat > conftest.$ac_ext <<EOF
  3169. ! #line 1848 "configure"
  3170.   #include "confdefs.h"
  3171.   #include <stdio.h>
  3172.   /* If setvbuf has the reversed format, exit 0. */
  3173.   main () {
  3174. + #ifdef __amigados__
  3175. +   /* AmigaDOS is a non-reversed system.  Instead of the test program
  3176. +      getting a segfault (no memory protection), it causes enforcer hits
  3177. +      or other nastiness, so don't run the test program, just exit with
  3178. +      status 1 to indicate that it is non-reversed.  -fnf */
  3179. +   exit(1);
  3180. + #endif
  3181.     /* This call has the arguments reversed.
  3182.        A reversed system may check and see that the address of main
  3183.        is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  3184. ***************
  3185. *** 1616,2090 ****
  3186.     exit(0);            /* Non-reversed systems segv here.  */
  3187.   }
  3188.   EOF
  3189. ! eval $ac_compile
  3190.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3191. !   
  3192. ! {
  3193. ! test -n "$verbose" && \
  3194. ! echo "    defining SETVBUF_REVERSED"
  3195. ! echo "#define" SETVBUF_REVERSED "1" >> confdefs.h
  3196. ! DEFS="$DEFS -DSETVBUF_REVERSED=1"
  3197. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SETVBUF_REVERSED\${ac_dB}SETVBUF_REVERSED\${ac_dC}1\${ac_dD}
  3198. ! \${ac_uA}SETVBUF_REVERSED\${ac_uB}SETVBUF_REVERSED\${ac_uC}1\${ac_uD}
  3199. ! \${ac_eA}SETVBUF_REVERSED\${ac_eB}SETVBUF_REVERSED\${ac_eC}1\${ac_eD}
  3200. ! "
  3201. ! }
  3202.   fi
  3203.   rm -fr conftest*
  3204.   rm -f core
  3205.   
  3206.   # Some definitions of getloadavg require that the program be installed setgid.
  3207.   NEED_SETGID=false
  3208. ! ac_need_func=true
  3209.   
  3210.   # Check for the 4.4BSD definition of getloadavg.
  3211. ! ac_save_LIBS="${LIBS}"
  3212. ! LIBS="${LIBS} -lutil"
  3213. ! ac_have_lib=""
  3214. ! test -n "$silent" || echo "checking for -lutil"
  3215. ! cat > conftest.${ac_ext} <<EOF
  3216.   #include "confdefs.h"
  3217.   
  3218.   int main() { return 0; }
  3219. ! int t() { main();; return 0; }
  3220.   EOF
  3221. ! if eval $ac_compile; then
  3222.     rm -rf conftest*
  3223. !   ac_have_lib="1"
  3224. ! fi
  3225. ! rm -f conftest*
  3226. ! LIBS="${ac_save_LIBS}"
  3227. ! if test -n "${ac_have_lib}"; then
  3228. !    :; LIBS="$LIBS -lutil" ac_need_func=false
  3229.   else
  3230. !    :; 
  3231.   fi
  3232.   
  3233.   # Some systems with -lutil have (and need) -lkvm as well, some do not.
  3234. ! ac_save_LIBS="${LIBS}"
  3235. ! LIBS="${LIBS} -lkvm"
  3236. ! ac_have_lib=""
  3237. ! test -n "$silent" || echo "checking for -lkvm"
  3238. ! cat > conftest.${ac_ext} <<EOF
  3239.   #include "confdefs.h"
  3240.   
  3241.   int main() { return 0; }
  3242. ! int t() { main();; return 0; }
  3243.   EOF
  3244. ! if eval $ac_compile; then
  3245.     rm -rf conftest*
  3246. !   ac_have_lib="1"
  3247.   fi
  3248.   rm -f conftest*
  3249. ! LIBS="${ac_save_LIBS}"
  3250. ! if test -n "${ac_have_lib}"; then
  3251. !    :; LIBS="$LIBS -lkvm"
  3252.   else
  3253. !    :; 
  3254.   fi
  3255.   
  3256.   
  3257. ! if $ac_need_func; then
  3258.   # There is a commonly available library for RS/6000 AIX.
  3259.   # Since it is not a standard part of AIX, it might be installed locally.
  3260. ! LIBS_old="$LIBS"
  3261. ! LIBS="-L/usr/local/lib $LIBS"
  3262. ! ac_save_LIBS="${LIBS}"
  3263. ! LIBS="${LIBS} -lgetloadavg"
  3264. ! ac_have_lib=""
  3265. ! test -n "$silent" || echo "checking for -lgetloadavg"
  3266. ! cat > conftest.${ac_ext} <<EOF
  3267.   #include "confdefs.h"
  3268.   
  3269.   int main() { return 0; }
  3270. ! int t() { main();; return 0; }
  3271.   EOF
  3272. ! if eval $ac_compile; then
  3273.     rm -rf conftest*
  3274. !   ac_have_lib="1"
  3275.   fi
  3276.   rm -f conftest*
  3277. ! LIBS="${ac_save_LIBS}"
  3278. ! if test -n "${ac_have_lib}"; then
  3279. !    :; LIBS="$LIBS -lgetloadavg" ac_need_func=false
  3280.   else
  3281. !    :; LIBS="$LIBS_old"
  3282.   fi
  3283.   
  3284.   fi
  3285.   
  3286. ! # Make sure it is really in the library, if we think we found it at all.
  3287.   for ac_func in getloadavg
  3288.   do
  3289. ! test -n "$silent" || echo "checking for ${ac_func}"
  3290. ! cat > conftest.${ac_ext} <<EOF
  3291.   #include "confdefs.h"
  3292. ! #include <ctype.h>
  3293.   int main() { return 0; }
  3294. ! int t() { 
  3295.   /* The GNU C library defines this for functions which it implements
  3296.       to always fail with ENOSYS.  Some functions are actually named
  3297.       something starting with __ and the normal name is an alias.  */
  3298. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  3299.   choke me
  3300.   #else
  3301. ! /* Override any gcc2 internal prototype to avoid an error.  */
  3302. ! extern char ${ac_func}(); ${ac_func}();
  3303.   #endif
  3304.   ; return 0; }
  3305.   EOF
  3306. ! if eval $ac_compile; then
  3307. !   :
  3308.   else
  3309.     rm -rf conftest*
  3310. !   LIBOBJS="$LIBOBJS ${ac_func}.o"
  3311. ! test -n "$verbose" && echo "    using ${ac_func}.o instead"
  3312.   fi
  3313.   rm -f conftest*
  3314.   
  3315.   done
  3316.   
  3317.   
  3318. ! case "$LIBOBJS" in
  3319. ! *getloadavg*)
  3320. ! ac_need_func=true
  3321. ! test -n "$silent" || echo "checking for sys/dg_sys_info.h"
  3322. ! cat > conftest.${ac_ext} <<EOF
  3323.   #include "confdefs.h"
  3324.   #include <sys/dg_sys_info.h>
  3325.   EOF
  3326. ! # Some shells (Coherent) do redirections in the wrong order, so need
  3327. ! # the parens.
  3328. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3329.   if test -z "$ac_err"; then
  3330.     rm -rf conftest*
  3331. !   
  3332. ! {
  3333. ! test -n "$verbose" && \
  3334. ! echo "    defining DGUX"
  3335. ! echo "#define" DGUX "1" >> confdefs.h
  3336. ! DEFS="$DEFS -DDGUX=1"
  3337. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}DGUX\${ac_dB}DGUX\${ac_dC}1\${ac_dD}
  3338. ! \${ac_uA}DGUX\${ac_uB}DGUX\${ac_uC}1\${ac_uD}
  3339. ! \${ac_eA}DGUX\${ac_eB}DGUX\${ac_eC}1\${ac_eD}
  3340. ! "
  3341. ! }
  3342. !  ac_need_func=false
  3343. ! # Some versions of DGUX need -ldgc for dg_sys_info.
  3344. ! ac_save_LIBS="${LIBS}"
  3345. ! LIBS="${LIBS} -ldgc"
  3346. ! ac_have_lib=""
  3347. ! test -n "$silent" || echo "checking for -ldgc"
  3348. ! cat > conftest.${ac_ext} <<EOF
  3349.   #include "confdefs.h"
  3350.   
  3351.   int main() { return 0; }
  3352. ! int t() { main();; return 0; }
  3353.   EOF
  3354. ! if eval $ac_compile; then
  3355.     rm -rf conftest*
  3356. !   ac_have_lib="1"
  3357.   fi
  3358.   rm -f conftest*
  3359. ! LIBS="${ac_save_LIBS}"
  3360. ! if test -n "${ac_have_lib}"; then
  3361. !    
  3362. ! {
  3363. ! test -n "$verbose" && \
  3364. ! echo "    defining HAVE_LIBDGC"
  3365. ! echo "#define" HAVE_LIBDGC "1" >> confdefs.h
  3366. ! DEFS="$DEFS -DHAVE_LIBDGC=1"
  3367. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDGC\${ac_dB}HAVE_LIBDGC\${ac_dC}1\${ac_dD}
  3368. ! \${ac_uA}HAVE_LIBDGC\${ac_uB}HAVE_LIBDGC\${ac_uC}1\${ac_uD}
  3369. ! \${ac_eA}HAVE_LIBDGC\${ac_eB}HAVE_LIBDGC\${ac_eC}1\${ac_eD}
  3370. ! "
  3371. ! }
  3372.   
  3373. -    LIBS="${LIBS} -ldgc"
  3374.   fi
  3375.   
  3376.   
  3377.   fi
  3378. - rm -f conftest*
  3379.   
  3380. ! if $ac_need_func; then
  3381.   # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
  3382. ! # uses stabs), but it's still SVR4.  We cannot check for <elf.h> because
  3383.   # Irix 4.0.5F has the header but not the library.
  3384. ! ac_save_LIBS="${LIBS}"
  3385. ! LIBS="${LIBS} -lelf"
  3386. ! ac_have_lib=""
  3387. ! test -n "$silent" || echo "checking for -lelf"
  3388. ! cat > conftest.${ac_ext} <<EOF
  3389.   #include "confdefs.h"
  3390.   
  3391.   int main() { return 0; }
  3392. ! int t() { main();; return 0; }
  3393.   EOF
  3394. ! if eval $ac_compile; then
  3395.     rm -rf conftest*
  3396. !   ac_have_lib="1"
  3397.   fi
  3398.   rm -f conftest*
  3399. ! LIBS="${ac_save_LIBS}"
  3400. ! if test -n "${ac_have_lib}"; then
  3401. !    :; 
  3402. ! {
  3403. ! test -n "$verbose" && \
  3404. ! echo "    defining SVR4"
  3405. ! echo "#define" SVR4 "1" >> confdefs.h
  3406. ! DEFS="$DEFS -DSVR4=1"
  3407. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SVR4\${ac_dB}SVR4\${ac_dC}1\${ac_dD}
  3408. ! \${ac_uA}SVR4\${ac_uB}SVR4\${ac_uC}1\${ac_uD}
  3409. ! \${ac_eA}SVR4\${ac_eB}SVR4\${ac_eC}1\${ac_eD}
  3410. ! "
  3411. ! }
  3412. !  LIBS="$LIBS -lelf" ac_need_func=false
  3413. !   ac_save_LIBS="${LIBS}"
  3414. ! LIBS="${LIBS} -lkvm"
  3415. ! ac_have_lib=""
  3416. ! test -n "$silent" || echo "checking for -lkvm"
  3417. ! cat > conftest.${ac_ext} <<EOF
  3418.   #include "confdefs.h"
  3419.   
  3420.   int main() { return 0; }
  3421. ! int t() { main();; return 0; }
  3422.   EOF
  3423. ! if eval $ac_compile; then
  3424.     rm -rf conftest*
  3425. !   ac_have_lib="1"
  3426.   fi
  3427.   rm -f conftest*
  3428. ! LIBS="${ac_save_LIBS}"
  3429. ! if test -n "${ac_have_lib}"; then
  3430. !    :; LIBS="$LIBS -lkvm"
  3431.   else
  3432. !    :; 
  3433.   fi
  3434.   
  3435.   else
  3436. !    :; 
  3437.   fi
  3438.   
  3439.   fi
  3440. ! if $ac_need_func; then
  3441. ! test -n "$silent" || echo "checking for inq_stats/cpustats.h"
  3442. ! cat > conftest.${ac_ext} <<EOF
  3443.   #include "confdefs.h"
  3444.   #include <inq_stats/cpustats.h>
  3445.   EOF
  3446. ! # Some shells (Coherent) do redirections in the wrong order, so need
  3447. ! # the parens.
  3448. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3449.   if test -z "$ac_err"; then
  3450.     rm -rf conftest*
  3451. !   
  3452. ! {
  3453. ! test -n "$verbose" && \
  3454. ! echo "    defining UMAX4_3"
  3455. ! echo "#define" UMAX4_3 "1" >> confdefs.h
  3456. ! DEFS="$DEFS -DUMAX4_3=1"
  3457. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}UMAX4_3\${ac_dB}UMAX4_3\${ac_dC}1\${ac_dD}
  3458. ! \${ac_uA}UMAX4_3\${ac_uB}UMAX4_3\${ac_uC}1\${ac_uD}
  3459. ! \${ac_eA}UMAX4_3\${ac_eB}UMAX4_3\${ac_eC}1\${ac_eD}
  3460. ! "
  3461. ! }
  3462. !  
  3463. ! {
  3464. ! test -n "$verbose" && \
  3465. ! echo "    defining UMAX"
  3466. ! echo "#define" UMAX "1" >> confdefs.h
  3467. ! DEFS="$DEFS -DUMAX=1"
  3468. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}UMAX\${ac_dB}UMAX\${ac_dC}1\${ac_dD}
  3469. ! \${ac_uA}UMAX\${ac_uB}UMAX\${ac_uC}1\${ac_uD}
  3470. ! \${ac_eA}UMAX\${ac_eB}UMAX\${ac_eC}1\${ac_eD}
  3471. ! "
  3472. ! }
  3473.   
  3474. !   ac_need_func=false
  3475.   
  3476.   fi
  3477. - rm -f conftest*
  3478.   
  3479.   fi
  3480. ! if $ac_need_func; then
  3481. ! test -n "$silent" || echo "checking for sys/cpustats.h"
  3482. ! cat > conftest.${ac_ext} <<EOF
  3483.   #include "confdefs.h"
  3484.   #include <sys/cpustats.h>
  3485.   EOF
  3486. ! # Some shells (Coherent) do redirections in the wrong order, so need
  3487. ! # the parens.
  3488. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3489.   if test -z "$ac_err"; then
  3490.     rm -rf conftest*
  3491. !   
  3492. ! {
  3493. ! test -n "$verbose" && \
  3494. ! echo "    defining UMAX"
  3495. ! echo "#define" UMAX "1" >> confdefs.h
  3496. ! DEFS="$DEFS -DUMAX=1"
  3497. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}UMAX\${ac_dB}UMAX\${ac_dC}1\${ac_dD}
  3498. ! \${ac_uA}UMAX\${ac_uB}UMAX\${ac_uC}1\${ac_uD}
  3499. ! \${ac_eA}UMAX\${ac_eB}UMAX\${ac_eC}1\${ac_eD}
  3500. ! "
  3501. ! }
  3502. !  ac_need_func=false
  3503.   fi
  3504.   rm -f conftest*
  3505.   
  3506.   fi
  3507. ! if $ac_need_func; then
  3508.   for ac_hdr in mach/mach.h
  3509.   do
  3510. ! ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  3511. ! test -n "$silent" || echo "checking for ${ac_hdr}"
  3512. ! cat > conftest.${ac_ext} <<EOF
  3513. ! #include "confdefs.h"
  3514. ! #include <${ac_hdr}>
  3515. ! EOF
  3516. ! # Some shells (Coherent) do redirections in the wrong order, so need
  3517. ! # the parens.
  3518. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3519.   if test -z "$ac_err"; then
  3520.     rm -rf conftest*
  3521. !   
  3522. ! {
  3523. ! test -n "$verbose" && \
  3524. ! echo "    defining ${ac_tr_hdr}"
  3525. ! echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  3526. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  3527. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  3528. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  3529. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  3530. ! "
  3531. ! }
  3532.   fi
  3533.   rm -f conftest*
  3534.   done
  3535.   
  3536.   fi
  3537.   
  3538. ! test -n "$silent" || echo "checking for nlist.h"
  3539. ! cat > conftest.${ac_ext} <<EOF
  3540.   #include "confdefs.h"
  3541.   #include <nlist.h>
  3542.   EOF
  3543. ! # Some shells (Coherent) do redirections in the wrong order, so need
  3544. ! # the parens.
  3545. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3546.   if test -z "$ac_err"; then
  3547.     rm -rf conftest*
  3548. !   
  3549. ! {
  3550. ! test -n "$verbose" && \
  3551. ! echo "    defining NLIST_STRUCT"
  3552. ! echo "#define" NLIST_STRUCT "1" >> confdefs.h
  3553. ! DEFS="$DEFS -DNLIST_STRUCT=1"
  3554. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NLIST_STRUCT\${ac_dB}NLIST_STRUCT\${ac_dC}1\${ac_dD}
  3555. ! \${ac_uA}NLIST_STRUCT\${ac_uB}NLIST_STRUCT\${ac_uC}1\${ac_uD}
  3556. ! \${ac_eA}NLIST_STRUCT\${ac_eB}NLIST_STRUCT\${ac_eC}1\${ac_eD}
  3557. ! "
  3558. ! }
  3559.   
  3560. ! test -n "$silent" || echo "checking for n_un in struct nlist"
  3561. ! cat > conftest.${ac_ext} <<EOF
  3562.   #include "confdefs.h"
  3563.   #include <nlist.h>
  3564.   int main() { return 0; }
  3565. ! int t() { struct nlist n; n.n_un.n_name = 0;; return 0; }
  3566.   EOF
  3567.   if eval $ac_compile; then
  3568.     rm -rf conftest*
  3569. !   
  3570. ! {
  3571. ! test -n "$verbose" && \
  3572. ! echo "    defining NLIST_NAME_UNION"
  3573. ! echo "#define" NLIST_NAME_UNION "1" >> confdefs.h
  3574. ! DEFS="$DEFS -DNLIST_NAME_UNION=1"
  3575. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NLIST_NAME_UNION\${ac_dB}NLIST_NAME_UNION\${ac_dC}1\${ac_dD}
  3576. ! \${ac_uA}NLIST_NAME_UNION\${ac_uB}NLIST_NAME_UNION\${ac_uC}1\${ac_uD}
  3577. ! \${ac_eA}NLIST_NAME_UNION\${ac_eB}NLIST_NAME_UNION\${ac_eC}1\${ac_eD}
  3578. ! "
  3579. ! }
  3580.   fi
  3581.   rm -f conftest*
  3582.   
  3583.   
  3584.   fi
  3585. - rm -f conftest*
  3586.   
  3587. ! # Figure out whether we will need to install setgid.
  3588. ! cat > conftest.${ac_ext} <<EOF
  3589.   #include "confdefs.h"
  3590. ! dnl
  3591. ! #include "${srcdir}/getloadavg.c"
  3592.   #ifdef LDAV_PRIVILEGED
  3593.   Yowza Am I SETGID yet
  3594.   #endif
  3595.   EOF
  3596. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  3597. ! if egrep "Yowza Am I SETGID yet" conftest.out >/dev/null 2>&1; then
  3598.     rm -rf conftest*
  3599. !   
  3600. ! {
  3601. ! test -n "$verbose" && \
  3602. ! echo "    defining GETLOADAVG_PRIVILEGED"
  3603. ! echo "#define" GETLOADAVG_PRIVILEGED "1" >> confdefs.h
  3604. ! DEFS="$DEFS -DGETLOADAVG_PRIVILEGED=1"
  3605. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}GETLOADAVG_PRIVILEGED\${ac_dB}GETLOADAVG_PRIVILEGED\${ac_dC}1\${ac_dD}
  3606. ! \${ac_uA}GETLOADAVG_PRIVILEGED\${ac_uB}GETLOADAVG_PRIVILEGED\${ac_uC}1\${ac_uD}
  3607. ! \${ac_eA}GETLOADAVG_PRIVILEGED\${ac_eB}GETLOADAVG_PRIVILEGED\${ac_eC}1\${ac_eD}
  3608. ! "
  3609. ! }
  3610. !  NEED_SETGID=true
  3611.   fi
  3612.   rm -f conftest*
  3613. - ;;
  3614.   
  3615. ! *) 
  3616. ! {
  3617. ! test -n "$verbose" && \
  3618. ! echo "    defining HAVE_GETLOADAVG"
  3619. ! echo "#define" HAVE_GETLOADAVG "1" >> confdefs.h
  3620. ! DEFS="$DEFS -DHAVE_GETLOADAVG=1"
  3621. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GETLOADAVG\${ac_dB}HAVE_GETLOADAVG\${ac_dC}1\${ac_dD}
  3622. ! \${ac_uA}HAVE_GETLOADAVG\${ac_uB}HAVE_GETLOADAVG\${ac_uC}1\${ac_uD}
  3623. ! \${ac_eA}HAVE_GETLOADAVG\${ac_eB}HAVE_GETLOADAVG\${ac_eC}1\${ac_eD}
  3624. ! "
  3625. ! }
  3626. !  ;;
  3627. ! esac
  3628.   
  3629. ! if $NEED_SETGID; then
  3630. !   # Figure out what group owns /dev/kmem.
  3631. !   # The installed program will need to be setgid and owned by that group.
  3632. !   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
  3633.     ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
  3634.     # If we got an error (system does not support symlinks), try without -L.
  3635.     test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
  3636. !   KMEM_GROUP=`echo $ac_ls_output \
  3637.       | sed -ne 's/[     ][     ]*/ /g;
  3638.              s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
  3639.              / /s/.* //;p;'`
  3640.   fi
  3641.   
  3642. ! test -n "$silent" || echo "checking for strcoll"
  3643. ! cat > conftest.${ac_ext} <<EOF
  3644.   #include "confdefs.h"
  3645.   #include <string.h>
  3646.   main ()
  3647. --- 1865,2437 ----
  3648.     exit(0);            /* Non-reversed systems segv here.  */
  3649.   }
  3650.   EOF
  3651. ! eval $ac_link
  3652.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3653. !   ac_cv_func_setvbuf_reversed=yes
  3654. ! else
  3655. !   ac_cv_func_setvbuf_reversed=no
  3656. ! fi
  3657.   fi
  3658.   rm -fr conftest*
  3659.   rm -f core
  3660. + fi
  3661. + /bin/echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&4
  3662. + if test $ac_cv_func_setvbuf_reversed = yes; then
  3663. +   cat >> confdefs.h <<\EOF
  3664. + #define SETVBUF_REVERSED 1
  3665. + EOF
  3666. + fi
  3667.   
  3668.   # Some definitions of getloadavg require that the program be installed setgid.
  3669.   NEED_SETGID=false
  3670. ! ac_have_func=no
  3671.   
  3672.   # Check for the 4.4BSD definition of getloadavg.
  3673. ! /bin/echo $ac_n "checking for -lutil""... $ac_c" 1>&4
  3674. ! if eval "test \"`echo '${'ac_cv_lib_util'+set}'`\" = set"; then
  3675. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3676. ! else
  3677. !   ac_save_LIBS="$LIBS"
  3678. ! LIBS="$LIBS -lutil "
  3679. ! cat > conftest.$ac_ext <<EOF
  3680. ! #line 1899 "configure"
  3681.   #include "confdefs.h"
  3682.   
  3683.   int main() { return 0; }
  3684. ! int t() {
  3685. ! getloadavg()
  3686. ! ; return 0; }
  3687.   EOF
  3688. ! if eval $ac_link; then
  3689.     rm -rf conftest*
  3690. !   eval "ac_cv_lib_util=yes"
  3691.   else
  3692. !   rm -rf conftest*
  3693. !   eval "ac_cv_lib_util=no"
  3694.   fi
  3695. + rm -f conftest*
  3696. + LIBS="$ac_save_LIBS"
  3697.   
  3698. + fi
  3699. + if eval "test \"`echo '$ac_cv_lib_'util`\" = yes"; then
  3700. +   /bin/echo "$ac_t""yes" 1>&4
  3701. +   LIBS="$LIBS -lutil" ac_have_func=yes
  3702.   # Some systems with -lutil have (and need) -lkvm as well, some do not.
  3703. ! /bin/echo $ac_n "checking for -lkvm""... $ac_c" 1>&4
  3704. ! if eval "test \"`echo '${'ac_cv_lib_kvm'+set}'`\" = set"; then
  3705. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3706. ! else
  3707. !   ac_save_LIBS="$LIBS"
  3708. ! LIBS="$LIBS -lkvm "
  3709. ! cat > conftest.$ac_ext <<EOF
  3710. ! #line 1929 "configure"
  3711.   #include "confdefs.h"
  3712.   
  3713.   int main() { return 0; }
  3714. ! int t() {
  3715. ! kvm_open()
  3716. ! ; return 0; }
  3717.   EOF
  3718. ! if eval $ac_link; then
  3719.     rm -rf conftest*
  3720. !   eval "ac_cv_lib_kvm=yes"
  3721. ! else
  3722. !   rm -rf conftest*
  3723. !   eval "ac_cv_lib_kvm=no"
  3724.   fi
  3725.   rm -f conftest*
  3726. ! LIBS="$ac_save_LIBS"
  3727. ! fi
  3728. ! if eval "test \"`echo '$ac_cv_lib_'kvm`\" = yes"; then
  3729. !   /bin/echo "$ac_t""yes" 1>&4
  3730. !   LIBS="$LIBS -lkvm"
  3731. ! else
  3732. !   /bin/echo "$ac_t""no" 1>&4
  3733. ! fi
  3734.   else
  3735. !   /bin/echo "$ac_t""no" 1>&4
  3736.   fi
  3737.   
  3738.   
  3739. ! if test $ac_have_func = no; then
  3740.   # There is a commonly available library for RS/6000 AIX.
  3741.   # Since it is not a standard part of AIX, it might be installed locally.
  3742. ! ac_save_LIBS="$LIBS" LIBS="-L/local/lib $LIBS"
  3743. ! /bin/echo $ac_n "checking for -lgetloadavg""... $ac_c" 1>&4
  3744. ! if eval "test \"`echo '${'ac_cv_lib_getloadavg'+set}'`\" = set"; then
  3745. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3746. ! else
  3747. !   ac_save_LIBS="$LIBS"
  3748. ! LIBS="$LIBS -lgetloadavg "
  3749. ! cat > conftest.$ac_ext <<EOF
  3750. ! #line 1971 "configure"
  3751.   #include "confdefs.h"
  3752.   
  3753.   int main() { return 0; }
  3754. ! int t() {
  3755. ! getloadavg()
  3756. ! ; return 0; }
  3757.   EOF
  3758. ! if eval $ac_link; then
  3759.     rm -rf conftest*
  3760. !   eval "ac_cv_lib_getloadavg=yes"
  3761. ! else
  3762. !   rm -rf conftest*
  3763. !   eval "ac_cv_lib_getloadavg=no"
  3764.   fi
  3765.   rm -f conftest*
  3766. ! LIBS="$ac_save_LIBS"
  3767. ! fi
  3768. ! if eval "test \"`echo '$ac_cv_lib_'getloadavg`\" = yes"; then
  3769. !   /bin/echo "$ac_t""yes" 1>&4
  3770. !   LIBS="$LIBS -lgetloadavg"
  3771.   else
  3772. !   /bin/echo "$ac_t""no" 1>&4
  3773. ! LIBS="$ac_save_LIBS"
  3774.   fi
  3775.   
  3776.   fi
  3777.   
  3778. ! # Make sure it is really in the library, if we think we found it.
  3779.   for ac_func in getloadavg
  3780.   do
  3781. ! /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3782. ! if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3783. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3784. ! else
  3785. !   cat > conftest.$ac_ext <<EOF
  3786. ! #line 2008 "configure"
  3787.   #include "confdefs.h"
  3788. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3789. ! /* Override any gcc2 internal prototype to avoid an error.  */
  3790. ! char $ac_func(); 
  3791.   int main() { return 0; }
  3792. ! int t() {
  3793.   /* The GNU C library defines this for functions which it implements
  3794.       to always fail with ENOSYS.  Some functions are actually named
  3795.       something starting with __ and the normal name is an alias.  */
  3796. ! #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3797.   choke me
  3798.   #else
  3799. ! $ac_func();
  3800.   #endif
  3801.   ; return 0; }
  3802.   EOF
  3803. ! if eval $ac_link; then
  3804. !   rm -rf conftest*
  3805. !   eval "ac_cv_func_$ac_func=yes"
  3806.   else
  3807.     rm -rf conftest*
  3808. !   eval "ac_cv_func_$ac_func=no"
  3809.   fi
  3810.   rm -f conftest*
  3811.   
  3812. + fi
  3813. + if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3814. +   /bin/echo "$ac_t""yes" 1>&4
  3815. +   :
  3816. + else
  3817. +   /bin/echo "$ac_t""no" 1>&4
  3818. + LIBOBJS="$LIBOBJS ${ac_func}.o"
  3819. + fi
  3820.   done
  3821.   
  3822.   
  3823. ! if test $ac_cv_func_getloadavg = yes; then
  3824. !   cat >> confdefs.h <<\EOF
  3825. ! #define HAVE_GETLOADAVG 1
  3826. ! EOF
  3827. ! else
  3828. ! ac_have_func=no
  3829. ! ac_safe=`/bin/echo "sys/dg_sys_info.h" | tr './\055' '___'`
  3830. ! /bin/echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&4
  3831. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3832. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3833. ! else
  3834. !   cat > conftest.$ac_ext <<EOF
  3835. ! #line 2062 "configure"
  3836.   #include "confdefs.h"
  3837.   #include <sys/dg_sys_info.h>
  3838.   EOF
  3839. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3840. ! ac_err=`grep -v '^ *+' conftest.out`
  3841.   if test -z "$ac_err"; then
  3842.     rm -rf conftest*
  3843. !   eval "ac_cv_header_$ac_safe=yes"
  3844. ! else
  3845. !   /bin/echo "$ac_err" >&5
  3846. !   rm -rf conftest*
  3847. !   eval "ac_cv_header_$ac_safe=no"
  3848. ! fi
  3849. ! rm -f conftest*
  3850. ! fi
  3851. ! if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3852. !   /bin/echo "$ac_t""yes" 1>&4
  3853. !   ac_have_func=yes cat >> confdefs.h <<\EOF
  3854. ! #define DGUX 1
  3855. ! EOF
  3856. ! /bin/echo $ac_n "checking for -ldgc""... $ac_c" 1>&4
  3857. ! if eval "test \"`echo '${'ac_cv_lib_dgc'+set}'`\" = set"; then
  3858. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3859. ! else
  3860. !   ac_save_LIBS="$LIBS"
  3861. ! LIBS="$LIBS -ldgc "
  3862. ! cat > conftest.$ac_ext <<EOF
  3863. ! #line 2091 "configure"
  3864.   #include "confdefs.h"
  3865.   
  3866.   int main() { return 0; }
  3867. ! int t() {
  3868. ! dg_sys_info()
  3869. ! ; return 0; }
  3870.   EOF
  3871. ! if eval $ac_link; then
  3872.     rm -rf conftest*
  3873. !   eval "ac_cv_lib_dgc=yes"
  3874. ! else
  3875. !   rm -rf conftest*
  3876. !   eval "ac_cv_lib_dgc=no"
  3877.   fi
  3878.   rm -f conftest*
  3879. ! LIBS="$ac_save_LIBS"
  3880.   
  3881.   fi
  3882. + if eval "test \"`echo '$ac_cv_lib_'dgc`\" = yes"; then
  3883. +   /bin/echo "$ac_t""yes" 1>&4
  3884. +     ac_tr_lib=HAVE_LIB`/bin/echo dgc | tr '[a-z]' '[A-Z]'`
  3885. +   cat >> confdefs.h <<EOF
  3886. + #define $ac_tr_lib 1
  3887. + EOF
  3888.   
  3889. +   LIBS="$LIBS -ldgc"
  3890.   
  3891. + else
  3892. +   /bin/echo "$ac_t""no" 1>&4
  3893. + fi
  3894. + else
  3895. +   /bin/echo "$ac_t""no" 1>&4
  3896.   fi
  3897.   
  3898. ! if test $ac_have_func = no; then
  3899.   # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
  3900. ! # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
  3901.   # Irix 4.0.5F has the header but not the library.
  3902. ! /bin/echo $ac_n "checking for -lelf""... $ac_c" 1>&4
  3903. ! if eval "test \"`echo '${'ac_cv_lib_elf'+set}'`\" = set"; then
  3904. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3905. ! else
  3906. !   ac_save_LIBS="$LIBS"
  3907. ! LIBS="$LIBS -lelf "
  3908. ! cat > conftest.$ac_ext <<EOF
  3909. ! #line 2138 "configure"
  3910.   #include "confdefs.h"
  3911.   
  3912.   int main() { return 0; }
  3913. ! int t() {
  3914. ! elf_read()
  3915. ! ; return 0; }
  3916.   EOF
  3917. ! if eval $ac_link; then
  3918.     rm -rf conftest*
  3919. !   eval "ac_cv_lib_elf=yes"
  3920. ! else
  3921. !   rm -rf conftest*
  3922. !   eval "ac_cv_lib_elf=no"
  3923.   fi
  3924.   rm -f conftest*
  3925. ! LIBS="$ac_save_LIBS"
  3926. ! fi
  3927. ! if eval "test \"`echo '$ac_cv_lib_'elf`\" = yes"; then
  3928. !   /bin/echo "$ac_t""yes" 1>&4
  3929. !   LIBS="$LIBS -lelf" ac_have_func=yes cat >> confdefs.h <<\EOF
  3930. ! #define SVR4 1
  3931. ! EOF
  3932. !   /bin/echo $ac_n "checking for -lkvm""... $ac_c" 1>&4
  3933. ! if eval "test \"`echo '${'ac_cv_lib_kvm'+set}'`\" = set"; then
  3934. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3935. ! else
  3936. !   ac_save_LIBS="$LIBS"
  3937. ! LIBS="$LIBS -lkvm "
  3938. ! cat > conftest.$ac_ext <<EOF
  3939. ! #line 2170 "configure"
  3940.   #include "confdefs.h"
  3941.   
  3942.   int main() { return 0; }
  3943. ! int t() {
  3944. ! kvm_open()
  3945. ! ; return 0; }
  3946.   EOF
  3947. ! if eval $ac_link; then
  3948.     rm -rf conftest*
  3949. !   eval "ac_cv_lib_kvm=yes"
  3950. ! else
  3951. !   rm -rf conftest*
  3952. !   eval "ac_cv_lib_kvm=no"
  3953.   fi
  3954.   rm -f conftest*
  3955. ! LIBS="$ac_save_LIBS"
  3956. ! fi
  3957. ! if eval "test \"`echo '$ac_cv_lib_'kvm`\" = yes"; then
  3958. !   /bin/echo "$ac_t""yes" 1>&4
  3959. !   LIBS="$LIBS -lkvm"
  3960.   else
  3961. !   /bin/echo "$ac_t""no" 1>&4
  3962.   fi
  3963.   
  3964.   else
  3965. !   /bin/echo "$ac_t""no" 1>&4
  3966.   fi
  3967.   
  3968.   fi
  3969. ! if test $ac_have_func = no; then
  3970. ! ac_safe=`/bin/echo "inq_stats/cpustats.h" | tr './\055' '___'`
  3971. ! /bin/echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&4
  3972. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3973. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3974. ! else
  3975. !   cat > conftest.$ac_ext <<EOF
  3976. ! #line 2208 "configure"
  3977.   #include "confdefs.h"
  3978.   #include <inq_stats/cpustats.h>
  3979.   EOF
  3980. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3981. ! ac_err=`grep -v '^ *+' conftest.out`
  3982.   if test -z "$ac_err"; then
  3983.     rm -rf conftest*
  3984. !   eval "ac_cv_header_$ac_safe=yes"
  3985. ! else
  3986. !   /bin/echo "$ac_err" >&5
  3987. !   rm -rf conftest*
  3988. !   eval "ac_cv_header_$ac_safe=no"
  3989. ! fi
  3990. ! rm -f conftest*
  3991. ! fi
  3992. ! if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3993. !   /bin/echo "$ac_t""yes" 1>&4
  3994. !   ac_have_func=yes cat >> confdefs.h <<\EOF
  3995. ! #define UMAX 1
  3996. ! EOF
  3997.   
  3998. !    cat >> confdefs.h <<\EOF
  3999. ! #define UMAX4_3 1
  4000. ! EOF
  4001.   
  4002. + else
  4003. +   /bin/echo "$ac_t""no" 1>&4
  4004.   fi
  4005.   
  4006.   fi
  4007. ! if test $ac_have_func = no; then
  4008. ! ac_safe=`/bin/echo "sys/cpustats.h" | tr './\055' '___'`
  4009. ! /bin/echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&4
  4010. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4011. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4012. ! else
  4013. !   cat > conftest.$ac_ext <<EOF
  4014. ! #line 2246 "configure"
  4015.   #include "confdefs.h"
  4016.   #include <sys/cpustats.h>
  4017.   EOF
  4018. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4019. ! ac_err=`grep -v '^ *+' conftest.out`
  4020.   if test -z "$ac_err"; then
  4021.     rm -rf conftest*
  4022. !   eval "ac_cv_header_$ac_safe=yes"
  4023. ! else
  4024. !   /bin/echo "$ac_err" >&5
  4025. !   rm -rf conftest*
  4026. !   eval "ac_cv_header_$ac_safe=no"
  4027.   fi
  4028.   rm -f conftest*
  4029. + fi
  4030. + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4031. +   /bin/echo "$ac_t""yes" 1>&4
  4032. +   ac_have_func=yes cat >> confdefs.h <<\EOF
  4033. + #define UMAX 1
  4034. + EOF
  4035. + else
  4036. +   /bin/echo "$ac_t""no" 1>&4
  4037. + fi
  4038.   
  4039.   fi
  4040. ! if test $ac_have_func = no; then
  4041.   for ac_hdr in mach/mach.h
  4042.   do
  4043. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  4044. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  4045. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4046. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4047. ! else
  4048. !   cat > conftest.$ac_ext <<EOF
  4049. ! #line 2282 "configure"
  4050. ! #include "confdefs.h"
  4051. ! #include <$ac_hdr>
  4052. ! EOF
  4053. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4054. ! ac_err=`grep -v '^ *+' conftest.out`
  4055.   if test -z "$ac_err"; then
  4056.     rm -rf conftest*
  4057. !   eval "ac_cv_header_$ac_safe=yes"
  4058. ! else
  4059. !   /bin/echo "$ac_err" >&5
  4060. !   rm -rf conftest*
  4061. !   eval "ac_cv_header_$ac_safe=no"
  4062.   fi
  4063.   rm -f conftest*
  4064. + fi
  4065. + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4066. +   /bin/echo "$ac_t""yes" 1>&4
  4067. +     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  4068. +   cat >> confdefs.h <<EOF
  4069. + #define $ac_tr_hdr 1
  4070. + EOF
  4071. +  
  4072. + else
  4073. +   /bin/echo "$ac_t""no" 1>&4
  4074. + fi
  4075.   done
  4076.   
  4077.   fi
  4078.   
  4079. ! ac_safe=`/bin/echo "nlist.h" | tr './\055' '___'`
  4080. ! /bin/echo $ac_n "checking for nlist.h""... $ac_c" 1>&4
  4081. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4082. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4083. ! else
  4084. !   cat > conftest.$ac_ext <<EOF
  4085. ! #line 2318 "configure"
  4086.   #include "confdefs.h"
  4087.   #include <nlist.h>
  4088.   EOF
  4089. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4090. ! ac_err=`grep -v '^ *+' conftest.out`
  4091.   if test -z "$ac_err"; then
  4092.     rm -rf conftest*
  4093. !   eval "ac_cv_header_$ac_safe=yes"
  4094. ! else
  4095. !   /bin/echo "$ac_err" >&5
  4096. !   rm -rf conftest*
  4097. !   eval "ac_cv_header_$ac_safe=no"
  4098. ! fi
  4099. ! rm -f conftest*
  4100. ! fi
  4101. ! if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4102. !   /bin/echo "$ac_t""yes" 1>&4
  4103. !   cat >> confdefs.h <<\EOF
  4104. ! #define NLIST_STRUCT 1
  4105. ! EOF
  4106.   
  4107. ! /bin/echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&4
  4108. ! if eval "test \"`echo '${'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
  4109. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4110. ! else
  4111. !   cat > conftest.$ac_ext <<EOF
  4112. ! #line 2345 "configure"
  4113.   #include "confdefs.h"
  4114.   #include <nlist.h>
  4115.   int main() { return 0; }
  4116. ! int t() {
  4117. ! struct nlist n; n.n_un.n_name = 0;
  4118. ! ; return 0; }
  4119.   EOF
  4120.   if eval $ac_compile; then
  4121.     rm -rf conftest*
  4122. !   ac_cv_struct_nlist_n_un=yes
  4123. ! else
  4124. !   rm -rf conftest*
  4125. !   ac_cv_struct_nlist_n_un=no
  4126.   fi
  4127.   rm -f conftest*
  4128.   
  4129. + fi
  4130. + /bin/echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&4
  4131. + if test $ac_cv_struct_nlist_n_un = yes; then
  4132. +   cat >> confdefs.h <<\EOF
  4133. + #define NLIST_NAME_UNION 1
  4134. + EOF
  4135. + fi
  4136.   
  4137. + else
  4138. +   /bin/echo "$ac_t""no" 1>&4
  4139.   fi
  4140.   
  4141. ! /bin/echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&4
  4142. ! if eval "test \"`echo '${'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
  4143. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4144. ! else
  4145. !   cat > conftest.$ac_ext <<EOF
  4146. ! #line 2380 "configure"
  4147.   #include "confdefs.h"
  4148. ! #include "$srcdir/getloadavg.c"
  4149.   #ifdef LDAV_PRIVILEGED
  4150.   Yowza Am I SETGID yet
  4151.   #endif
  4152.   EOF
  4153. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4154. !   egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
  4155.     rm -rf conftest*
  4156. !   ac_cv_func_getloadavg_setgid=yes
  4157. ! else
  4158. !   rm -rf conftest*
  4159. !   ac_cv_func_getloadavg_setgid=no
  4160.   fi
  4161.   rm -f conftest*
  4162.   
  4163. ! fi
  4164. ! /bin/echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&4
  4165. ! if test $ac_cv_func_getloadavg_setgid = yes; then
  4166. !   NEED_SETGID=true cat >> confdefs.h <<\EOF
  4167. ! #define GETLOADAVG_PRIVILEGED 1
  4168. ! EOF
  4169. ! fi
  4170. ! fi # Do not have getloadavg in system libraries.
  4171.   
  4172. ! if test "$NEED_SETGID" = true; then
  4173. !   /bin/echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&4
  4174. ! if eval "test \"`echo '${'ac_cv_group_kmem'+set}'`\" = set"; then
  4175. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4176. ! else
  4177. !     # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
  4178.     ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
  4179.     # If we got an error (system does not support symlinks), try without -L.
  4180.     test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
  4181. !   ac_cv_group_kmem=`/bin/echo $ac_ls_output \
  4182.       | sed -ne 's/[     ][     ]*/ /g;
  4183.              s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
  4184.              / /s/.* //;p;'`
  4185. + fi
  4186. +   KMEM_GROUP=$ac_cv_group_kmem
  4187. +   /bin/echo "$ac_t""$KMEM_GROUP" 1>&4
  4188.   fi
  4189.   
  4190. ! /bin/echo $ac_n "checking for strcoll""... $ac_c" 1>&4
  4191. ! if eval "test \"`echo '${'ac_cv_func_strcoll'+set}'`\" = set"; then
  4192. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4193. ! else
  4194. !   if test "$cross_compiling" = yes; then
  4195. !   ac_cv_func_strcoll=no
  4196. ! else
  4197. ! cat > conftest.$ac_ext <<EOF
  4198. ! #line 2435 "configure"
  4199.   #include "confdefs.h"
  4200.   #include <string.h>
  4201.   main ()
  4202. ***************
  4203. *** 2094,2191 ****
  4204.       strcoll ("123", "456") >= 0);
  4205.   }
  4206.   EOF
  4207. ! eval $ac_compile
  4208.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4209. !   
  4210. ! {
  4211. ! test -n "$verbose" && \
  4212. ! echo "    defining HAVE_STRCOLL"
  4213. ! echo "#define" HAVE_STRCOLL "1" >> confdefs.h
  4214. ! DEFS="$DEFS -DHAVE_STRCOLL=1"
  4215. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRCOLL\${ac_dB}HAVE_STRCOLL\${ac_dC}1\${ac_dD}
  4216. ! \${ac_uA}HAVE_STRCOLL\${ac_uB}HAVE_STRCOLL\${ac_uC}1\${ac_uD}
  4217. ! \${ac_eA}HAVE_STRCOLL\${ac_eB}HAVE_STRCOLL\${ac_eC}1\${ac_eD}
  4218. ! "
  4219. ! }
  4220.   fi
  4221.   rm -fr conftest*
  4222.   
  4223.   for ac_hdr in sys/wait.h
  4224.   do
  4225. ! ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  4226. ! test -n "$silent" || echo "checking for ${ac_hdr}"
  4227. ! cat > conftest.${ac_ext} <<EOF
  4228. ! #include "confdefs.h"
  4229. ! #include <${ac_hdr}>
  4230. ! EOF
  4231. ! # Some shells (Coherent) do redirections in the wrong order, so need
  4232. ! # the parens.
  4233. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4234.   if test -z "$ac_err"; then
  4235.     rm -rf conftest*
  4236. !   
  4237. ! {
  4238. ! test -n "$verbose" && \
  4239. ! echo "    defining ${ac_tr_hdr}"
  4240. ! echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  4241. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  4242. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  4243. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  4244. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  4245. ! "
  4246. ! }
  4247.   fi
  4248.   rm -f conftest*
  4249.   done
  4250.    for ac_func in waitpid wait3
  4251.   do
  4252. ! ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  4253. ! test -n "$silent" || echo "checking for ${ac_func}"
  4254. ! cat > conftest.${ac_ext} <<EOF
  4255.   #include "confdefs.h"
  4256. ! #include <ctype.h>
  4257.   int main() { return 0; }
  4258. ! int t() { 
  4259.   /* The GNU C library defines this for functions which it implements
  4260.       to always fail with ENOSYS.  Some functions are actually named
  4261.       something starting with __ and the normal name is an alias.  */
  4262. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  4263.   choke me
  4264.   #else
  4265. ! /* Override any gcc2 internal prototype to avoid an error.  */
  4266. ! extern char ${ac_func}(); ${ac_func}();
  4267.   #endif
  4268.   ; return 0; }
  4269.   EOF
  4270. ! if eval $ac_compile; then
  4271.     rm -rf conftest*
  4272. !   {
  4273. ! test -n "$verbose" && \
  4274. ! echo "    defining ${ac_tr_func}"
  4275. ! echo "#define" ${ac_tr_func} "1" >> confdefs.h
  4276. ! DEFS="$DEFS -D${ac_tr_func}=1"
  4277. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  4278. ! \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  4279. ! \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  4280. ! "
  4281. ! }
  4282.   fi
  4283.   rm -f conftest*
  4284.   done
  4285.   
  4286. ! test -n "$silent" || echo "checking for union wait"
  4287. ! cat > conftest.${ac_ext} <<EOF
  4288.   #include "confdefs.h"
  4289.   #include <sys/types.h>
  4290.   #include <sys/wait.h>
  4291.   int main() { return 0; }
  4292. ! int t() { union wait status; int pid; pid = wait (&status);
  4293.   #ifdef WEXITSTATUS
  4294.   /* Some POSIXoid systems have both the new-style macros and the old
  4295.      union wait type, and they do not work together.  If union wait
  4296. --- 2441,2557 ----
  4297.       strcoll ("123", "456") >= 0);
  4298.   }
  4299.   EOF
  4300. ! eval $ac_link
  4301.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4302. !   ac_cv_func_strcoll=yes
  4303. ! else
  4304. !   ac_cv_func_strcoll=no
  4305. ! fi
  4306.   fi
  4307.   rm -fr conftest*
  4308. + fi
  4309. + /bin/echo "$ac_t""$ac_cv_func_strcoll" 1>&4
  4310. + if test $ac_cv_func_strcoll = yes; then
  4311. +   cat >> confdefs.h <<\EOF
  4312. + #define HAVE_STRCOLL 1
  4313. + EOF
  4314. + fi
  4315.   
  4316.   for ac_hdr in sys/wait.h
  4317.   do
  4318. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  4319. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  4320. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4321. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4322. ! else
  4323. !   cat > conftest.$ac_ext <<EOF
  4324. ! #line 2471 "configure"
  4325. ! #include "confdefs.h"
  4326. ! #include <$ac_hdr>
  4327. ! EOF
  4328. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4329. ! ac_err=`grep -v '^ *+' conftest.out`
  4330.   if test -z "$ac_err"; then
  4331.     rm -rf conftest*
  4332. !   eval "ac_cv_header_$ac_safe=yes"
  4333. ! else
  4334. !   /bin/echo "$ac_err" >&5
  4335. !   rm -rf conftest*
  4336. !   eval "ac_cv_header_$ac_safe=no"
  4337.   fi
  4338.   rm -f conftest*
  4339. + fi
  4340. + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4341. +   /bin/echo "$ac_t""yes" 1>&4
  4342. +     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  4343. +   cat >> confdefs.h <<EOF
  4344. + #define $ac_tr_hdr 1
  4345. + EOF
  4346. +  
  4347. + else
  4348. +   /bin/echo "$ac_t""no" 1>&4
  4349. + fi
  4350.   done
  4351.    for ac_func in waitpid wait3
  4352.   do
  4353. ! /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  4354. ! if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4355. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4356. ! else
  4357. !   cat > conftest.$ac_ext <<EOF
  4358. ! #line 2505 "configure"
  4359.   #include "confdefs.h"
  4360. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  4361. ! /* Override any gcc2 internal prototype to avoid an error.  */
  4362. ! char $ac_func(); 
  4363.   int main() { return 0; }
  4364. ! int t() {
  4365.   /* The GNU C library defines this for functions which it implements
  4366.       to always fail with ENOSYS.  Some functions are actually named
  4367.       something starting with __ and the normal name is an alias.  */
  4368. ! #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4369.   choke me
  4370.   #else
  4371. ! $ac_func();
  4372.   #endif
  4373.   ; return 0; }
  4374.   EOF
  4375. ! if eval $ac_link; then
  4376.     rm -rf conftest*
  4377. !   eval "ac_cv_func_$ac_func=yes"
  4378. ! else
  4379. !   rm -rf conftest*
  4380. !   eval "ac_cv_func_$ac_func=no"
  4381.   fi
  4382.   rm -f conftest*
  4383. + fi
  4384. + if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4385. +   /bin/echo "$ac_t""yes" 1>&4
  4386. +     ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  4387. +   cat >> confdefs.h <<EOF
  4388. + #define $ac_tr_func 1
  4389. + EOF
  4390. +  
  4391. + else
  4392. +   /bin/echo "$ac_t""no" 1>&4
  4393. + fi
  4394.   done
  4395.   
  4396. ! echo "checking for union wait" 1>&4
  4397. ! cat > conftest.$ac_ext <<EOF
  4398. ! #line 2549 "configure"
  4399.   #include "confdefs.h"
  4400.   #include <sys/types.h>
  4401.   #include <sys/wait.h>
  4402.   int main() { return 0; }
  4403. ! int t() {
  4404. ! union wait status; int pid; pid = wait (&status);
  4405.   #ifdef WEXITSTATUS
  4406.   /* Some POSIXoid systems have both the new-style macros and the old
  4407.      union wait type, and they do not work together.  If union wait
  4408. ***************
  4409. *** 2196,2329 ****
  4410.   /* Make sure union wait works with waitpid.  */
  4411.   pid = waitpid (-1, &status, 0);
  4412.   #endif
  4413.   ; return 0; }
  4414.   EOF
  4415. ! if eval $ac_compile; then
  4416.     rm -rf conftest*
  4417. !   
  4418. ! {
  4419. ! test -n "$verbose" && \
  4420. ! echo "    defining HAVE_UNION_WAIT"
  4421. ! echo "#define" HAVE_UNION_WAIT "1" >> confdefs.h
  4422. ! DEFS="$DEFS -DHAVE_UNION_WAIT=1"
  4423. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_UNION_WAIT\${ac_dB}HAVE_UNION_WAIT\${ac_dC}1\${ac_dD}
  4424. ! \${ac_uA}HAVE_UNION_WAIT\${ac_uB}HAVE_UNION_WAIT\${ac_uC}1\${ac_uD}
  4425. ! \${ac_eA}HAVE_UNION_WAIT\${ac_eB}HAVE_UNION_WAIT\${ac_eC}1\${ac_eD}
  4426. ! "
  4427. ! }
  4428.   
  4429.   fi
  4430.   rm -f conftest*
  4431.   
  4432.   
  4433. ! test -n "$silent" || echo "checking for sys_siglist declaration in signal.h or unistd.h"
  4434. ! cat > conftest.${ac_ext} <<EOF
  4435.   #include "confdefs.h"
  4436.   #include <signal.h>
  4437. ! /* NetBSD declares sys_siglist in <unistd.h>.  */
  4438.   #ifdef HAVE_UNISTD_H
  4439.   #include <unistd.h>
  4440.   #endif
  4441.   int main() { return 0; }
  4442. ! int t() { char *msg = *(sys_siglist + 1);; return 0; }
  4443.   EOF
  4444.   if eval $ac_compile; then
  4445.     rm -rf conftest*
  4446. !   
  4447. ! {
  4448. ! test -n "$verbose" && \
  4449. ! echo "    defining SYS_SIGLIST_DECLARED"
  4450. ! echo "#define" SYS_SIGLIST_DECLARED "1" >> confdefs.h
  4451. ! DEFS="$DEFS -DSYS_SIGLIST_DECLARED=1"
  4452. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYS_SIGLIST_DECLARED\${ac_dB}SYS_SIGLIST_DECLARED\${ac_dC}1\${ac_dD}
  4453. ! \${ac_uA}SYS_SIGLIST_DECLARED\${ac_uB}SYS_SIGLIST_DECLARED\${ac_uC}1\${ac_uD}
  4454. ! \${ac_eA}SYS_SIGLIST_DECLARED\${ac_eB}SYS_SIGLIST_DECLARED\${ac_eC}1\${ac_eD}
  4455. ! "
  4456. ! }
  4457.   
  4458.   
  4459.   fi
  4460. - rm -f conftest*
  4461.   
  4462.   
  4463.   # The presence of the following is not meant to imply
  4464.   # that make necessarily works on those systems.
  4465. ! ac_save_LIBS="${LIBS}"
  4466. ! LIBS="${LIBS} -lseq"
  4467. ! ac_have_lib=""
  4468. ! test -n "$silent" || echo "checking for -lseq"
  4469. ! cat > conftest.${ac_ext} <<EOF
  4470.   #include "confdefs.h"
  4471.   
  4472.   int main() { return 0; }
  4473. ! int t() { main();; return 0; }
  4474.   EOF
  4475. ! if eval $ac_compile; then
  4476.     rm -rf conftest*
  4477. !   ac_have_lib="1"
  4478.   fi
  4479.   rm -f conftest*
  4480. ! LIBS="${ac_save_LIBS}"
  4481. ! if test -n "${ac_have_lib}"; then
  4482. !    :; LIBS="$LIBS -lseq"
  4483.   else
  4484. !    :; 
  4485.   fi
  4486.   
  4487.   
  4488. ! test -n "$silent" || echo "checking for Xenix"
  4489. ! cat > conftest.${ac_ext} <<EOF
  4490.   #include "confdefs.h"
  4491.   #if defined(M_XENIX) && !defined(M_UNIX)
  4492.     yes
  4493.   #endif
  4494.   
  4495.   EOF
  4496. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  4497. ! if egrep "yes" conftest.out >/dev/null 2>&1; then
  4498.     rm -rf conftest*
  4499. !   XENIX=1
  4500.   fi
  4501.   rm -f conftest*
  4502.   
  4503. ! if test -n "$XENIX"; then
  4504.     LIBS="$LIBS -lx"
  4505. -   case "$DEFS" in
  4506. -   *SYSNDIR*) ;;
  4507. -   *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx.
  4508. -   esac
  4509.   fi
  4510.   
  4511. ! ac_save_LIBS="${LIBS}"
  4512. ! LIBS="${LIBS} -lsun"
  4513. ! ac_have_lib=""
  4514. ! test -n "$silent" || echo "checking for -lsun"
  4515. ! cat > conftest.${ac_ext} <<EOF
  4516.   #include "confdefs.h"
  4517.   
  4518.   int main() { return 0; }
  4519. ! int t() { main();; return 0; }
  4520.   EOF
  4521. ! if eval $ac_compile; then
  4522.     rm -rf conftest*
  4523. !   ac_have_lib="1"
  4524.   fi
  4525.   rm -f conftest*
  4526. ! LIBS="${ac_save_LIBS}"
  4527. ! if test -n "${ac_have_lib}"; then
  4528. !    :; LIBS="$LIBS -lsun"
  4529.   else
  4530. !    :; 
  4531.   fi
  4532.   
  4533.   
  4534.   
  4535.    REMOTE=stub
  4536. ! # check whether --with-customs or --without-customs was given.
  4537.   withval="$with_customs"
  4538.   if test -n "$withval"; then
  4539.     REMOTE=cstms
  4540. --- 2562,2715 ----
  4541.   /* Make sure union wait works with waitpid.  */
  4542.   pid = waitpid (-1, &status, 0);
  4543.   #endif
  4544.   ; return 0; }
  4545.   EOF
  4546. ! if eval $ac_link; then
  4547.     rm -rf conftest*
  4548. !   cat >> confdefs.h <<\EOF
  4549. ! #define HAVE_UNION_WAIT 1
  4550. ! EOF
  4551.   
  4552.   fi
  4553.   rm -f conftest*
  4554.   
  4555.   
  4556. ! /bin/echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&4
  4557. ! if eval "test \"`echo '${'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
  4558. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4559. ! else
  4560. !   cat > conftest.$ac_ext <<EOF
  4561. ! #line 2584 "configure"
  4562.   #include "confdefs.h"
  4563. + #include <sys/types.h>
  4564.   #include <signal.h>
  4565. ! /* NetBSD declares sys_siglist in unistd.h.  */
  4566.   #ifdef HAVE_UNISTD_H
  4567.   #include <unistd.h>
  4568.   #endif
  4569.   int main() { return 0; }
  4570. ! int t() {
  4571. ! char *msg = *(sys_siglist + 1);
  4572. ! ; return 0; }
  4573.   EOF
  4574.   if eval $ac_compile; then
  4575.     rm -rf conftest*
  4576. !   ac_cv_decl_sys_siglist=yes
  4577. ! else
  4578. !   rm -rf conftest*
  4579. !   ac_cv_decl_sys_siglist=no
  4580. ! fi
  4581. ! rm -f conftest*
  4582.   
  4583. + fi
  4584. + /bin/echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&4
  4585. + if test $ac_cv_decl_sys_siglist = yes; then
  4586. +   cat >> confdefs.h <<\EOF
  4587. + #define SYS_SIGLIST_DECLARED 1
  4588. + EOF
  4589.   
  4590.   fi
  4591.   
  4592.   
  4593.   # The presence of the following is not meant to imply
  4594.   # that make necessarily works on those systems.
  4595. ! /bin/echo $ac_n "checking for -lseq""... $ac_c" 1>&4
  4596. ! if eval "test \"`echo '${'ac_cv_lib_seq'+set}'`\" = set"; then
  4597. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4598. ! else
  4599. !   ac_save_LIBS="$LIBS"
  4600. ! LIBS="$LIBS -lseq "
  4601. ! cat > conftest.$ac_ext <<EOF
  4602. ! #line 2625 "configure"
  4603.   #include "confdefs.h"
  4604.   
  4605.   int main() { return 0; }
  4606. ! int t() {
  4607. ! getmntent()
  4608. ! ; return 0; }
  4609.   EOF
  4610. ! if eval $ac_link; then
  4611.     rm -rf conftest*
  4612. !   eval "ac_cv_lib_seq=yes"
  4613. ! else
  4614. !   rm -rf conftest*
  4615. !   eval "ac_cv_lib_seq=no"
  4616.   fi
  4617.   rm -f conftest*
  4618. ! LIBS="$ac_save_LIBS"
  4619. ! fi
  4620. ! if eval "test \"`echo '$ac_cv_lib_'seq`\" = yes"; then
  4621. !   /bin/echo "$ac_t""yes" 1>&4
  4622. !   LIBS="$LIBS -lseq"
  4623.   else
  4624. !   /bin/echo "$ac_t""no" 1>&4
  4625.   fi
  4626.   
  4627.   
  4628. ! /bin/echo $ac_n "checking for Xenix""... $ac_c" 1>&4
  4629. ! cat > conftest.$ac_ext <<EOF
  4630. ! #line 2654 "configure"
  4631.   #include "confdefs.h"
  4632.   #if defined(M_XENIX) && !defined(M_UNIX)
  4633.     yes
  4634.   #endif
  4635.   
  4636.   EOF
  4637. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4638. !   egrep "yes" >/dev/null 2>&1; then
  4639.     rm -rf conftest*
  4640. !   /bin/echo "$ac_t""yes" 1>&4; XENIX=yes
  4641. ! else
  4642. !   rm -rf conftest*
  4643. !   /bin/echo "$ac_t""no" 1>&4; XENIX=
  4644.   fi
  4645.   rm -f conftest*
  4646.   
  4647. ! if test "$XENIX" = yes; then
  4648. !   # Make sure -ldir precedes -lx.
  4649. !   test $ac_header_dirent = dirent.h && LIBS="$LIBS -ldir"
  4650.     LIBS="$LIBS -lx"
  4651.   fi
  4652.   
  4653. ! /bin/echo $ac_n "checking for -lsun""... $ac_c" 1>&4
  4654. ! if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
  4655. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4656. ! else
  4657. !   ac_save_LIBS="$LIBS"
  4658. ! LIBS="$LIBS -lsun "
  4659. ! cat > conftest.$ac_ext <<EOF
  4660. ! #line 2684 "configure"
  4661.   #include "confdefs.h"
  4662.   
  4663.   int main() { return 0; }
  4664. ! int t() {
  4665. ! getmntent()
  4666. ! ; return 0; }
  4667.   EOF
  4668. ! if eval $ac_link; then
  4669.     rm -rf conftest*
  4670. !   eval "ac_cv_lib_sun=yes"
  4671. ! else
  4672. !   rm -rf conftest*
  4673. !   eval "ac_cv_lib_sun=no"
  4674.   fi
  4675.   rm -f conftest*
  4676. ! LIBS="$ac_save_LIBS"
  4677. ! fi
  4678. ! if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
  4679. !   /bin/echo "$ac_t""yes" 1>&4
  4680. !   LIBS="$LIBS -lsun"
  4681.   else
  4682. !   /bin/echo "$ac_t""no" 1>&4
  4683.   fi
  4684.   
  4685.   
  4686.   
  4687.    REMOTE=stub
  4688. ! # Check whether --with-customs or --without-customs was given.
  4689.   withval="$with_customs"
  4690.   if test -n "$withval"; then
  4691.     REMOTE=cstms
  4692. ***************
  4693. *** 2332,2403 ****
  4694.   
  4695.   
  4696.   echo checking for location of SCCS get command
  4697. ! if test -f /usr/sccs/get; then
  4698.     SCCS_GET=/usr/sccs/get
  4699. !   
  4700. ! {
  4701. ! test -n "$verbose" && \
  4702. ! echo "    defining" SCCS_GET to be ""/usr/sccs/get""
  4703. ! echo "#define" SCCS_GET ""/usr/sccs/get"" >> confdefs.h
  4704. ! DEFS="$DEFS -DSCCS_GET="/usr/sccs/get""
  4705. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SCCS_GET\${ac_dB}SCCS_GET\${ac_dC}\"/usr/sccs/get\"\${ac_dD}
  4706. ! \${ac_uA}SCCS_GET\${ac_uB}SCCS_GET\${ac_uC}\"/usr/sccs/get\"\${ac_uD}
  4707. ! \${ac_eA}SCCS_GET\${ac_eB}SCCS_GET\${ac_eC}\"/usr/sccs/get\"\${ac_eD}
  4708. ! "
  4709. ! }
  4710.   
  4711.   else
  4712.     SCCS_GET=get
  4713. !   
  4714. ! {
  4715. ! test -n "$verbose" && \
  4716. ! echo "    defining" SCCS_GET to be ""get""
  4717. ! echo "#define" SCCS_GET ""get"" >> confdefs.h
  4718. ! DEFS="$DEFS -DSCCS_GET="get""
  4719. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SCCS_GET\${ac_dB}SCCS_GET\${ac_dC}\"get\"\${ac_dD}
  4720. ! \${ac_uA}SCCS_GET\${ac_uB}SCCS_GET\${ac_uC}\"get\"\${ac_uD}
  4721. ! \${ac_eA}SCCS_GET\${ac_eB}SCCS_GET\${ac_eC}\"get\"\${ac_eD}
  4722. ! "
  4723. ! }
  4724.   
  4725.   fi
  4726.   ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
  4727. ! if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
  4728.      test -f s.conftest; then
  4729.     # We successfully created an SCCS file.
  4730.     echo checking if SCCS get command understands -G
  4731.     if $SCCS_GET -Gconftoast s.conftest >/dev/null 2>&1 &&
  4732.        test -f conftoast; then
  4733. !     
  4734. ! {
  4735. ! test -n "$verbose" && \
  4736. ! echo "    defining SCCS_GET_MINUS_G"
  4737. ! echo "#define" SCCS_GET_MINUS_G "1" >> confdefs.h
  4738. ! DEFS="$DEFS -DSCCS_GET_MINUS_G=1"
  4739. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SCCS_GET_MINUS_G\${ac_dB}SCCS_GET_MINUS_G\${ac_dC}1\${ac_dD}
  4740. ! \${ac_uA}SCCS_GET_MINUS_G\${ac_uB}SCCS_GET_MINUS_G\${ac_uC}1\${ac_uD}
  4741. ! \${ac_eA}SCCS_GET_MINUS_G\${ac_eB}SCCS_GET_MINUS_G\${ac_eC}1\${ac_eD}
  4742. ! "
  4743. ! }
  4744.   
  4745.     fi
  4746.   fi
  4747.   rm -f s.conftest conftoast
  4748.   
  4749. ! # The preferred way to propogate these variables is regular @ substitutions.
  4750. ! if test -n "$prefix"; then
  4751. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  4752. ! else
  4753. !   prefix=/usr/local
  4754. ! fi
  4755. ! if test -n "$exec_prefix"; then
  4756. !   ac_prsub="$ac_prsub
  4757. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  4758.   else
  4759. !   exec_prefix='${prefix}' # Let make expand it.
  4760.   fi
  4761.   
  4762.   # Any assignment to VPATH causes Sun make to only execute
  4763.   # the first set of double-colon rules, so remove it if not needed.
  4764.   # If there is a colon in the path, we need to keep it.
  4765. --- 2718,2784 ----
  4766.   
  4767.   
  4768.   echo checking for location of SCCS get command
  4769. ! if false && test -f /usr/sccs/get; then
  4770.     SCCS_GET=/usr/sccs/get
  4771. !   cat >> confdefs.h <<\EOF
  4772. ! #define SCCS_GET "/usr/sccs/get"
  4773. ! EOF
  4774.   
  4775.   else
  4776.     SCCS_GET=get
  4777. !   cat >> confdefs.h <<\EOF
  4778. ! #define SCCS_GET "get"
  4779. ! EOF
  4780.   
  4781.   fi
  4782.   ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
  4783. ! if false && ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
  4784.      test -f s.conftest; then
  4785.     # We successfully created an SCCS file.
  4786.     echo checking if SCCS get command understands -G
  4787.     if $SCCS_GET -Gconftoast s.conftest >/dev/null 2>&1 &&
  4788.        test -f conftoast; then
  4789. !     cat >> confdefs.h <<\EOF
  4790. ! #define SCCS_GET_MINUS_G 1
  4791. ! EOF
  4792.   
  4793.     fi
  4794.   fi
  4795.   rm -f s.conftest conftoast
  4796.   
  4797. ! trap '' 1 2 15
  4798. ! if test -w $cache_file; then
  4799. ! echo "updating cache $cache_file"
  4800. ! cat > $cache_file <<\EOF
  4801. ! # This file is a shell script that caches the results of configure
  4802. ! # tests run on this system so they can be shared between configure
  4803. ! # scripts and configure runs.  It is not useful on other systems.
  4804. ! # If it contains results you don't want to keep, you may remove or edit it.
  4805. ! #
  4806. ! # By default, configure uses ./config.cache as the cache file,
  4807. ! # creating it if it does not exist already.  You can give configure
  4808. ! # the --cache-file=FILE option to use a different cache file; that is
  4809. ! # what configure does when it calls configure scripts in
  4810. ! # subdirectories, so they share the cache.
  4811. ! # Giving --cache-file=/dev/null disables caching, for debugging configure.
  4812. ! # config.status only pays attention to the cache file if you give it the
  4813. ! # --recheck option to rerun configure.
  4814. ! #
  4815. ! EOF
  4816. ! # Ultrix sh set writes to stderr and can't be redirected directly.
  4817. ! (set) 2>&1 |
  4818. !   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  4819. !   >> $cache_file
  4820.   else
  4821. ! echo "not updating unwritable cache $cache_file"
  4822.   fi
  4823.   
  4824. + trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  4825. + test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4826. + # Let make expand exec_prefix.
  4827. + test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4828.   # Any assignment to VPATH causes Sun make to only execute
  4829.   # the first set of double-colon rules, so remove it if not needed.
  4830.   # If there is a colon in the path, we need to keep it.
  4831. ***************
  4832. *** 2405,2440 ****
  4833.     ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  4834.   fi
  4835.   
  4836. ! # Quote sed substitution magic chars in DEFS.
  4837. ! cat >conftest.def <<EOF
  4838. ! $DEFS
  4839. ! EOF
  4840. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  4841. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  4842. ! rm -f conftest.def
  4843. ! # Substitute for predefined variables.
  4844. ! trap 'rm -f config.status; exit 1' 1 2 15
  4845. ! echo creating config.status
  4846. ! rm -f config.status
  4847. ! cat > config.status <<EOF
  4848.   #!/bin/sh
  4849.   # Generated automatically by configure.
  4850.   # Run this file to recreate the current configuration.
  4851.   # This directory was configured as follows,
  4852.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4853.   #
  4854. ! # $0 $configure_args
  4855.   
  4856. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  4857.   for ac_option
  4858.   do
  4859.     case "\$ac_option" in
  4860.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4861. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  4862. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  4863.     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  4864. !     echo "config.status generated by autoconf version 1.11"
  4865.       exit 0 ;;
  4866.     -help | --help | --hel | --he | --h)
  4867.       echo "\$ac_cs_usage"; exit 0 ;;
  4868. --- 2786,2823 ----
  4869.     ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  4870.   fi
  4871.   
  4872. ! trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  4873. ! DEFS=-DHAVE_CONFIG_H
  4874. ! # Without the "./", some shells look in PATH for config.status.
  4875. ! : ${CONFIG_STATUS=./config.status}
  4876. ! echo creating $CONFIG_STATUS
  4877. ! # Some systems, like AmigaDOS, won't allow you to remove a script that is
  4878. ! # being executed, so just move it out of the way instead.
  4879. ! if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  4880. ! cat > $CONFIG_STATUS <<EOF
  4881.   #!/bin/sh
  4882.   # Generated automatically by configure.
  4883.   # Run this file to recreate the current configuration.
  4884.   # This directory was configured as follows,
  4885.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4886.   #
  4887. ! # $0 $ac_configure_args
  4888. ! #
  4889. ! # Compiler output produced by configure, useful for debugging
  4890. ! # configure, is in ./config.log if it exists.
  4891.   
  4892. ! ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  4893.   for ac_option
  4894.   do
  4895.     case "\$ac_option" in
  4896.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4897. !     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  4898. !     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  4899.     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  4900. !     /bin/echo "$CONFIG_STATUS generated by autoconf version 2.1"
  4901.       exit 0 ;;
  4902.     -help | --help | --hel | --he | --h)
  4903.       echo "\$ac_cs_usage"; exit 0 ;;
  4904. ***************
  4905. *** 2442,2631 ****
  4906.     esac
  4907.   done
  4908.   
  4909.   trap 'rm -fr Makefile build.sh glob/Makefile config.h conftest*; exit 1' 1 2 15
  4910. ! CFLAGS='$CFLAGS'
  4911. ! LDFLAGS='$LDFLAGS'
  4912. ! SET_MAKE='$SET_MAKE'
  4913. ! CC='$CC'
  4914. ! INSTALL='$INSTALL'
  4915. ! INSTALL_PROGRAM='$INSTALL_PROGRAM'
  4916. ! INSTALL_DATA='$INSTALL_DATA'
  4917. ! RANLIB='$RANLIB'
  4918. ! CPP='$CPP'
  4919. ! LIBOBJS='$LIBOBJS'
  4920. ! ALLOCA='$ALLOCA'
  4921. ! NEED_SETGID='$NEED_SETGID'
  4922. ! KMEM_GROUP='$KMEM_GROUP'
  4923. ! REMOTE='$REMOTE'
  4924. ! LIBS='$LIBS'
  4925. ! srcdir='$srcdir'
  4926. ! top_srcdir='$top_srcdir'
  4927. ! prefix='$prefix'
  4928. ! exec_prefix='$exec_prefix'
  4929. ! ac_prsub='$ac_prsub'
  4930. ! ac_vpsub='$ac_vpsub'
  4931. ! extrasub='$extrasub'
  4932.   EOF
  4933. ! cat >> config.status <<\EOF
  4934.   
  4935. ! ac_given_srcdir=$srcdir
  4936.   
  4937. - CONFIG_FILES=${CONFIG_FILES-"Makefile build.sh glob/Makefile"}
  4938. - for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  4939.     # Remove last slash and all that follows it.  Not all systems have dirname.
  4940. !   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4941.     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4942.       # The file is in a subdirectory.
  4943.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  4944.       ac_dir_suffix="/$ac_dir"
  4945.     else
  4946. !     ac_dir_suffix=
  4947.     fi
  4948.   
  4949. -   # A "../" for each directory in $ac_dir_suffix.
  4950. -   ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4951.     case "$ac_given_srcdir" in
  4952.     .)  srcdir=.
  4953. !       if test -z "$ac_dir_suffix"; then top_srcdir=.
  4954. !       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  4955.     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4956.     *) # Relative path.
  4957.       srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4958.       top_srcdir="$ac_dots$ac_given_srcdir" ;;
  4959.     esac
  4960.   
  4961.     echo creating "$ac_file"
  4962.     rm -f "$ac_file"
  4963. !   comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  4964.     case "$ac_file" in
  4965. !     *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  4966. !     * )          echo "# $comment_str"     > "$ac_file" ;;
  4967.     esac
  4968. !   sed -e "
  4969. ! $ac_prsub
  4970. ! $ac_vpsub
  4971. ! $extrasub
  4972. ! s%@CFLAGS@%$CFLAGS%g
  4973. ! s%@LDFLAGS@%$LDFLAGS%g
  4974. ! s%@SET_MAKE@%$SET_MAKE%g
  4975. ! s%@CC@%$CC%g
  4976. ! s%@INSTALL@%$INSTALL%g
  4977. ! s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  4978. ! s%@INSTALL_DATA@%$INSTALL_DATA%g
  4979. ! s%@RANLIB@%$RANLIB%g
  4980. ! s%@CPP@%$CPP%g
  4981. ! s%@LIBOBJS@%$LIBOBJS%g
  4982. ! s%@ALLOCA@%$ALLOCA%g
  4983. ! s%@NEED_SETGID@%$NEED_SETGID%g
  4984. ! s%@KMEM_GROUP@%$KMEM_GROUP%g
  4985. ! s%@REMOTE@%$REMOTE%g
  4986. ! s%@LIBS@%$LIBS%g
  4987.   s%@srcdir@%$srcdir%g
  4988.   s%@top_srcdir@%$top_srcdir%g
  4989. ! s%@prefix@%$prefix%g
  4990. ! s%@exec_prefix@%$exec_prefix%g
  4991. ! s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  4992.   fi; done
  4993.   
  4994. ! # These sed commands are put into ac_sed_defs when defining a macro.
  4995. ! # They are broken into pieces to make the sed script easier to manage.
  4996. ! # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  4997. ! # is the cpp macro being defined and VALUE is the value it is being given.
  4998. ! # Each defining turns into a single global substitution command.
  4999. ! # Hopefully no one uses "!" as a variable value.
  5000. ! # Other candidates for the sed separators, like , and @, do get used.
  5001.   #
  5002.   # ac_d sets the value in "#define NAME VALUE" lines.
  5003. ! ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  5004. ! ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  5005.   ac_dC='\3'
  5006. ! ac_dD='!g'
  5007.   # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  5008. ! ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5009. ! ac_uB='\([     ]\)!\1#\2define\3'
  5010.   ac_uC=' '
  5011. ! ac_uD='\4!g'
  5012.   # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5013. ! ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5014. ! ac_eB='$!\1#\2define\3'
  5015.   ac_eC=' '
  5016. ! ac_eD='!g'
  5017. ! rm -f conftest.sed
  5018.   EOF
  5019. ! # Turn off quoting long enough to insert the sed commands.
  5020. ! rm -f conftest.sh
  5021. ! cat > conftest.sh <<EOF
  5022. ! $ac_sed_defs
  5023.   EOF
  5024.   
  5025. ! # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  5026. ! # on the size of here documents.
  5027.   
  5028.   # Maximum number of lines to put in a single here document.
  5029. ! ac_max_sh_lines=9
  5030.   
  5031.   while :
  5032.   do
  5033. !   # wc gives bogus results for an empty file on some AIX systems.
  5034. !   ac_lines=`grep -c . conftest.sh`
  5035.     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  5036. !   rm -f conftest.s1 conftest.s2
  5037. !   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  5038. !   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  5039. !   # Write a limited-size here document to append to conftest.sed.
  5040. !   echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  5041. !   cat conftest.s1 >> config.status
  5042. !   echo 'CONFEOF' >> config.status
  5043. !   rm -f conftest.s1 conftest.sh
  5044. !   mv conftest.s2 conftest.sh
  5045.   done
  5046. ! rm -f conftest.sh
  5047. ! # Now back to your regularly scheduled config.status.
  5048. ! cat >> config.status <<\EOF
  5049. ! # This sed command replaces #undef's with comments.  This is necessary, for
  5050. ! # example, in the case of _POSIX_SOURCE, which is predefined and required
  5051. ! # on some systems where configure will not decide to define it in
  5052. ! # config.h.
  5053. ! cat >> conftest.sed <<\CONFEOF
  5054. ! s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  5055. ! CONFEOF
  5056. ! rm -f conftest.h
  5057. ! # Break up the sed commands because old seds have small limits.
  5058. ! ac_max_sed_lines=20
  5059.   
  5060. ! CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  5061. ! for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  5062. !   echo creating $ac_file
  5063. !   cp $ac_given_srcdir/$ac_file.in conftest.h1
  5064. !   cp conftest.sed conftest.stm
  5065. !   while :
  5066. !   do
  5067. !     ac_lines=`grep -c . conftest.stm`
  5068. !     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  5069. !     rm -f conftest.s1 conftest.s2 conftest.h2
  5070. !     sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
  5071. !     sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
  5072. !     sed -f conftest.s1 < conftest.h1 > conftest.h2
  5073. !     rm -f conftest.s1 conftest.h1 conftest.stm
  5074. !     mv conftest.h2 conftest.h1
  5075. !     mv conftest.s2 conftest.stm
  5076. !   done
  5077. !   rm -f conftest.stm conftest.h
  5078.     echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  5079. !   cat conftest.h1 >> conftest.h
  5080. !   rm -f conftest.h1
  5081.     if cmp -s $ac_file conftest.h 2>/dev/null; then
  5082. !     # The file exists and we would not be changing it.
  5083. !     echo "$ac_file is unchanged"
  5084.       rm -f conftest.h
  5085.     else
  5086.       rm -f $ac_file
  5087.       mv conftest.h $ac_file
  5088.     fi
  5089.   fi; done
  5090. - rm -f conftest.sed
  5091.   
  5092.   
  5093.   
  5094. --- 2825,3016 ----
  5095.     esac
  5096.   done
  5097.   
  5098. + ac_given_srcdir=$srcdir
  5099. + ac_given_INSTALL="$INSTALL"
  5100.   trap 'rm -fr Makefile build.sh glob/Makefile config.h conftest*; exit 1' 1 2 15
  5101. ! # Protect against being on the right side of a sed subst in config.status. 
  5102. ! sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  5103. !  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  5104. ! $ac_vpsub
  5105. ! $extrasub
  5106. ! s%@CFLAGS@%$CFLAGS%g
  5107. ! s%@CPPFLAGS@%$CPPFLAGS%g
  5108. ! s%@CXXFLAGS@%$CXXFLAGS%g
  5109. ! s%@DEFS@%$DEFS%g
  5110. ! s%@LDFLAGS@%$LDFLAGS%g
  5111. ! s%@LIBS@%$LIBS%g
  5112. ! s%@exec_prefix@%$exec_prefix%g
  5113. ! s%@prefix@%$prefix%g
  5114. ! s%@program_transform_name@%$program_transform_name%g
  5115. ! s%@SET_MAKE@%$SET_MAKE%g
  5116. ! s%@CC@%$CC%g
  5117. ! s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  5118. ! s%@INSTALL_DATA@%$INSTALL_DATA%g
  5119. ! s%@RANLIB@%$RANLIB%g
  5120. ! s%@CPP@%$CPP%g
  5121. ! s%@LIBOBJS@%$LIBOBJS%g
  5122. ! s%@ALLOCA@%$ALLOCA%g
  5123. ! s%@NEED_SETGID@%$NEED_SETGID%g
  5124. ! s%@KMEM_GROUP@%$KMEM_GROUP%g
  5125. ! s%@REMOTE@%$REMOTE%g
  5126. ! CEOF
  5127.   EOF
  5128. ! cat >> $CONFIG_STATUS <<EOF
  5129.   
  5130. ! CONFIG_FILES=\${CONFIG_FILES-"Makefile build.sh glob/Makefile"}
  5131. ! EOF
  5132. ! cat >> $CONFIG_STATUS <<\EOF
  5133. ! for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  5134. !   # Support "outfile[:infile]", defaulting infile="outfile.in".
  5135. !   case "$ac_file" in
  5136. !   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  5137. !        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  5138. !   *) ac_file_in="${ac_file}.in" ;;
  5139. !   esac
  5140. !   # Adjust relative srcdir, etc. for subdirectories.
  5141.   
  5142.     # Remove last slash and all that follows it.  Not all systems have dirname.
  5143. !   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5144.     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5145.       # The file is in a subdirectory.
  5146.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  5147.       ac_dir_suffix="/$ac_dir"
  5148. +     # A "../" for each directory in $ac_dir_suffix.
  5149. +     ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  5150.     else
  5151. !     ac_dir_suffix= ac_dots=
  5152.     fi
  5153.   
  5154.     case "$ac_given_srcdir" in
  5155.     .)  srcdir=.
  5156. !       if test -z "$ac_dots"; then top_srcdir=.
  5157. !       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  5158.     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  5159.     *) # Relative path.
  5160.       srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  5161.       top_srcdir="$ac_dots$ac_given_srcdir" ;;
  5162.     esac
  5163.   
  5164. +   case "$ac_given_INSTALL" in
  5165. +   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  5166. +   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  5167. +   esac
  5168.     echo creating "$ac_file"
  5169.     rm -f "$ac_file"
  5170. !   configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
  5171.     case "$ac_file" in
  5172. !   *Makefile*) ac_comsub="1i\\
  5173. ! # $configure_input" ;;
  5174. !   *) ac_comsub= ;;
  5175.     esac
  5176. !   sed -e "$ac_comsub
  5177. ! s%@configure_input@%$configure_input%g
  5178.   s%@srcdir@%$srcdir%g
  5179.   s%@top_srcdir@%$top_srcdir%g
  5180. ! s%@INSTALL@%$INSTALL%g
  5181. ! " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  5182.   fi; done
  5183. + rm -f conftest.subs
  5184.   
  5185. ! # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  5186. ! # NAME is the cpp macro being defined and VALUE is the value it is being given.
  5187.   #
  5188.   # ac_d sets the value in "#define NAME VALUE" lines.
  5189. ! ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  5190. ! ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  5191.   ac_dC='\3'
  5192. ! ac_dD='%g'
  5193.   # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  5194. ! ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5195. ! ac_uB='\([     ]\)%\1#\2define\3'
  5196.   ac_uC=' '
  5197. ! ac_uD='\4%g'
  5198.   # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5199. ! ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5200. ! ac_eB='$%\1#\2define\3'
  5201.   ac_eC=' '
  5202. ! ac_eD='%g'
  5203. ! CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  5204. ! for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  5205. !   # Support "outfile[:infile]", defaulting infile="outfile.in".
  5206. !   case "$ac_file" in
  5207. !   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  5208. !        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  5209. !   *) ac_file_in="${ac_file}.in" ;;
  5210. !   esac
  5211. !   echo creating $ac_file
  5212. !   rm -f conftest.frag conftest.in conftest.out
  5213. !   cp $ac_given_srcdir/$ac_file_in conftest.in
  5214.   EOF
  5215. ! # Transform confdefs.h into a sed script conftest.vals that substitutes
  5216. ! # the proper values into config.h.in to produce config.h.  And first:
  5217. ! # Protect against being on the right side of a sed subst in config.status. 
  5218. ! # Protect against being in an unquoted here document in config.status.
  5219. ! rm -f conftest.vals
  5220. ! cat > conftest.hdr <<\EOF
  5221. ! s/[\\&%]/\\&/g
  5222. ! s%[\\$`]%\\&%g
  5223. ! s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  5224. ! s%ac_d%ac_u%gp
  5225. ! s%ac_u%ac_e%gp
  5226.   EOF
  5227. + sed -n -f conftest.hdr confdefs.h > conftest.vals
  5228. + rm -f conftest.hdr
  5229.   
  5230. ! # This sed command replaces #undef with comments.  This is necessary, for
  5231. ! # example, in the case of _POSIX_SOURCE, which is predefined and required
  5232. ! # on some systems where configure will not decide to define it.
  5233. ! cat >> conftest.vals <<\EOF
  5234. ! s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  5235. ! EOF
  5236.   
  5237. + # Break up conftest.vals because some shells have a limit on
  5238. + # the size of here documents, and old seds have small limits too.
  5239.   # Maximum number of lines to put in a single here document.
  5240. ! ac_max_here_lines=12
  5241.   
  5242. + rm -f conftest.tail
  5243.   while :
  5244.   do
  5245. !   ac_lines=`grep -c . conftest.vals`
  5246. !   # grep -c gives empty output for an empty file on some AIX systems.
  5247.     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  5248. !   # Write a limited-size here document to conftest.frag.
  5249. !   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  5250. !   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  5251. !   echo 'CEOF
  5252. !   sed -f conftest.frag conftest.in > conftest.out
  5253. !   rm -f conftest.in
  5254. !   mv conftest.out conftest.in
  5255. ! ' >> $CONFIG_STATUS
  5256. !   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  5257. !   rm -f conftest.vals
  5258. !   mv conftest.tail conftest.vals
  5259.   done
  5260. ! rm -f conftest.vals
  5261.   
  5262. ! cat >> $CONFIG_STATUS <<\EOF
  5263. !   rm -f conftest.frag conftest.h
  5264.     echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  5265. !   cat conftest.in >> conftest.h
  5266. !   rm -f conftest.in
  5267.     if cmp -s $ac_file conftest.h 2>/dev/null; then
  5268. !     /bin/echo "$ac_file is unchanged"
  5269.       rm -f conftest.h
  5270.     else
  5271.       rm -f $ac_file
  5272.       mv conftest.h $ac_file
  5273.     fi
  5274.   fi; done
  5275.   
  5276.   
  5277.   
  5278. ***************
  5279. *** 2634,2641 ****
  5280.   touch stamp-config
  5281.   exit 0
  5282.   EOF
  5283. ! chmod +x config.status
  5284. ! # Some shells look in PATH for config.status without the "./".
  5285. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  5286.   
  5287.   
  5288. --- 3019,3026 ----
  5289.   touch stamp-config
  5290.   exit 0
  5291.   EOF
  5292. ! chmod +x $CONFIG_STATUS
  5293. ! rm -fr confdefs* $ac_clean_files
  5294. ! test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  5295.   
  5296.   
  5297. diff -rc --new-file make-3.71/configure.in /gnu/src/amiga/make-3.71/configure.in
  5298. *** make-3.71/configure.in    Tue May 17 03:00:07 1994
  5299. --- /gnu/src/amiga/make-3.71/configure.in    Wed Jun 22 21:10:36 1994
  5300. ***************
  5301. *** 4,11 ****
  5302.   AC_CONFIG_HEADER(config.h)
  5303.   
  5304.   # We want these before the checks, so the checks can modify their values.
  5305. ! test -z "$CFLAGS" && CFLAGS=-g AC_SUBST(CFLAGS)
  5306. ! test -z "$LDFLAGS" && LDFLAGS=-g AC_SUBST(LDFLAGS)
  5307.   
  5308.   AC_SET_MAKE
  5309.   AC_PROG_CC
  5310. --- 4,11 ----
  5311.   AC_CONFIG_HEADER(config.h)
  5312.   
  5313.   # We want these before the checks, so the checks can modify their values.
  5314. ! test -z "$CFLAGS" && CFLAGS=-O2 AC_SUBST(CFLAGS)
  5315. ! test -z "$LDFLAGS" && LDFLAGS= AC_SUBST(LDFLAGS)
  5316.   
  5317.   AC_SET_MAKE
  5318.   AC_PROG_CC
  5319. ***************
  5320. *** 69,75 ****
  5321.   LIBS="$LIBS libcustoms.a"])
  5322.   
  5323.   echo checking for location of SCCS get command
  5324. ! if test -f /usr/sccs/get; then
  5325.     SCCS_GET=/usr/sccs/get
  5326.     AC_DEFINE(SCCS_GET, "/usr/sccs/get")
  5327.   else
  5328. --- 69,75 ----
  5329.   LIBS="$LIBS libcustoms.a"])
  5330.   
  5331.   echo checking for location of SCCS get command
  5332. ! if false && test -f /usr/sccs/get; then
  5333.     SCCS_GET=/usr/sccs/get
  5334.     AC_DEFINE(SCCS_GET, "/usr/sccs/get")
  5335.   else
  5336. ***************
  5337. *** 77,83 ****
  5338.     AC_DEFINE(SCCS_GET, "get")
  5339.   fi
  5340.   ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
  5341. ! if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
  5342.      test -f s.conftest; then
  5343.     # We successfully created an SCCS file.
  5344.     echo checking if SCCS get command understands -G
  5345. --- 77,83 ----
  5346.     AC_DEFINE(SCCS_GET, "get")
  5347.   fi
  5348.   ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
  5349. ! if false && ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
  5350.      test -f s.conftest; then
  5351.     # We successfully created an SCCS file.
  5352.     echo checking if SCCS get command understands -G
  5353. diff -rc --new-file make-3.71/dir.c /gnu/src/amiga/make-3.71/dir.c
  5354. *** make-3.71/dir.c    Wed Jun  2 20:56:37 1993
  5355. --- /gnu/src/amiga/make-3.71/dir.c    Wed Jun 22 21:10:38 1994
  5356. ***************
  5357. *** 492,498 ****
  5358. --- 492,502 ----
  5359.   
  5360.   /* Hooks for globbing.  */
  5361.   
  5362. + #ifndef amigados
  5363.   #include <glob.h>
  5364. + #else
  5365. + #include "glob.h"
  5366. + #endif
  5367.   
  5368.   /* Structure describing state of iterating through a directory hash table.  */
  5369.   
  5370. diff -rc --new-file make-3.71/function.c /gnu/src/amiga/make-3.71/function.c
  5371. *** make-3.71/function.c    Fri Mar  4 05:36:26 1994
  5372. --- /gnu/src/amiga/make-3.71/function.c    Wed Jun 22 21:10:41 1994
  5373. ***************
  5374. *** 21,26 ****
  5375. --- 21,29 ----
  5376.   #include "dep.h"
  5377.   #include "commands.h"
  5378.   #include "job.h"
  5379. + #ifdef amigados
  5380. + #include <stdlib.h>
  5381. + #endif
  5382.   
  5383.   static char *string_glob ();
  5384.   
  5385. diff -rc --new-file make-3.71/getloadavg.c /gnu/src/amiga/make-3.71/getloadavg.c
  5386. *** make-3.71/getloadavg.c    Tue May 10 02:10:29 1994
  5387. --- /gnu/src/amiga/make-3.71/getloadavg.c    Wed Jun 22 21:10:43 1994
  5388. ***************
  5389. *** 472,477 ****
  5390. --- 472,481 ----
  5391.   {
  5392.     int elem = 0;            /* Return value.  */
  5393.   
  5394. + #ifdef __amigados
  5395. + #define NO_GET_LOAD_AVG
  5396. + #endif
  5397.   #ifdef NO_GET_LOAD_AVG
  5398.   #define LDAV_DONE
  5399.     /* Set errno to zero to indicate that there was no particular error;
  5400. diff -rc --new-file make-3.71/getopt.c /gnu/src/amiga/make-3.71/getopt.c
  5401. *** make-3.71/getopt.c    Tue May 10 02:11:02 1994
  5402. --- /gnu/src/amiga/make-3.71/getopt.c    Wed Jun 22 21:10:45 1994
  5403. ***************
  5404. *** 46,51 ****
  5405. --- 46,54 ----
  5406.   #endif
  5407.   
  5408.   #include <stdio.h>
  5409. + #ifdef amigados
  5410. + #include <string.h>
  5411. + #endif
  5412.   
  5413.   /* Comment out all this code if we are using the GNU C Library, and are not
  5414.      actually compiling the library itself.  This code is part of the GNU C
  5415. diff -rc --new-file make-3.71/glob/fnmatch.h /gnu/src/amiga/make-3.71/glob/fnmatch.h
  5416. *** make-3.71/glob/fnmatch.h    Tue Dec 14 20:02:10 1993
  5417. --- /gnu/src/amiga/make-3.71/glob/fnmatch.h    Wed Jun 22 21:10:47 1994
  5418. ***************
  5419. *** 42,48 ****
  5420. --- 42,50 ----
  5421.   #undef    FNM_PERIOD
  5422.   
  5423.   /* Bits set in the FLAGS argument to `fnmatch'.  */
  5424. + #ifndef FNM_PATHNAME
  5425.   #define    FNM_PATHNAME    (1 << 0) /* No wildcard can ever match `/'.  */
  5426. + #endif
  5427.   #define    FNM_NOESCAPE    (1 << 1) /* Backslashes don't quote special chars.  */
  5428.   #define    FNM_PERIOD    (1 << 2) /* Leading `.' is matched only explicitly.  */
  5429.   
  5430. diff -rc --new-file make-3.71/job.c /gnu/src/amiga/make-3.71/job.c
  5431. *** make-3.71/job.c    Tue May 10 20:00:40 1994
  5432. --- /gnu/src/amiga/make-3.71/job.c    Wed Jun 22 21:10:49 1994
  5433. ***************
  5434. *** 23,29 ****
  5435.   #include "variable.h"
  5436.   
  5437.   /* Default path to search for executables.  */
  5438. ! static char default_path[] = ":/bin:/usr/bin";
  5439.   
  5440.   /* Default shell to use.  */
  5441.   char default_shell[] = "/bin/sh";
  5442. --- 23,29 ----
  5443.   #include "variable.h"
  5444.   
  5445.   /* Default path to search for executables.  */
  5446. ! static char default_path[] = ":/bin";
  5447.   
  5448.   /* Default shell to use.  */
  5449.   char default_shell[] = "/bin/sh";
  5450. ***************
  5451. *** 46,52 ****
  5452.   #endif
  5453.   
  5454.   #ifdef    HAVE_WAITPID
  5455. ! #define    WAIT_NOHANG(status)    waitpid (-1, (status), WNOHANG)
  5456.   #else    /* Don't have waitpid.  */
  5457.   #ifdef    HAVE_WAIT3
  5458.   #ifndef    wait3
  5459. --- 46,52 ----
  5460.   #endif
  5461.   
  5462.   #ifdef    HAVE_WAITPID
  5463. ! #define    WAIT_NOHANG(status)    waitpid (-1, (int *)(status), WNOHANG)
  5464.   #else    /* Don't have waitpid.  */
  5465.   #ifdef    HAVE_WAIT3
  5466.   #ifndef    wait3
  5467. ***************
  5468. *** 269,275 ****
  5469.           pid = WAIT_NOHANG (&status);
  5470.             else
  5471.   #endif
  5472. !         pid = wait (&status);
  5473.           }
  5474.         else
  5475.           pid = 0;
  5476. --- 269,275 ----
  5477.           pid = WAIT_NOHANG (&status);
  5478.             else
  5479.   #endif
  5480. !         pid = wait ((int *)&status);
  5481.           }
  5482.         else
  5483.           pid = 0;
  5484. diff -rc --new-file make-3.71/main.c /gnu/src/amiga/make-3.71/main.c
  5485. *** make-3.71/main.c    Thu Apr 21 02:08:24 1994
  5486. --- /gnu/src/amiga/make-3.71/main.c    Wed Jun 22 21:10:52 1994
  5487. ***************
  5488. *** 23,28 ****
  5489. --- 23,31 ----
  5490.   #include "variable.h"
  5491.   #include "job.h"
  5492.   #include "getopt.h"
  5493. + #ifdef amigados
  5494. + #include <stdlib.h>
  5495. + #endif
  5496.   
  5497.   
  5498.   extern void print_variable_data_base ();
  5499. Binary files make-3.71/make.dvi and /gnu/src/amiga/make-3.71/make.dvi differ
  5500. diff -rc --new-file make-3.71/make.info /gnu/src/amiga/make-3.71/make.info
  5501. *** make-3.71/make.info    Thu Dec 16 23:32:48 1993
  5502. --- /gnu/src/amiga/make-3.71/make.info    Tue May 17 03:58:50 1994
  5503. ***************
  5504. *** 5,14 ****
  5505.   automatically which pieces of a large program need to be recompiled,
  5506.   and issues the commands to recompile them.
  5507.   
  5508. !    This is Edition 0.45, last updated 14 December 1993, of `The GNU
  5509. ! Make Manual', for `make', Version 3.70 Beta.
  5510.   
  5511. !    Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software
  5512.   Foundation, Inc.
  5513.   
  5514.      Permission is granted to make and distribute verbatim copies of this
  5515. --- 5,14 ----
  5516.   automatically which pieces of a large program need to be recompiled,
  5517.   and issues the commands to recompile them.
  5518.   
  5519. !    This is Edition 0.45, last updated 11 May 1994, of `The GNU Make
  5520. ! Manual', for `make', Version 3.71 Beta.
  5521.   
  5522. !    Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software
  5523.   Foundation, Inc.
  5524.   
  5525.      Permission is granted to make and distribute verbatim copies of this
  5526. ***************
  5527. *** 28,162 ****
  5528.   
  5529.   Indirect:
  5530.   make.info-1: 1134
  5531. ! make.info-2: 50844
  5532. ! make.info-3: 99706
  5533. ! make.info-4: 147828
  5534. ! make.info-5: 197147
  5535. ! make.info-6: 245075
  5536. ! make.info-7: 291788
  5537. ! make.info-8: 307867
  5538.   
  5539.   Tag Table:
  5540.   (Indirect)
  5541.   Node: Top1134
  5542. ! Node: Overview12009
  5543. ! Node: Preparing12946
  5544. ! Node: Reading13901
  5545. ! Node: Bugs14823
  5546. ! Node: Introduction16731
  5547. ! Node: Rule Introduction18318
  5548. ! Node: Simple Makefile20027
  5549. ! Node: How Make Works23640
  5550. ! Node: Variables Simplify26138
  5551. ! Node: make Deduces28344
  5552. ! Node: Combine By Dependency30091
  5553. ! Node: Cleanup31119
  5554. ! Node: Makefiles32529
  5555. ! Node: Makefile Contents33226
  5556. ! Node: Makefile Names35486
  5557. ! Node: Include37088
  5558. ! Node: MAKEFILES Variable40499
  5559. ! Node: Remaking Makefiles42001
  5560. ! Node: Overriding Makefiles45819
  5561. ! Node: Rules47409
  5562. ! Node: Rule Example50009
  5563. ! Node: Rule Syntax50844
  5564. ! Node: Wildcards53053
  5565. ! Node: Wildcard Examples54563
  5566. ! Node: Wildcard Pitfall55798
  5567. ! Node: Wildcard Function57048
  5568. ! Node: Directory Search58829
  5569. ! Node: General Search59889
  5570. ! Node: Selective Search61396
  5571. ! Node: Commands/Search64301
  5572. ! Node: Implicit/Search65641
  5573. ! Node: Libraries/Search66576
  5574. ! Node: Phony Targets67645
  5575. ! Node: Force Targets70990
  5576. ! Node: Empty Targets72027
  5577. ! Node: Special Targets73287
  5578. ! Node: Multiple Targets76868
  5579. ! Node: Multiple Rules78735
  5580. ! Node: Static Pattern80818
  5581. ! Node: Static Usage81458
  5582. ! Node: Static versus Implicit85112
  5583. ! Node: Double-Colon86843
  5584. ! Node: Automatic Dependencies88373
  5585. ! Node: Commands91925
  5586. ! Node: Echoing93486
  5587. ! Node: Execution94723
  5588. ! Node: Parallel96391
  5589. ! Node: Errors99706
  5590. ! Node: Interrupts102605
  5591. ! Node: Recursion104186
  5592. ! Node: MAKE Variable105472
  5593. ! Node: Variables/Recursion108563
  5594. ! Node: Options/Recursion113343
  5595. ! Node: -w Option116675
  5596. ! Node: Sequences117661
  5597. ! Node: Empty Commands120656
  5598. ! Node: Using Variables121824
  5599. ! Node: Reference124448
  5600. ! Node: Flavors125993
  5601. ! Node: Advanced131310
  5602. ! Node: Substitution Refs131810
  5603. ! Node: Computed Names133337
  5604. ! Node: Values137907
  5605. ! Node: Setting138824
  5606. ! Node: Appending140533
  5607. ! Node: Override Directive144451
  5608. ! Node: Defining145830
  5609. ! Node: Environment147828
  5610. ! Node: Conditionals149956
  5611. ! Node: Conditional Example150665
  5612. ! Node: Conditional Syntax153231
  5613. ! Node: Testing Flags157977
  5614. ! Node: Functions159074
  5615. ! Node: Syntax of Functions160072
  5616. ! Node: Text Functions162209
  5617. ! Node: Filename Functions168963
  5618. ! Node: Foreach Function174084
  5619. ! Node: Origin Function177286
  5620. ! Node: Shell Function180511
  5621. ! Node: Running181888
  5622. ! Node: Makefile Arguments183430
  5623. ! Node: Goals184125
  5624. ! Node: Instead of Execution187991
  5625. ! Node: Avoiding Compilation191081
  5626. ! Node: Overriding192982
  5627. ! Node: Testing195270
  5628. ! Node: Options Summary197147
  5629. ! Node: Implicit Rules203903
  5630. ! Node: Using Implicit206049
  5631. ! Node: Catalogue of Rules209536
  5632. ! Node: Implicit Variables218476
  5633. ! Node: Chained Rules222602
  5634. ! Node: Pattern Rules225300
  5635. ! Node: Pattern Intro226828
  5636. ! Node: Pattern Examples229639
  5637. ! Node: Automatic231432
  5638. ! Node: Pattern Match237072
  5639. ! Node: Match-Anything Rules238676
  5640. ! Node: Canceling Rules242535
  5641. ! Node: Last Resort243238
  5642. ! Node: Suffix Rules245075
  5643. ! Node: Search Algorithm248782
  5644. ! Node: Archives252278
  5645. ! Node: Archive Members252895
  5646. ! Node: Archive Update254456
  5647. ! Node: Archive Symbols256374
  5648. ! Node: Archive Suffix Rules257573
  5649. ! Node: Features259111
  5650. ! Node: Missing267398
  5651. ! Node: Makefile Conventions271727
  5652. ! Node: Makefile Basics272075
  5653. ! Node: Utilities in Makefiles273961
  5654. ! Node: Standard Targets275392
  5655. ! Node: Command Variables282496
  5656. ! Node: Directory Variables285321
  5657. ! Node: Quick Reference291788
  5658. ! Node: Complex Makefile299200
  5659. ! Node: Concept Index307867
  5660. ! Node: Name Index346556
  5661.   
  5662.   End Tag Table
  5663. --- 28,162 ----
  5664.   
  5665.   Indirect:
  5666.   make.info-1: 1134
  5667. ! make.info-2: 50397
  5668. ! make.info-3: 100390
  5669. ! make.info-4: 149105
  5670. ! make.info-5: 199061
  5671. ! make.info-6: 247456
  5672. ! make.info-7: 294189
  5673. ! make.info-8: 310259
  5674.   
  5675.   Tag Table:
  5676.   (Indirect)
  5677.   Node: Top1134
  5678. ! Node: Overview12004
  5679. ! Node: Preparing12941
  5680. ! Node: Reading13896
  5681. ! Node: Bugs14818
  5682. ! Node: Introduction16686
  5683. ! Node: Rule Introduction18273
  5684. ! Node: Simple Makefile19982
  5685. ! Node: How Make Works23595
  5686. ! Node: Variables Simplify26093
  5687. ! Node: make Deduces28299
  5688. ! Node: Combine By Dependency30046
  5689. ! Node: Cleanup31074
  5690. ! Node: Makefiles32484
  5691. ! Node: Makefile Contents33181
  5692. ! Node: Makefile Names35441
  5693. ! Node: Include37043
  5694. ! Node: MAKEFILES Variable40454
  5695. ! Node: Remaking Makefiles41956
  5696. ! Node: Overriding Makefiles45774
  5697. ! Node: Rules47797
  5698. ! Node: Rule Example50397
  5699. ! Node: Rule Syntax51232
  5700. ! Node: Wildcards53441
  5701. ! Node: Wildcard Examples54951
  5702. ! Node: Wildcard Pitfall56186
  5703. ! Node: Wildcard Function57436
  5704. ! Node: Directory Search59217
  5705. ! Node: General Search60277
  5706. ! Node: Selective Search61795
  5707. ! Node: Commands/Search64715
  5708. ! Node: Implicit/Search66055
  5709. ! Node: Libraries/Search66990
  5710. ! Node: Phony Targets68059
  5711. ! Node: Force Targets71404
  5712. ! Node: Empty Targets72441
  5713. ! Node: Special Targets73701
  5714. ! Node: Multiple Targets77282
  5715. ! Node: Multiple Rules79149
  5716. ! Node: Static Pattern81232
  5717. ! Node: Static Usage81872
  5718. ! Node: Static versus Implicit85526
  5719. ! Node: Double-Colon87257
  5720. ! Node: Automatic Dependencies88787
  5721. ! Node: Commands92609
  5722. ! Node: Echoing94170
  5723. ! Node: Execution95407
  5724. ! Node: Parallel97075
  5725. ! Node: Errors100390
  5726. ! Node: Interrupts103289
  5727. ! Node: Recursion104870
  5728. ! Node: MAKE Variable106156
  5729. ! Node: Variables/Recursion109247
  5730. ! Node: Options/Recursion114027
  5731. ! Node: -w Option117592
  5732. ! Node: Sequences118578
  5733. ! Node: Empty Commands121573
  5734. ! Node: Using Variables122741
  5735. ! Node: Reference125725
  5736. ! Node: Flavors127270
  5737. ! Node: Advanced132587
  5738. ! Node: Substitution Refs133087
  5739. ! Node: Computed Names134614
  5740. ! Node: Values139184
  5741. ! Node: Setting140101
  5742. ! Node: Appending141810
  5743. ! Node: Override Directive145728
  5744. ! Node: Defining147107
  5745. ! Node: Environment149105
  5746. ! Node: Conditionals151233
  5747. ! Node: Conditional Example151942
  5748. ! Node: Conditional Syntax154508
  5749. ! Node: Testing Flags159254
  5750. ! Node: Functions160351
  5751. ! Node: Syntax of Functions161349
  5752. ! Node: Text Functions163486
  5753. ! Node: Filename Functions170240
  5754. ! Node: Foreach Function175361
  5755. ! Node: Origin Function178563
  5756. ! Node: Shell Function181788
  5757. ! Node: Running183165
  5758. ! Node: Makefile Arguments185153
  5759. ! Node: Goals185848
  5760. ! Node: Instead of Execution189714
  5761. ! Node: Avoiding Compilation192995
  5762. ! Node: Overriding194896
  5763. ! Node: Testing197184
  5764. ! Node: Options Summary199061
  5765. ! Node: Implicit Rules205871
  5766. ! Node: Using Implicit208017
  5767. ! Node: Catalogue of Rules211504
  5768. ! Node: Implicit Variables220485
  5769. ! Node: Chained Rules224611
  5770. ! Node: Pattern Rules227309
  5771. ! Node: Pattern Intro228837
  5772. ! Node: Pattern Examples231648
  5773. ! Node: Automatic233441
  5774. ! Node: Pattern Match239453
  5775. ! Node: Match-Anything Rules241057
  5776. ! Node: Canceling Rules244916
  5777. ! Node: Last Resort245619
  5778. ! Node: Suffix Rules247456
  5779. ! Node: Search Algorithm251163
  5780. ! Node: Archives254659
  5781. ! Node: Archive Members255276
  5782. ! Node: Archive Update256855
  5783. ! Node: Archive Symbols258775
  5784. ! Node: Archive Suffix Rules259974
  5785. ! Node: Features261512
  5786. ! Node: Missing269799
  5787. ! Node: Makefile Conventions274128
  5788. ! Node: Makefile Basics274476
  5789. ! Node: Utilities in Makefiles276362
  5790. ! Node: Standard Targets277793
  5791. ! Node: Command Variables284897
  5792. ! Node: Directory Variables287722
  5793. ! Node: Quick Reference294189
  5794. ! Node: Complex Makefile301592
  5795. ! Node: Concept Index310259
  5796. ! Node: Name Index348949
  5797.   
  5798.   End Tag Table
  5799. diff -rc --new-file make-3.71/make.info-1 /gnu/src/amiga/make-3.71/make.info-1
  5800. *** make-3.71/make.info-1    Thu Dec 16 23:32:47 1993
  5801. --- /gnu/src/amiga/make-3.71/make.info-1    Tue May 17 03:58:49 1994
  5802. ***************
  5803. *** 5,14 ****
  5804.   automatically which pieces of a large program need to be recompiled,
  5805.   and issues the commands to recompile them.
  5806.   
  5807. !    This is Edition 0.45, last updated 14 December 1993, of `The GNU
  5808. ! Make Manual', for `make', Version 3.70 Beta.
  5809.   
  5810. !    Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software
  5811.   Foundation, Inc.
  5812.   
  5813.      Permission is granted to make and distribute verbatim copies of this
  5814. --- 5,14 ----
  5815.   automatically which pieces of a large program need to be recompiled,
  5816.   and issues the commands to recompile them.
  5817.   
  5818. !    This is Edition 0.45, last updated 11 May 1994, of `The GNU Make
  5819. ! Manual', for `make', Version 3.71 Beta.
  5820.   
  5821. !    Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software
  5822.   Foundation, Inc.
  5823.   
  5824.      Permission is granted to make and distribute verbatim copies of this
  5825. ***************
  5826. *** 35,42 ****
  5827.   large program need to be recompiled, and issues the commands to
  5828.   recompile them.
  5829.   
  5830. !    This is Edition 0.45 of the `GNU Make Manual', last updated 14
  5831. ! December 1993 for `make' Version 3.70 Beta.
  5832.   
  5833.      This manual describes `make' and contains the following chapters:
  5834.   
  5835. --- 35,42 ----
  5836.   large program need to be recompiled, and issues the commands to
  5837.   recompile them.
  5838.   
  5839. !    This is Edition 0.45 of the `GNU Make Manual', last updated 11 May
  5840. ! 1994 for `make' Version 3.71 Beta.
  5841.   
  5842.      This manual describes `make' and contains the following chapters:
  5843.   
  5844. ***************
  5845. *** 355,371 ****
  5846.   
  5847.      Non-bug suggestions are always welcome as well.  If you have
  5848.   questions about things that are unclear in the documentation or are
  5849. ! just obscure features, contact Roland McGrath; he will try to help you
  5850. ! out, although he may not have time to fix the problem.
  5851. !    You can send electronic mail to Roland McGrath either through the
  5852. ! Internet or via UUCP:
  5853. !      Internet address:
  5854. !          roland@prep.ai.mit.edu
  5855. !      
  5856. !      UUCP path:
  5857. !          mit-eddie!prep.ai.mit.edu!roland
  5858.   
  5859.   
  5860.   File: make.info,  Node: Introduction,  Next: Makefiles,  Prev: Overview,  Up: Top
  5861. --- 355,365 ----
  5862.   
  5863.      Non-bug suggestions are always welcome as well.  If you have
  5864.   questions about things that are unclear in the documentation or are
  5865. ! just obscure features, send a message to the bug reporting address.  We
  5866. ! cannot guarantee you'll get help with your problem, but many seasoned
  5867. ! `make' users read the mailing list and they will probably try to help
  5868. ! you out.  The maintainers sometimes answer such questions as well, when
  5869. ! time permits.
  5870.   
  5871.   
  5872.   File: make.info,  Node: Introduction,  Next: Makefiles,  Prev: Overview,  Up: Top
  5873. ***************
  5874. *** 1045,1055 ****
  5875.   target, `make' will not let you just do this.  But there is another way.
  5876.   
  5877.      In the containing makefile (the one that wants to include the other),
  5878. ! you can use the `.DEFAULT' special target to say that to remake any
  5879.   target that cannot be made from the information in the containing
  5880. ! makefile, `make' should look in another makefile.  *Note Defining
  5881. ! Last-Resort Default Rules: Last Resort, for more information on
  5882. ! `.DEFAULT'.
  5883.   
  5884.      For example, if you have a makefile called `Makefile' that says how
  5885.   to make the target `foo' (and other targets), you can write a makefile
  5886. --- 1039,1048 ----
  5887.   target, `make' will not let you just do this.  But there is another way.
  5888.   
  5889.      In the containing makefile (the one that wants to include the other),
  5890. ! you can use a match-anything pattern rule to say that to remake any
  5891.   target that cannot be made from the information in the containing
  5892. ! makefile, `make' should look in another makefile.  *Note Pattern
  5893. ! Rules::, for more information on pattern rules.
  5894.   
  5895.      For example, if you have a makefile called `Makefile' that says how
  5896.   to make the target `foo' (and other targets), you can write a makefile
  5897. ***************
  5898. *** 1058,1074 ****
  5899.        foo:
  5900.                frobnicate > foo
  5901.        
  5902. !      .DEFAULT:
  5903.                @$(MAKE) -f Makefile $@
  5904.   
  5905.      If you say `make foo', `make' will find `GNUmakefile', read it, and
  5906.   see that to make `foo', it needs to run the command `frobnicate > foo'.
  5907.   If you say `make bar', `make' will find no way to make `bar' in
  5908. ! `GNUmakefile', so it will use the commands from `.DEFAULT': `make -f
  5909. ! Makefile bar'.  If `Makefile' provides a rule for updating `bar', `make'
  5910. ! will apply the rule.  And likewise for any other target that
  5911.   `GNUmakefile' does not say how to make.
  5912.   
  5913.   
  5914.   File: make.info,  Node: Rules,  Next: Commands,  Prev: Makefiles,  Up: Top
  5915.   
  5916. --- 1051,1076 ----
  5917.        foo:
  5918.                frobnicate > foo
  5919.        
  5920. !      %: force
  5921.                @$(MAKE) -f Makefile $@
  5922. +      force: ;
  5923.   
  5924.      If you say `make foo', `make' will find `GNUmakefile', read it, and
  5925.   see that to make `foo', it needs to run the command `frobnicate > foo'.
  5926.   If you say `make bar', `make' will find no way to make `bar' in
  5927. ! `GNUmakefile', so it will use the commands from the pattern rule: `make
  5928. ! -f Makefile bar'.  If `Makefile' provides a rule for updating `bar',
  5929. ! `make' will apply the rule.  And likewise for any other target that
  5930.   `GNUmakefile' does not say how to make.
  5931.   
  5932. +    The way this works is that the pattern rule has a pattern of just
  5933. + `%', so it matches any target whatever.  The rule specifies a
  5934. + dependency `force', to guarantee that the commands will be run even if
  5935. + the target file already exists.  We give `force' target empty commands
  5936. + to prevent `make' from searching for an implicit rule to build
  5937. + it--otherwise it would apply the same match-anything rule to `force'
  5938. + itself and create a dependency loop!
  5939.   
  5940.   File: make.info,  Node: Rules,  Next: Commands,  Prev: Makefiles,  Up: Top
  5941.   
  5942. ***************
  5943. *** 1117,1146 ****
  5944.                                     several independent rules for one target.
  5945.   * Automatic Dependencies::      How to automatically generate rules giving
  5946.                                    dependencies from the source files themselves.
  5947. - 
  5948. - File: make.info,  Node: Rule Example,  Next: Rule Syntax,  Up: Rules
  5949. - Rule Example
  5950. - ============
  5951. -    Here is an example of a rule:
  5952. -      foo.o : foo.c defs.h       # module for twiddling the frobs
  5953. -              cc -c -g foo.c
  5954. -    Its target is `foo.o' and its dependencies are `foo.c' and `defs.h'.
  5955. - It has one command, which is `cc -c -g foo.c'.  The command line
  5956. - starts with a tab to identify it as a command.
  5957. -    This rule says two things:
  5958. -    * How to decide whether `foo.o' is out of date: it is out of date if
  5959. -      it does not exist, or if either `foo.c' or `defs.h' is more recent
  5960. -      than it.
  5961. -    * How to update the file `foo.o': by running `cc' as stated.  The
  5962. -      command does not explicitly mention `defs.h', but we presume that
  5963. -      `foo.c' includes it, and that that is why `defs.h' was added to
  5964. -      the dependencies.
  5965.   
  5966. --- 1119,1122 ----
  5967. diff -rc --new-file make-3.71/make.info-2 /gnu/src/amiga/make-3.71/make.info-2
  5968. *** make-3.71/make.info-2    Thu Dec 16 23:32:47 1993
  5969. --- /gnu/src/amiga/make-3.71/make.info-2    Tue May 17 03:58:49 1994
  5970. ***************
  5971. *** 5,14 ****
  5972.   automatically which pieces of a large program need to be recompiled,
  5973.   and issues the commands to recompile them.
  5974.   
  5975. !    This is Edition 0.45, last updated 14 December 1993, of `The GNU
  5976. ! Make Manual', for `make', Version 3.70 Beta.
  5977.   
  5978. !    Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software
  5979.   Foundation, Inc.
  5980.   
  5981.      Permission is granted to make and distribute verbatim copies of this
  5982. --- 5,14 ----
  5983.   automatically which pieces of a large program need to be recompiled,
  5984.   and issues the commands to recompile them.
  5985.   
  5986. !    This is Edition 0.45, last updated 11 May 1994, of `The GNU Make
  5987. ! Manual', for `make', Version 3.71 Beta.
  5988.   
  5989. !    Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software
  5990.   Foundation, Inc.
  5991.   
  5992.      Permission is granted to make and distribute verbatim copies of this
  5993. ***************
  5994. *** 26,31 ****
  5995. --- 26,57 ----
  5996.   translation approved by the Free Software Foundation.
  5997.   
  5998.   
  5999. + File: make.info,  Node: Rule Example,  Next: Rule Syntax,  Up: Rules
  6000. + Rule Example
  6001. + ============
  6002. +    Here is an example of a rule:
  6003. +      foo.o : foo.c defs.h       # module for twiddling the frobs
  6004. +              cc -c -g foo.c
  6005. +    Its target is `foo.o' and its dependencies are `foo.c' and `defs.h'.
  6006. + It has one command, which is `cc -c -g foo.c'.  The command line
  6007. + starts with a tab to identify it as a command.
  6008. +    This rule says two things:
  6009. +    * How to decide whether `foo.o' is out of date: it is out of date if
  6010. +      it does not exist, or if either `foo.c' or `defs.h' is more recent
  6011. +      than it.
  6012. +    * How to update the file `foo.o': by running `cc' as stated.  The
  6013. +      command does not explicitly mention `defs.h', but we presume that
  6014. +      `foo.c' includes it, and that that is why `defs.h' was added to
  6015. +      the dependencies.
  6016. + 
  6017.   File: make.info,  Node: Rule Syntax,  Next: Wildcards,  Prev: Rule Example,  Up: Rules
  6018.   
  6019.   Rule Syntax
  6020. ***************
  6021. *** 177,183 ****
  6022.   
  6023.      But what if you delete all the `.o' files?  When a wildcard matches
  6024.   no files, it is left as it is, so then `foo' will depend on the
  6025. ! oddly-named file `*.o'.  Since so such file is likely to exist, `make'
  6026.   will give you an error saying it cannot figure out how to make `*.o'.
  6027.   This is not what you want!
  6028.   
  6029. --- 203,209 ----
  6030.   
  6031.      But what if you delete all the `.o' files?  When a wildcard matches
  6032.   no files, it is left as it is, so then `foo' will depend on the
  6033. ! oddly-named file `*.o'.  Since no such file is likely to exist, `make'
  6034.   will give you an error saying it cannot figure out how to make `*.o'.
  6035.   This is not what you want!
  6036.   
  6037. ***************
  6038. *** 277,285 ****
  6039.   current directory.  *Note Writing Shell Commands with Directory Search:
  6040.   Commands/Search.
  6041.   
  6042. !    In the `VPATH' variable, directory names are separated by colons.
  6043. ! The order in which directories are listed is the order followed by
  6044. ! `make' in its search.
  6045.   
  6046.      For example,
  6047.   
  6048. --- 303,311 ----
  6049.   current directory.  *Note Writing Shell Commands with Directory Search:
  6050.   Commands/Search.
  6051.   
  6052. !    In the `VPATH' variable, directory names are separated by colons or
  6053. ! blanks.  The order in which directories are listed is the order followed
  6054. ! by `make' in its search.
  6055.   
  6056.      For example,
  6057.   
  6058. ***************
  6059. *** 317,325 ****
  6060.        Specify the search path DIRECTORIES for file names that match
  6061.        PATTERN.
  6062.   
  6063. !      The search path, DIRECTORIES, is a colon-separated list of
  6064. !      directories to be searched, just like the search path used in the
  6065. !      `VPATH' variable.
  6066.   
  6067.   `vpath PATTERN'
  6068.        Clear out the search path associated with PATTERN.
  6069. --- 343,351 ----
  6070.        Specify the search path DIRECTORIES for file names that match
  6071.        PATTERN.
  6072.   
  6073. !      The search path, DIRECTORIES, is a list of directories to be
  6074. !      searched, separated by colons or blanks, just like the search path
  6075. !      used in the `VPATH' variable.
  6076.   
  6077.   `vpath PATTERN'
  6078.        Clear out the search path associated with PATTERN.
  6079. ***************
  6080. *** 989,994 ****
  6081. --- 1015,1025 ----
  6082.   
  6083.   Thus you no longer have to write all those rules yourself.  The
  6084.   compiler will do it for you.
  6085. +    Note that such a dependency constitutes mentioning `main.o' in a
  6086. + makefile, so it can never be considered an intermediate file by implicit
  6087. + rule search.  This means that `make' won't ever remove the file after
  6088. + using it; *note Chains of Implicit Rules: Chained Rules..
  6089.   
  6090.      With old `make' programs, it was traditional practice to use this
  6091.   compiler feature to generate dependencies on demand with a command like
  6092. diff -rc --new-file make-3.71/make.info-3 /gnu/src/amiga/make-3.71/make.info-3
  6093. *** make-3.71/make.info-3    Thu Dec 16 23:32:47 1993
  6094. --- /gnu/src/amiga/make-3.71/make.info-3    Tue May 17 03:58:49 1994
  6095. ***************
  6096. *** 5,14 ****
  6097.   automatically which pieces of a large program need to be recompiled,
  6098.   and issues the commands to recompile them.
  6099.   
  6100. !    This is Edition 0.45, last updated 14 December 1993, of `The GNU
  6101. ! Make Manual', for `make', Version 3.70 Beta.
  6102.   
  6103. !    Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software
  6104.   Foundation, Inc.
  6105.   
  6106.      Permission is granted to make and distribute verbatim copies of this
  6107. --- 5,14 ----
  6108.   automatically which pieces of a large program need to be recompiled,
  6109.   and issues the commands to recompile them.
  6110.   
  6111. !    This is Edition 0.45, last updated 11 May 1994, of `The GNU Make
  6112. ! Manual', for `make', Version 3.71 Beta.
  6113.   
  6114. !    Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software
  6115.   Foundation, Inc.
  6116.   
  6117.      Permission is granted to make and distribute verbatim copies of this
  6118. ***************
  6119. *** 387,415 ****
  6120.        subsystem:
  6121.                cd subdir; $(MAKE) $(MFLAGS)
  6122.   
  6123. ! but now `MAKEFLAGS' makes this usage redundant.
  6124. !    The `MAKEFLAGS' and `MFLAGS' variables can also be useful if you
  6125. ! want to have certain options, such as `-k' (*note Summary of Options:
  6126. ! Options Summary.), set each time you run `make'.  You simply put a
  6127. ! value for `MAKEFLAGS' or `MFLAGS' in your environment.  These variables
  6128. ! may also be set in makefiles, so a makefile can specify additional
  6129. ! flags that should also be in effect for that makefile.
  6130. !    When `make' interprets the value of `MAKEFLAGS' or `MFLAGS' (either
  6131. ! from the environment or from a makefile), it first prepends a hyphen if
  6132. ! the value does not already begin with one.  Then it chops the value into
  6133. ! words separated by blanks, and parses these words as if they were
  6134. ! options given on the command line (except that `-C', `-f', `-h', `-o',
  6135. ! `-W', and their long-named versions are ignored; and there is no error
  6136. ! for an invalid option).
  6137. !    If you do put `MAKEFLAGS' or `MFLAGS' in your environment, you
  6138. ! should be sure not to include any options that will drastically affect
  6139. ! the actions of `make' and undermine the purpose of makefiles and of
  6140. ! `make' itself.  For instance, the `-t', `-n', and `-q' options, if put
  6141. ! in one of these variables, could have disastrous consequences and would
  6142. ! certainly have at least surprising and probably annoying effects.
  6143.   
  6144.   
  6145.   File: make.info,  Node: -w Option,  Prev: Options/Recursion,  Up: Recursion
  6146. --- 387,419 ----
  6147.        subsystem:
  6148.                cd subdir; $(MAKE) $(MFLAGS)
  6149.   
  6150. ! but now `MAKEFLAGS' makes this usage redundant.  If you want your
  6151. ! makefiles to be compatible with old `make' programs, use this
  6152. ! technique; it will work fine with more modern `make' versions too.
  6153. !    The `MAKEFLAGS' variable can also be useful if you want to have
  6154. ! certain options, such as `-k' (*note Summary of Options: Options
  6155. ! Summary.), set each time you run `make'.  You simply put a value for
  6156. ! `MAKEFLAGS' in your environment.  You can also set `MAKEFLAGS' in a
  6157. ! makefile, to specify additional flags that should also be in effect for
  6158. ! that makefile.  (Note that you cannot use `MFLAGS' this way.  That
  6159. ! variable is set only for compatibility; `make' does not interpret a
  6160. ! value you set for it in any way.)
  6161. !    When `make' interprets the value of `MAKEFLAGS' (either from the
  6162. ! environment or from a makefile), it first prepends a hyphen if the value
  6163. ! does not already begin with one.  Then it chops the value into words
  6164. ! separated by blanks, and parses these words as if they were options
  6165. ! given on the command line (except that `-C', `-f', `-h', `-o', `-W',
  6166. ! and their long-named versions are ignored; and there is no error for an
  6167. ! invalid option).
  6168. !    If you do put `MAKEFLAGS' in your environment, you should be sure not
  6169. ! to include any options that will drastically affect the actions of
  6170. ! `make' and undermine the purpose of makefiles and of `make' itself.
  6171. ! For instance, the `-t', `-n', and `-q' options, if put in one of these
  6172. ! variables, could have disastrous consequences and would certainly have
  6173. ! at least surprising and probably annoying effects.
  6174.   
  6175.   
  6176.   File: make.info,  Node: -w Option,  Prev: Options/Recursion,  Up: Recursion
  6177. ***************
  6178. *** 580,585 ****
  6179. --- 584,593 ----
  6180.   should override with command options (*note Overriding Variables:
  6181.   Overriding.).
  6182.   
  6183. +    A few variables have names that are a single punctuation character or
  6184. + just a few characters.  These are the "automatic variables", and they
  6185. + have particular specialized uses.  *Note Automatic Variables: Automatic.
  6186.   * Menu:
  6187.   
  6188.   * Reference::                   How to use the value of a variable.
  6189. ***************
  6190. *** 594,599 ****
  6191. --- 602,609 ----
  6192.   * Defining::                    An alternate way to set a variable
  6193.                                     to a verbatim string.
  6194.   * Environment::                 Variable values can come from the environment.
  6195. + * Automatic::                   Some special variables have predefined
  6196. +                                   meanings for use with implicit rules.
  6197.   
  6198.   
  6199.   File: make.info,  Node: Reference,  Next: Flavors,  Up: Using Variables
  6200. diff -rc --new-file make-3.71/make.info-4 /gnu/src/amiga/make-3.71/make.info-4
  6201. *** make-3.71/make.info-4    Thu Dec 16 23:32:47 1993
  6202. --- /gnu/src/amiga/make-3.71/make.info-4    Tue May 17 03:58:49 1994
  6203. ***************
  6204. *** 5,14 ****
  6205.   automatically which pieces of a large program need to be recompiled,
  6206.   and issues the commands to recompile them.
  6207.   
  6208. !    This is Edition 0.45, last updated 14 December 1993, of `The GNU
  6209. ! Make Manual', for `make', Version 3.70 Beta.
  6210.   
  6211. !    Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software
  6212.   Foundation, Inc.
  6213.   
  6214.      Permission is granted to make and distribute verbatim copies of this
  6215. --- 5,14 ----
  6216.   automatically which pieces of a large program need to be recompiled,
  6217.   and issues the commands to recompile them.
  6218.   
  6219. !    This is Edition 0.45, last updated 11 May 1994, of `The GNU Make
  6220. ! Manual', for `make', Version 3.71 Beta.
  6221.   
  6222. !    Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software
  6223.   Foundation, Inc.
  6224.   
  6225.      Permission is granted to make and distribute verbatim copies of this
  6226. ***************
  6227. *** 932,937 ****
  6228. --- 932,950 ----
  6229.      By giving arguments when you run `make', you can do any of these
  6230.   things and many others.
  6231.   
  6232. +    The exit status of `make' is always one of three values:
  6233. + `0'
  6234. +      The exit status is zero if `make' is successful.
  6235. + `2'
  6236. +      The exit status is two if `make' encounters any errors.  It will
  6237. +      print messages describing the particular errors.
  6238. + `1'
  6239. +      The exit status is one if you use the `-q' flag and `make'
  6240. +      determines that some target is not already up to date.  *Note
  6241. +      Instead of Executing the Commands: Instead of Execution.
  6242.   * Menu:
  6243.   
  6244.   * Makefile Arguments::          How to specify which makefile to use.
  6245. ***************
  6246. *** 1113,1119 ****
  6247.   
  6248.      With the `-q' flag, `make' prints nothing and executes no commands,
  6249.   but the exit status code it returns is zero if and only if the targets
  6250. ! to be considered are already up to date.
  6251.   
  6252.      It is an error to use more than one of these three flags in the same
  6253.   invocation of `make'.
  6254. --- 1126,1135 ----
  6255.   
  6256.      With the `-q' flag, `make' prints nothing and executes no commands,
  6257.   but the exit status code it returns is zero if and only if the targets
  6258. ! to be considered are already up to date.  If the exit status is one,
  6259. ! then some updating needs to be done.  If `make' encounters an error,
  6260. ! the exit status is two, so you can distinguish an error from a target
  6261. ! that is not up to date.
  6262.   
  6263.      It is an error to use more than one of these three flags in the same
  6264.   invocation of `make'.
  6265. diff -rc --new-file make-3.71/make.info-5 /gnu/src/amiga/make-3.71/make.info-5
  6266. *** make-3.71/make.info-5    Thu Dec 16 23:32:47 1993
  6267. --- /gnu/src/amiga/make-3.71/make.info-5    Tue May 17 03:58:49 1994
  6268. ***************
  6269. *** 5,14 ****
  6270.   automatically which pieces of a large program need to be recompiled,
  6271.   and issues the commands to recompile them.
  6272.   
  6273. !    This is Edition 0.45, last updated 14 December 1993, of `The GNU
  6274. ! Make Manual', for `make', Version 3.70 Beta.
  6275.   
  6276. !    Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software
  6277.   Foundation, Inc.
  6278.   
  6279.      Permission is granted to make and distribute verbatim copies of this
  6280. --- 5,14 ----
  6281.   automatically which pieces of a large program need to be recompiled,
  6282.   and issues the commands to recompile them.
  6283.   
  6284. !    This is Edition 0.45, last updated 11 May 1994, of `The GNU Make
  6285. ! Manual', for `make', Version 3.71 Beta.
  6286.   
  6287. !    Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software
  6288.   Foundation, Inc.
  6289.   
  6290.      Permission is granted to make and distribute verbatim copies of this
  6291. ***************
  6292. *** 134,141 ****
  6293.   `--question'
  6294.        "Question mode".  Do not run any commands, or print anything; just
  6295.        return an exit status that is zero if the specified targets are
  6296. !      already up to date, nonzero otherwise.  *Note Instead of Executing
  6297. !      the Commands: Instead of Execution.
  6298.   
  6299.   `-r'
  6300.   `--no-builtin-rules'
  6301. --- 134,142 ----
  6302.   `--question'
  6303.        "Question mode".  Do not run any commands, or print anything; just
  6304.        return an exit status that is zero if the specified targets are
  6305. !      already up to date, one if any remaking is required, or two if an
  6306. !      error is encountered.  *Note Instead of Executing the Commands:
  6307. !      Instead of Execution.
  6308.   
  6309.   `-r'
  6310.   `--no-builtin-rules'
  6311. ***************
  6312. *** 478,485 ****
  6313.   
  6314.   Texinfo and Info
  6315.        `N.dvi' is made from `N.texinfo', `N.texi', or `N.txinfo', with
  6316. !      the `$(TEXI2DVI)' command.  `N.info' is made from `N.texinfo',
  6317. !      `N.texi', or `N.txinfo', with the `$(MAKEINFO)' command.
  6318.   
  6319.   RCS
  6320.        Any file `N' is extracted if necessary from an RCS file named
  6321. --- 479,487 ----
  6322.   
  6323.   Texinfo and Info
  6324.        `N.dvi' is made from `N.texinfo', `N.texi', or `N.txinfo', with
  6325. !      the command `$(TEXI2DVI) $(TEXI2DVI_FLAGS)'.  `N.info' is made from
  6326. !      `N.texinfo', `N.texi', or `N.txinfo', with the command
  6327. !      `$(MAKEINFO) $(MAKEINFO_FLAGS)'.
  6328.   
  6329.   RCS
  6330.        Any file `N' is extracted if necessary from an RCS file named
  6331. ***************
  6332. *** 909,915 ****
  6333.   `$^'
  6334.        The names of all the dependencies, with spaces between them.  For
  6335.        dependencies which are archive members, only the member named is
  6336. !      used (*note Archives::.).
  6337.   
  6338.   `$*'
  6339.        The stem with which an implicit rule matches (*note How Patterns
  6340. --- 911,921 ----
  6341.   `$^'
  6342.        The names of all the dependencies, with spaces between them.  For
  6343.        dependencies which are archive members, only the member named is
  6344. !      used (*note Archives::.).  A target has only one dependency on
  6345. !      each other file it depends on, no matter how many times each file
  6346. !      is listed as a dependency.  So if you list a dependency more than
  6347. !      once for a target, the value of `$^' contains just one copy of the
  6348. !      name.
  6349.   
  6350.   `$*'
  6351.        The stem with which an implicit rule matches (*note How Patterns
  6352. ***************
  6353. *** 941,959 ****
  6354.                ar r lib $?
  6355.   
  6356.      Of the variables listed above, four have values that are single file
  6357. ! names, and two have values that are lists of file names.  These six
  6358. ! have variants that get just the file's directory name or just the file
  6359. ! name within the directory.  The variant variables' names are formed by
  6360.   appending `D' or `F', respectively.  These variants are semi-obsolete
  6361.   in GNU `make' since the functions `dir' and `notdir' can be used to get
  6362. ! an equivalent effect (*note Functions for File Names: Filename
  6363. ! Functions.).  Here is a table of the variants:
  6364.   
  6365.   `$(@D)'
  6366. !      The directory part of the file name of the target.  If the value of
  6367. !      `$@' is `dir/foo.o' then `$(@D)' is `dir/'.  This value is `./' if
  6368. !      `$@' does not contain a slash.  `$(@D)' is equivalent to
  6369. !      `$(dir $@)'.
  6370.   
  6371.   `$(@F)'
  6372.        The file-within-directory part of the file name of the target.  If
  6373. --- 947,967 ----
  6374.                ar r lib $?
  6375.   
  6376.      Of the variables listed above, four have values that are single file
  6377. ! names, and two have values that are lists of file names.  These six have
  6378. ! variants that get just the file's directory name or just the file name
  6379. ! within the directory.  The variant variables' names are formed by
  6380.   appending `D' or `F', respectively.  These variants are semi-obsolete
  6381.   in GNU `make' since the functions `dir' and `notdir' can be used to get
  6382. ! a similar effect (*note Functions for File Names: Filename Functions.).
  6383. ! Note, however, that the `F' variants all omit the trailing slash which
  6384. ! always appears in the output of the `dir' function.  Here is a table of
  6385. ! the variants:
  6386.   
  6387.   `$(@D)'
  6388. !      The directory part of the file name of the target, with the
  6389. !      trailing slash removed.  If the value of `$@' is `dir/foo.o' then
  6390. !      `$(@D)' is `dir'.  This value is `.' if `$@' does not contain a
  6391. !      slash.
  6392.   
  6393.   `$(@F)'
  6394.        The file-within-directory part of the file name of the target.  If
  6395. ***************
  6396. *** 963,969 ****
  6397.   `$(*D)'
  6398.   `$(*F)'
  6399.        The directory part and the file-within-directory part of the stem;
  6400. !      `dir/' and `foo' in this example.
  6401.   
  6402.   `$(%D)'
  6403.   `$(%F)'
  6404. --- 971,977 ----
  6405.   `$(*D)'
  6406.   `$(*F)'
  6407.        The directory part and the file-within-directory part of the stem;
  6408. !      `dir' and `foo' in this example.
  6409.   
  6410.   `$(%D)'
  6411.   `$(%F)'
  6412. diff -rc --new-file make-3.71/make.info-6 /gnu/src/amiga/make-3.71/make.info-6
  6413. *** make-3.71/make.info-6    Thu Dec 16 23:32:47 1993
  6414. --- /gnu/src/amiga/make-3.71/make.info-6    Tue May 17 03:58:49 1994
  6415. ***************
  6416. *** 5,14 ****
  6417.   automatically which pieces of a large program need to be recompiled,
  6418.   and issues the commands to recompile them.
  6419.   
  6420. !    This is Edition 0.45, last updated 14 December 1993, of `The GNU
  6421. ! Make Manual', for `make', Version 3.70 Beta.
  6422.   
  6423. !    Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software
  6424.   Foundation, Inc.
  6425.   
  6426.      Permission is granted to make and distribute verbatim copies of this
  6427. --- 5,14 ----
  6428.   automatically which pieces of a large program need to be recompiled,
  6429.   and issues the commands to recompile them.
  6430.   
  6431. !    This is Edition 0.45, last updated 11 May 1994, of `The GNU Make
  6432. ! Manual', for `make', Version 3.71 Beta.
  6433.   
  6434. !    Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software
  6435.   Foundation, Inc.
  6436.   
  6437.      Permission is granted to make and distribute verbatim copies of this
  6438. ***************
  6439. *** 218,225 ****
  6440.   ==========================
  6441.   
  6442.      An individual member of an archive file can be used as a target or
  6443. ! dependency in `make'.  The archive file must already exist, but the
  6444. ! member need not exist.  You specify the member named MEMBER in archive
  6445.   file ARCHIVE as follows:
  6446.   
  6447.        ARCHIVE(MEMBER)
  6448. --- 218,224 ----
  6449.   ==========================
  6450.   
  6451.      An individual member of an archive file can be used as a target or
  6452. ! dependency in `make'.  You specify the member named MEMBER in archive
  6453.   file ARCHIVE as follows:
  6454.   
  6455.        ARCHIVE(MEMBER)
  6456. ***************
  6457. *** 233,242 ****
  6458.   in archive `foolib' by copying the file `hack.o':
  6459.   
  6460.        foolib(hack.o) : hack.o
  6461. !              ar r foolib hack.o
  6462.   
  6463.      In fact, nearly all archive member targets are updated in just this
  6464. ! way and there is an implicit rule to do it for you.
  6465.   
  6466.      To specify several members in the same archive, you can write all the
  6467.   member names together between the parentheses.  For example:
  6468. --- 232,242 ----
  6469.   in archive `foolib' by copying the file `hack.o':
  6470.   
  6471.        foolib(hack.o) : hack.o
  6472. !              ar cr foolib hack.o
  6473.   
  6474.      In fact, nearly all archive member targets are updated in just this
  6475. ! way and there is an implicit rule to do it for you.  *Note:* The `c'
  6476. ! flag to `ar' is required if the archive file does not already exist.
  6477.   
  6478.      To specify several members in the same archive, you can write all the
  6479.   member names together between the parentheses.  For example:
  6480. ***************
  6481. *** 295,302 ****
  6482.   
  6483.        ar r foo.a dir/file.o
  6484.   
  6485. ! which has the effect of copying the file `dir/foo.o' into a member
  6486. ! named `foo.o'.  In connection with such usage, the automatic variables
  6487.   `%D' and `%F' may be useful.
  6488.   
  6489.   * Menu:
  6490. --- 295,302 ----
  6491.   
  6492.        ar r foo.a dir/file.o
  6493.   
  6494. ! which has the effect of copying the file `dir/file.o' into a member
  6495. ! named `file.o'.  In connection with such usage, the automatic variables
  6496.   `%D' and `%F' may be useful.
  6497.   
  6498.   * Menu:
  6499. diff -rc --new-file make-3.71/make.info-7 /gnu/src/amiga/make-3.71/make.info-7
  6500. *** make-3.71/make.info-7    Thu Dec 16 23:32:47 1993
  6501. --- /gnu/src/amiga/make-3.71/make.info-7    Tue May 17 03:58:49 1994
  6502. ***************
  6503. *** 5,14 ****
  6504.   automatically which pieces of a large program need to be recompiled,
  6505.   and issues the commands to recompile them.
  6506.   
  6507. !    This is Edition 0.45, last updated 14 December 1993, of `The GNU
  6508. ! Make Manual', for `make', Version 3.70 Beta.
  6509.   
  6510. !    Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software
  6511.   Foundation, Inc.
  6512.   
  6513.      Permission is granted to make and distribute verbatim copies of this
  6514. --- 5,14 ----
  6515.   automatically which pieces of a large program need to be recompiled,
  6516.   and issues the commands to recompile them.
  6517.   
  6518. !    This is Edition 0.45, last updated 11 May 1994, of `The GNU Make
  6519. ! Manual', for `make', Version 3.71 Beta.
  6520.   
  6521. !    Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software
  6522.   Foundation, Inc.
  6523.   
  6524.      Permission is granted to make and distribute verbatim copies of this
  6525. ***************
  6526. *** 266,272 ****
  6527.        *Note Variables/Recursion::.
  6528.   
  6529.   `MAKEFLAGS'
  6530. - `MFLAGS'
  6531.        The flags given to `make'.  You can set this in the environment or
  6532.        a makefile to set flags.
  6533.        *Note Communicating Options to a Sub-`make': Options/Recursion.
  6534. --- 266,271 ----
  6535. diff -rc --new-file make-3.71/make.info-8 /gnu/src/amiga/make-3.71/make.info-8
  6536. *** make-3.71/make.info-8    Thu Dec 16 23:32:48 1993
  6537. --- /gnu/src/amiga/make-3.71/make.info-8    Tue May 17 03:58:50 1994
  6538. ***************
  6539. *** 5,14 ****
  6540.   automatically which pieces of a large program need to be recompiled,
  6541.   and issues the commands to recompile them.
  6542.   
  6543. !    This is Edition 0.45, last updated 14 December 1993, of `The GNU
  6544. ! Make Manual', for `make', Version 3.70 Beta.
  6545.   
  6546. !    Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software
  6547.   Foundation, Inc.
  6548.   
  6549.      Permission is granted to make and distribute verbatim copies of this
  6550. --- 5,14 ----
  6551.   automatically which pieces of a large program need to be recompiled,
  6552.   and issues the commands to recompile them.
  6553.   
  6554. !    This is Edition 0.45, last updated 11 May 1994, of `The GNU Make
  6555. ! Manual', for `make', Version 3.71 Beta.
  6556.   
  6557. !    Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software
  6558.   Foundation, Inc.
  6559.   
  6560.      Permission is granted to make and distribute verbatim copies of this
  6561. ***************
  6562. *** 66,73 ****
  6563.   * .y:                                   Catalogue of Rules.
  6564.   * :=:                                   Setting.
  6565.   * :=:                                   Flavors.
  6566. - * =:                                    Flavors.
  6567.   * =:                                    Setting.
  6568.   * @, and define:                        Sequences.
  6569.   * #include:                             Automatic Dependencies.
  6570.   * # (comments), in commands:            Commands.
  6571. --- 66,73 ----
  6572.   * .y:                                   Catalogue of Rules.
  6573.   * :=:                                   Setting.
  6574.   * :=:                                   Flavors.
  6575.   * =:                                    Setting.
  6576. + * =:                                    Flavors.
  6577.   * @, and define:                        Sequences.
  6578.   * #include:                             Automatic Dependencies.
  6579.   * # (comments), in commands:            Commands.
  6580. ***************
  6581. *** 80,103 ****
  6582.   * %, quoting in patsubst:               Text Functions.
  6583.   * %, quoting in vpath:                  Selective Search.
  6584.   * %, quoting in static pattern:         Static Usage.
  6585. - * %, quoting with \ (backslash):        Text Functions.
  6586.   * %, quoting with \ (backslash):        Static Usage.
  6587.   * %, quoting with \ (backslash):        Selective Search.
  6588.   * * (wildcard character):               Wildcards.
  6589.   * -assume-new:                          Instead of Execution.
  6590.   * -assume-new:                          Options Summary.
  6591.   * -assume-new, and recursion:           Options/Recursion.
  6592. - * -assume-old:                          Avoiding Compilation.
  6593.   * -assume-old:                          Options Summary.
  6594.   * -assume-old, and recursion:           Options/Recursion.
  6595.   * -debug:                               Options Summary.
  6596. - * -directory:                           Recursion.
  6597.   * -directory:                           Options Summary.
  6598.   * -directory, and -print-directory:     -w Option.
  6599.   * -directory, and recursion:            Options/Recursion.
  6600. - * -dry-run:                             Echoing.
  6601. - * -dry-run:                             Options Summary.
  6602.   * -dry-run:                             Instead of Execution.
  6603.   * -environment-overrides:               Options Summary.
  6604.   * -file:                                Options Summary.
  6605.   * -file:                                Makefile Names.
  6606. --- 80,103 ----
  6607.   * %, quoting in patsubst:               Text Functions.
  6608.   * %, quoting in vpath:                  Selective Search.
  6609.   * %, quoting in static pattern:         Static Usage.
  6610.   * %, quoting with \ (backslash):        Static Usage.
  6611.   * %, quoting with \ (backslash):        Selective Search.
  6612. + * %, quoting with \ (backslash):        Text Functions.
  6613.   * * (wildcard character):               Wildcards.
  6614.   * -assume-new:                          Instead of Execution.
  6615.   * -assume-new:                          Options Summary.
  6616.   * -assume-new, and recursion:           Options/Recursion.
  6617.   * -assume-old:                          Options Summary.
  6618. + * -assume-old:                          Avoiding Compilation.
  6619.   * -assume-old, and recursion:           Options/Recursion.
  6620.   * -debug:                               Options Summary.
  6621.   * -directory:                           Options Summary.
  6622. + * -directory:                           Recursion.
  6623.   * -directory, and -print-directory:     -w Option.
  6624.   * -directory, and recursion:            Options/Recursion.
  6625.   * -dry-run:                             Instead of Execution.
  6626. + * -dry-run:                             Options Summary.
  6627. + * -dry-run:                             Echoing.
  6628.   * -environment-overrides:               Options Summary.
  6629.   * -file:                                Options Summary.
  6630.   * -file:                                Makefile Names.
  6631. ***************
  6632. *** 106,137 ****
  6633.   * -help:                                Options Summary.
  6634.   * -ignore-errors:                       Options Summary.
  6635.   * -ignore-errors:                       Errors.
  6636. - * -include-dir:                         Include.
  6637.   * -include-dir:                         Options Summary.
  6638.   * -include-dir, and recursion:          Options/Recursion.
  6639.   * -jobs:                                Options Summary.
  6640.   * -jobs:                                Parallel.
  6641.   * -jobs, and recursion:                 Options/Recursion.
  6642.   * -just-print:                          Instead of Execution.
  6643.   * -just-print:                          Echoing.
  6644. - * -just-print:                          Options Summary.
  6645. - * -keep-going:                          Options Summary.
  6646. - * -keep-going:                          Testing.
  6647.   * -keep-going:                          Errors.
  6648. ! * -load-average:                        Options Summary.
  6649.   * -load-average:                        Parallel.
  6650. ! * -makefile:                            Options Summary.
  6651. ! * -makefile:                            Makefile Names.
  6652.   * -makefile:                            Makefile Arguments.
  6653. ! * -max-load:                            Parallel.
  6654.   * -max-load:                            Options Summary.
  6655.   * -new-file:                            Options Summary.
  6656.   * -new-file:                            Instead of Execution.
  6657.   * -new-file, and recursion:             Options/Recursion.
  6658.   * -no-builtin-rules:                    Options Summary.
  6659.   * -no-keep-going:                       Options Summary.
  6660. - * -no-print-directory:                  -w Option.
  6661.   * -no-print-directory:                  Options Summary.
  6662.   * -old-file:                            Avoiding Compilation.
  6663.   * -old-file:                            Options Summary.
  6664.   * -old-file, and recursion:             Options/Recursion.
  6665. --- 106,137 ----
  6666.   * -help:                                Options Summary.
  6667.   * -ignore-errors:                       Options Summary.
  6668.   * -ignore-errors:                       Errors.
  6669.   * -include-dir:                         Options Summary.
  6670. + * -include-dir:                         Include.
  6671.   * -include-dir, and recursion:          Options/Recursion.
  6672.   * -jobs:                                Options Summary.
  6673.   * -jobs:                                Parallel.
  6674.   * -jobs, and recursion:                 Options/Recursion.
  6675. + * -just-print:                          Options Summary.
  6676.   * -just-print:                          Instead of Execution.
  6677.   * -just-print:                          Echoing.
  6678.   * -keep-going:                          Errors.
  6679. ! * -keep-going:                          Testing.
  6680. ! * -keep-going:                          Options Summary.
  6681.   * -load-average:                        Parallel.
  6682. ! * -load-average:                        Options Summary.
  6683.   * -makefile:                            Makefile Arguments.
  6684. ! * -makefile:                            Makefile Names.
  6685. ! * -makefile:                            Options Summary.
  6686.   * -max-load:                            Options Summary.
  6687. + * -max-load:                            Parallel.
  6688.   * -new-file:                            Options Summary.
  6689.   * -new-file:                            Instead of Execution.
  6690.   * -new-file, and recursion:             Options/Recursion.
  6691.   * -no-builtin-rules:                    Options Summary.
  6692.   * -no-keep-going:                       Options Summary.
  6693.   * -no-print-directory:                  Options Summary.
  6694. + * -no-print-directory:                  -w Option.
  6695.   * -old-file:                            Avoiding Compilation.
  6696.   * -old-file:                            Options Summary.
  6697.   * -old-file, and recursion:             Options/Recursion.
  6698. ***************
  6699. *** 140,162 ****
  6700.   * -print-directory, and -directory:     -w Option.
  6701.   * -print-directory, and recursion:      -w Option.
  6702.   * -print-directory, disabling:          -w Option.
  6703. - * -question:                            Instead of Execution.
  6704.   * -question:                            Options Summary.
  6705.   * -quiet:                               Echoing.
  6706.   * -quiet:                               Options Summary.
  6707.   * -recon:                               Instead of Execution.
  6708.   * -recon:                               Echoing.
  6709.   * -recon:                               Options Summary.
  6710. - * -silent:                              Options Summary.
  6711.   * -silent:                              Echoing.
  6712.   * -stop:                                Options Summary.
  6713. - * -touch:                               Options Summary.
  6714.   * -touch:                               Instead of Execution.
  6715.   * -touch, and recursion:                MAKE Variable.
  6716.   * -version:                             Options Summary.
  6717.   * -warn-undefined-variables:            Options Summary.
  6718. - * -what-if:                             Options Summary.
  6719.   * -what-if:                             Instead of Execution.
  6720.   * -b:                                   Options Summary.
  6721.   * -C:                                   Options Summary.
  6722.   * -C:                                   Recursion.
  6723. --- 140,162 ----
  6724.   * -print-directory, and -directory:     -w Option.
  6725.   * -print-directory, and recursion:      -w Option.
  6726.   * -print-directory, disabling:          -w Option.
  6727.   * -question:                            Options Summary.
  6728. + * -question:                            Instead of Execution.
  6729.   * -quiet:                               Echoing.
  6730.   * -quiet:                               Options Summary.
  6731.   * -recon:                               Instead of Execution.
  6732.   * -recon:                               Echoing.
  6733.   * -recon:                               Options Summary.
  6734.   * -silent:                              Echoing.
  6735. + * -silent:                              Options Summary.
  6736.   * -stop:                                Options Summary.
  6737.   * -touch:                               Instead of Execution.
  6738. + * -touch:                               Options Summary.
  6739.   * -touch, and recursion:                MAKE Variable.
  6740.   * -version:                             Options Summary.
  6741.   * -warn-undefined-variables:            Options Summary.
  6742.   * -what-if:                             Instead of Execution.
  6743. + * -what-if:                             Options Summary.
  6744.   * -b:                                   Options Summary.
  6745.   * -C:                                   Options Summary.
  6746.   * -C:                                   Recursion.
  6747. ***************
  6748. *** 165,196 ****
  6749.   * -d:                                   Options Summary.
  6750.   * -e:                                   Options Summary.
  6751.   * -e (shell flag):                      Automatic Dependencies.
  6752. - * -f:                                   Makefile Arguments.
  6753.   * -f:                                   Makefile Names.
  6754.   * -f:                                   Options Summary.
  6755.   * -f, and recursion:                    Options/Recursion.
  6756.   * -h:                                   Options Summary.
  6757.   * -i:                                   Options Summary.
  6758.   * -I:                                   Options Summary.
  6759.   * -I:                                   Include.
  6760. - * -i:                                   Errors.
  6761.   * -I, and recursion:                    Options/Recursion.
  6762. - * -j:                                   Options Summary.
  6763.   * -j:                                   Parallel.
  6764.   * -j, and recursion:                    Options/Recursion.
  6765.   * -k:                                   Testing.
  6766.   * -k:                                   Options Summary.
  6767. - * -k:                                   Errors.
  6768.   * -l:                                   Options Summary.
  6769.   * -l (library search):                  Libraries/Search.
  6770.   * -l (load average):                    Parallel.
  6771.   * -m:                                   Options Summary.
  6772.   * -M (to compiler):                     Automatic Dependencies.
  6773. - * -n:                                   Echoing.
  6774.   * -n:                                   Options Summary.
  6775.   * -n:                                   Instead of Execution.
  6776. ! * -o:                                   Options Summary.
  6777.   * -o:                                   Avoiding Compilation.
  6778.   * -o, and recursion:                    Options/Recursion.
  6779.   * -p:                                   Options Summary.
  6780.   * -q:                                   Instead of Execution.
  6781. --- 165,196 ----
  6782.   * -d:                                   Options Summary.
  6783.   * -e:                                   Options Summary.
  6784.   * -e (shell flag):                      Automatic Dependencies.
  6785.   * -f:                                   Makefile Names.
  6786.   * -f:                                   Options Summary.
  6787. + * -f:                                   Makefile Arguments.
  6788.   * -f, and recursion:                    Options/Recursion.
  6789.   * -h:                                   Options Summary.
  6790.   * -i:                                   Options Summary.
  6791. + * -i:                                   Errors.
  6792.   * -I:                                   Options Summary.
  6793.   * -I:                                   Include.
  6794.   * -I, and recursion:                    Options/Recursion.
  6795.   * -j:                                   Parallel.
  6796. + * -j:                                   Options Summary.
  6797.   * -j, and recursion:                    Options/Recursion.
  6798. + * -k:                                   Errors.
  6799.   * -k:                                   Testing.
  6800.   * -k:                                   Options Summary.
  6801.   * -l:                                   Options Summary.
  6802.   * -l (library search):                  Libraries/Search.
  6803.   * -l (load average):                    Parallel.
  6804.   * -m:                                   Options Summary.
  6805.   * -M (to compiler):                     Automatic Dependencies.
  6806.   * -n:                                   Options Summary.
  6807.   * -n:                                   Instead of Execution.
  6808. ! * -n:                                   Echoing.
  6809.   * -o:                                   Avoiding Compilation.
  6810. + * -o:                                   Options Summary.
  6811.   * -o, and recursion:                    Options/Recursion.
  6812.   * -p:                                   Options Summary.
  6813.   * -q:                                   Instead of Execution.
  6814. ***************
  6815. *** 203,218 ****
  6816.   * -t:                                   Options Summary.
  6817.   * -t, and recursion:                    MAKE Variable.
  6818.   * -v:                                   Options Summary.
  6819. - * -W:                                   Instead of Execution.
  6820. - * -W:                                   Options Summary.
  6821.   * -w:                                   Options Summary.
  6822.   * -w, and -C:                           -w Option.
  6823. - * -w, and recursion:                    -w Option.
  6824.   * -W, and recursion:                    Options/Recursion.
  6825.   * -w, disabling:                        -w Option.
  6826.   * - (in commands):                      Errors.
  6827.   * .a (archives):                        Archive Suffix Rules.
  6828. - * .DEFAULT, used to override:           Overriding Makefiles.
  6829.   * .d:                                   Automatic Dependencies.
  6830.   * .PRECIOUS intermediate files:         Chained Rules.
  6831.   * :: rules (double-colon):              Double-Colon.
  6832. --- 203,217 ----
  6833.   * -t:                                   Options Summary.
  6834.   * -t, and recursion:                    MAKE Variable.
  6835.   * -v:                                   Options Summary.
  6836.   * -w:                                   Options Summary.
  6837. + * -W:                                   Options Summary.
  6838. + * -W:                                   Instead of Execution.
  6839.   * -w, and -C:                           -w Option.
  6840.   * -W, and recursion:                    Options/Recursion.
  6841. + * -w, and recursion:                    -w Option.
  6842.   * -w, disabling:                        -w Option.
  6843.   * - (in commands):                      Errors.
  6844.   * .a (archives):                        Archive Suffix Rules.
  6845.   * .d:                                   Automatic Dependencies.
  6846.   * .PRECIOUS intermediate files:         Chained Rules.
  6847.   * :: rules (double-colon):              Double-Colon.
  6848. ***************
  6849. *** 223,255 ****
  6850.   * cd (shell command):                   MAKE Variable.
  6851.   * check (standard target):              Goals.
  6852.   * clean (standard target):              Goals.
  6853. - * clean target:                         Simple Makefile.
  6854.   * clean target:                         Cleanup.
  6855.   * clobber (standard target):            Goals.
  6856.   * distclean (standard target):          Goals.
  6857.   * dist (standard target):               Goals.
  6858.   * FORCE:                                Force Targets.
  6859.   * install (standard target):            Goals.
  6860.   * lint, rule to run:                    Catalogue of Rules.
  6861. - * lpr (shell command):                  Empty Targets.
  6862.   * lpr (shell command):                  Wildcard Examples.
  6863.   * make depend:                          Automatic Dependencies.
  6864.   * mostlyclean (standard target):        Goals.
  6865. - * objects:                              Variables Simplify.
  6866.   * OBJECTS:                              Variables Simplify.
  6867. ! * objs:                                 Variables Simplify.
  6868.   * OBJS:                                 Variables Simplify.
  6869.   * OBJ:                                  Variables Simplify.
  6870.   * obj:                                  Variables Simplify.
  6871.   * print (standard target):              Goals.
  6872. - * print target:                         Empty Targets.
  6873.   * print target:                         Wildcard Examples.
  6874.   * README:                               Makefile Names.
  6875.   * realclean (standard target):          Goals.
  6876.   * rm (shell command):                   Wildcard Examples.
  6877. - * rm (shell command):                   Simple Makefile.
  6878.   * rm (shell command):                   Errors.
  6879. ! * rm (shell command):                   Phony Targets.
  6880.   * sed (shell command):                  Automatic Dependencies.
  6881.   * shar (standard target):               Goals.
  6882.   * TAGS (standard target):               Goals.
  6883. --- 222,254 ----
  6884.   * cd (shell command):                   MAKE Variable.
  6885.   * check (standard target):              Goals.
  6886.   * clean (standard target):              Goals.
  6887.   * clean target:                         Cleanup.
  6888. + * clean target:                         Simple Makefile.
  6889.   * clobber (standard target):            Goals.
  6890.   * distclean (standard target):          Goals.
  6891.   * dist (standard target):               Goals.
  6892.   * FORCE:                                Force Targets.
  6893.   * install (standard target):            Goals.
  6894.   * lint, rule to run:                    Catalogue of Rules.
  6895.   * lpr (shell command):                  Wildcard Examples.
  6896. + * lpr (shell command):                  Empty Targets.
  6897.   * make depend:                          Automatic Dependencies.
  6898.   * mostlyclean (standard target):        Goals.
  6899.   * OBJECTS:                              Variables Simplify.
  6900. ! * objects:                              Variables Simplify.
  6901.   * OBJS:                                 Variables Simplify.
  6902. + * objs:                                 Variables Simplify.
  6903.   * OBJ:                                  Variables Simplify.
  6904.   * obj:                                  Variables Simplify.
  6905.   * print (standard target):              Goals.
  6906.   * print target:                         Wildcard Examples.
  6907. + * print target:                         Empty Targets.
  6908.   * README:                               Makefile Names.
  6909.   * realclean (standard target):          Goals.
  6910. + * rm (shell command):                   Phony Targets.
  6911.   * rm (shell command):                   Wildcard Examples.
  6912.   * rm (shell command):                   Errors.
  6913. ! * rm (shell command):                   Simple Makefile.
  6914.   * sed (shell command):                  Automatic Dependencies.
  6915.   * shar (standard target):               Goals.
  6916.   * TAGS (standard target):               Goals.
  6917. ***************
  6918. *** 263,271 ****
  6919.   * [...] (wildcard characters):          Wildcards.
  6920.   * \ (backslash), for continuation lines: Simple Makefile.
  6921.   * \ (backslash), in commands:           Execution.
  6922. - * \ (backslash), to quote %:            Selective Search.
  6923.   * \ (backslash), to quote %:            Static Usage.
  6924.   * \ (backslash), to quote %:            Text Functions.
  6925.   * __.SYMDEF:                            Archive Symbols.
  6926.   * ~ (tilde):                            Wildcards.
  6927.   * TeX, rule to run:                     Catalogue of Rules.
  6928. --- 262,270 ----
  6929.   * [...] (wildcard characters):          Wildcards.
  6930.   * \ (backslash), for continuation lines: Simple Makefile.
  6931.   * \ (backslash), in commands:           Execution.
  6932.   * \ (backslash), to quote %:            Static Usage.
  6933.   * \ (backslash), to quote %:            Text Functions.
  6934. + * \ (backslash), to quote %:            Selective Search.
  6935.   * __.SYMDEF:                            Archive Symbols.
  6936.   * ~ (tilde):                            Wildcards.
  6937.   * TeX, rule to run:                     Catalogue of Rules.
  6938. ***************
  6939. *** 276,301 ****
  6940.   * archive symbol directory updating:    Archive Symbols.
  6941.   * archive, suffix rule for:             Archive Suffix Rules.
  6942.   * arguments of functions:               Syntax of Functions.
  6943. - * as:                                   Implicit Variables.
  6944.   * as:                                   Catalogue of Rules.
  6945.   * assembly, rule to compile:            Catalogue of Rules.
  6946. - * automatic generation of dependencies: Include.
  6947.   * automatic generation of dependencies: Automatic Dependencies.
  6948.   * automatic variables:                  Automatic.
  6949.   * backquotes:                           Shell Function.
  6950.   * backslash (\), for continuation lines: Simple Makefile.
  6951.   * backslash (\), in commands:           Execution.
  6952.   * backslash (\), to quote %:            Selective Search.
  6953.   * backslash (\), to quote %:            Text Functions.
  6954. - * backslash (\), to quote %:            Static Usage.
  6955.   * basename:                             Filename Functions.
  6956.   * broken pipe:                          Parallel.
  6957.   * bugs, reporting:                      Bugs.
  6958.   * built-in special targets:             Special Targets.
  6959.   * C++, rule to compile:                 Catalogue of Rules.
  6960.   * C, rule to compile:                   Catalogue of Rules.
  6961. - * cc:                                   Catalogue of Rules.
  6962.   * cc:                                   Implicit Variables.
  6963.   * chains of rules:                      Chained Rules.
  6964.   * cleaning up:                          Cleanup.
  6965.   * co:                                   Implicit Variables.
  6966. --- 275,300 ----
  6967.   * archive symbol directory updating:    Archive Symbols.
  6968.   * archive, suffix rule for:             Archive Suffix Rules.
  6969.   * arguments of functions:               Syntax of Functions.
  6970.   * as:                                   Catalogue of Rules.
  6971. + * as:                                   Implicit Variables.
  6972.   * assembly, rule to compile:            Catalogue of Rules.
  6973.   * automatic generation of dependencies: Automatic Dependencies.
  6974. + * automatic generation of dependencies: Include.
  6975.   * automatic variables:                  Automatic.
  6976.   * backquotes:                           Shell Function.
  6977.   * backslash (\), for continuation lines: Simple Makefile.
  6978.   * backslash (\), in commands:           Execution.
  6979. + * backslash (\), to quote %:            Static Usage.
  6980.   * backslash (\), to quote %:            Selective Search.
  6981.   * backslash (\), to quote %:            Text Functions.
  6982.   * basename:                             Filename Functions.
  6983.   * broken pipe:                          Parallel.
  6984.   * bugs, reporting:                      Bugs.
  6985.   * built-in special targets:             Special Targets.
  6986.   * C++, rule to compile:                 Catalogue of Rules.
  6987.   * C, rule to compile:                   Catalogue of Rules.
  6988.   * cc:                                   Implicit Variables.
  6989. + * cc:                                   Catalogue of Rules.
  6990.   * chains of rules:                      Chained Rules.
  6991.   * cleaning up:                          Cleanup.
  6992.   * co:                                   Implicit Variables.
  6993. ***************
  6994. *** 327,334 ****
  6995.   * conventions for makefiles:            Makefile Conventions.
  6996.   * ctangle:                              Implicit Variables.
  6997.   * ctangle:                              Catalogue of Rules.
  6998. - * cweave:                               Catalogue of Rules.
  6999.   * cweave:                               Implicit Variables.
  7000.   * deducing commands (implicit rules):   make Deduces.
  7001.   * default goal:                         How Make Works.
  7002.   * default goal:                         Rules.
  7003. --- 326,333 ----
  7004.   * conventions for makefiles:            Makefile Conventions.
  7005.   * ctangle:                              Implicit Variables.
  7006.   * ctangle:                              Catalogue of Rules.
  7007.   * cweave:                               Implicit Variables.
  7008. + * cweave:                               Catalogue of Rules.
  7009.   * deducing commands (implicit rules):   make Deduces.
  7010.   * default goal:                         How Make Works.
  7011.   * default goal:                         Rules.
  7012. ***************
  7013. *** 337,344 ****
  7014.   * defining variables verbatim:          Defining.
  7015.   * deletion of target files:             Interrupts.
  7016.   * dependencies:                         Rule Syntax.
  7017. - * dependencies, automatic generation:   Include.
  7018.   * dependencies, automatic generation:   Automatic Dependencies.
  7019.   * dependencies, introduction to:        Rule Introduction.
  7020.   * dependencies, list of all:            Automatic.
  7021.   * dependencies, list of changed:        Automatic.
  7022. --- 336,343 ----
  7023.   * defining variables verbatim:          Defining.
  7024.   * deletion of target files:             Interrupts.
  7025.   * dependencies:                         Rule Syntax.
  7026.   * dependencies, automatic generation:   Automatic Dependencies.
  7027. + * dependencies, automatic generation:   Include.
  7028.   * dependencies, introduction to:        Rule Introduction.
  7029.   * dependencies, list of all:            Automatic.
  7030.   * dependencies, list of changed:        Automatic.
  7031. ***************
  7032. *** 376,383 ****
  7033.   * exit status (errors):                 Errors.
  7034.   * explicit rule, definition of:         Makefile Contents.
  7035.   * exporting variables:                  Variables/Recursion.
  7036. - * f77:                                  Catalogue of Rules.
  7037.   * f77:                                  Implicit Variables.
  7038.   * features of GNU make:                 Features.
  7039.   * features, missing:                    Missing.
  7040.   * file name functions:                  Filename Functions.
  7041. --- 375,382 ----
  7042.   * exit status (errors):                 Errors.
  7043.   * explicit rule, definition of:         Makefile Contents.
  7044.   * exporting variables:                  Variables/Recursion.
  7045.   * f77:                                  Implicit Variables.
  7046. + * f77:                                  Catalogue of Rules.
  7047.   * features of GNU make:                 Features.
  7048.   * features, missing:                    Missing.
  7049.   * file name functions:                  Filename Functions.
  7050. ***************
  7051. *** 406,422 ****
  7052.   * functions, for file names:            Filename Functions.
  7053.   * functions, for text:                  Text Functions.
  7054.   * functions, syntax of:                 Syntax of Functions.
  7055. - * g++:                                  Implicit Variables.
  7056.   * g++:                                  Catalogue of Rules.
  7057.   * gcc:                                  Catalogue of Rules.
  7058. - * generating dependencies automatically: Include.
  7059.   * generating dependencies automatically: Automatic Dependencies.
  7060.   * get:                                  Implicit Variables.
  7061.   * get:                                  Catalogue of Rules.
  7062.   * globbing (wildcards):                 Wildcards.
  7063.   * goal:                                 How Make Works.
  7064. - * goal, default:                        Rules.
  7065.   * goal, default:                        How Make Works.
  7066.   * goal, how to specify:                 Goals.
  7067.   * home directory:                       Wildcards.
  7068.   * IEEE Standard 1003.2:                 Overview.
  7069. --- 405,421 ----
  7070.   * functions, for file names:            Filename Functions.
  7071.   * functions, for text:                  Text Functions.
  7072.   * functions, syntax of:                 Syntax of Functions.
  7073.   * g++:                                  Catalogue of Rules.
  7074. + * g++:                                  Implicit Variables.
  7075.   * gcc:                                  Catalogue of Rules.
  7076.   * generating dependencies automatically: Automatic Dependencies.
  7077. + * generating dependencies automatically: Include.
  7078.   * get:                                  Implicit Variables.
  7079.   * get:                                  Catalogue of Rules.
  7080.   * globbing (wildcards):                 Wildcards.
  7081.   * goal:                                 How Make Works.
  7082.   * goal, default:                        How Make Works.
  7083. + * goal, default:                        Rules.
  7084.   * goal, how to specify:                 Goals.
  7085.   * home directory:                       Wildcards.
  7086.   * IEEE Standard 1003.2:                 Overview.
  7087. ***************
  7088. *** 442,449 ****
  7089.   * killing (interruption):               Interrupts.
  7090.   * last-resort default rules:            Last Resort.
  7091.   * ld:                                   Catalogue of Rules.
  7092. - * lex:                                  Catalogue of Rules.
  7093.   * lex:                                  Implicit Variables.
  7094.   * Lex, rule to run:                     Catalogue of Rules.
  7095.   * libraries for linking, directory search: Libraries/Search.
  7096.   * library archive, suffix rule for:     Archive Suffix Rules.
  7097. --- 441,448 ----
  7098.   * killing (interruption):               Interrupts.
  7099.   * last-resort default rules:            Last Resort.
  7100.   * ld:                                   Catalogue of Rules.
  7101.   * lex:                                  Implicit Variables.
  7102. + * lex:                                  Catalogue of Rules.
  7103.   * Lex, rule to run:                     Catalogue of Rules.
  7104.   * libraries for linking, directory search: Libraries/Search.
  7105.   * library archive, suffix rule for:     Archive Suffix Rules.
  7106. ***************
  7107. *** 469,477 ****
  7108.   * makefile, overriding:                 Overriding Makefiles.
  7109.   * makefile, remaking of:                Remaking Makefiles.
  7110.   * makefile, simple:                     Simple Makefile.
  7111. - * makeinfo:                             Catalogue of Rules.
  7112.   * makeinfo:                             Implicit Variables.
  7113.   * match-anything rule:                  Match-Anything Rules.
  7114.   * missing features:                     Missing.
  7115.   * mistakes with wildcards:              Wildcard Pitfall.
  7116.   * modified variable reference:          Substitution Refs.
  7117. --- 468,477 ----
  7118.   * makefile, overriding:                 Overriding Makefiles.
  7119.   * makefile, remaking of:                Remaking Makefiles.
  7120.   * makefile, simple:                     Simple Makefile.
  7121.   * makeinfo:                             Implicit Variables.
  7122. + * makeinfo:                             Catalogue of Rules.
  7123.   * match-anything rule:                  Match-Anything Rules.
  7124. + * match-anything rule, used to override: Overriding Makefiles.
  7125.   * missing features:                     Missing.
  7126.   * mistakes with wildcards:              Wildcard Pitfall.
  7127.   * modified variable reference:          Substitution Refs.
  7128. ***************
  7129. *** 512,519 ****
  7130.   * precious targets:                     Special Targets.
  7131.   * prefix, adding:                       Filename Functions.
  7132.   * preserving intermediate files:        Chained Rules.
  7133. - * preserving with .PRECIOUS:            Special Targets.
  7134.   * preserving with .PRECIOUS:            Chained Rules.
  7135.   * printing directories:                 -w Option.
  7136.   * printing of commands:                 Echoing.
  7137.   * problems and bugs, reporting:         Bugs.
  7138. --- 512,519 ----
  7139.   * precious targets:                     Special Targets.
  7140.   * prefix, adding:                       Filename Functions.
  7141.   * preserving intermediate files:        Chained Rules.
  7142.   * preserving with .PRECIOUS:            Chained Rules.
  7143. + * preserving with .PRECIOUS:            Special Targets.
  7144.   * printing directories:                 -w Option.
  7145.   * printing of commands:                 Echoing.
  7146.   * problems and bugs, reporting:         Bugs.
  7147. ***************
  7148. *** 546,553 ****
  7149.   * recursion, and printing directories:  -w Option.
  7150.   * recursion, and variables:             Variables/Recursion.
  7151.   * recursion, level of:                  Variables/Recursion.
  7152. - * recursive variable expansion:         Using Variables.
  7153.   * recursive variable expansion:         Flavors.
  7154.   * recursively expanded variables:       Flavors.
  7155.   * reference to variables:               Reference.
  7156.   * reference to variables:               Advanced.
  7157. --- 546,553 ----
  7158.   * recursion, and printing directories:  -w Option.
  7159.   * recursion, and variables:             Variables/Recursion.
  7160.   * recursion, level of:                  Variables/Recursion.
  7161.   * recursive variable expansion:         Flavors.
  7162. + * recursive variable expansion:         Using Variables.
  7163.   * recursively expanded variables:       Flavors.
  7164.   * reference to variables:               Reference.
  7165.   * reference to variables:               Advanced.
  7166. diff -rc --new-file make-3.71/read.c /gnu/src/amiga/make-3.71/read.c
  7167. *** make-3.71/read.c    Mon May  2 22:35:24 1994
  7168. --- /gnu/src/amiga/make-3.71/read.c    Tue Jan 17 22:24:03 1995
  7169. ***************
  7170. *** 81,90 ****
  7171. --- 81,99 ----
  7172.   
  7173.   static char *default_include_directories[] =
  7174.     {
  7175. + #ifndef amigados
  7176.       INCLUDEDIR,
  7177.       "/usr/gnu/include",
  7178.       "/usr/local/include",
  7179.       "/usr/include",
  7180. + #else
  7181. +     "/gnu/include",
  7182. +     "/gnu/g++-include",
  7183. +     "/gnu/os-include",
  7184. +     "/local/include",
  7185. +     "/local/g++-include",
  7186. +     "/local/os-include",
  7187. + #endif
  7188.       0
  7189.     };
  7190.   
  7191. ***************
  7192. *** 698,703 ****
  7193. --- 707,717 ----
  7194.         no_targets = 0;
  7195.   
  7196.         /* Is this a static pattern rule: `target: %targ: %dep; ...'?  */
  7197. +       /* Note that this syntax makes it hard to use AmigaDOS style
  7198. +          file references (drive:path1/path2/file).  For now, these
  7199. +          are probably more useful on the Amiga than are static patterns,
  7200. +          so disable static pattern processing.  -fnf */
  7201. + #ifndef __amigados__
  7202.         p = index (p2, ':');
  7203.         while (p != 0 && p[-1] == '\\')
  7204.           {
  7205. ***************
  7206. *** 727,732 ****
  7207. --- 741,747 ----
  7208.           }
  7209.         else
  7210.           pattern = 0;
  7211. + #endif
  7212.   
  7213.         /* Parse the dependencies.  */
  7214.         deps = (struct dep *)
  7215. diff -rc --new-file make-3.71/remake.c /gnu/src/amiga/make-3.71/remake.c
  7216. *** make-3.71/remake.c    Fri Apr 22 21:53:53 1994
  7217. --- /gnu/src/amiga/make-3.71/remake.c    Wed Jun 22 21:10:58 1994
  7218. ***************
  7219. *** 989,996 ****
  7220. --- 989,1003 ----
  7221.   {
  7222.     static char *dirs[] =
  7223.       {
  7224. + #ifndef amigados
  7225.         "/lib",
  7226.         "/usr/lib",
  7227. + #else
  7228. +      "/gnu/lib",
  7229. +      "/gnu/lib/libb",
  7230. +      "/local/lib",
  7231. +      "/local/lib/libb",
  7232. + #endif
  7233.         LIBDIR,            /* Defined by configuration.  */
  7234.         0
  7235.       };
  7236. ***************
  7237. *** 999,1005 ****
  7238. --- 1006,1016 ----
  7239.     time_t mtime;
  7240.   
  7241.     /* Buffer to construct possible names in.  */
  7242. + #ifndef amigados
  7243.     char *buf = xmalloc (sizeof (LIBDIR) + 8 + strlen (libname) + 4 + 2 + 1);
  7244. + #else
  7245. +   char *buf = xmalloc (8 + strlen (libname) + 9 + 2 + 1);
  7246. + #endif
  7247.     char *file, **dp;
  7248.   
  7249.     /* Look first for `libNAME.a' in the current directory.  */
  7250. diff -rc --new-file make-3.71/remote-cstms.c /gnu/src/amiga/make-3.71/remote-cstms.c
  7251. *** make-3.71/remote-cstms.c    Wed Mar 23 14:14:17 1994
  7252. --- /gnu/src/amiga/make-3.71/remote-cstms.c    Wed Jun 22 21:11:00 1994
  7253. ***************
  7254. *** 34,40 ****
  7255.   
  7256.   /* File name of the Customs `export' client command.
  7257.      A full path name can be used to avoid some path-searching overhead.  */
  7258. ! #define    EXPORT_COMMAND    "/usr/local/bin/export"
  7259.   
  7260.   /* ExportPermit gotten by start_remote_job_p, and used by start_remote_job.  */
  7261.   static ExportPermit permit;
  7262. --- 34,40 ----
  7263.   
  7264.   /* File name of the Customs `export' client command.
  7265.      A full path name can be used to avoid some path-searching overhead.  */
  7266. ! #define    EXPORT_COMMAND    "/gnu/bin/export"
  7267.   
  7268.   /* ExportPermit gotten by start_remote_job_p, and used by start_remote_job.  */
  7269.   static ExportPermit permit;
  7270. diff -rc --new-file make-3.71/vpath.c /gnu/src/amiga/make-3.71/vpath.c
  7271. *** make-3.71/vpath.c    Wed Mar 23 14:14:56 1994
  7272. --- /gnu/src/amiga/make-3.71/vpath.c    Wed Jan 18 07:48:36 1995
  7273. ***************
  7274. *** 20,25 ****
  7275. --- 20,39 ----
  7276.   #include "file.h"
  7277.   #include "variable.h"
  7278.   
  7279. + #ifdef __amigados__
  7280. + /* Under AmigaDOS, the ':' character is a very useful part of standard
  7281. +    pathnames, so it's use here as a separator clashes with that standard
  7282. +    pathname use.  I suppose you could also get similar problems on UNIX
  7283. +    if you had a name with a ':' character in it.  One possible way to 
  7284. +    avoid that would be to allow for quoting with a backslash, that is
  7285. +    removed during parsing of the path.  For now, it's use in pathnames
  7286. +    on the Amiga is more useful than being able to have more than one
  7287. +    VPATH path, so just change the separator to something less likely
  7288. +    to collide.  -fnf */
  7289. + #define VPATH_SEPARATOR ';'
  7290. + #else
  7291. + #define VPATH_SEPARATOR ':'
  7292. + #endif
  7293.   
  7294.   /* Structure used to represent a selective VPATH searchpath.  */
  7295.   
  7296. ***************
  7297. *** 177,183 ****
  7298.     maxelem = 2;
  7299.     p = dirpath;
  7300.     while (*p != '\0')
  7301. !     if (*p++ == ':' || isblank (*p))
  7302.         ++maxelem;
  7303.   
  7304.     vpath = (char **) xmalloc (maxelem * sizeof (char *));
  7305. --- 191,197 ----
  7306.     maxelem = 2;
  7307.     p = dirpath;
  7308.     while (*p != '\0')
  7309. !     if (*p++ == VPATH_SEPARATOR || isblank (*p))
  7310.         ++maxelem;
  7311.   
  7312.     vpath = (char **) xmalloc (maxelem * sizeof (char *));
  7313. ***************
  7314. *** 185,191 ****
  7315.   
  7316.     /* Skip over any initial colons and blanks.  */
  7317.     p = dirpath;
  7318. !   while (*p == ':' || isblank (*p))
  7319.       ++p;
  7320.   
  7321.     elem = 0;
  7322. --- 199,205 ----
  7323.   
  7324.     /* Skip over any initial colons and blanks.  */
  7325.     p = dirpath;
  7326. !   while (*p == VPATH_SEPARATOR || isblank (*p))
  7327.       ++p;
  7328.   
  7329.     elem = 0;
  7330. ***************
  7331. *** 196,202 ****
  7332.   
  7333.         /* Find the end of this entry.  */
  7334.         v = p;
  7335. !       while (*p != '\0' && *p != ':' && !isblank (*p))
  7336.       ++p;
  7337.   
  7338.         len = p - v;
  7339. --- 210,216 ----
  7340.   
  7341.         /* Find the end of this entry.  */
  7342.         v = p;
  7343. !       while (*p != '\0' && *p != VPATH_SEPARATOR && !isblank (*p))
  7344.       ++p;
  7345.   
  7346.         len = p - v;
  7347. ***************
  7348. *** 225,231 ****
  7349.       }
  7350.   
  7351.         /* Skip over colons and blanks between entries.  */
  7352. !       while (*p == ':' || isblank (*p))
  7353.       ++p;
  7354.       }
  7355.   
  7356. --- 239,245 ----
  7357.       }
  7358.   
  7359.         /* Skip over colons and blanks between entries.  */
  7360. !       while (*p == VPATH_SEPARATOR || isblank (*p))
  7361.       ++p;
  7362.       }
  7363.   
  7364. ***************
  7365. *** 461,467 ****
  7366.   
  7367.         for (i = 0; v->searchpath[i] != 0; ++i)
  7368.       printf ("%s%c", v->searchpath[i],
  7369. !         v->searchpath[i + 1] == 0 ? '\n' : ':');
  7370.       }
  7371.   
  7372.     if (vpaths == 0)
  7373. --- 475,481 ----
  7374.   
  7375.         for (i = 0; v->searchpath[i] != 0; ++i)
  7376.       printf ("%s%c", v->searchpath[i],
  7377. !         v->searchpath[i + 1] == 0 ? '\n' : VPATH_SEPARATOR);
  7378.       }
  7379.   
  7380.     if (vpaths == 0)
  7381. ***************
  7382. *** 479,484 ****
  7383.         fputs ("\n# General (`VPATH' variable) search path:\n# ", stdout);
  7384.   
  7385.         for (i = 0; path[i] != 0; ++i)
  7386. !     printf ("%s%c", path[i], path[i + 1] == 0 ? '\n' : ':');
  7387.       }
  7388.   }
  7389. --- 493,498 ----
  7390.         fputs ("\n# General (`VPATH' variable) search path:\n# ", stdout);
  7391.   
  7392.         for (i = 0; path[i] != 0; ++i)
  7393. !     printf ("%s%c", path[i], path[i + 1] == 0 ? '\n' : VPATH_SEPARATOR);
  7394.       }
  7395.   }
  7396.