home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / patch-2.1-diffs.lha / GNU / diffs / patch-2.1.diffs
Encoding:
Text File  |  1995-04-14  |  80.0 KB  |  2,661 lines

  1. diff -rc --new-file patch-2.1-base/INSTALL patch-2.1/INSTALL
  2. *** patch-2.1-base/INSTALL    Fri May 14 23:31:53 1993
  3. --- patch-2.1/INSTALL    Thu Feb 24 01:58:02 1994
  4. ***************
  5. *** 33,40 ****
  6.   DIR is the directory that contains the source code.
  7.   
  8.   By default, `make install' will install the package's files in
  9. ! /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify an
  10. ! installation prefix other than /usr/local by giving `configure' the option
  11.   `--prefix=PATH'.  Alternately, you can do so by consistently giving a value
  12.   for the `prefix' variable when you run `make', e.g.,
  13.       make prefix=/usr/gnu
  14. --- 33,40 ----
  15.   DIR is the directory that contains the source code.
  16.   
  17.   By default, `make install' will install the package's files in
  18. ! /gnu/bin, /gnu/lib, /gnu/man, etc.  You can specify an
  19. ! installation prefix other than /gnu by giving `configure' the option
  20.   `--prefix=PATH'.  Alternately, you can do so by consistently giving a value
  21.   for the `prefix' variable when you run `make', e.g.,
  22.       make prefix=/usr/gnu
  23. diff -rc --new-file patch-2.1-base/Makefile.in patch-2.1/Makefile.in
  24. *** patch-2.1-base/Makefile.in    Fri Jun 11 04:25:47 1993
  25. --- patch-2.1/Makefile.in    Thu Feb 24 01:57:02 1994
  26. ***************
  27. *** 13,22 ****
  28.   
  29.   LIBS = @LIBS@
  30.   
  31. ! CFLAGS = -g
  32. ! LDFLAGS = -g
  33.   
  34. ! prefix = /usr/local
  35.   exec_prefix = $(prefix)
  36.   
  37.   bindir = $(exec_prefix)/bin
  38. --- 13,22 ----
  39.   
  40.   LIBS = @LIBS@
  41.   
  42. ! CFLAGS = -O2
  43. ! LDFLAGS =
  44.   
  45. ! prefix = /gnu
  46.   exec_prefix = $(prefix)
  47.   
  48.   bindir = $(exec_prefix)/bin
  49. diff -rc --new-file patch-2.1-base/Product-Info patch-2.1/Product-Info
  50. *** patch-2.1-base/Product-Info    Thu Jan  1 00:00:00 1970
  51. --- patch-2.1/Product-Info    Tue Jul 12 17:38:18 1994
  52. ***************
  53. *** 0 ****
  54. --- 1,26 ----
  55. + .name
  56. + patch
  57. + .fullname
  58. + patch
  59. + .type
  60. + Programmer Tool
  61. + .short
  62. + Apply diff files
  63. + .description
  64. + Patch will take a patch file containing any of the four forms of
  65. + difference listing produced by the diff program and apply those
  66. + differences to an original file, producing a patched version.  By
  67. + default, the patched version is put in place of the original, with the
  68. + original file backed up to another name.
  69. + .version
  70. + 2.1
  71. + .author
  72. + Larry Wall
  73. + .requirements
  74. + Amiga binary requires the ixemul.library.
  75. + .distribution
  76. + GNU Public License
  77. + .email
  78. + lwall@netlabs.com
  79. + .described-by
  80. + Fred Fish (fnf@amigalib.com)
  81. diff -rc --new-file patch-2.1-base/configure patch-2.1/configure
  82. *** patch-2.1-base/configure    Fri Jun 11 05:01:03 1993
  83. --- patch-2.1/configure    Tue Apr 26 02:07:32 1994
  84. ***************
  85. *** 1,144 ****
  86.   #!/bin/sh
  87.   # Guess values for system-dependent variables and create Makefiles.
  88. ! # Generated automatically using autoconf.
  89. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  90.   
  91. ! # This program is free software; you can redistribute it and/or modify
  92. ! # it under the terms of the GNU General Public License as published by
  93. ! # the Free Software Foundation; either version 2, or (at your option)
  94.   # any later version.
  95.   
  96. ! # This program is distributed in the hope that it will be useful,
  97. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  98. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  99. ! # GNU General Public License for more details.
  100.   
  101.   # You should have received a copy of the GNU General Public License
  102.   # along with this program; if not, write to the Free Software
  103.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  104.   
  105. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  106. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  107. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  108. ! # --with-PACKAGE unless this script has special code to handle it.
  109.   
  110.   
  111. ! for arg
  112.   do
  113. -   # Handle --exec-prefix with a space before the argument.
  114. -   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  115. -   # Handle --host with a space before the argument.
  116. -   elif test x$next_host = xyes; then next_host=
  117. -   # Handle --prefix with a space before the argument.
  118. -   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  119. -   # Handle --srcdir with a space before the argument.
  120. -   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  121. -   else
  122. -     case $arg in
  123. -      # For backward compatibility, also recognize exact --exec_prefix.
  124. -      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  125. -     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  126. -      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  127. -     next_exec_prefix=yes ;;
  128. -      -gas | --gas | --ga | --g) ;;
  129. -      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  130. -      -host | --host | --hos | --ho | --h)
  131. -     next_host=yes ;;
  132. -      -nfp | --nfp | --nf) ;;
  133. -      -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  134. -         no_create=1 ;;
  135. -      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  136. -     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  137. -      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  138. -     next_prefix=yes ;;
  139. -      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  140. -     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  141. -      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  142. -     next_srcdir=yes ;;
  143. -      -with-* | --with-*)
  144. -        package=`echo $arg|sed 's/-*with-//'`
  145. -        # Delete all the valid chars; see if any are left.
  146. -        if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  147. -          echo "configure: $package: invalid package name" >&2; exit 1
  148. -        fi
  149. -        eval "with_`echo $package|sed s/-/_/g`=1" ;;
  150.   
  151. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  152. !        verbose=yes ;;
  153.   
  154. !      *) ;;
  155.       esac
  156. !   fi
  157. ! done
  158.   
  159. ! trap 'rm -f conftest* core; exit 1' 1 3 15
  160.   
  161. ! # Needed for some versions of `tr' so that character classes in `[]' work.
  162. ! if test "${LANG+set}" = "set" ; then
  163. !    LANG=C
  164.   fi
  165.   
  166. ! rm -f conftest*
  167. ! compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  168.   
  169.   # A filename unique to this package, relative to the directory that
  170.   # configure is in, which we can look for to find out if srcdir is correct.
  171. ! unique_file=patch.c
  172.   
  173.   # Find the source files, if location was not specified.
  174.   if test -z "$srcdir"; then
  175. !   srcdirdefaulted=yes
  176.     # Try the directory containing this script, then `..'.
  177. !   prog=$0
  178. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  179. !   test "X$confdir" = "X$prog" && confdir=.
  180. !   srcdir=$confdir
  181. !   if test ! -r $srcdir/$unique_file; then
  182.       srcdir=..
  183.     fi
  184.   fi
  185. ! if test ! -r $srcdir/$unique_file; then
  186. !   if test x$srcdirdefaulted = xyes; then
  187. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  188.     else
  189. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  190.     fi
  191. -   exit 1
  192.   fi
  193. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  194. ! # But we can't avoid them for `..', to make subdirectories work.
  195. ! case $srcdir in
  196. !   .|/*|~*) ;;
  197. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  198. ! esac
  199.   
  200. - # Save the original args to write them into config.status later.
  201. - configure_args="$*"
  202.   
  203.   
  204.   if test -z "$CC"; then
  205.     # Extract the first word of `gcc', so it can be a program name with args.
  206. !   set dummy gcc; word=$2
  207. !   echo checking for $word
  208. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  209. !   for dir in $PATH; do
  210. !     test -z "$dir" && dir=.
  211. !     if test -f $dir/$word; then
  212.         CC="gcc"
  213.         break
  214.       fi
  215.     done
  216. !   IFS="$saveifs"
  217.   fi
  218.   test -z "$CC" && CC="cc"
  219. ! test -n "$CC" -a -n "$verbose" && echo "    setting CC to $CC"
  220.   
  221.   # Find out if we are using GNU C, under whatever name.
  222.   cat > conftest.c <<EOF
  223. --- 1,336 ----
  224.   #!/bin/sh
  225.   # Guess values for system-dependent variables and create Makefiles.
  226. ! # Generated automatically using autoconf version 1.9 
  227. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  228.   
  229. ! # This configure script is free software; you can redistribute it and/or
  230. ! # modify it under the terms of the GNU General Public License as published
  231. ! # by the Free Software Foundation; either version 2, or (at your option)
  232.   # any later version.
  233.   
  234. ! # This script is distributed in the hope that it will be useful, but
  235. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  236. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  237. ! # Public License for more details.
  238.   
  239.   # You should have received a copy of the GNU General Public License
  240.   # along with this program; if not, write to the Free Software
  241.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  242.   
  243. ! # Save the original args to write them into config.status later.
  244. ! configure_args="$*"
  245.   
  246. + # Only options that might do something get documented.
  247. + ac_usage="Usage: configure [options] [host]
  248. + Options: [defaults in brackets after descriptions]
  249. + --build=BUILD        configure for building on BUILD [BUILD=HOST]
  250. + --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  251. + --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  252. + --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  253. + --help            print this message
  254. + --host=HOST        configure for HOST [guessed]
  255. + --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  256. + --quiet, --silent    do not print \`checking for...' messages
  257. + --srcdir=DIR        find the sources in DIR [configure dir or ..]
  258. + --target=TARGET        configure for TARGET [TARGET=HOST]
  259. + --verbose        print results of checks
  260. + --version        print the version of autoconf that created configure
  261. + --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  262. + --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  263. + --x-includes=DIR    X include files are in DIR
  264. + --x-libraries=DIR    X library files are in DIR"
  265. + # Initialize some variables set by options.
  266. + # The variables have the same names as the options, with
  267. + # dashes changed to underlines.
  268. + build=NONE
  269. + exec_prefix=
  270. + host=NONE
  271. + no_create=
  272. + nonopt=NONE
  273. + norecursion=
  274. + prefix=
  275. + program_prefix=
  276. + program_suffix=
  277. + program_transform_name=
  278. + silent=
  279. + srcdir=
  280. + target=NONE
  281. + verbose=
  282. + x_includes=
  283. + x_libraries=
  284.   
  285. ! ac_prev=
  286. ! for ac_option
  287.   do
  288.   
  289. !   # If the previous option needs an argument, assign it.
  290. !   if test -n "$ac_prev"; then
  291. !     eval "$ac_prev=\$ac_option"
  292. !     ac_prev=
  293. !     continue
  294. !   fi
  295. !   # Accept (but ignore some of) the important Cygnus configure
  296. !   # options, so we can diagnose typos.
  297. !   case "$ac_option" in
  298. !   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  299. !   *) ac_optarg= ;;
  300. !   esac
  301. !   case "$ac_option" in
  302. !   -build | --build | --buil | --bui | --bu | --b)
  303. !     ac_prev=build ;;
  304. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  305. !     build="$ac_optarg" ;;
  306. !   -disable-* | --disable-*)
  307. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  308. !     # Reject names that aren't valid shell variable names.
  309. !     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  310. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  311. !     fi
  312. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  313. !     eval "enable_${ac_feature}=no" ;;
  314.   
  315. !   -enable-* | --enable-*)
  316. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  317. !     # Reject names that aren't valid shell variable names.
  318. !     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  319. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  320. !     fi
  321. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  322. !     case "$ac_option" in
  323. !       *=*) ;;
  324. !       *) ac_optarg=yes ;;
  325.       esac
  326. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  327. !   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  328. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  329. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  330. !   | --exec | --exe | --ex)
  331. !     ac_prev=exec_prefix ;;
  332. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  333. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  334. !   | --exec=* | --exe=* | --ex=*)
  335. !     exec_prefix="$ac_optarg" ;;
  336. !   -gas | --gas | --ga | --g)
  337. !     with_gas=yes ;; # Obsolete; use --with-gas.
  338. !   -help | --help | --hel | --he)
  339. !     cat << EOF
  340. ! $ac_usage
  341. ! EOF
  342. !     exit 0 ;;
  343. !   -host | --host | --hos | --ho)
  344. !     ac_prev=host ;;
  345. !   -host=* | --host=* | --hos=* | --ho=*)
  346. !     host="$ac_optarg" ;;
  347. !   -nfp | --nfp | --nf)
  348. !     with_fp=no ;; # Obsolete; use --without-fp.
  349. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  350. !   | --no-cr | --no-c)
  351. !     no_create=yes ;;
  352. !   -norecursion | --norecursion | --norecursio | --norecursi \
  353. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  354. !     norecursion=yes ;;
  355. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  356. !     ac_prev=prefix ;;
  357. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  358. !     prefix="$ac_optarg" ;;
  359. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  360. !   | --program-pre | --program-pr | --program-p)
  361. !     ac_prev=program_prefix ;;
  362. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  363. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  364. !     program_prefix="$ac_optarg" ;;
  365. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  366. !   | --program-suf | --program-su | --program-s)
  367. !     ac_prev=program_suffix ;;
  368. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  369. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  370. !     program_suffix="$ac_optarg" ;;
  371. !   -program-transform-name | --program-transform-name \
  372. !   | --program-transform-nam | --program-transform-na \
  373. !   | --program-transform-n | --program-transform- \
  374. !   | --program-transform | --program-transfor \
  375. !   | --program-transfo | --program-transf \
  376. !   | --program-trans | --program-tran \
  377. !   | --progr-tra | --program-tr | --program-t)
  378. !     ac_prev=program_transform_name ;;
  379. !   -program-transform-name=* | --program-transform-name=* \
  380. !   | --program-transform-nam=* | --program-transform-na=* \
  381. !   | --program-transform-n=* | --program-transform-=* \
  382. !   | --program-transform=* | --program-transfor=* \
  383. !   | --program-transfo=* | --program-transf=* \
  384. !   | --program-trans=* | --program-tran=* \
  385. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  386. !     program_transform_name="$ac_optarg" ;;
  387. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  388. !   | -silent | --silent | --silen | --sile | --sil)
  389. !     silent=yes ;;
  390. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  391. !     ac_prev=srcdir ;;
  392. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  393. !     srcdir="$ac_optarg" ;;
  394. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  395. !     ac_prev=target ;;
  396. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  397. !     target="$ac_optarg" ;;
  398. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  399. !     verbose=yes ;;
  400. !   -version | --version | --versio | --versi | --vers)
  401. !     /bin/echo "configure generated by autoconf version 1.9"
  402. !     exit 0 ;;
  403. !   -with-* | --with-*)
  404. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  405. !     # Reject names that aren't valid shell variable names.
  406. !     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  407. !       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  408. !     fi
  409. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  410. !     case "$ac_option" in
  411. !       *=*) ;;
  412. !       *) ac_optarg=yes ;;
  413. !     esac
  414. !     eval "with_${ac_package}='$ac_optarg'" ;;
  415. !   -without-* | --without-*)
  416. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  417. !     # Reject names that aren't valid shell variable names.
  418. !     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  419. !       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  420. !     fi
  421. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  422. !     eval "with_${ac_package}=no" ;;
  423.   
  424. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  425. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  426. !   | --x-incl | --x-inc | --x-in | --x-i)
  427. !     ac_prev=x_includes ;;
  428. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  429. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  430. !     x_includes="$ac_optarg" ;;
  431. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  432. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  433. !     ac_prev=x_libraries ;;
  434. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  435. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  436. !     x_libraries="$ac_optarg" ;;
  437. !   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  438. !     ;;
  439. !   *) 
  440. !     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  441. !       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  442. !     fi
  443. !     if test "x$nonopt" != xNONE; then
  444. !       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  445. !     fi
  446. !     nonopt="$ac_option"
  447. !     ;;
  448. !   esac
  449. ! done
  450.   
  451. ! if test -n "$ac_prev"; then
  452. !   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  453.   fi
  454.   
  455. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  456. ! trap 'rm -fr confdefs* $ac_clean_files' 0
  457. ! # Save the original args if we used an alternate arg parser.
  458. ! ac_configure_temp="${configure_args-$*}"
  459. ! # Strip out --no-create and --norecursion so they don't pile up.
  460. ! configure_args=
  461. ! for ac_arg in $ac_configure_temp; do
  462. !   case "$ac_arg" in
  463. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  464. !   | --no-cr | --no-c) ;;
  465. !   -norecursion | --norecursion | --norecursio | --norecursi \
  466. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  467. !   *) configure_args="$configure_args $ac_arg" ;;
  468. !   esac
  469. ! done
  470. ! # NLS nuisances.
  471. ! # These must not be set unconditionally because not all systems understand
  472. ! # e.g. LANG=C (notably SCO).
  473. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  474. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  475. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  476. ! rm -rf conftest* confdefs.h
  477. ! # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  478. ! /bin/echo > confdefs.h
  479.   
  480.   # A filename unique to this package, relative to the directory that
  481.   # configure is in, which we can look for to find out if srcdir is correct.
  482. ! ac_unique_file=patch.c
  483.   
  484.   # Find the source files, if location was not specified.
  485.   if test -z "$srcdir"; then
  486. !   ac_srcdir_defaulted=yes
  487.     # Try the directory containing this script, then `..'.
  488. !   ac_prog=$0
  489. !   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  490. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  491. !   srcdir=$ac_confdir
  492. !   if test ! -r $srcdir/$ac_unique_file; then
  493.       srcdir=..
  494.     fi
  495.   fi
  496. ! if test ! -r $srcdir/$ac_unique_file; then
  497. !   if test x$ac_srcdir_defaulted = xyes; then
  498. !     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  499.     else
  500. !     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  501.     fi
  502.   fi
  503. ! ac_ext=c
  504. ! ac_cpp='${CPP} $CFLAGS'
  505. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  506.   
  507.   
  508.   
  509.   if test -z "$CC"; then
  510.     # Extract the first word of `gcc', so it can be a program name with args.
  511. !   set ac_dummy gcc; ac_word=$2
  512. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  513. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  514. !   for ac_dir in $PATH; do
  515. !     test -z "$ac_dir" && ac_dir=.
  516. !     if test -f $ac_dir/$ac_word; then
  517.         CC="gcc"
  518.         break
  519.       fi
  520.     done
  521. !   IFS="$ac_save_ifs"
  522.   fi
  523.   test -z "$CC" && CC="cc"
  524. ! test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  525.   
  526.   # Find out if we are using GNU C, under whatever name.
  527.   cat > conftest.c <<EOF
  528. ***************
  529. *** 152,251 ****
  530.   fi
  531.   rm -f conftest*
  532.   
  533. ! echo checking how to run the C preprocessor
  534.   if test -z "$CPP"; then
  535. !   CPP='${CC-cc} -E'
  536. !   cat > conftest.c <<EOF
  537.   #include <stdio.h>
  538.   EOF
  539. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  540. ! if test -z "$err"; then
  541.     :
  542.   else
  543.     CPP=/lib/cpp
  544.   fi
  545.   rm -f conftest*
  546.   fi
  547.   
  548. ! echo checking for AIX
  549. ! cat > conftest.c <<EOF
  550.   #ifdef _AIX
  551.     yes
  552.   #endif
  553.   
  554.   EOF
  555. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  556.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  557. !   {
  558.   test -n "$verbose" && \
  559. ! echo '    defining' _ALL_SOURCE
  560.   DEFS="$DEFS -D_ALL_SOURCE=1"
  561. ! SEDDEFS="${SEDDEFS}\${SEDdA}_ALL_SOURCE\${SEDdB}_ALL_SOURCE\${SEDdC}1\${SEDdD}
  562. ! \${SEDuA}_ALL_SOURCE\${SEDuB}_ALL_SOURCE\${SEDuC}1\${SEDuD}
  563. ! \${SEDeA}_ALL_SOURCE\${SEDeB}_ALL_SOURCE\${SEDeC}1\${SEDeD}
  564.   "
  565.   }
  566.   
  567.   fi
  568.   rm -f conftest*
  569.   
  570.   
  571. ! echo checking for minix/config.h
  572. ! cat > conftest.c <<EOF
  573.   #include <minix/config.h>
  574.   EOF
  575. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  576. ! if test -z "$err"; then
  577.     MINIX=1
  578.   fi
  579.   rm -f conftest*
  580.   
  581.   # The Minix shell can't assign to the same variable on the same line!
  582.   if test -n "$MINIX"; then
  583. !   {
  584.   test -n "$verbose" && \
  585. ! echo '    defining' _POSIX_SOURCE
  586.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  587. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_SOURCE\${SEDdB}_POSIX_SOURCE\${SEDdC}1\${SEDdD}
  588. ! \${SEDuA}_POSIX_SOURCE\${SEDuB}_POSIX_SOURCE\${SEDuC}1\${SEDuD}
  589. ! \${SEDeA}_POSIX_SOURCE\${SEDeB}_POSIX_SOURCE\${SEDeC}1\${SEDeD}
  590.   "
  591.   }
  592.   
  593. !   {
  594.   test -n "$verbose" && \
  595. ! echo '    defining' _POSIX_1_SOURCE to be '2'
  596.   DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  597. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_1_SOURCE\${SEDdB}_POSIX_1_SOURCE\${SEDdC}2\${SEDdD}
  598. ! \${SEDuA}_POSIX_1_SOURCE\${SEDuB}_POSIX_1_SOURCE\${SEDuC}2\${SEDuD}
  599. ! \${SEDeA}_POSIX_1_SOURCE\${SEDeB}_POSIX_1_SOURCE\${SEDeC}2\${SEDeD}
  600.   "
  601.   }
  602.   
  603. !   {
  604.   test -n "$verbose" && \
  605. ! echo '    defining' _MINIX
  606.   DEFS="$DEFS -D_MINIX=1"
  607. ! SEDDEFS="${SEDDEFS}\${SEDdA}_MINIX\${SEDdB}_MINIX\${SEDdC}1\${SEDdD}
  608. ! \${SEDuA}_MINIX\${SEDuB}_MINIX\${SEDuC}1\${SEDuD}
  609. ! \${SEDeA}_MINIX\${SEDeB}_MINIX\${SEDeC}1\${SEDeD}
  610.   "
  611.   }
  612.   
  613.   fi
  614.   
  615. ! echo checking for POSIXized ISC
  616. ! if test -d /etc/conf/kconfig.d &&
  617. !   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  618.   then
  619.     ISC=1 # If later tests want to check for ISC.
  620. !   {
  621.   test -n "$verbose" && \
  622. ! echo '    defining' _POSIX_SOURCE
  623.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  624. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_SOURCE\${SEDdB}_POSIX_SOURCE\${SEDdC}1\${SEDdD}
  625. ! \${SEDuA}_POSIX_SOURCE\${SEDuB}_POSIX_SOURCE\${SEDuC}1\${SEDuD}
  626. ! \${SEDeA}_POSIX_SOURCE\${SEDeB}_POSIX_SOURCE\${SEDeC}1\${SEDeD}
  627.   "
  628.   }
  629.   
  630. --- 344,485 ----
  631.   fi
  632.   rm -f conftest*
  633.   
  634. ! test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  635.   if test -z "$CPP"; then
  636. !   # This must be in double quotes, not single quotes, because CPP may get
  637. !   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  638. !   # make.  It must be expanded now.
  639. !   CPP="${CC-cc} -E"
  640. !   cat > conftest.${ac_ext} <<EOF
  641. ! #include "confdefs.h"
  642. ! #include <stdio.h>
  643. ! Syntax Error
  644. ! EOF
  645. ! # Some shells (Coherent) do redirections in the wrong order, so need
  646. ! # the parens.
  647. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  648. ! if test -z "$ac_err"; then
  649. !   :
  650. ! else
  651. !   rm -rf conftest*
  652. !   CPP="${CC-cc} -E -traditional-cpp"
  653. !   cat > conftest.${ac_ext} <<EOF
  654. ! #include "confdefs.h"
  655.   #include <stdio.h>
  656. + Syntax Error
  657.   EOF
  658. ! # Some shells (Coherent) do redirections in the wrong order, so need
  659. ! # the parens.
  660. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  661. ! if test -z "$ac_err"; then
  662.     :
  663.   else
  664. +   rm -rf conftest*
  665.     CPP=/lib/cpp
  666.   fi
  667.   rm -f conftest*
  668.   fi
  669. + rm -f conftest*
  670. + fi
  671. + test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  672.   
  673. ! test -n "$silent" || /bin/echo "checking for AIX"
  674. ! cat > conftest.${ac_ext} <<EOF
  675. ! #include "confdefs.h"
  676.   #ifdef _AIX
  677.     yes
  678.   #endif
  679.   
  680.   EOF
  681. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  682.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  683. !   rm -rf conftest*
  684. !   
  685. ! {
  686.   test -n "$verbose" && \
  687. ! /bin/echo "    defining _ALL_SOURCE"
  688. ! /bin/echo "#define" _ALL_SOURCE "1" >> confdefs.h
  689.   DEFS="$DEFS -D_ALL_SOURCE=1"
  690. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_ALL_SOURCE\${ac_dB}_ALL_SOURCE\${ac_dC}1\${ac_dD}
  691. ! \${ac_uA}_ALL_SOURCE\${ac_uB}_ALL_SOURCE\${ac_uC}1\${ac_uD}
  692. ! \${ac_eA}_ALL_SOURCE\${ac_eB}_ALL_SOURCE\${ac_eC}1\${ac_eD}
  693.   "
  694.   }
  695.   
  696.   fi
  697.   rm -f conftest*
  698.   
  699.   
  700. ! test -n "$silent" || /bin/echo "checking for minix/config.h"
  701. ! cat > conftest.${ac_ext} <<EOF
  702. ! #include "confdefs.h"
  703.   #include <minix/config.h>
  704.   EOF
  705. ! # Some shells (Coherent) do redirections in the wrong order, so need
  706. ! # the parens.
  707. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  708. ! if test -z "$ac_err"; then
  709. !   rm -rf conftest*
  710.     MINIX=1
  711.   fi
  712.   rm -f conftest*
  713.   
  714.   # The Minix shell can't assign to the same variable on the same line!
  715.   if test -n "$MINIX"; then
  716. !   
  717. ! {
  718.   test -n "$verbose" && \
  719. ! /bin/echo "    defining _POSIX_SOURCE"
  720. ! /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  721.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  722. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  723. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  724. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  725.   "
  726.   }
  727.   
  728. !   
  729. ! {
  730.   test -n "$verbose" && \
  731. ! /bin/echo "    defining" _POSIX_1_SOURCE to be "2"
  732. ! /bin/echo "#define" _POSIX_1_SOURCE "2" >> confdefs.h
  733.   DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  734. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_1_SOURCE\${ac_dB}_POSIX_1_SOURCE\${ac_dC}2\${ac_dD}
  735. ! \${ac_uA}_POSIX_1_SOURCE\${ac_uB}_POSIX_1_SOURCE\${ac_uC}2\${ac_uD}
  736. ! \${ac_eA}_POSIX_1_SOURCE\${ac_eB}_POSIX_1_SOURCE\${ac_eC}2\${ac_eD}
  737.   "
  738.   }
  739.   
  740. !   
  741. ! {
  742.   test -n "$verbose" && \
  743. ! /bin/echo "    defining _MINIX"
  744. ! /bin/echo "#define" _MINIX "1" >> confdefs.h
  745.   DEFS="$DEFS -D_MINIX=1"
  746. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_MINIX\${ac_dB}_MINIX\${ac_dC}1\${ac_dD}
  747. ! \${ac_uA}_MINIX\${ac_uB}_MINIX\${ac_uC}1\${ac_uD}
  748. ! \${ac_eA}_MINIX\${ac_eB}_MINIX\${ac_eC}1\${ac_eD}
  749.   "
  750.   }
  751.   
  752.   fi
  753.   
  754. ! test -n "$silent" || /bin/echo "checking for POSIXized ISC"
  755. ! if test -d /gnu/etc/conf/kconfig.d &&
  756. !   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  757.   then
  758.     ISC=1 # If later tests want to check for ISC.
  759. !   
  760. ! {
  761.   test -n "$verbose" && \
  762. ! /bin/echo "    defining _POSIX_SOURCE"
  763. ! /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  764.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  765. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  766. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  767. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  768.   "
  769.   }
  770.   
  771. ***************
  772. *** 256,262 ****
  773.     fi
  774.   fi
  775.   
  776. ! prog='/* Ultrix mips cc rejects this.  */
  777.   typedef int charset[2]; const charset x;
  778.   /* SunOS 4.1.1 cc rejects this.  */
  779.   char const *const *ccp;
  780. --- 490,496 ----
  781.     fi
  782.   fi
  783.   
  784. ! ac_prog='/* Ultrix mips cc rejects this.  */
  785.   typedef int charset[2]; const charset x;
  786.   /* SunOS 4.1.1 cc rejects this.  */
  787.   char const *const *ccp;
  788. ***************
  789. *** 265,271 ****
  790.      It does not let you subtract one const X* pointer from another in an arm
  791.      of an if-expression whose if-part is not a constant expression */
  792.   const char *g = "string";
  793. ! p = &g + (g ? g-g : 0);
  794.   /* HPUX 7.0 cc rejects these. */
  795.   ++ccp;
  796.   p = (char**) ccp;
  797. --- 499,505 ----
  798.      It does not let you subtract one const X* pointer from another in an arm
  799.      of an if-expression whose if-part is not a constant expression */
  800.   const char *g = "string";
  801. ! ccp = &g + (g ? g-g : 0);
  802.   /* HPUX 7.0 cc rejects these. */
  803.   ++ccp;
  804.   p = (char**) ccp;
  805. ***************
  806. *** 290,312 ****
  807.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  808.     struct s { int j; const int *ap[3]; };
  809.     struct s *b; b->j = 5;
  810.   }'
  811. ! echo checking for working const
  812. ! cat > conftest.c <<EOF
  813.   
  814. ! int main() { exit(0); }
  815. ! int t() { $prog }
  816.   EOF
  817. ! if eval $compile; then
  818.     :
  819.   else
  820. !   {
  821.   test -n "$verbose" && \
  822. ! echo '    defining' const to be 'empty'
  823.   DEFS="$DEFS -Dconst="
  824. ! SEDDEFS="${SEDDEFS}\${SEDdA}const\${SEDdB}const\${SEDdC}\${SEDdD}
  825. ! \${SEDuA}const\${SEDuB}const\${SEDuC}\${SEDuD}
  826. ! \${SEDeA}const\${SEDeB}const\${SEDeC}\${SEDeD}
  827.   "
  828.   }
  829.   
  830. --- 524,553 ----
  831.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  832.     struct s { int j; const int *ap[3]; };
  833.     struct s *b; b->j = 5;
  834. + }
  835. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  836. +   const int foo = 10;
  837.   }'
  838. ! test -n "$silent" || /bin/echo "checking for lack of working const"
  839. ! cat > conftest.${ac_ext} <<EOF
  840. ! #include "confdefs.h"
  841.   
  842. ! int main() { return 0; }
  843. ! int t() { $ac_prog; return 0; }
  844.   EOF
  845. ! if eval $ac_compile; then
  846.     :
  847.   else
  848. !   rm -rf conftest*
  849. !   
  850. ! {
  851.   test -n "$verbose" && \
  852. ! /bin/echo "    defining" const to be empty
  853. ! /bin/echo "#define" const "" >> confdefs.h
  854.   DEFS="$DEFS -Dconst="
  855. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
  856. ! \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
  857. ! \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
  858.   "
  859.   }
  860.   
  861. ***************
  862. *** 318,514 ****
  863.   # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  864.   # or the AFS install, which mishandles nonexistent args, or
  865.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  866. ! # `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  867. ! # anyway.  Sigh.
  868.   if test "z${INSTALL}" = "z" ; then
  869. !   echo checking for install
  870. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  871. !   for dir in $PATH; do
  872. !     test -z "$dir" && dir=.
  873. !     case $dir in
  874. !     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  875.       *)
  876. !       if test -f $dir/installbsd; then
  877. !     INSTALL="$dir/installbsd -c" # OSF1
  878. !     INSTALL_PROGRAM='$(INSTALL)'
  879. !     INSTALL_DATA='$(INSTALL) -m 644'
  880. !     break
  881. !       fi
  882. !       if test -f $dir/install; then
  883. !     if grep dspmsg $dir/install >/dev/null 2>&1; then
  884. !       : # AIX
  885. !     else
  886. !       INSTALL="$dir/install -c"
  887. !       INSTALL_PROGRAM='$(INSTALL)'
  888. !       INSTALL_DATA='$(INSTALL) -m 644'
  889. !       break
  890.       fi
  891. !       fi
  892.         ;;
  893.       esac
  894.     done
  895. !   IFS="$saveifs"
  896.   fi
  897. ! INSTALL=${INSTALL-cp}
  898. ! INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  899. ! INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  900. ! echo checking for directory library header
  901. ! dirheader=
  902. ! if test -z "$dirheader"; then
  903. !   echo checking for dirent.h
  904. ! cat > conftest.c <<EOF
  905.   #include <sys/types.h>
  906.   #include <dirent.h>
  907. ! int main() { exit(0); }
  908. ! int t() { DIR *dirp = opendir ("/"); }
  909.   EOF
  910. ! if eval $compile; then
  911. !   {
  912.   test -n "$verbose" && \
  913. ! echo '    defining' DIRENT
  914.   DEFS="$DEFS -DDIRENT=1"
  915. ! SEDDEFS="${SEDDEFS}\${SEDdA}DIRENT\${SEDdB}DIRENT\${SEDdC}1\${SEDdD}
  916. ! \${SEDuA}DIRENT\${SEDuB}DIRENT\${SEDuC}1\${SEDuD}
  917. ! \${SEDeA}DIRENT\${SEDeB}DIRENT\${SEDeC}1\${SEDeD}
  918.   "
  919.   }
  920. !  dirheader=dirent.h
  921.   fi
  922.   rm -f conftest*
  923.   fi
  924. ! if test -z "$dirheader"; then
  925. !   echo checking for sys/ndir.h
  926. ! cat > conftest.c <<EOF
  927.   #include <sys/types.h>
  928.   #include <sys/ndir.h>
  929. ! int main() { exit(0); }
  930. ! int t() { DIR *dirp = opendir ("/"); }
  931.   EOF
  932. ! if eval $compile; then
  933. !   {
  934.   test -n "$verbose" && \
  935. ! echo '    defining' SYSNDIR
  936.   DEFS="$DEFS -DSYSNDIR=1"
  937. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSNDIR\${SEDdB}SYSNDIR\${SEDdC}1\${SEDdD}
  938. ! \${SEDuA}SYSNDIR\${SEDuB}SYSNDIR\${SEDuC}1\${SEDuD}
  939. ! \${SEDeA}SYSNDIR\${SEDeB}SYSNDIR\${SEDeC}1\${SEDeD}
  940.   "
  941.   }
  942. !  dirheader=sys/ndir.h
  943.   fi
  944.   rm -f conftest*
  945.   fi
  946. ! if test -z "$dirheader"; then
  947. !   echo checking for sys/dir.h
  948. ! cat > conftest.c <<EOF
  949.   #include <sys/types.h>
  950.   #include <sys/dir.h>
  951. ! int main() { exit(0); }
  952. ! int t() { DIR *dirp = opendir ("/"); }
  953.   EOF
  954. ! if eval $compile; then
  955. !   {
  956.   test -n "$verbose" && \
  957. ! echo '    defining' SYSDIR
  958.   DEFS="$DEFS -DSYSDIR=1"
  959. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSDIR\${SEDdB}SYSDIR\${SEDdC}1\${SEDdD}
  960. ! \${SEDuA}SYSDIR\${SEDuB}SYSDIR\${SEDuC}1\${SEDuD}
  961. ! \${SEDeA}SYSDIR\${SEDeB}SYSDIR\${SEDeC}1\${SEDeD}
  962.   "
  963.   }
  964. !  dirheader=sys/dir.h
  965.   fi
  966.   rm -f conftest*
  967.   fi
  968. ! if test -z "$dirheader"; then
  969. !   echo checking for ndir.h
  970. ! cat > conftest.c <<EOF
  971.   #include <sys/types.h>
  972.   #include <ndir.h>
  973. ! int main() { exit(0); }
  974. ! int t() { DIR *dirp = opendir ("/"); }
  975.   EOF
  976. ! if eval $compile; then
  977. !   {
  978.   test -n "$verbose" && \
  979. ! echo '    defining' NDIR
  980.   DEFS="$DEFS -DNDIR=1"
  981. ! SEDDEFS="${SEDDEFS}\${SEDdA}NDIR\${SEDdB}NDIR\${SEDdC}1\${SEDdD}
  982. ! \${SEDuA}NDIR\${SEDuB}NDIR\${SEDuC}1\${SEDuD}
  983. ! \${SEDeA}NDIR\${SEDeB}NDIR\${SEDeC}1\${SEDeD}
  984.   "
  985.   }
  986. !  dirheader=ndir.h
  987.   fi
  988.   rm -f conftest*
  989.   fi
  990.   
  991. ! echo checking for closedir return value
  992. ! cat > conftest.c <<EOF
  993.   #include <sys/types.h>
  994. ! #include <$dirheader>
  995.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  996.   EOF
  997. ! eval $compile
  998.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  999.     :
  1000.   else
  1001. !   {
  1002.   test -n "$verbose" && \
  1003. ! echo '    defining' VOID_CLOSEDIR
  1004.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1005. ! SEDDEFS="${SEDDEFS}\${SEDdA}VOID_CLOSEDIR\${SEDdB}VOID_CLOSEDIR\${SEDdC}1\${SEDdD}
  1006. ! \${SEDuA}VOID_CLOSEDIR\${SEDuB}VOID_CLOSEDIR\${SEDuC}1\${SEDuD}
  1007. ! \${SEDeA}VOID_CLOSEDIR\${SEDeB}VOID_CLOSEDIR\${SEDeC}1\${SEDeD}
  1008.   "
  1009.   }
  1010.   
  1011.   fi
  1012. ! rm -f conftest*
  1013.   
  1014. ! if test -z "$dirheader"; then
  1015. !   {
  1016. ! test -n "$verbose" && \
  1017. ! echo '    defining' NODIR
  1018. ! DEFS="$DEFS -DNODIR=1"
  1019. ! SEDDEFS="${SEDDEFS}\${SEDdA}NODIR\${SEDdB}NODIR\${SEDdC}1\${SEDdD}
  1020. ! \${SEDuA}NODIR\${SEDuB}NODIR\${SEDuC}1\${SEDuD}
  1021. ! \${SEDeA}NODIR\${SEDeB}NODIR\${SEDeC}1\${SEDeD}
  1022. ! "
  1023. ! }
  1024. ! fi
  1025. ! echo checking for return type of signal handlers
  1026. ! cat > conftest.c <<EOF
  1027.   #include <sys/types.h>
  1028.   #include <signal.h>
  1029.   #ifdef signal
  1030.   #undef signal
  1031.   #endif
  1032.   extern void (*signal ()) ();
  1033. ! int main() { exit(0); }
  1034. ! int t() { int i; }
  1035.   EOF
  1036. ! if eval $compile; then
  1037. !   {
  1038.   test -n "$verbose" && \
  1039. ! echo '    defining' RETSIGTYPE to be 'void'
  1040.   DEFS="$DEFS -DRETSIGTYPE=void"
  1041. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}void\${SEDdD}
  1042. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}void\${SEDuD}
  1043. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}void\${SEDeD}
  1044.   "
  1045.   }
  1046.   
  1047.   else
  1048. !   {
  1049.   test -n "$verbose" && \
  1050. ! echo '    defining' RETSIGTYPE to be 'int'
  1051.   DEFS="$DEFS -DRETSIGTYPE=int"
  1052. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}int\${SEDdD}
  1053. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}int\${SEDuD}
  1054. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}int\${SEDeD}
  1055.   "
  1056.   }
  1057.   
  1058. --- 559,795 ----
  1059.   # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  1060.   # or the AFS install, which mishandles nonexistent args, or
  1061.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  1062. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  1063. ! # syntax.  Sigh.
  1064. ! #
  1065. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  1066. ! #     anyway.
  1067. ! # This turns out not to be true, so the mere pathname isn't an indication
  1068. ! # of whether the program works.  What we really need is a set of tests for
  1069. ! # the install program to see if it actually works in all the required ways.
  1070. ! #
  1071. ! # Avoid using ./install, which might have been erroneously created
  1072. ! # by make from ./install.sh.
  1073.   if test "z${INSTALL}" = "z" ; then
  1074. !   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  1075. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1076. !   for ac_dir in $PATH; do
  1077. !     case "$ac_dir" in
  1078. !     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  1079.       *)
  1080. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  1081. !       for ac_prog in installbsd scoinst install; do
  1082. !         if test -f $ac_dir/$ac_prog; then
  1083. !       if test $ac_prog = install &&
  1084. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1085. !         # AIX install.  It has an incompatible calling convention.
  1086. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  1087. !         :
  1088. !       else
  1089. !         INSTALL="$ac_dir/$ac_prog -c"
  1090. !         INSTALL_PROGRAM='${INSTALL}'
  1091. !         INSTALL_DATA='${INSTALL} -m 644'
  1092. !         break 2
  1093. !       fi
  1094.       fi
  1095. !       done
  1096.         ;;
  1097.       esac
  1098.     done
  1099. !   IFS="$ac_save_ifs"
  1100.   fi
  1101. ! if test -z "$INSTALL"; then
  1102. !   if test -f ${srcdir}/install.sh; then
  1103. !     # As a last resort, use the slow shell script.
  1104. !     INSTALL='@top_srcdir@/install.sh -c'
  1105. !   else
  1106. !     /bin/echo "configure: warning: ${srcdir}/install.sh not found; using cp" >&2
  1107. !     INSTALL=cp
  1108. !   fi
  1109. ! fi
  1110. ! test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  1111. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  1112. ! # It thinks the first close brace ends the variable substitution.
  1113. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1114. ! test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  1115. ! test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL}'
  1116. ! test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  1117. ! test -n "$silent" || /bin/echo "checking for directory library header"
  1118. ! ac_dir_header=
  1119. ! if test -z "$ac_dir_header"; then
  1120. !   test -n "$silent" || /bin/echo "checking for dirent.h"
  1121. ! cat > conftest.${ac_ext} <<EOF
  1122. ! #include "confdefs.h"
  1123.   #include <sys/types.h>
  1124.   #include <dirent.h>
  1125. ! int main() { return 0; }
  1126. ! int t() { DIR *dirp = 0;; return 0; }
  1127.   EOF
  1128. ! if eval $ac_compile; then
  1129. !   rm -rf conftest*
  1130. !   
  1131. ! {
  1132.   test -n "$verbose" && \
  1133. ! /bin/echo "    defining DIRENT"
  1134. ! /bin/echo "#define" DIRENT "1" >> confdefs.h
  1135.   DEFS="$DEFS -DDIRENT=1"
  1136. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}DIRENT\${ac_dB}DIRENT\${ac_dC}1\${ac_dD}
  1137. ! \${ac_uA}DIRENT\${ac_uB}DIRENT\${ac_uC}1\${ac_uD}
  1138. ! \${ac_eA}DIRENT\${ac_eB}DIRENT\${ac_eC}1\${ac_eD}
  1139.   "
  1140.   }
  1141. !  ac_dir_header=dirent.h
  1142.   fi
  1143.   rm -f conftest*
  1144.   fi
  1145. ! if test -z "$ac_dir_header"; then
  1146. !   test -n "$silent" || /bin/echo "checking for sys/ndir.h"
  1147. ! cat > conftest.${ac_ext} <<EOF
  1148. ! #include "confdefs.h"
  1149.   #include <sys/types.h>
  1150.   #include <sys/ndir.h>
  1151. ! int main() { return 0; }
  1152. ! int t() { DIR *dirp = 0;; return 0; }
  1153.   EOF
  1154. ! if eval $ac_compile; then
  1155. !   rm -rf conftest*
  1156. !   
  1157. ! {
  1158.   test -n "$verbose" && \
  1159. ! /bin/echo "    defining SYSNDIR"
  1160. ! /bin/echo "#define" SYSNDIR "1" >> confdefs.h
  1161.   DEFS="$DEFS -DSYSNDIR=1"
  1162. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSNDIR\${ac_dB}SYSNDIR\${ac_dC}1\${ac_dD}
  1163. ! \${ac_uA}SYSNDIR\${ac_uB}SYSNDIR\${ac_uC}1\${ac_uD}
  1164. ! \${ac_eA}SYSNDIR\${ac_eB}SYSNDIR\${ac_eC}1\${ac_eD}
  1165.   "
  1166.   }
  1167. !  ac_dir_header=sys/ndir.h
  1168.   fi
  1169.   rm -f conftest*
  1170.   fi
  1171. ! if test -z "$ac_dir_header"; then
  1172. !   test -n "$silent" || /bin/echo "checking for sys/dir.h"
  1173. ! cat > conftest.${ac_ext} <<EOF
  1174. ! #include "confdefs.h"
  1175.   #include <sys/types.h>
  1176.   #include <sys/dir.h>
  1177. ! int main() { return 0; }
  1178. ! int t() { DIR *dirp = 0;; return 0; }
  1179.   EOF
  1180. ! if eval $ac_compile; then
  1181. !   rm -rf conftest*
  1182. !   
  1183. ! {
  1184.   test -n "$verbose" && \
  1185. ! /bin/echo "    defining SYSDIR"
  1186. ! /bin/echo "#define" SYSDIR "1" >> confdefs.h
  1187.   DEFS="$DEFS -DSYSDIR=1"
  1188. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSDIR\${ac_dB}SYSDIR\${ac_dC}1\${ac_dD}
  1189. ! \${ac_uA}SYSDIR\${ac_uB}SYSDIR\${ac_uC}1\${ac_uD}
  1190. ! \${ac_eA}SYSDIR\${ac_eB}SYSDIR\${ac_eC}1\${ac_eD}
  1191.   "
  1192.   }
  1193. !  ac_dir_header=sys/dir.h
  1194.   fi
  1195.   rm -f conftest*
  1196.   fi
  1197. ! if test -z "$ac_dir_header"; then
  1198. !   test -n "$silent" || /bin/echo "checking for ndir.h"
  1199. ! cat > conftest.${ac_ext} <<EOF
  1200. ! #include "confdefs.h"
  1201.   #include <sys/types.h>
  1202.   #include <ndir.h>
  1203. ! int main() { return 0; }
  1204. ! int t() { DIR *dirp = 0;; return 0; }
  1205.   EOF
  1206. ! if eval $ac_compile; then
  1207. !   rm -rf conftest*
  1208. !   
  1209. ! {
  1210.   test -n "$verbose" && \
  1211. ! /bin/echo "    defining NDIR"
  1212. ! /bin/echo "#define" NDIR "1" >> confdefs.h
  1213.   DEFS="$DEFS -DNDIR=1"
  1214. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NDIR\${ac_dB}NDIR\${ac_dC}1\${ac_dD}
  1215. ! \${ac_uA}NDIR\${ac_uB}NDIR\${ac_uC}1\${ac_uD}
  1216. ! \${ac_eA}NDIR\${ac_eB}NDIR\${ac_eC}1\${ac_eD}
  1217.   "
  1218.   }
  1219. !  ac_dir_header=ndir.h
  1220.   fi
  1221.   rm -f conftest*
  1222.   fi
  1223.   
  1224. ! test -n "$silent" || /bin/echo "checking for closedir return value"
  1225. ! cat > conftest.${ac_ext} <<EOF
  1226. ! #include "confdefs.h"
  1227.   #include <sys/types.h>
  1228. ! #include <$ac_dir_header>
  1229.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1230.   EOF
  1231. ! eval $ac_compile
  1232.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1233.     :
  1234.   else
  1235. !   
  1236. ! {
  1237.   test -n "$verbose" && \
  1238. ! /bin/echo "    defining VOID_CLOSEDIR"
  1239. ! /bin/echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
  1240.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1241. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_CLOSEDIR\${ac_dB}VOID_CLOSEDIR\${ac_dC}1\${ac_dD}
  1242. ! \${ac_uA}VOID_CLOSEDIR\${ac_uB}VOID_CLOSEDIR\${ac_uC}1\${ac_uD}
  1243. ! \${ac_eA}VOID_CLOSEDIR\${ac_eB}VOID_CLOSEDIR\${ac_eC}1\${ac_eD}
  1244.   "
  1245.   }
  1246.   
  1247.   fi
  1248. ! rm -fr conftest*
  1249.   
  1250. ! test -n "$silent" || /bin/echo "checking for return type of signal handlers"
  1251. ! cat > conftest.${ac_ext} <<EOF
  1252. ! #include "confdefs.h"
  1253.   #include <sys/types.h>
  1254.   #include <signal.h>
  1255.   #ifdef signal
  1256.   #undef signal
  1257.   #endif
  1258.   extern void (*signal ()) ();
  1259. ! int main() { return 0; }
  1260. ! int t() { int i;; return 0; }
  1261.   EOF
  1262. ! if eval $ac_compile; then
  1263. !   rm -rf conftest*
  1264. !   
  1265. ! {
  1266.   test -n "$verbose" && \
  1267. ! /bin/echo "    defining" RETSIGTYPE to be "void"
  1268. ! /bin/echo "#define" RETSIGTYPE "void" >> confdefs.h
  1269.   DEFS="$DEFS -DRETSIGTYPE=void"
  1270. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  1271. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  1272. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  1273.   "
  1274.   }
  1275.   
  1276.   else
  1277. !   rm -rf conftest*
  1278. !   
  1279. ! {
  1280.   test -n "$verbose" && \
  1281. ! /bin/echo "    defining" RETSIGTYPE to be "int"
  1282. ! /bin/echo "#define" RETSIGTYPE "int" >> confdefs.h
  1283.   DEFS="$DEFS -DRETSIGTYPE=int"
  1284. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  1285. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  1286. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  1287.   "
  1288.   }
  1289.   
  1290. ***************
  1291. *** 516,536 ****
  1292.   rm -f conftest*
  1293.   
  1294.   
  1295. ! echo checking for ANSI C header files
  1296. ! cat > conftest.c <<EOF
  1297.   #include <stdlib.h>
  1298.   #include <stdarg.h>
  1299.   #include <string.h>
  1300.   #include <float.h>
  1301.   EOF
  1302. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  1303. ! if test -z "$err"; then
  1304.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1305. ! echo '#include <string.h>' > conftest.c
  1306. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  1307.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1308.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1309. ! cat > conftest.c <<EOF
  1310.   #include <ctype.h>
  1311.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1312.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1313. --- 797,824 ----
  1314.   rm -f conftest*
  1315.   
  1316.   
  1317. ! test -n "$silent" || /bin/echo "checking for ANSI C header files"
  1318. ! cat > conftest.${ac_ext} <<EOF
  1319. ! #include "confdefs.h"
  1320.   #include <stdlib.h>
  1321.   #include <stdarg.h>
  1322.   #include <string.h>
  1323.   #include <float.h>
  1324.   EOF
  1325. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1326. ! # the parens.
  1327. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1328. ! if test -z "$ac_err"; then
  1329. !   rm -rf conftest*
  1330.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1331. ! /bin/echo '#include "confdefs.h"
  1332. ! #include <string.h>' > conftest.${ac_ext}
  1333. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1334.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1335. +   rm -rf conftest*
  1336.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1337. ! cat > conftest.${ac_ext} <<EOF
  1338. ! #include "confdefs.h"
  1339.   #include <ctype.h>
  1340.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1341.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1342. ***************
  1343. *** 540,691 ****
  1344.   exit (0); }
  1345.   
  1346.   EOF
  1347. ! eval $compile
  1348.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1349. !   {
  1350.   test -n "$verbose" && \
  1351. ! echo '    defining' STDC_HEADERS
  1352.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1353. ! SEDDEFS="${SEDDEFS}\${SEDdA}STDC_HEADERS\${SEDdB}STDC_HEADERS\${SEDdC}1\${SEDdD}
  1354. ! \${SEDuA}STDC_HEADERS\${SEDuB}STDC_HEADERS\${SEDuC}1\${SEDuD}
  1355. ! \${SEDeA}STDC_HEADERS\${SEDeB}STDC_HEADERS\${SEDeC}1\${SEDeD}
  1356.   "
  1357.   }
  1358.   
  1359.   fi
  1360.   rm -f conftest*
  1361.   fi
  1362.   rm -f conftest*
  1363.   
  1364.   fi
  1365.   rm -f conftest*
  1366.   
  1367. ! echo checking for unistd.h
  1368. ! cat > conftest.c <<EOF
  1369. ! #include <unistd.h>
  1370. ! EOF
  1371. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  1372. ! if test -z "$err"; then
  1373. !   {
  1374.   test -n "$verbose" && \
  1375. ! echo '    defining' HAVE_UNISTD_H
  1376. ! DEFS="$DEFS -DHAVE_UNISTD_H=1"
  1377. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_UNISTD_H\${SEDdB}HAVE_UNISTD_H\${SEDdC}1\${SEDdD}
  1378. ! \${SEDuA}HAVE_UNISTD_H\${SEDuB}HAVE_UNISTD_H\${SEDuC}1\${SEDuD}
  1379. ! \${SEDeA}HAVE_UNISTD_H\${SEDeB}HAVE_UNISTD_H\${SEDeC}1\${SEDeD}
  1380.   "
  1381.   }
  1382.   
  1383.   fi
  1384.   rm -f conftest*
  1385.   
  1386. ! for hdr in string.h fcntl.h
  1387.   do
  1388. ! trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  1389. ! echo checking for ${hdr}
  1390. ! cat > conftest.c <<EOF
  1391. ! #include <${hdr}>
  1392. ! EOF
  1393. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  1394. ! if test -z "$err"; then
  1395. !   {
  1396.   test -n "$verbose" && \
  1397. ! echo '    defining' ${trhdr}
  1398. ! DEFS="$DEFS -D${trhdr}=1"
  1399. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  1400. ! \${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  1401. ! \${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  1402.   "
  1403.   }
  1404.   
  1405.   fi
  1406.   rm -f conftest*
  1407.   done
  1408.   
  1409. ! for func in rename
  1410.   do
  1411. ! echo checking for ${func}
  1412. ! cat > conftest.c <<EOF
  1413. ! int main() { exit(0); }
  1414. ! int t() { /* The GNU C library defines this for functions which it implements
  1415.       to always fail with ENOSYS.  Some functions are actually named
  1416.       something starting with __ and the normal name is an alias.  */
  1417. ! #if defined (__stub_${func}) || defined (__stub___${func})
  1418.   choke me
  1419.   #else
  1420.   /* Override any gcc2 internal prototype to avoid an error.  */
  1421. ! extern char ${func}(); ${func}();
  1422.   #endif
  1423. !  }
  1424.   EOF
  1425. ! if eval $compile; then
  1426.     :
  1427.   else
  1428. !   LIBOBJS="$LIBOBJS ${func}.o"
  1429. ! test -n "$verbose" && echo "    using ${func}.o instead"
  1430.   fi
  1431.   rm -f conftest*
  1432.   
  1433.   done
  1434.   
  1435. ! for func in pathconf strerror
  1436.   do
  1437. ! trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  1438. ! echo checking for ${func}
  1439. ! cat > conftest.c <<EOF
  1440.   #include <ctype.h>
  1441. ! int main() { exit(0); }
  1442.   int t() { 
  1443.   /* The GNU C library defines this for functions which it implements
  1444.       to always fail with ENOSYS.  Some functions are actually named
  1445.       something starting with __ and the normal name is an alias.  */
  1446. ! #if defined (__stub_${func}) || defined (__stub___${func})
  1447.   choke me
  1448.   #else
  1449.   /* Override any gcc2 internal prototype to avoid an error.  */
  1450. ! extern char ${func}(); ${func}();
  1451.   #endif
  1452. !  }
  1453.   EOF
  1454. ! if eval $compile; then
  1455.     {
  1456.   test -n "$verbose" && \
  1457. ! echo '    defining' ${trfunc}
  1458. ! DEFS="$DEFS -D${trfunc}=1"
  1459. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
  1460. ! \${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
  1461. ! \${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
  1462.   "
  1463.   }
  1464.   
  1465.   fi
  1466.   rm -f conftest*
  1467.   done
  1468.   
  1469.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1470.   # for constant arguments.  Useless!
  1471. ! echo checking for working alloca.h
  1472. ! cat > conftest.c <<EOF
  1473.   #include <alloca.h>
  1474. ! int main() { exit(0); }
  1475. ! int t() { char *p = alloca(2 * sizeof(int)); }
  1476.   EOF
  1477. ! if eval $compile; then
  1478. !   {
  1479.   test -n "$verbose" && \
  1480. ! echo '    defining' HAVE_ALLOCA_H
  1481.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  1482. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ALLOCA_H\${SEDdB}HAVE_ALLOCA_H\${SEDdC}1\${SEDdD}
  1483. ! \${SEDuA}HAVE_ALLOCA_H\${SEDuB}HAVE_ALLOCA_H\${SEDuC}1\${SEDuD}
  1484. ! \${SEDeA}HAVE_ALLOCA_H\${SEDeB}HAVE_ALLOCA_H\${SEDeC}1\${SEDeD}
  1485.   "
  1486.   }
  1487.   
  1488.   fi
  1489.   rm -f conftest*
  1490.   
  1491. ! decl="#ifdef __GNUC__
  1492.   #define alloca __builtin_alloca
  1493.   #else
  1494.   #if HAVE_ALLOCA_H
  1495. --- 828,1024 ----
  1496.   exit (0); }
  1497.   
  1498.   EOF
  1499. ! eval $ac_compile
  1500.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1501. !   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1502. ! /bin/echo '#include "confdefs.h"
  1503. ! #include <stdlib.h>' > conftest.${ac_ext}
  1504. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1505. ! if egrep "free" conftest.out >/dev/null 2>&1; then
  1506. !   rm -rf conftest*
  1507. !   
  1508. ! {
  1509.   test -n "$verbose" && \
  1510. ! /bin/echo "    defining STDC_HEADERS"
  1511. ! /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  1512.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1513. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  1514. ! \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  1515. ! \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  1516.   "
  1517.   }
  1518.   
  1519.   fi
  1520.   rm -f conftest*
  1521. + fi
  1522. + rm -fr conftest*
  1523.   fi
  1524.   rm -f conftest*
  1525.   
  1526.   fi
  1527.   rm -f conftest*
  1528.   
  1529. ! for ac_hdr in unistd.h
  1530. ! do
  1531. ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1532. ! test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  1533. ! cat > conftest.${ac_ext} <<EOF
  1534. ! #include "confdefs.h"
  1535. ! #include <${ac_hdr}>
  1536. ! EOF
  1537. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1538. ! # the parens.
  1539. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1540. ! if test -z "$ac_err"; then
  1541. !   rm -rf conftest*
  1542. !   
  1543. ! {
  1544.   test -n "$verbose" && \
  1545. ! /bin/echo "    defining ${ac_tr_hdr}"
  1546. ! /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1547. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1548. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  1549. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  1550. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  1551.   "
  1552.   }
  1553.   
  1554.   fi
  1555.   rm -f conftest*
  1556. + done
  1557.   
  1558. ! for ac_hdr in string.h fcntl.h
  1559.   do
  1560. ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1561. ! test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  1562. ! cat > conftest.${ac_ext} <<EOF
  1563. ! #include "confdefs.h"
  1564. ! #include <${ac_hdr}>
  1565. ! EOF
  1566. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1567. ! # the parens.
  1568. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1569. ! if test -z "$ac_err"; then
  1570. !   rm -rf conftest*
  1571. !   
  1572. ! {
  1573.   test -n "$verbose" && \
  1574. ! /bin/echo "    defining ${ac_tr_hdr}"
  1575. ! /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1576. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1577. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  1578. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  1579. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  1580.   "
  1581.   }
  1582.   
  1583.   fi
  1584.   rm -f conftest*
  1585.   done
  1586.   
  1587. ! for ac_func in rename
  1588.   do
  1589. ! test -n "$silent" || /bin/echo "checking for ${ac_func}"
  1590. ! cat > conftest.${ac_ext} <<EOF
  1591. ! #include "confdefs.h"
  1592. ! #include <ctype.h>
  1593. ! int main() { return 0; }
  1594. ! int t() { 
  1595. ! /* The GNU C library defines this for functions which it implements
  1596.       to always fail with ENOSYS.  Some functions are actually named
  1597.       something starting with __ and the normal name is an alias.  */
  1598. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1599.   choke me
  1600.   #else
  1601.   /* Override any gcc2 internal prototype to avoid an error.  */
  1602. ! extern char ${ac_func}(); ${ac_func}();
  1603.   #endif
  1604. ! ; return 0; }
  1605.   EOF
  1606. ! if eval $ac_compile; then
  1607.     :
  1608.   else
  1609. !   rm -rf conftest*
  1610. !   LIBOBJS="$LIBOBJS ${ac_func}.o"
  1611. ! test -n "$verbose" && /bin/echo "    using ${ac_func}.o instead"
  1612.   fi
  1613.   rm -f conftest*
  1614.   
  1615.   done
  1616.   
  1617. ! for ac_func in pathconf strerror
  1618.   do
  1619. ! ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  1620. ! test -n "$silent" || /bin/echo "checking for ${ac_func}"
  1621. ! cat > conftest.${ac_ext} <<EOF
  1622. ! #include "confdefs.h"
  1623.   #include <ctype.h>
  1624. ! int main() { return 0; }
  1625.   int t() { 
  1626.   /* The GNU C library defines this for functions which it implements
  1627.       to always fail with ENOSYS.  Some functions are actually named
  1628.       something starting with __ and the normal name is an alias.  */
  1629. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1630.   choke me
  1631.   #else
  1632.   /* Override any gcc2 internal prototype to avoid an error.  */
  1633. ! extern char ${ac_func}(); ${ac_func}();
  1634.   #endif
  1635. ! ; return 0; }
  1636.   EOF
  1637. ! if eval $ac_compile; then
  1638. !   rm -rf conftest*
  1639.     {
  1640.   test -n "$verbose" && \
  1641. ! /bin/echo "    defining ${ac_tr_func}"
  1642. ! /bin/echo "#define" ${ac_tr_func} "1" >> confdefs.h
  1643. ! DEFS="$DEFS -D${ac_tr_func}=1"
  1644. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  1645. ! \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  1646. ! \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  1647.   "
  1648.   }
  1649.   
  1650.   fi
  1651.   rm -f conftest*
  1652.   done
  1653.   
  1654.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1655.   # for constant arguments.  Useless!
  1656. ! test -n "$silent" || /bin/echo "checking for working alloca.h"
  1657. ! cat > conftest.${ac_ext} <<EOF
  1658. ! #include "confdefs.h"
  1659.   #include <alloca.h>
  1660. ! int main() { return 0; }
  1661. ! int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  1662.   EOF
  1663. ! if eval $ac_compile; then
  1664. !   rm -rf conftest*
  1665. !   
  1666. ! {
  1667.   test -n "$verbose" && \
  1668. ! /bin/echo "    defining HAVE_ALLOCA_H"
  1669. ! /bin/echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  1670.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  1671. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
  1672. ! \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
  1673. ! \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
  1674.   "
  1675.   }
  1676.   
  1677.   fi
  1678.   rm -f conftest*
  1679.   
  1680. ! ac_decl="#ifdef __GNUC__
  1681.   #define alloca __builtin_alloca
  1682.   #else
  1683.   #if HAVE_ALLOCA_H
  1684. ***************
  1685. *** 699,715 ****
  1686.   #endif
  1687.   #endif
  1688.   "
  1689. ! echo checking for alloca
  1690. ! cat > conftest.c <<EOF
  1691. ! $decl
  1692. ! int main() { exit(0); }
  1693. ! int t() { char *p = (char *) alloca(1); }
  1694. ! EOF
  1695. ! if eval $compile; then
  1696. !   :
  1697.   else
  1698. !   alloca_missing=1
  1699. ! cat > conftest.c <<EOF
  1700.   
  1701.   #if defined(CRAY) && ! defined(CRAY2)
  1702.   winnitude
  1703. --- 1032,1064 ----
  1704.   #endif
  1705.   #endif
  1706.   "
  1707. ! test -n "$silent" || /bin/echo "checking for alloca"
  1708. ! cat > conftest.${ac_ext} <<EOF
  1709. ! #include "confdefs.h"
  1710. ! $ac_decl
  1711. ! int main() { return 0; }
  1712. ! int t() { char *p = (char *) alloca(1);; return 0; }
  1713. ! EOF
  1714. ! if eval $ac_compile; then
  1715. !   rm -rf conftest*
  1716. !   
  1717. ! {
  1718. ! test -n "$verbose" && \
  1719. ! /bin/echo "    defining HAVE_ALLOCA"
  1720. ! /bin/echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  1721. ! DEFS="$DEFS -DHAVE_ALLOCA=1"
  1722. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
  1723. ! \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
  1724. ! \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
  1725. ! "
  1726. ! }
  1727.   else
  1728. !   rm -rf conftest*
  1729. !   ac_alloca_missing=1
  1730. ! cat > conftest.${ac_ext} <<EOF
  1731. ! #include "confdefs.h"
  1732.   
  1733.   #if defined(CRAY) && ! defined(CRAY2)
  1734.   winnitude
  1735. ***************
  1736. *** 718,729 ****
  1737.   #endif
  1738.   
  1739.   EOF
  1740. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  1741.   if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  1742. !   echo checking for _getb67
  1743. ! cat > conftest.c <<EOF
  1744.   #include <ctype.h>
  1745. ! int main() { exit(0); }
  1746.   int t() { 
  1747.   /* The GNU C library defines this for functions which it implements
  1748.       to always fail with ENOSYS.  Some functions are actually named
  1749. --- 1067,1080 ----
  1750.   #endif
  1751.   
  1752.   EOF
  1753. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1754.   if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  1755. !   rm -rf conftest*
  1756. !   test -n "$silent" || /bin/echo "checking for _getb67"
  1757. ! cat > conftest.${ac_ext} <<EOF
  1758. ! #include "confdefs.h"
  1759.   #include <ctype.h>
  1760. ! int main() { return 0; }
  1761.   int t() { 
  1762.   /* The GNU C library defines this for functions which it implements
  1763.       to always fail with ENOSYS.  Some functions are actually named
  1764. ***************
  1765. *** 734,757 ****
  1766.   /* Override any gcc2 internal prototype to avoid an error.  */
  1767.   extern char _getb67(); _getb67();
  1768.   #endif
  1769. !  }
  1770.   EOF
  1771. ! if eval $compile; then
  1772.     {
  1773.   test -n "$verbose" && \
  1774. ! echo '    defining' CRAY_STACKSEG_END to be '_getb67'
  1775.   DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  1776. ! SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}_getb67\${SEDdD}
  1777. ! \${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}_getb67\${SEDuD}
  1778. ! \${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}_getb67\${SEDeD}
  1779.   "
  1780.   }
  1781.   
  1782.   else
  1783. !   echo checking for GETB67
  1784. ! cat > conftest.c <<EOF
  1785.   #include <ctype.h>
  1786. ! int main() { exit(0); }
  1787.   int t() { 
  1788.   /* The GNU C library defines this for functions which it implements
  1789.       to always fail with ENOSYS.  Some functions are actually named
  1790. --- 1085,1113 ----
  1791.   /* Override any gcc2 internal prototype to avoid an error.  */
  1792.   extern char _getb67(); _getb67();
  1793.   #endif
  1794. ! ; return 0; }
  1795.   EOF
  1796. ! if eval $ac_compile; then
  1797. !   rm -rf conftest*
  1798.     {
  1799.   test -n "$verbose" && \
  1800. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  1801. ! /bin/echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  1802.   DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  1803. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
  1804. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
  1805. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
  1806.   "
  1807.   }
  1808.   
  1809.   else
  1810. !   rm -rf conftest*
  1811. !   test -n "$silent" || /bin/echo "checking for GETB67"
  1812. ! cat > conftest.${ac_ext} <<EOF
  1813. ! #include "confdefs.h"
  1814.   #include <ctype.h>
  1815. ! int main() { return 0; }
  1816.   int t() { 
  1817.   /* The GNU C library defines this for functions which it implements
  1818.       to always fail with ENOSYS.  Some functions are actually named
  1819. ***************
  1820. *** 762,785 ****
  1821.   /* Override any gcc2 internal prototype to avoid an error.  */
  1822.   extern char GETB67(); GETB67();
  1823.   #endif
  1824. !  }
  1825.   EOF
  1826. ! if eval $compile; then
  1827.     {
  1828.   test -n "$verbose" && \
  1829. ! echo '    defining' CRAY_STACKSEG_END to be 'GETB67'
  1830.   DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  1831. ! SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}GETB67\${SEDdD}
  1832. ! \${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}GETB67\${SEDuD}
  1833. ! \${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}GETB67\${SEDeD}
  1834.   "
  1835.   }
  1836.   
  1837.   else
  1838. !   echo checking for getb67
  1839. ! cat > conftest.c <<EOF
  1840.   #include <ctype.h>
  1841. ! int main() { exit(0); }
  1842.   int t() { 
  1843.   /* The GNU C library defines this for functions which it implements
  1844.       to always fail with ENOSYS.  Some functions are actually named
  1845. --- 1118,1146 ----
  1846.   /* Override any gcc2 internal prototype to avoid an error.  */
  1847.   extern char GETB67(); GETB67();
  1848.   #endif
  1849. ! ; return 0; }
  1850.   EOF
  1851. ! if eval $ac_compile; then
  1852. !   rm -rf conftest*
  1853.     {
  1854.   test -n "$verbose" && \
  1855. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  1856. ! /bin/echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  1857.   DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  1858. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
  1859. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
  1860. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
  1861.   "
  1862.   }
  1863.   
  1864.   else
  1865. !   rm -rf conftest*
  1866. !   test -n "$silent" || /bin/echo "checking for getb67"
  1867. ! cat > conftest.${ac_ext} <<EOF
  1868. ! #include "confdefs.h"
  1869.   #include <ctype.h>
  1870. ! int main() { return 0; }
  1871.   int t() { 
  1872.   /* The GNU C library defines this for functions which it implements
  1873.       to always fail with ENOSYS.  Some functions are actually named
  1874. ***************
  1875. *** 790,808 ****
  1876.   /* Override any gcc2 internal prototype to avoid an error.  */
  1877.   extern char getb67(); getb67();
  1878.   #endif
  1879. !  }
  1880.   EOF
  1881. ! if eval $compile; then
  1882.     {
  1883.   test -n "$verbose" && \
  1884. ! echo '    defining' CRAY_STACKSEG_END to be 'getb67'
  1885.   DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  1886. ! SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}getb67\${SEDdD}
  1887. ! \${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}getb67\${SEDuD}
  1888. ! \${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}getb67\${SEDeD}
  1889.   "
  1890.   }
  1891.   
  1892.   fi
  1893.   rm -f conftest*
  1894.   
  1895. --- 1151,1172 ----
  1896.   /* Override any gcc2 internal prototype to avoid an error.  */
  1897.   extern char getb67(); getb67();
  1898.   #endif
  1899. ! ; return 0; }
  1900.   EOF
  1901. ! if eval $ac_compile; then
  1902. !   rm -rf conftest*
  1903.     {
  1904.   test -n "$verbose" && \
  1905. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "getb67"
  1906. ! /bin/echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  1907.   DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  1908. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
  1909. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
  1910. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
  1911.   "
  1912.   }
  1913.   
  1914.   fi
  1915.   rm -f conftest*
  1916.   
  1917. ***************
  1918. *** 812,817 ****
  1919. --- 1176,1182 ----
  1920.   fi
  1921.   rm -f conftest*
  1922.   
  1923.   fi
  1924.   rm -f conftest*
  1925.   
  1926. ***************
  1927. *** 819,859 ****
  1928.   fi
  1929.   rm -f conftest*
  1930.   
  1931. ! if test -n "$alloca_missing"; then
  1932.     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1933.     # that cause trouble.  Some versions do not even contain alloca or
  1934.     # contain a buggy version.  If you still want to use their alloca,
  1935.     # use ar to extract alloca.o from them instead of compiling alloca.c.
  1936.     ALLOCA=alloca.o
  1937.   
  1938. !   echo 'checking stack direction for C alloca'
  1939. !   echo checking whether cross-compiling
  1940.   # If we cannot run a trivial program, we must be cross compiling.
  1941. ! cat > conftest.c <<EOF
  1942.   main(){exit(0);}
  1943.   EOF
  1944. ! eval $compile
  1945.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1946.     :
  1947.   else
  1948.     cross_compiling=1
  1949.   fi
  1950. ! rm -f conftest*
  1951.   
  1952.   if test -n "$cross_compiling"
  1953.   then
  1954. !   {
  1955.   test -n "$verbose" && \
  1956. ! echo '    defining' STACK_DIRECTION to be '0'
  1957.   DEFS="$DEFS -DSTACK_DIRECTION=0"
  1958. ! SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}0\${SEDdD}
  1959. ! \${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}0\${SEDuD}
  1960. ! \${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}0\${SEDeD}
  1961.   "
  1962.   }
  1963.   
  1964.   else
  1965. ! cat > conftest.c <<EOF
  1966.   find_stack_direction ()
  1967.   {
  1968.     static char *addr = 0;
  1969. --- 1184,1240 ----
  1970.   fi
  1971.   rm -f conftest*
  1972.   
  1973. ! if test -n "$ac_alloca_missing"; then
  1974.     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1975.     # that cause trouble.  Some versions do not even contain alloca or
  1976.     # contain a buggy version.  If you still want to use their alloca,
  1977.     # use ar to extract alloca.o from them instead of compiling alloca.c.
  1978.     ALLOCA=alloca.o
  1979. +   
  1980. + {
  1981. + test -n "$verbose" && \
  1982. + /bin/echo "    defining C_ALLOCA"
  1983. + /bin/echo "#define" C_ALLOCA "1" >> confdefs.h
  1984. + DEFS="$DEFS -DC_ALLOCA=1"
  1985. + ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
  1986. + \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
  1987. + \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
  1988. + "
  1989. + }
  1990.   
  1991. !   test -n "$silent" || /bin/echo "checking stack direction for C alloca"
  1992. !   test -n "$silent" || /bin/echo "checking whether cross-compiling"
  1993.   # If we cannot run a trivial program, we must be cross compiling.
  1994. ! cat > conftest.${ac_ext} <<EOF
  1995. ! #include "confdefs.h"
  1996.   main(){exit(0);}
  1997.   EOF
  1998. ! eval $ac_compile
  1999.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2000.     :
  2001.   else
  2002.     cross_compiling=1
  2003.   fi
  2004. ! rm -fr conftest*
  2005.   
  2006.   if test -n "$cross_compiling"
  2007.   then
  2008. !   
  2009. ! {
  2010.   test -n "$verbose" && \
  2011. ! /bin/echo "    defining" STACK_DIRECTION to be "0"
  2012. ! /bin/echo "#define" STACK_DIRECTION "0" >> confdefs.h
  2013.   DEFS="$DEFS -DSTACK_DIRECTION=0"
  2014. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
  2015. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
  2016. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
  2017.   "
  2018.   }
  2019.   
  2020.   else
  2021. ! cat > conftest.${ac_ext} <<EOF
  2022. ! #include "confdefs.h"
  2023.   find_stack_direction ()
  2024.   {
  2025.     static char *addr = 0;
  2026. ***************
  2027. *** 871,940 ****
  2028.     exit (find_stack_direction() < 0);
  2029.   }
  2030.   EOF
  2031. ! eval $compile
  2032.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2033. !   {
  2034.   test -n "$verbose" && \
  2035. ! echo '    defining' STACK_DIRECTION to be '1'
  2036.   DEFS="$DEFS -DSTACK_DIRECTION=1"
  2037. ! SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}1\${SEDdD}
  2038. ! \${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}1\${SEDuD}
  2039. ! \${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}1\${SEDeD}
  2040.   "
  2041.   }
  2042.   
  2043.   else
  2044. !   {
  2045.   test -n "$verbose" && \
  2046. ! echo '    defining' STACK_DIRECTION to be '-1'
  2047.   DEFS="$DEFS -DSTACK_DIRECTION=-1"
  2048. ! SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}-1\${SEDdD}
  2049. ! \${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}-1\${SEDuD}
  2050. ! \${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}-1\${SEDeD}
  2051.   "
  2052.   }
  2053.   
  2054.   fi
  2055.   fi
  2056. ! rm -f conftest*
  2057.   fi
  2058.   
  2059. ! echo checking for long file names
  2060. ! lost=false
  2061.   # Test for long file names in all the places we know might matter:
  2062.   #      .        the current directory, where building will happen
  2063.   #      /tmp        where it might want to write temporary files
  2064.   #      /usr/tmp        likewise
  2065. ! #      $prefix        where we will be installing things
  2066. ! #      $exec_prefix    likewise
  2067. ! for dir in . /tmp /usr/tmp $prefix $exec_prefix ; do
  2068. !   (echo 1 > $dir/conftest9012345) 2>/dev/null
  2069. !   (echo 2 > $dir/conftest9012346) 2>/dev/null
  2070. !   val=`cat $dir/conftest9012345 2>/dev/null`
  2071. !   test -f $dir/conftest9012345 && test "$val" = 1 || lost=true
  2072. !   rm -f $dir/conftest9012345 $dir/conftest9012346
  2073.   done
  2074. ! $lost || {
  2075.   test -n "$verbose" && \
  2076. ! echo '    defining' HAVE_LONG_FILE_NAMES
  2077.   DEFS="$DEFS -DHAVE_LONG_FILE_NAMES=1"
  2078. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LONG_FILE_NAMES\${SEDdB}HAVE_LONG_FILE_NAMES\${SEDdC}1\${SEDdD}
  2079. ! \${SEDuA}HAVE_LONG_FILE_NAMES\${SEDuB}HAVE_LONG_FILE_NAMES\${SEDuC}1\${SEDuD}
  2080. ! \${SEDeA}HAVE_LONG_FILE_NAMES\${SEDeB}HAVE_LONG_FILE_NAMES\${SEDeC}1\${SEDeD}
  2081.   "
  2082.   }
  2083.   
  2084.   
  2085. ! echo checking for Xenix
  2086. ! cat > conftest.c <<EOF
  2087.   #if defined(M_XENIX) && !defined(M_UNIX)
  2088.     yes
  2089.   #endif
  2090.   
  2091.   EOF
  2092. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  2093.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  2094.     XENIX=1
  2095.   fi
  2096.   rm -f conftest*
  2097.   
  2098. --- 1252,1335 ----
  2099.     exit (find_stack_direction() < 0);
  2100.   }
  2101.   EOF
  2102. ! eval $ac_compile
  2103.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2104. !   
  2105. ! {
  2106.   test -n "$verbose" && \
  2107. ! /bin/echo "    defining" STACK_DIRECTION to be "1"
  2108. ! /bin/echo "#define" STACK_DIRECTION "1" >> confdefs.h
  2109.   DEFS="$DEFS -DSTACK_DIRECTION=1"
  2110. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
  2111. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
  2112. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
  2113.   "
  2114.   }
  2115.   
  2116.   else
  2117. !   
  2118. ! {
  2119.   test -n "$verbose" && \
  2120. ! /bin/echo "    defining" STACK_DIRECTION to be "-1"
  2121. ! /bin/echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  2122.   DEFS="$DEFS -DSTACK_DIRECTION=-1"
  2123. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
  2124. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
  2125. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
  2126.   "
  2127.   }
  2128.   
  2129.   fi
  2130.   fi
  2131. ! rm -fr conftest*
  2132.   fi
  2133.   
  2134. ! test -n "$silent" || /bin/echo "checking for long file names"
  2135. ! ac_some_dir_failed=false
  2136.   # Test for long file names in all the places we know might matter:
  2137.   #      .        the current directory, where building will happen
  2138.   #      /tmp        where it might want to write temporary files
  2139. + #      /var/tmp        likewise
  2140.   #      /usr/tmp        likewise
  2141. ! #      $prefix/lib    where we will be installing things
  2142. ! #      $exec_prefix/lib    likewise
  2143. ! # eval it to expand exec_prefix.
  2144. ! for ac_dir in `eval /bin/echo . /tmp $prefix/lib $exec_prefix/lib` ; do
  2145. !   test -d $ac_dir || continue
  2146. !   test -w $ac_dir || continue # It's less confusing to not echo anything here.
  2147. !   (/bin/echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  2148. !   (/bin/echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  2149. !   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  2150. !   test -f $ac_dir/conftest9012345 && test "$val" = 1 || ac_some_dir_failed=true
  2151. !   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2> /dev/null
  2152.   done
  2153. ! $ac_some_dir_failed || 
  2154. ! {
  2155.   test -n "$verbose" && \
  2156. ! /bin/echo "    defining HAVE_LONG_FILE_NAMES"
  2157. ! /bin/echo "#define" HAVE_LONG_FILE_NAMES "1" >> confdefs.h
  2158.   DEFS="$DEFS -DHAVE_LONG_FILE_NAMES=1"
  2159. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_FILE_NAMES\${ac_dB}HAVE_LONG_FILE_NAMES\${ac_dC}1\${ac_dD}
  2160. ! \${ac_uA}HAVE_LONG_FILE_NAMES\${ac_uB}HAVE_LONG_FILE_NAMES\${ac_uC}1\${ac_uD}
  2161. ! \${ac_eA}HAVE_LONG_FILE_NAMES\${ac_eB}HAVE_LONG_FILE_NAMES\${ac_eC}1\${ac_eD}
  2162.   "
  2163.   }
  2164.   
  2165.   
  2166. ! test -n "$silent" || /bin/echo "checking for Xenix"
  2167. ! cat > conftest.${ac_ext} <<EOF
  2168. ! #include "confdefs.h"
  2169.   #if defined(M_XENIX) && !defined(M_UNIX)
  2170.     yes
  2171.   #endif
  2172.   
  2173.   EOF
  2174. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2175.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  2176. +   rm -rf conftest*
  2177.     XENIX=1
  2178.   fi
  2179.   rm -f conftest*
  2180.   
  2181. ***************
  2182. *** 946,968 ****
  2183.     esac
  2184.   fi
  2185.   
  2186.   if test -n "$prefix"; then
  2187. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  2188. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2189.   fi
  2190.   if test -n "$exec_prefix"; then
  2191. !   prsub="$prsub
  2192.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2193.   fi
  2194.   cat >conftest.def <<EOF
  2195.   $DEFS
  2196.   EOF
  2197. ! escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2198. ! DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  2199.   rm -f conftest.def
  2200.   
  2201. ! trap 'rm -f config.status; exit 1' 1 3 15
  2202. ! echo creating config.status
  2203.   rm -f config.status
  2204.   cat > config.status <<EOF
  2205.   #!/bin/sh
  2206. --- 1341,1373 ----
  2207.     esac
  2208.   fi
  2209.   
  2210. + # Set default prefixes.
  2211.   if test -n "$prefix"; then
  2212. !   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  2213. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2214.   fi
  2215.   if test -n "$exec_prefix"; then
  2216. !   ac_prsub="$ac_prsub
  2217.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2218.   fi
  2219. + # Any assignment to VPATH causes Sun make to only execute
  2220. + # the first set of double-colon rules, so remove it if not needed.
  2221. + # If there is a colon in the path, we need to keep it.
  2222. + if test "x$srcdir" = x.; then
  2223. +   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2224. + fi
  2225. + # Quote sed substitution magic chars in DEFS.
  2226.   cat >conftest.def <<EOF
  2227.   $DEFS
  2228.   EOF
  2229. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2230. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  2231.   rm -f conftest.def
  2232. + # Substitute for predefined variables.
  2233.   
  2234. ! trap 'rm -f config.status; exit 1' 1 2 15
  2235. ! /bin/echo creating config.status
  2236.   rm -f config.status
  2237.   cat > config.status <<EOF
  2238.   #!/bin/sh
  2239. ***************
  2240. *** 973,988 ****
  2241.   #
  2242.   # $0 $configure_args
  2243.   
  2244. ! for arg
  2245.   do
  2246. !   case "\$arg" in
  2247. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2248. !     exec /bin/sh $0 $configure_args ;;
  2249. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  2250.     esac
  2251.   done
  2252.   
  2253. ! trap 'rm -f Makefile config.h conftest*; exit 1' 1 3 15
  2254.   CC='$CC'
  2255.   CPP='$CPP'
  2256.   INSTALL='$INSTALL'
  2257. --- 1378,1400 ----
  2258.   #
  2259.   # $0 $configure_args
  2260.   
  2261. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  2262. ! for ac_option
  2263.   do
  2264. !   case "\$ac_option" in
  2265. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2266. !     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  2267. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  2268. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2269. !     /bin/echo "config.status generated by autoconf version 1.9"
  2270. !     exit 0 ;;
  2271. !   -help | --help | --hel | --he | --h)
  2272. !     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  2273. !   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  2274.     esac
  2275.   done
  2276.   
  2277. ! trap 'rm -fr Makefile config.h conftest*; exit 1' 1 2 15
  2278.   CC='$CC'
  2279.   CPP='$CPP'
  2280.   INSTALL='$INSTALL'
  2281. ***************
  2282. *** 992,1021 ****
  2283.   ALLOCA='$ALLOCA'
  2284.   LIBS='$LIBS'
  2285.   srcdir='$srcdir'
  2286.   prefix='$prefix'
  2287.   exec_prefix='$exec_prefix'
  2288. ! prsub='$prsub'
  2289.   EOF
  2290.   cat >> config.status <<\EOF
  2291.   
  2292. ! top_srcdir=$srcdir
  2293. ! # Allow make-time overrides of the generated file list.
  2294. ! test -n "$gen_files" || gen_files="Makefile"
  2295.   
  2296. ! for file in .. $gen_files; do if [ "x$file" != "x.." ]; then
  2297. !   srcdir=$top_srcdir
  2298.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2299. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  2300. !   if test "$dir" != "$file"; then
  2301. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  2302. !     test ! -d $dir && mkdir $dir
  2303.     fi
  2304. !   echo creating $file
  2305. !   rm -f $file
  2306. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  2307.     sed -e "
  2308. ! $prsub
  2309.   s%@CC@%$CC%g
  2310.   s%@CPP@%$CPP%g
  2311.   s%@INSTALL@%$INSTALL%g
  2312. --- 1404,1453 ----
  2313.   ALLOCA='$ALLOCA'
  2314.   LIBS='$LIBS'
  2315.   srcdir='$srcdir'
  2316. + top_srcdir='$top_srcdir'
  2317.   prefix='$prefix'
  2318.   exec_prefix='$exec_prefix'
  2319. ! ac_prsub='$ac_prsub'
  2320. ! ac_vpsub='$ac_vpsub'
  2321. ! extrasub='$extrasub'
  2322.   EOF
  2323.   cat >> config.status <<\EOF
  2324.   
  2325. ! ac_given_srcdir=$srcdir
  2326.   
  2327. ! CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  2328. ! for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  2329.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2330. !   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2331. !   if test "$ac_dir" != "$ac_file"; then
  2332. !     # The file is in a subdirectory.
  2333. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2334. !     ac_dir_suffix="/$ac_dir"
  2335. !   else
  2336. !     ac_dir_suffix=
  2337.     fi
  2338. !   # A "../" for each directory in $ac_dir_suffix.
  2339. !   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2340. !   case "$ac_given_srcdir" in
  2341. !   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  2342. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2343. !   *) # Relative path.
  2344. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2345. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2346. !   esac
  2347. !   /bin/echo creating "$ac_file"
  2348. !   rm -f "$ac_file"
  2349. !   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  2350. !   case "$ac_file" in
  2351. !     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  2352. !     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  2353. !   esac
  2354.     sed -e "
  2355. ! $ac_prsub
  2356. ! $ac_vpsub
  2357. ! $extrasub
  2358.   s%@CC@%$CC%g
  2359.   s%@CPP@%$CPP%g
  2360.   s%@INSTALL@%$INSTALL%g
  2361. ***************
  2362. *** 1025,1080 ****
  2363.   s%@ALLOCA@%$ALLOCA%g
  2364.   s%@LIBS@%$LIBS%g
  2365.   s%@srcdir@%$srcdir%g
  2366. ! s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  2367.   fi; done
  2368. ! test -n "$gen_config" || gen_config=config.h
  2369. ! echo creating $gen_config
  2370. ! # These sed commands are put into SEDDEFS when defining a macro.
  2371.   # They are broken into pieces to make the sed script easier to manage.
  2372.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  2373.   # is the cpp macro being defined and VALUE is the value it is being given.
  2374.   # Each defining turns into a single global substitution command.
  2375.   #
  2376. ! # SEDd sets the value in "#define NAME VALUE" lines.
  2377. ! SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2378. ! SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  2379. ! SEDdC='\3'
  2380. ! SEDdD='@g'
  2381. ! # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2382. ! SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2383. ! SEDuB='\([     ]\)@\1#\2define\3'
  2384. ! SEDuC=' '
  2385. ! SEDuD='\4@g'
  2386. ! # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2387. ! SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2388. ! SEDeB='$@\1#\2define\3'
  2389. ! SEDeC=' '
  2390. ! SEDeD='@g'
  2391.   rm -f conftest.sed
  2392.   EOF
  2393.   # Turn off quoting long enough to insert the sed commands.
  2394.   rm -f conftest.sh
  2395.   cat > conftest.sh <<EOF
  2396. ! $SEDDEFS
  2397.   EOF
  2398.   
  2399. ! # Maximum number of lines to put in a single here document.
  2400. ! maxshlines=9
  2401. ! # Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
  2402.   # on the size of here documents.
  2403.   
  2404.   while :
  2405.   do
  2406. !   lines=`grep -c . conftest.sh`
  2407. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  2408.     rm -f conftest.s1 conftest.s2
  2409. !   sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  2410. !   sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  2411.     # Write a limited-size here document to append to conftest.sed.
  2412. !   echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  2413.     cat conftest.s1 >> config.status
  2414. !   echo 'CONFEOF' >> config.status
  2415.     rm -f conftest.s1 conftest.sh
  2416.     mv conftest.s2 conftest.sh
  2417.   done
  2418. --- 1457,1517 ----
  2419.   s%@ALLOCA@%$ALLOCA%g
  2420.   s%@LIBS@%$LIBS%g
  2421.   s%@srcdir@%$srcdir%g
  2422. ! s%@top_srcdir@%$top_srcdir%g
  2423. ! s%@prefix@%$prefix%g
  2424. ! s%@exec_prefix@%$exec_prefix%g
  2425. ! s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  2426.   fi; done
  2427. ! # These sed commands are put into ac_sed_defs when defining a macro.
  2428.   # They are broken into pieces to make the sed script easier to manage.
  2429.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  2430.   # is the cpp macro being defined and VALUE is the value it is being given.
  2431.   # Each defining turns into a single global substitution command.
  2432. + # Hopefully no one uses "!" as a variable value.
  2433. + # Other candidates for the sed separators, like , and @, do get used.
  2434.   #
  2435. ! # ac_d sets the value in "#define NAME VALUE" lines.
  2436. ! ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2437. ! ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  2438. ! ac_dC='\3'
  2439. ! ac_dD='!g'
  2440. ! # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2441. ! ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2442. ! ac_uB='\([     ]\)!\1#\2define\3'
  2443. ! ac_uC=' '
  2444. ! ac_uD='\4!g'
  2445. ! # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2446. ! ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2447. ! ac_eB='$!\1#\2define\3'
  2448. ! ac_eC=' '
  2449. ! ac_eD='!g'
  2450.   rm -f conftest.sed
  2451.   EOF
  2452.   # Turn off quoting long enough to insert the sed commands.
  2453.   rm -f conftest.sh
  2454.   cat > conftest.sh <<EOF
  2455. ! $ac_sed_defs
  2456.   EOF
  2457.   
  2458. ! # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  2459.   # on the size of here documents.
  2460.   
  2461. + # Maximum number of lines to put in a single here document.
  2462. + ac_max_sh_lines=9
  2463.   while :
  2464.   do
  2465. !   # wc gives bogus results for an empty file on some AIX systems.
  2466. !   ac_lines=`grep -c . conftest.sh`
  2467. !   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2468.     rm -f conftest.s1 conftest.s2
  2469. !   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -20.
  2470. !   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +21.
  2471.     # Write a limited-size here document to append to conftest.sed.
  2472. !   /bin/echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  2473.     cat conftest.s1 >> config.status
  2474. !   /bin/echo 'CONFEOF' >> config.status
  2475.     rm -f conftest.s1 conftest.sh
  2476.     mv conftest.s2 conftest.sh
  2477.   done
  2478. ***************
  2479. *** 1091,1125 ****
  2480.   CONFEOF
  2481.   rm -f conftest.h
  2482.   # Break up the sed commands because old seds have small limits.
  2483. ! maxsedlines=20
  2484. ! cp $top_srcdir/$gen_config.in conftest.h1
  2485. ! while :
  2486. ! do
  2487. !   lines=`grep -c . conftest.sed`
  2488. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  2489. !   rm -f conftest.s1 conftest.s2 conftest.h2
  2490. !   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  2491. !   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  2492. !   sed -f conftest.s1 < conftest.h1 > conftest.h2
  2493. !   rm -f conftest.s1 conftest.h1 conftest.sed
  2494. !   mv conftest.h2 conftest.h1
  2495. !   mv conftest.s2 conftest.sed
  2496. ! done
  2497. ! rm -f conftest.sed conftest.h
  2498. ! echo "/* $gen_config.  Generated automatically by configure.  */" > conftest.h
  2499. ! cat conftest.h1 >> conftest.h
  2500. ! rm -f conftest.h1
  2501. ! if cmp -s $gen_config conftest.h 2>/dev/null; then
  2502. !   # The file exists and we would not be changing it.
  2503. !   rm -f conftest.h
  2504. ! else
  2505. !   rm -f $gen_config
  2506. !   mv conftest.h $gen_config
  2507. ! fi
  2508.   
  2509.   
  2510.   exit 0
  2511.   EOF
  2512.   chmod +x config.status
  2513. ! test -n "$no_create" || ./config.status
  2514.   
  2515. --- 1528,1570 ----
  2516.   CONFEOF
  2517.   rm -f conftest.h
  2518.   # Break up the sed commands because old seds have small limits.
  2519. ! ac_max_sed_lines=20
  2520. ! CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2521. ! for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  2522. !   /bin/echo creating $ac_file
  2523. !   cp $ac_given_srcdir/$ac_file.in conftest.h1
  2524. !   while :
  2525. !   do
  2526. !     ac_lines=`grep -c . conftest.sed`
  2527. !     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2528. !     rm -f conftest.s1 conftest.s2 conftest.h2
  2529. !     sed ${ac_max_sed_lines}q conftest.sed > conftest.s1 # Like head -20.
  2530. !     sed 1,${ac_max_sed_lines}d conftest.sed > conftest.s2 # Like tail +21.
  2531. !     sed -f conftest.s1 < conftest.h1 > conftest.h2
  2532. !     rm -f conftest.s1 conftest.h1 conftest.sed
  2533. !     mv conftest.h2 conftest.h1
  2534. !     mv conftest.s2 conftest.sed
  2535. !   done
  2536. !   rm -f conftest.sed conftest.h
  2537. !   /bin/echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2538. !   cat conftest.h1 >> conftest.h
  2539. !   rm -f conftest.h1
  2540. !   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2541. !     # The file exists and we would not be changing it.
  2542. !     /bin/echo "$ac_file is unchanged"
  2543. !     rm -f conftest.h
  2544. !   else
  2545. !     rm -f $ac_file
  2546. !     mv conftest.h $ac_file
  2547. !   fi
  2548. ! fi; done
  2549.   
  2550.   
  2551.   exit 0
  2552.   EOF
  2553.   chmod +x config.status
  2554. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  2555.   
  2556. diff -rc --new-file patch-2.1-base/configure.in patch-2.1/configure.in
  2557. *** patch-2.1-base/configure.in    Mon May 31 19:39:03 1993
  2558. --- patch-2.1/configure.in    Tue Apr 26 02:07:32 1994
  2559. ***************
  2560. *** 9,20 ****
  2561.   AC_CONST
  2562.   AC_PROG_INSTALL
  2563.   AC_DIR_HEADER
  2564. - if test -z "$dirheader"; then
  2565. -   AC_DEFINE(NODIR)
  2566. - fi
  2567.   AC_RETSIGTYPE
  2568.   AC_STDC_HEADERS
  2569. ! AC_UNISTD_H
  2570.   AC_HAVE_HEADERS(string.h fcntl.h)
  2571.   AC_REPLACE_FUNCS(rename)
  2572.   AC_HAVE_FUNCS(pathconf strerror)
  2573. --- 9,17 ----
  2574.   AC_CONST
  2575.   AC_PROG_INSTALL
  2576.   AC_DIR_HEADER
  2577.   AC_RETSIGTYPE
  2578.   AC_STDC_HEADERS
  2579. ! AC_HAVE_HEADERS(unistd.h)
  2580.   AC_HAVE_HEADERS(string.h fcntl.h)
  2581.   AC_REPLACE_FUNCS(rename)
  2582.   AC_HAVE_FUNCS(pathconf strerror)
  2583.