home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / grep-2.0-diffs.gz / grep-2.0-diffs
Text File  |  1996-10-13  |  75KB  |  2,452 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/fsf/grep/INSTALL amiga/fsf/grep/INSTALL
  12. --- baseline/fsf/grep/INSTALL    Sun Sep 27 19:56:25 1992
  13. +++ amiga/fsf/grep/INSTALL    Sat Sep 28 00:00:00 1996
  14. @@ -32,8 +32,8 @@ in which you are compiling; `configure' 
  15.  source code in `..' if it does not find it in the current directory.
  16.  
  17.  By default, `make install' will install the package's files in
  18. -/usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify
  19. -an installation prefix other than /usr/local by giving `configure' the
  20. +/gnu/bin, /gnu/lib, /gnu/man, etc.  You can specify
  21. +an installation prefix other than /gnu by giving `configure' the
  22.  option `--prefix=PATH'.  Alternately, you can do so by changing the
  23.  `prefix' variable in the Makefile that `configure' creates (the
  24.  Makefile in the top-level directory, if the package contains
  25. diff -rup --new-file baseline/fsf/grep/Makefile.in amiga/fsf/grep/Makefile.in
  26. --- baseline/fsf/grep/Makefile.in    Sun May  2 13:54:24 1993
  27. +++ amiga/fsf/grep/Makefile.in    Sat Sep 28 00:00:00 1996
  28. @@ -43,10 +43,10 @@ DEFS=-DGREP @DEFS@
  29.  LIBS=@LIBS@
  30.  ALLOCA=@ALLOCA@
  31.  
  32. -CFLAGS=-O
  33. -LDFLAGS=$(CFLAGS)
  34. +CFLAGS=-O2
  35. +LDFLAGS=
  36.  
  37. -prefix=/usr/local
  38. +prefix=/ade
  39.  exec_prefix=$(prefix)
  40.  
  41.  # Prefix for installed program, normally empty or `g'.
  42. diff -rup --new-file baseline/fsf/grep/Product-Info amiga/fsf/grep/Product-Info
  43. --- baseline/fsf/grep/Product-Info    Wed Dec 31 17:00:00 1969
  44. +++ amiga/fsf/grep/Product-Info    Sat Sep 28 00:00:00 1996
  45. @@ -0,0 +1,37 @@
  46. +# This file contains product information that can be used by
  47. +# KingFisher 2.0 and other similar tools.
  48. +
  49. +.name
  50. +grep
  51. +.fullname
  52. +GNU grep package
  53. +.type
  54. +Programmer Tool
  55. +.short
  56. +GNU grep package
  57. +.description
  58. +GNU grep is based on a fast lazy-state deterministic matcher (about
  59. +twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-
  60. +Gosper search for a fixed string that eliminates impossible text from
  61. +being considered by the full regexp matcher without necessarily having
  62. +to look at every character.  The result is typically many times faster
  63. +than Unix grep or egrep.  (Regular expressions containing
  64. +backreferencing will run more slowly, however.)
  65. +.version
  66. +2.0
  67. +.author
  68. +Mike Haertel
  69. +Arthur David Olson
  70. +Richard Stallman
  71. +Karl Berry
  72. +Henry Spencer
  73. +Scott Anderson
  74. +David MacKenzie
  75. +James Woods
  76. +Andrew Hume
  77. +.requirements
  78. +Amiga binaries require ixemul.library.
  79. +.distribution
  80. +GNU Public License
  81. +.described-by
  82. +Fred Fish (fnf@amigalib.com)
  83. diff -rup --new-file baseline/fsf/grep/configure amiga/fsf/grep/configure
  84. --- baseline/fsf/grep/configure    Fri May 21 21:20:23 1993
  85. +++ amiga/fsf/grep/configure    Mon Sep 30 22:45:12 1996
  86. @@ -1,533 +1,1295 @@
  87. -#!/bin/sh
  88. -# Guess values for system-dependent variables and create Makefiles.
  89. -# Generated automatically using autoconf.
  90. -# Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  91. +#! /bin/sh
  92.  
  93. -# This program is free software; you can redistribute it and/or modify
  94. -# it under the terms of the GNU General Public License as published by
  95. -# the Free Software Foundation; either version 2, or (at your option)
  96. -# any later version.
  97. -
  98. -# This program is distributed in the hope that it will be useful,
  99. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  100. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  101. -# GNU General Public License for more details.
  102. -
  103. -# You should have received a copy of the GNU General Public License
  104. -# along with this program; if not, write to the Free Software
  105. -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  106. -
  107. -# Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  108. -#        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  109. -# Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  110. -# --with-PACKAGE unless this script has special code to handle it.
  111. +# Guess values for system-dependent variables and create Makefiles.
  112. +# Generated automatically using autoconf version 2.10 
  113. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  114. +#
  115. +# This configure script is free software; the Free Software Foundation
  116. +# gives unlimited permission to copy, distribute and modify it.
  117.  
  118. +# Defaults:
  119. +ac_help=
  120. +ac_default_prefix=/usr/local
  121. +# Any additions from configure.in:
  122. +
  123. +# Initialize some variables set by options.
  124. +# The variables have the same names as the options, with
  125. +# dashes changed to underlines.
  126. +build=NONE
  127. +cache_file=./config.cache
  128. +exec_prefix=NONE
  129. +host=NONE
  130. +no_create=
  131. +nonopt=NONE
  132. +no_recursion=
  133. +prefix=NONE
  134. +program_prefix=NONE
  135. +program_suffix=NONE
  136. +program_transform_name=s,x,x,
  137. +silent=
  138. +site=
  139. +srcdir=
  140. +target=NONE
  141. +verbose=
  142. +x_includes=NONE
  143. +x_libraries=NONE
  144. +bindir='${exec_prefix}/bin'
  145. +sbindir='${exec_prefix}/sbin'
  146. +libexecdir='${exec_prefix}/libexec'
  147. +datadir='${prefix}/share'
  148. +sysconfdir='${prefix}/etc'
  149. +sharedstatedir='${prefix}/com'
  150. +localstatedir='${prefix}/var'
  151. +libdir='${exec_prefix}/lib'
  152. +includedir='${prefix}/include'
  153. +oldincludedir='/usr/include'
  154. +infodir='${prefix}/info'
  155. +guidedir='${prefix}/guide'
  156. +psdir='${prefix}/ps'
  157. +dvidir='${prefix}/dvi'
  158. +mandir='${prefix}/man'
  159. +
  160. +# Initialize some other variables.
  161. +subdirs=
  162. +MFLAGS= MAKEFLAGS=
  163.  
  164. -for arg
  165. +ac_prev=
  166. +for ac_option
  167.  do
  168. -  # Handle --exec-prefix with a space before the argument.
  169. -  if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  170. -  # Handle --host with a space before the argument.
  171. -  elif test x$next_host = xyes; then next_host=
  172. -  # Handle --prefix with a space before the argument.
  173. -  elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  174. -  # Handle --srcdir with a space before the argument.
  175. -  elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  176. -  else
  177. -    case $arg in
  178. -     # For backward compatibility, also recognize exact --exec_prefix.
  179. -     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  180. -    exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  181. -     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  182. -    next_exec_prefix=yes ;;
  183. -
  184. -     -gas | --gas | --ga | --g) ;;
  185. -
  186. -     -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  187. -     -host | --host | --hos | --ho | --h)
  188. -    next_host=yes ;;
  189. -
  190. -     -nfp | --nfp | --nf) ;;
  191. -
  192. -     -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  193. -        no_create=1 ;;
  194. -
  195. -     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  196. -    prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  197. -     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  198. -    next_prefix=yes ;;
  199. -
  200. -     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  201. -    srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  202. -     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  203. -    next_srcdir=yes ;;
  204. -
  205. -     -with-* | --with-*)
  206. -       package=`echo $arg|sed 's/-*with-//'`
  207. -       # Delete all the valid chars; see if any are left.
  208. -       if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  209. -         echo "configure: $package: invalid package name" >&2; exit 1
  210. -       fi
  211. -       eval "with_`echo $package|sed s/-/_/g`=1" ;;
  212.  
  213. -     -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  214. -       verbose=yes ;;
  215. +  # If the previous option needs an argument, assign it.
  216. +  if test -n "$ac_prev"; then
  217. +    eval "$ac_prev=\$ac_option"
  218. +    ac_prev=
  219. +    continue
  220. +  fi
  221. +
  222. +  case "$ac_option" in
  223. +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  224. +  *) ac_optarg= ;;
  225. +  esac
  226.  
  227. -     *) ;;
  228. +  # Accept the important Cygnus configure options, so we can diagnose typos.
  229. +
  230. +  case "$ac_option" in
  231. +
  232. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  233. +    ac_prev=bindir ;;
  234. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  235. +    bindir="$ac_optarg" ;;
  236. +
  237. +  -build | --build | --buil | --bui | --bu)
  238. +    ac_prev=build ;;
  239. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  240. +    build="$ac_optarg" ;;
  241. +
  242. +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  243. +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  244. +    ac_prev=cache_file ;;
  245. +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  246. +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  247. +    cache_file="$ac_optarg" ;;
  248. +
  249. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  250. +    ac_prev=datadir ;;
  251. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  252. +  | --da=*)
  253. +    datadir="$ac_optarg" ;;
  254. +
  255. +  -disable-* | --disable-*)
  256. +    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  257. +    # Reject names that are not valid shell variable names.
  258. +    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  259. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  260. +    fi
  261. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  262. +    eval "enable_${ac_feature}=no" ;;
  263. +
  264. +  -enable-* | --enable-*)
  265. +    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  266. +    # Reject names that are not valid shell variable names.
  267. +    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  268. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  269. +    fi
  270. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  271. +    case "$ac_option" in
  272. +      *=*) ;;
  273. +      *) ac_optarg=yes ;;
  274.      esac
  275. -  fi
  276. +    eval "enable_${ac_feature}='$ac_optarg'" ;;
  277. +
  278. +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  279. +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  280. +  | --exec | --exe | --ex)
  281. +    ac_prev=exec_prefix ;;
  282. +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  283. +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  284. +  | --exec=* | --exe=* | --ex=*)
  285. +    exec_prefix="$ac_optarg" ;;
  286. +
  287. +  -gas | --gas | --ga | --g)
  288. +    # Obsolete; use --with-gas.
  289. +    with_gas=yes ;;
  290. +
  291. +  -help | --help | --hel | --he)
  292. +    # Omit some internal or obsolete options to make the list less imposing.
  293. +    # This message is too long to be a string in the A/UX 3.1 sh.
  294. +    cat << EOF
  295. +Usage: configure [options] [host]
  296. +Options: [defaults in brackets after descriptions]
  297. +Configuration:
  298. +  --cache-file=FILE       cache test results in FILE
  299. +  --help                  print this message
  300. +  --no-create             do not create output files
  301. +  --quiet, --silent       do not print \`checking...' messages
  302. +  --version               print the version of autoconf that created configure
  303. +Directory and file names:
  304. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  305. +                          [$ac_default_prefix]
  306. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  307. +                          [same as prefix]
  308. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  309. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  310. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  311. +  --datadir=DIR           read-only architecture-independent data in DIR
  312. +                          [PREFIX/share]
  313. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  314. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  315. +                          [PREFIX/com]
  316. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  317. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  318. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  319. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  320. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  321. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  322. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  323. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  324. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  325. +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  326. +  --program-prefix=PREFIX prepend PREFIX to installed program names
  327. +  --program-suffix=SUFFIX append SUFFIX to installed program names
  328. +  --program-transform-name=PROGRAM
  329. +                          run sed PROGRAM on installed program names
  330. +EOF
  331. +    cat << EOF
  332. +Host type:
  333. +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  334. +  --host=HOST             configure for HOST [guessed]
  335. +  --target=TARGET         configure for TARGET [TARGET=HOST]
  336. +Features and packages:
  337. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  338. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  339. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  340. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  341. +  --x-includes=DIR        X include files are in DIR
  342. +  --x-libraries=DIR       X library files are in DIR
  343. +EOF
  344. +    if test -n "$ac_help"; then
  345. +      echo "--enable and --with options recognized:$ac_help"
  346. +    fi
  347. +    exit 0 ;;
  348. +
  349. +  -host | --host | --hos | --ho)
  350. +    ac_prev=host ;;
  351. +  -host=* | --host=* | --hos=* | --ho=*)
  352. +    host="$ac_optarg" ;;
  353. +
  354. +  -includedir | --includedir | --includedi | --included | --include \
  355. +  | --includ | --inclu | --incl | --inc)
  356. +    ac_prev=includedir ;;
  357. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  358. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  359. +    includedir="$ac_optarg" ;;
  360. +
  361. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  362. +    ac_prev=infodir ;;
  363. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  364. +    infodir="$ac_optarg" ;;
  365. +
  366. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  367. +   ac_prev=guidedir ;;
  368. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  369. +
  370. + -psdir | --psdir | --psdi | --psd | --ps)
  371. +   ac_prev=psdir ;;
  372. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  373. +
  374. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  375. +   ac_prev=dvidir ;;
  376. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  377. +
  378. +  -libdir | --libdir | --libdi | --libd)
  379. +    ac_prev=libdir ;;
  380. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  381. +    libdir="$ac_optarg" ;;
  382. +
  383. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  384. +  | --libexe | --libex | --libe)
  385. +    ac_prev=libexecdir ;;
  386. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  387. +  | --libexe=* | --libex=* | --libe=*)
  388. +    libexecdir="$ac_optarg" ;;
  389. +
  390. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  391. +  | --localstate | --localstat | --localsta | --localst \
  392. +  | --locals | --local | --loca | --loc | --lo)
  393. +    ac_prev=localstatedir ;;
  394. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  395. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  396. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  397. +    localstatedir="$ac_optarg" ;;
  398. +
  399. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  400. +    ac_prev=mandir ;;
  401. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  402. +    mandir="$ac_optarg" ;;
  403. +
  404. +  -nfp | --nfp | --nf)
  405. +    # Obsolete; use --without-fp.
  406. +    with_fp=no ;;
  407. +
  408. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  409. +  | --no-cr | --no-c)
  410. +    no_create=yes ;;
  411. +
  412. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  413. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  414. +    no_recursion=yes ;;
  415. +
  416. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  417. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  418. +  | --oldin | --oldi | --old | --ol | --o)
  419. +    ac_prev=oldincludedir ;;
  420. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  421. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  422. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  423. +    oldincludedir="$ac_optarg" ;;
  424. +
  425. +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  426. +    ac_prev=prefix ;;
  427. +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  428. +    prefix="$ac_optarg" ;;
  429. +
  430. +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  431. +  | --program-pre | --program-pr | --program-p)
  432. +    ac_prev=program_prefix ;;
  433. +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  434. +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  435. +    program_prefix="$ac_optarg" ;;
  436. +
  437. +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  438. +  | --program-suf | --program-su | --program-s)
  439. +    ac_prev=program_suffix ;;
  440. +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  441. +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  442. +    program_suffix="$ac_optarg" ;;
  443. +
  444. +  -program-transform-name | --program-transform-name \
  445. +  | --program-transform-nam | --program-transform-na \
  446. +  | --program-transform-n | --program-transform- \
  447. +  | --program-transform | --program-transfor \
  448. +  | --program-transfo | --program-transf \
  449. +  | --program-trans | --program-tran \
  450. +  | --progr-tra | --program-tr | --program-t)
  451. +    ac_prev=program_transform_name ;;
  452. +  -program-transform-name=* | --program-transform-name=* \
  453. +  | --program-transform-nam=* | --program-transform-na=* \
  454. +  | --program-transform-n=* | --program-transform-=* \
  455. +  | --program-transform=* | --program-transfor=* \
  456. +  | --program-transfo=* | --program-transf=* \
  457. +  | --program-trans=* | --program-tran=* \
  458. +  | --progr-tra=* | --program-tr=* | --program-t=*)
  459. +    program_transform_name="$ac_optarg" ;;
  460. +
  461. +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  462. +  | -silent | --silent | --silen | --sile | --sil)
  463. +    silent=yes ;;
  464. +
  465. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  466. +    ac_prev=sbindir ;;
  467. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  468. +  | --sbi=* | --sb=*)
  469. +    sbindir="$ac_optarg" ;;
  470. +
  471. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  472. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  473. +  | --sharedst | --shareds | --shared | --share | --shar \
  474. +  | --sha | --sh)
  475. +    ac_prev=sharedstatedir ;;
  476. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  477. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  478. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  479. +  | --sha=* | --sh=*)
  480. +    sharedstatedir="$ac_optarg" ;;
  481. +
  482. +  -site | --site | --sit)
  483. +    ac_prev=site ;;
  484. +  -site=* | --site=* | --sit=*)
  485. +    site="$ac_optarg" ;;
  486. +
  487. +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  488. +    ac_prev=srcdir ;;
  489. +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  490. +    srcdir="$ac_optarg" ;;
  491. +
  492. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  493. +  | --syscon | --sysco | --sysc | --sys | --sy)
  494. +    ac_prev=sysconfdir ;;
  495. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  496. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  497. +    sysconfdir="$ac_optarg" ;;
  498. +
  499. +  -target | --target | --targe | --targ | --tar | --ta | --t)
  500. +    ac_prev=target ;;
  501. +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  502. +    target="$ac_optarg" ;;
  503. +
  504. +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  505. +    verbose=yes ;;
  506. +
  507. +  -version | --version | --versio | --versi | --vers)
  508. +    echo "configure generated by autoconf version 2.10"
  509. +    exit 0 ;;
  510. +
  511. +  -with-* | --with-*)
  512. +    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  513. +    # Reject names that are not valid shell variable names.
  514. +    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  515. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  516. +    fi
  517. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. +    case "$ac_option" in
  519. +      *=*) ;;
  520. +      *) ac_optarg=yes ;;
  521. +    esac
  522. +    eval "with_${ac_package}='$ac_optarg'" ;;
  523. +
  524. +  -without-* | --without-*)
  525. +    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  526. +    # Reject names that are not valid shell variable names.
  527. +    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  528. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  529. +    fi
  530. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  531. +    eval "with_${ac_package}=no" ;;
  532. +
  533. +  --x)
  534. +    # Obsolete; use --with-x.
  535. +    with_x=yes ;;
  536. +
  537. +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  538. +  | --x-incl | --x-inc | --x-in | --x-i)
  539. +    ac_prev=x_includes ;;
  540. +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  541. +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  542. +    x_includes="$ac_optarg" ;;
  543. +
  544. +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  545. +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  546. +    ac_prev=x_libraries ;;
  547. +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  548. +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  549. +    x_libraries="$ac_optarg" ;;
  550. +
  551. +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  552. +    ;;
  553. +
  554. +  *)
  555. +    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  556. +      echo "configure: warning: $ac_option: invalid host type" 1>&2
  557. +    fi
  558. +    if test "x$nonopt" != xNONE; then
  559. +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  560. +    fi
  561. +    nonopt="$ac_option"
  562. +    ;;
  563. +
  564. +  esac
  565.  done
  566.  
  567. -trap 'rm -f conftest* core; exit 1' 1 3 15
  568. +if test -n "$ac_prev"; then
  569. +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  570. +fi
  571. +
  572. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  573.  
  574. -# Needed for some versions of `tr' so that character classes in `[]' work.
  575. -if test "${LANG+set}" = "set" ; then
  576. -   LANG=C
  577. +# File descriptor usage:
  578. +# 0 standard input
  579. +# 1 file creation
  580. +# 2 errors and warnings
  581. +# 3 some systems may open it to /dev/tty
  582. +# 4 used on the Kubota Titan
  583. +# 6 checking for... messages and results
  584. +# 5 compiler messages saved in config.log
  585. +if test "$silent" = yes; then
  586. +  exec 6>/dev/null
  587. +else
  588. +  exec 6>&1
  589.  fi
  590. +exec 5>./config.log
  591.  
  592. -rm -f conftest*
  593. -compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  594. +echo "\
  595. +This file contains any messages produced by compilers while
  596. +running configure, to aid debugging if configure makes a mistake.
  597. +" 1>&5
  598. +
  599. +# Strip out --no-create and --no-recursion so they do not pile up.
  600. +# Also quote any args containing shell metacharacters.
  601. +ac_configure_args=
  602. +for ac_arg
  603. +do
  604. +  case "$ac_arg" in
  605. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  606. +  | --no-cr | --no-c) ;;
  607. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  608. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  609. +  *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  610. +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  611. +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  612. +  esac
  613. +done
  614. +
  615. +# NLS nuisances.
  616. +# Only set LANG and LC_ALL to C if already set.
  617. +# These must not be set unconditionally because not all systems understand
  618. +# e.g. LANG=C (notably SCO).
  619. +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  620. +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  621. +
  622. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  623. +rm -rf conftest* confdefs.h
  624. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  625. +echo > confdefs.h
  626.  
  627.  # A filename unique to this package, relative to the directory that
  628.  # configure is in, which we can look for to find out if srcdir is correct.
  629. -unique_file=grep.c
  630. +ac_unique_file=grep.c
  631.  
  632.  # Find the source files, if location was not specified.
  633.  if test -z "$srcdir"; then
  634. -  srcdirdefaulted=yes
  635. -  # Try the directory containing this script, then `..'.
  636. -  prog=$0
  637. -  confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  638. -  test "X$confdir" = "X$prog" && confdir=.
  639. -  srcdir=$confdir
  640. -  if test ! -r $srcdir/$unique_file; then
  641. +  ac_srcdir_defaulted=yes
  642. +  # Try the directory containing this script, then its parent.
  643. +  ac_prog=$0
  644. +  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  645. +  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  646. +  srcdir=$ac_confdir
  647. +  if test ! -r $srcdir/$ac_unique_file; then
  648.      srcdir=..
  649.    fi
  650. +else
  651. +  ac_srcdir_defaulted=no
  652.  fi
  653. -if test ! -r $srcdir/$unique_file; then
  654. -  if test x$srcdirdefaulted = xyes; then
  655. -    echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  656. +if test ! -r $srcdir/$ac_unique_file; then
  657. +  if test "$ac_srcdir_defaulted" = yes; then
  658. +    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  659.    else
  660. -    echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  661. +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  662.    fi
  663. -  exit 1
  664.  fi
  665. -# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  666. -# But we can't avoid them for `..', to make subdirectories work.
  667. -case $srcdir in
  668. -  .|/*|~*) ;;
  669. -  *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  670. -esac
  671. +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  672. +
  673. +# Prefer explicitly selected file to automatically selected ones.
  674. +if test -z "$CONFIG_SITE"; then
  675. +  if test "x$prefix" != xNONE; then
  676. +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  677. +  else
  678. +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  679. +  fi
  680. +fi
  681. +for ac_site_file in $CONFIG_SITE; do
  682. +  if test -r "$ac_site_file"; then
  683. +    echo "loading site script $ac_site_file"
  684. +    . "$ac_site_file"
  685. +  fi
  686. +done
  687. +
  688. +if test -r "$cache_file"; then
  689. +  echo "loading cache $cache_file"
  690. +  . $cache_file
  691. +else
  692. +  echo "creating cache $cache_file"
  693. +  > $cache_file
  694. +fi
  695. +
  696. +ac_ext=c
  697. +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  698. +ac_cpp='$CPP $CPPFLAGS'
  699. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  700. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  701. +
  702. +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  703. +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  704. +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  705. +    ac_n= ac_c='
  706. +' ac_t='    '
  707. +  else
  708. +    ac_n=-n ac_c= ac_t=
  709. +  fi
  710. +else
  711. +  ac_n= ac_c='\c' ac_t=
  712. +fi
  713. +
  714.  
  715. -for p in mawk gawk nawk awk
  716. +for ac_prog in mawk gawk nawk awk
  717.  do
  718. -if test -z "$AWK"; then
  719. -  # Extract the first word of `$p', so it can be a program name with args.
  720. -  set dummy $p; word=$2
  721. -  echo checking for $word
  722. -  IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  723. -  for dir in $PATH; do
  724. -    test -z "$dir" && dir=.
  725. -    if test -f $dir/$word; then
  726. -      AWK="$p"
  727. +# Extract the first word of "$ac_prog", so it can be a program name with args.
  728. +set dummy $ac_prog; ac_word=$2
  729. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  730. +if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  731. +  echo $ac_n "(cached) $ac_c" 1>&6
  732. +else
  733. +  if test -n "$AWK"; then
  734. +  ac_cv_prog_AWK="$AWK" # Let the user override the test.
  735. +else
  736. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  737. +  for ac_dir in $PATH; do
  738. +    test -z "$ac_dir" && ac_dir=.
  739. +    if test -f $ac_dir/$ac_word; then
  740. +      ac_cv_prog_AWK="$ac_prog"
  741.        break
  742.      fi
  743.    done
  744. -  IFS="$saveifs"
  745. +  IFS="$ac_save_ifs"
  746. +fi
  747. +fi
  748. +AWK="$ac_cv_prog_AWK"
  749. +if test -n "$AWK"; then
  750. +  echo "$ac_t""$AWK" 1>&6
  751. +else
  752. +  echo "$ac_t""no" 1>&6
  753.  fi
  754. -
  755. -test -n "$AWK" -a -n "$verbose" && echo "    setting AWK to $AWK"
  756.  
  757.  test -n "$AWK" && break
  758.  done
  759.  
  760. +# Extract the first word of "gcc", so it can be a program name with args.
  761. +set dummy gcc; ac_word=$2
  762. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  763. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  764. +  echo $ac_n "(cached) $ac_c" 1>&6
  765. +else
  766. +  if test -n "$CC"; then
  767. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  768. +else
  769. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  770. +  for ac_dir in $PATH; do
  771. +    test -z "$ac_dir" && ac_dir=.
  772. +    if test -f $ac_dir/$ac_word; then
  773. +      ac_cv_prog_CC="gcc"
  774. +      break
  775. +    fi
  776. +  done
  777. +  IFS="$ac_save_ifs"
  778. +fi
  779. +fi
  780. +CC="$ac_cv_prog_CC"
  781. +if test -n "$CC"; then
  782. +  echo "$ac_t""$CC" 1>&6
  783. +else
  784. +  echo "$ac_t""no" 1>&6
  785. +fi
  786. +
  787.  if test -z "$CC"; then
  788. -  # Extract the first word of `gcc', so it can be a program name with args.
  789. -  set dummy gcc; word=$2
  790. -  echo checking for $word
  791. -  IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  792. -  for dir in $PATH; do
  793. -    test -z "$dir" && dir=.
  794. -    if test -f $dir/$word; then
  795. -      CC="gcc"
  796. +  # Extract the first word of "cc", so it can be a program name with args.
  797. +set dummy cc; ac_word=$2
  798. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  799. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  800. +  echo $ac_n "(cached) $ac_c" 1>&6
  801. +else
  802. +  if test -n "$CC"; then
  803. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  804. +else
  805. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  806. +  ac_prog_rejected=no
  807. +  for ac_dir in $PATH; do
  808. +    test -z "$ac_dir" && ac_dir=.
  809. +    if test -f $ac_dir/$ac_word; then
  810. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  811. +        ac_prog_rejected=yes
  812. +    continue
  813. +      fi
  814. +      ac_cv_prog_CC="cc"
  815.        break
  816.      fi
  817.    done
  818. -  IFS="$saveifs"
  819. +  IFS="$ac_save_ifs"
  820. +if test $ac_prog_rejected = yes; then
  821. +  # We found a bogon in the path, so make sure we never use it.
  822. +  set dummy $ac_cv_prog_CC
  823. +  shift
  824. +  if test $# -gt 0; then
  825. +    # We chose a different compiler from the bogus one.
  826. +    # However, it has the same basename, so the bogon will be chosen
  827. +    # first if we set CC to just the basename; use the full file name.
  828. +    shift
  829. +    set dummy "$ac_dir/$ac_word" "$@"
  830. +    shift
  831. +    ac_cv_prog_CC="$@"
  832. +  fi
  833. +fi
  834. +fi
  835. +fi
  836. +CC="$ac_cv_prog_CC"
  837. +if test -n "$CC"; then
  838. +  echo "$ac_t""$CC" 1>&6
  839. +else
  840. +  echo "$ac_t""no" 1>&6
  841. +fi
  842. +
  843. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  844.  fi
  845. -test -z "$CC" && CC="cc"
  846. -test -n "$CC" -a -n "$verbose" && echo "    setting CC to $CC"
  847.  
  848. -# Find out if we are using GNU C, under whatever name.
  849. -cat > conftest.c <<EOF
  850. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  851. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  852. +  echo $ac_n "(cached) $ac_c" 1>&6
  853. +else
  854. +  cat > conftest.c <<EOF
  855.  #ifdef __GNUC__
  856. -  yes
  857. +  yes;
  858.  #endif
  859.  EOF
  860. -${CC-cc} -E conftest.c > conftest.out 2>&1
  861. -if egrep yes conftest.out >/dev/null 2>&1; then
  862. -  GCC=1 # For later tests.
  863. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  864. +  ac_cv_prog_gcc=yes
  865. +else
  866. +  ac_cv_prog_gcc=no
  867. +fi
  868. +fi
  869. +
  870. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  871. +if test $ac_cv_prog_gcc = yes; then
  872. +  GCC=yes
  873. +  if test "${CFLAGS+set}" != set; then
  874. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  875. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  876. +  echo $ac_n "(cached) $ac_c" 1>&6
  877. +else
  878. +  echo 'void f(){}' > conftest.c
  879. +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  880. +  ac_cv_prog_gcc_g=yes
  881. +else
  882. +  ac_cv_prog_gcc_g=no
  883.  fi
  884.  rm -f conftest*
  885.  
  886. -echo checking for POSIXized ISC
  887. +fi
  888. +
  889. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  890. +    if test $ac_cv_prog_gcc_g = yes; then
  891. +      CFLAGS="-g -O2"
  892. +    else
  893. +      CFLAGS="-O2"
  894. +    fi
  895. +  fi
  896. +else
  897. +  GCC=
  898. +  test "${CFLAGS+set}" = set || CFLAGS="-g"
  899. +fi
  900. +
  901. +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  902.  if test -d /etc/conf/kconfig.d &&
  903.    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  904.  then
  905. -  ISC=1 # If later tests want to check for ISC.
  906. -  {
  907. -test -n "$verbose" && \
  908. -echo '    defining' _POSIX_SOURCE
  909. -DEFS="$DEFS -D_POSIX_SOURCE=1"
  910. -}
  911. +  echo "$ac_t""yes" 1>&6
  912. +  ISC=yes # If later tests want to check for ISC.
  913. +  cat >> confdefs.h <<\EOF
  914. +#define _POSIX_SOURCE 1
  915. +EOF
  916.  
  917. -  if test -n "$GCC"; then
  918. +  if test "$GCC" = yes; then
  919.      CC="$CC -posix"
  920.    else
  921.      CC="$CC -Xp"
  922.    fi
  923. +else
  924. +  echo "$ac_t""no" 1>&6
  925. +  ISC=
  926.  fi
  927.  
  928. -echo checking how to run the C preprocessor
  929. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  930. +# On Suns, sometimes $CPP names a directory.
  931. +if test -n "$CPP" && test -d "$CPP"; then
  932. +  CPP=
  933. +fi
  934.  if test -z "$CPP"; then
  935. -  CPP='${CC-cc} -E'
  936. -  cat > conftest.c <<EOF
  937. -#include <stdio.h>
  938. -EOF
  939. -err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  940. -if test -z "$err"; then
  941. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  942. +  echo $ac_n "(cached) $ac_c" 1>&6
  943. +else
  944. +    # This must be in double quotes, not single quotes, because CPP may get
  945. +  # substituted into the Makefile and "${CC-cc}" will confuse make.
  946. +  CPP="${CC-cc} -E"
  947. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  948. +  # not just through cpp.
  949. +  cat > conftest.$ac_ext <<EOF
  950. +#line 724 "configure"
  951. +#include "confdefs.h"
  952. +#include <assert.h>
  953. +Syntax Error
  954. +EOF
  955. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  956. +{ (eval echo configure:730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  957. +ac_err=`grep -v '^ *+' conftest.out`
  958. +if test -z "$ac_err"; then
  959. +  :
  960. +else
  961. +  echo "$ac_err" >&5
  962. +  rm -rf conftest*
  963. +  CPP="${CC-cc} -E -traditional-cpp"
  964. +  cat > conftest.$ac_ext <<EOF
  965. +#line 739 "configure"
  966. +#include "confdefs.h"
  967. +#include <assert.h>
  968. +Syntax Error
  969. +EOF
  970. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  971. +{ (eval echo configure:745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  972. +ac_err=`grep -v '^ *+' conftest.out`
  973. +if test -z "$ac_err"; then
  974.    :
  975.  else
  976. +  echo "$ac_err" >&5
  977. +  rm -rf conftest*
  978.    CPP=/lib/cpp
  979.  fi
  980.  rm -f conftest*
  981.  fi
  982. +rm -f conftest*
  983. +  ac_cv_prog_CPP="$CPP"
  984. +fi
  985. +  CPP="$ac_cv_prog_CPP"
  986. +else
  987. +  ac_cv_prog_CPP="$CPP"
  988. +fi
  989. +echo "$ac_t""$CPP" 1>&6
  990.  
  991. -# Make sure to not get the incompatible SysV /etc/install and
  992. -# /usr/sbin/install, which might be in PATH before a BSD-like install,
  993. -# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  994. -# or the AFS install, which mishandles nonexistent args, or
  995. -# /usr/ucb/install on SVR4, which tries to use the nonexistent group
  996. -# `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  997. -# anyway.  Sigh.
  998. -if test "z${INSTALL}" = "z" ; then
  999. -  echo checking for install
  1000. -  IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  1001. -  for dir in $PATH; do
  1002. -    test -z "$dir" && dir=.
  1003. -    case $dir in
  1004. -    /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  1005. +ac_aux_dir=
  1006. +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1007. +  if test -f $ac_dir/install-sh; then
  1008. +    ac_aux_dir=$ac_dir
  1009. +    ac_install_sh="$ac_aux_dir/install-sh -c"
  1010. +    break
  1011. +  elif test -f $ac_dir/install.sh; then
  1012. +    ac_aux_dir=$ac_dir
  1013. +    ac_install_sh="$ac_aux_dir/install.sh -c"
  1014. +    break
  1015. +  fi
  1016. +done
  1017. +if test -z "$ac_aux_dir"; then
  1018. +  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1019. +fi
  1020. +ac_config_guess=$ac_aux_dir/config.guess
  1021. +ac_config_sub=$ac_aux_dir/config.sub
  1022. +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1023. +
  1024. +# Find a good install program.  We prefer a C program (faster),
  1025. +# so one script is as good as another.  But avoid the broken or
  1026. +# incompatible versions:
  1027. +# SysV /etc/install, /usr/sbin/install
  1028. +# SunOS /usr/etc/install
  1029. +# IRIX /sbin/install
  1030. +# AIX /bin/install
  1031. +# AmigaOS /c/install
  1032. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1033. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1034. +# ./install, which can be erroneously created by make from ./install.sh.
  1035. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1036. +if test -z "$INSTALL"; then
  1037. +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1038. +  echo $ac_n "(cached) $ac_c" 1>&6
  1039. +else
  1040. +    IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1041. +  for ac_dir in $PATH; do
  1042. +    # Account for people who put trailing slashes in PATH elements.
  1043. +    case "$ac_dir/" in
  1044. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1045.      *)
  1046. -      if test -f $dir/installbsd; then
  1047. -    INSTALL="$dir/installbsd -c" # OSF1
  1048. -    INSTALL_PROGRAM='$(INSTALL)'
  1049. -    INSTALL_DATA='$(INSTALL) -m 644'
  1050. -    break
  1051. -      fi
  1052. -      if test -f $dir/install; then
  1053. -    if grep dspmsg $dir/install >/dev/null 2>&1; then
  1054. -      : # AIX
  1055. -    else
  1056. -      INSTALL="$dir/install -c"
  1057. -      INSTALL_PROGRAM='$(INSTALL)'
  1058. -      INSTALL_DATA='$(INSTALL) -m 644'
  1059. -      break
  1060. +      # OSF1 and SCO ODT 3.0 have their own names for install.
  1061. +      for ac_prog in ginstall installbsd scoinst install; do
  1062. +        if test -f $ac_dir/$ac_prog; then
  1063. +      if test $ac_prog = install &&
  1064. +            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1065. +        # AIX install.  It has an incompatible calling convention.
  1066. +        # OSF/1 installbsd also uses dspmsg, but is usable.
  1067. +        :
  1068. +      else
  1069. +        ac_cv_path_install="$ac_dir/$ac_prog -c"
  1070. +        break 2
  1071. +      fi
  1072.      fi
  1073. -      fi
  1074. +      done
  1075.        ;;
  1076.      esac
  1077.    done
  1078. -  IFS="$saveifs"
  1079. +  IFS="$ac_save_ifs"
  1080. +
  1081. +fi
  1082. +  if test "${ac_cv_path_install+set}" = set; then
  1083. +    INSTALL="$ac_cv_path_install"
  1084. +  else
  1085. +    # As a last resort, use the slow shell script.  We don't cache a
  1086. +    # path for INSTALL within a source directory, because that will
  1087. +    # break other packages using the cache if that directory is
  1088. +    # removed, or if the path is relative.
  1089. +    INSTALL="$ac_install_sh"
  1090. +  fi
  1091. +fi
  1092. +echo "$ac_t""$INSTALL" 1>&6
  1093. +
  1094. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1095. +# It thinks the first close brace ends the variable substitution.
  1096. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1097. +
  1098. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1099. +
  1100. +# If we cannot run a trivial program, we must be cross compiling.
  1101. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1102. +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1103. +  echo $ac_n "(cached) $ac_c" 1>&6
  1104. +else
  1105. +  if test "$cross_compiling" = yes; then
  1106. +  ac_cv_c_cross=yes
  1107. +else
  1108. +cat > conftest.$ac_ext <<EOF
  1109. +#line 853 "configure"
  1110. +#include "confdefs.h"
  1111. +main(){return(0);}
  1112. +EOF
  1113. +{ (eval echo configure:857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1114. +if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1115. +  ac_cv_c_cross=no
  1116. +else
  1117. +  ac_cv_c_cross=yes
  1118. +fi
  1119. +fi
  1120. +rm -fr conftest*
  1121.  fi
  1122. -INSTALL=${INSTALL-cp}
  1123. -INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  1124. -INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  1125.  
  1126. -echo checking for ANSI C header files
  1127. -cat > conftest.c <<EOF
  1128. +echo "$ac_t""$ac_cv_c_cross" 1>&6
  1129. +cross_compiling=$ac_cv_c_cross
  1130. +
  1131. +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1132. +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1133. +  echo $ac_n "(cached) $ac_c" 1>&6
  1134. +else
  1135. +  cat > conftest.$ac_ext <<EOF
  1136. +#line 875 "configure"
  1137. +#include "confdefs.h"
  1138.  #include <stdlib.h>
  1139.  #include <stdarg.h>
  1140.  #include <string.h>
  1141.  #include <float.h>
  1142.  EOF
  1143. -err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  1144. -if test -z "$err"; then
  1145. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1146. +{ (eval echo configure:883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1147. +ac_err=`grep -v '^ *+' conftest.out`
  1148. +if test -z "$ac_err"; then
  1149. +  rm -rf conftest*
  1150. +  ac_cv_header_stdc=yes
  1151. +else
  1152. +  echo "$ac_err" >&5
  1153. +  rm -rf conftest*
  1154. +  ac_cv_header_stdc=no
  1155. +fi
  1156. +rm -f conftest*
  1157. +
  1158. +if test $ac_cv_header_stdc = yes; then
  1159.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1160. -echo '#include <string.h>' > conftest.c
  1161. -eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  1162. -if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1163. -  # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1164. -cat > conftest.c <<EOF
  1165. +cat > conftest.$ac_ext <<EOF
  1166. +#line 898 "configure"
  1167. +#include "confdefs.h"
  1168. +#include <string.h>
  1169. +EOF
  1170. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1171. +  egrep "memchr" >/dev/null 2>&1; then
  1172. +  :
  1173. +else
  1174. +  rm -rf conftest*
  1175. +  ac_cv_header_stdc=no
  1176. +fi
  1177. +rm -f conftest*
  1178. +
  1179. +fi
  1180. +
  1181. +if test $ac_cv_header_stdc = yes; then
  1182. +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1183. +cat > conftest.$ac_ext <<EOF
  1184. +#line 916 "configure"
  1185. +#include "confdefs.h"
  1186. +#include <stdlib.h>
  1187. +EOF
  1188. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1189. +  egrep "free" >/dev/null 2>&1; then
  1190. +  :
  1191. +else
  1192. +  rm -rf conftest*
  1193. +  ac_cv_header_stdc=no
  1194. +fi
  1195. +rm -f conftest*
  1196. +
  1197. +fi
  1198. +
  1199. +if test $ac_cv_header_stdc = yes; then
  1200. +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1201. +if test "$cross_compiling" = yes; then
  1202. +  :
  1203. +else
  1204. +cat > conftest.$ac_ext <<EOF
  1205. +#line 937 "configure"
  1206. +#include "confdefs.h"
  1207.  #include <ctype.h>
  1208.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1209.  #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1210. -#define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  1211. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1212.  int main () { int i; for (i = 0; i < 256; i++)
  1213.  if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1214.  exit (0); }
  1215.  
  1216.  EOF
  1217. -eval $compile
  1218. +{ (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1219.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1220. -  {
  1221. -test -n "$verbose" && \
  1222. -echo '    defining' STDC_HEADERS
  1223. -DEFS="$DEFS -DSTDC_HEADERS=1"
  1224. -}
  1225. -
  1226. +  :
  1227. +else
  1228. +  ac_cv_header_stdc=no
  1229.  fi
  1230. -rm -f conftest*
  1231.  fi
  1232. -rm -f conftest*
  1233. +rm -fr conftest*
  1234. +fi
  1235. +fi
  1236. +
  1237. +echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1238. +if test $ac_cv_header_stdc = yes; then
  1239. +  cat >> confdefs.h <<\EOF
  1240. +#define STDC_HEADERS 1
  1241. +EOF
  1242.  
  1243.  fi
  1244. -rm -f conftest*
  1245.  
  1246. -for hdr in string.h sys/param.h
  1247. +for ac_hdr in string.h sys/param.h
  1248.  do
  1249. -trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  1250. -echo checking for ${hdr}
  1251. -cat > conftest.c <<EOF
  1252. -#include <${hdr}>
  1253. -EOF
  1254. -err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  1255. -if test -z "$err"; then
  1256. -  {
  1257. -test -n "$verbose" && \
  1258. -echo '    defining' ${trhdr}
  1259. -DEFS="$DEFS -D${trhdr}=1"
  1260. -}
  1261. -
  1262. +ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1263. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1264. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1265. +  echo $ac_n "(cached) $ac_c" 1>&6
  1266. +else
  1267. +  cat > conftest.$ac_ext <<EOF
  1268. +#line 975 "configure"
  1269. +#include "confdefs.h"
  1270. +#include <$ac_hdr>
  1271. +EOF
  1272. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1273. +{ (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1274. +ac_err=`grep -v '^ *+' conftest.out`
  1275. +if test -z "$ac_err"; then
  1276. +  rm -rf conftest*
  1277. +  eval "ac_cv_header_$ac_safe=yes"
  1278. +else
  1279. +  echo "$ac_err" >&5
  1280. +  rm -rf conftest*
  1281. +  eval "ac_cv_header_$ac_safe=no"
  1282.  fi
  1283.  rm -f conftest*
  1284. +fi
  1285. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1286. +  echo "$ac_t""yes" 1>&6
  1287. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1288. +  cat >> confdefs.h <<EOF
  1289. +#define $ac_tr_hdr 1
  1290. +EOF
  1291. +else
  1292. +  echo "$ac_t""no" 1>&6
  1293. +fi
  1294.  done
  1295.  
  1296. -echo checking whether string.h declares mem functions
  1297. -echo '#include <string.h>' > conftest.c
  1298. -eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  1299. -if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1300. -  :
  1301. +for ac_hdr in memory.h
  1302. +do
  1303. +ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1304. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1305. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1306. +  echo $ac_n "(cached) $ac_c" 1>&6
  1307.  else
  1308. -  echo checking for memory.h
  1309. -cat > conftest.c <<EOF
  1310. -#include <memory.h>
  1311. -EOF
  1312. -err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  1313. -if test -z "$err"; then
  1314. -  {
  1315. -test -n "$verbose" && \
  1316. -echo '    defining' NEED_MEMORY_H
  1317. -DEFS="$DEFS -DNEED_MEMORY_H=1"
  1318. -}
  1319. -
  1320. +  cat > conftest.$ac_ext <<EOF
  1321. +#line 1012 "configure"
  1322. +#include "confdefs.h"
  1323. +#include <$ac_hdr>
  1324. +EOF
  1325. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1326. +{ (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1327. +ac_err=`grep -v '^ *+' conftest.out`
  1328. +if test -z "$ac_err"; then
  1329. +  rm -rf conftest*
  1330. +  eval "ac_cv_header_$ac_safe=yes"
  1331. +else
  1332. +  echo "$ac_err" >&5
  1333. +  rm -rf conftest*
  1334. +  eval "ac_cv_header_$ac_safe=no"
  1335.  fi
  1336.  rm -f conftest*
  1337. +fi
  1338. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1339. +  echo "$ac_t""yes" 1>&6
  1340. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1341. +  cat >> confdefs.h <<EOF
  1342. +#define $ac_tr_hdr 1
  1343. +EOF
  1344. +else
  1345. +  echo "$ac_t""no" 1>&6
  1346. +fi
  1347. +done
  1348.  
  1349. +for ac_hdr in unistd.h
  1350. +do
  1351. +ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1352. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1353. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1354. +  echo $ac_n "(cached) $ac_c" 1>&6
  1355. +else
  1356. +  cat > conftest.$ac_ext <<EOF
  1357. +#line 1049 "configure"
  1358. +#include "confdefs.h"
  1359. +#include <$ac_hdr>
  1360. +EOF
  1361. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1362. +{ (eval echo configure:1054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1363. +ac_err=`grep -v '^ *+' conftest.out`
  1364. +if test -z "$ac_err"; then
  1365. +  rm -rf conftest*
  1366. +  eval "ac_cv_header_$ac_safe=yes"
  1367. +else
  1368. +  echo "$ac_err" >&5
  1369. +  rm -rf conftest*
  1370. +  eval "ac_cv_header_$ac_safe=no"
  1371.  fi
  1372.  rm -f conftest*
  1373. +fi
  1374. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1375. +  echo "$ac_t""yes" 1>&6
  1376. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1377. +  cat >> confdefs.h <<EOF
  1378. +#define $ac_tr_hdr 1
  1379. +EOF
  1380. +else
  1381. +  echo "$ac_t""no" 1>&6
  1382. +fi
  1383. +done
  1384.  
  1385. -
  1386. -echo checking for unistd.h
  1387. -cat > conftest.c <<EOF
  1388. -#include <unistd.h>
  1389. -EOF
  1390. -err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  1391. -if test -z "$err"; then
  1392. -  {
  1393. -test -n "$verbose" && \
  1394. -echo '    defining' HAVE_UNISTD_H
  1395. -DEFS="$DEFS -DHAVE_UNISTD_H=1"
  1396. -}
  1397. -
  1398. +echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1399. +if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1400. +  echo $ac_n "(cached) $ac_c" 1>&6
  1401. +else
  1402. +  cat > conftest.$ac_ext <<EOF
  1403. +#line 1083 "configure"
  1404. +#include "confdefs.h"
  1405. +#include <sys/types.h>
  1406. +#if STDC_HEADERS
  1407. +#include <stdlib.h>
  1408. +#endif
  1409. +EOF
  1410. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1411. +  egrep "size_t" >/dev/null 2>&1; then
  1412. +  rm -rf conftest*
  1413. +  ac_cv_type_size_t=yes
  1414. +else
  1415. +  rm -rf conftest*
  1416. +  ac_cv_type_size_t=no
  1417.  fi
  1418.  rm -f conftest*
  1419.  
  1420. -echo checking for size_t in sys/types.h
  1421. -echo '#include <sys/types.h>' > conftest.c
  1422. -eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  1423. -if egrep "size_t" conftest.out >/dev/null 2>&1; then
  1424. -  :
  1425. -else
  1426. -  {
  1427. -test -n "$verbose" && \
  1428. -echo '    defining' size_t to be 'unsigned'
  1429. -DEFS="$DEFS -Dsize_t=unsigned"
  1430. -}
  1431. +fi
  1432. +echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1433. +if test $ac_cv_type_size_t = no; then
  1434. +  cat >> confdefs.h <<\EOF
  1435. +#define size_t unsigned
  1436. +EOF
  1437.  
  1438.  fi
  1439. -rm -f conftest*
  1440.  
  1441.  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1442.  # for constant arguments.  Useless!
  1443. -echo checking for working alloca.h
  1444. -cat > conftest.c <<EOF
  1445. +echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1446. +if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1447. +  echo $ac_n "(cached) $ac_c" 1>&6
  1448. +else
  1449. +  cat > conftest.$ac_ext <<EOF
  1450. +#line 1116 "configure"
  1451. +#include "confdefs.h"
  1452.  #include <alloca.h>
  1453. -int main() { exit(0); }
  1454. -int t() { char *p = alloca(2 * sizeof(int)); }
  1455. +int main() { t(); return 0; }
  1456. +int t() {
  1457. +char *p = alloca(2 * sizeof(int));
  1458. +; return 0; }
  1459. +EOF
  1460. +if { (eval echo configure:1124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1461. +  rm -rf conftest*
  1462. +  ac_cv_header_alloca_h=yes
  1463. +else
  1464. +  rm -rf conftest*
  1465. +  ac_cv_header_alloca_h=no
  1466. +fi
  1467. +rm -f conftest*
  1468. +
  1469. +fi
  1470. +
  1471. +echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1472. +if test $ac_cv_header_alloca_h = yes; then
  1473. +  cat >> confdefs.h <<\EOF
  1474. +#define HAVE_ALLOCA_H 1
  1475.  EOF
  1476. -if eval $compile; then
  1477. -  {
  1478. -test -n "$verbose" && \
  1479. -echo '    defining' HAVE_ALLOCA_H
  1480. -DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  1481. -}
  1482.  
  1483.  fi
  1484. -rm -f conftest*
  1485.  
  1486. -decl="#ifdef __GNUC__
  1487. -#define alloca __builtin_alloca
  1488. -#else
  1489. -#if HAVE_ALLOCA_H
  1490. -#include <alloca.h>
  1491. +echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1492. +if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1493. +  echo $ac_n "(cached) $ac_c" 1>&6
  1494. +else
  1495. +  cat > conftest.$ac_ext <<EOF
  1496. +#line 1148 "configure"
  1497. +#include "confdefs.h"
  1498. +
  1499. +#ifdef __GNUC__
  1500. +# define alloca __builtin_alloca
  1501.  #else
  1502. -#ifdef _AIX
  1503. +# if HAVE_ALLOCA_H
  1504. +#  include <alloca.h>
  1505. +# else
  1506. +#  ifdef _AIX
  1507.   #pragma alloca
  1508. -#else
  1509. +#  else
  1510. +#   ifndef alloca /* predefined by HP cc +Olibcalls */
  1511.  char *alloca ();
  1512. +#   endif
  1513. +#  endif
  1514. +# endif
  1515.  #endif
  1516. -#endif
  1517. -#endif
  1518. -"
  1519. -echo checking for alloca
  1520. -cat > conftest.c <<EOF
  1521. -$decl
  1522. -int main() { exit(0); }
  1523. -int t() { char *p = (char *) alloca(1); }
  1524. -EOF
  1525. -if eval $compile; then
  1526. -  :
  1527. +
  1528. +int main() { t(); return 0; }
  1529. +int t() {
  1530. +char *p = (char *) alloca(1);
  1531. +; return 0; }
  1532. +EOF
  1533. +if { (eval echo configure:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1534. +  rm -rf conftest*
  1535. +  ac_cv_func_alloca=yes
  1536.  else
  1537. -  alloca_missing=1
  1538. -cat > conftest.c <<EOF
  1539. +  rm -rf conftest*
  1540. +  ac_cv_func_alloca=no
  1541. +fi
  1542. +rm -f conftest*
  1543.  
  1544. -#if defined(CRAY) && ! defined(CRAY2)
  1545. -winnitude
  1546. -#else
  1547. -lossage
  1548. -#endif
  1549. +fi
  1550.  
  1551. +echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1552. +if test $ac_cv_func_alloca = yes; then
  1553. +  cat >> confdefs.h <<\EOF
  1554. +#define HAVE_ALLOCA 1
  1555.  EOF
  1556. -eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  1557. -if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  1558. -  echo checking for _getb67
  1559. -cat > conftest.c <<EOF
  1560. -#include <ctype.h>
  1561. -int main() { exit(0); }
  1562. -int t() { 
  1563. -/* The GNU C library defines this for functions which it implements
  1564. -    to always fail with ENOSYS.  Some functions are actually named
  1565. -    something starting with __ and the normal name is an alias.  */
  1566. -#if defined (__stub__getb67) || defined (__stub____getb67)
  1567. -choke me
  1568. -#else
  1569. -/* Override any gcc2 internal prototype to avoid an error.  */
  1570. -extern char _getb67(); _getb67();
  1571. -#endif
  1572. - }
  1573. +
  1574. +fi
  1575. +
  1576. +if test $ac_cv_func_alloca = no; then
  1577. +  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1578. +  # that cause trouble.  Some versions do not even contain alloca or
  1579. +  # contain a buggy version.  If you still want to use their alloca,
  1580. +  # use ar to extract alloca.o from them instead of compiling alloca.c.
  1581. +  ALLOCA=alloca.o
  1582. +  cat >> confdefs.h <<\EOF
  1583. +#define C_ALLOCA 1
  1584.  EOF
  1585. -if eval $compile; then
  1586. -  {
  1587. -test -n "$verbose" && \
  1588. -echo '    defining' CRAY_STACKSEG_END to be '_getb67'
  1589. -DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  1590. -}
  1591.  
  1592. +
  1593. +echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1594. +if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1595. +  echo $ac_n "(cached) $ac_c" 1>&6
  1596.  else
  1597. -  echo checking for GETB67
  1598. -cat > conftest.c <<EOF
  1599. -#include <ctype.h>
  1600. -int main() { exit(0); }
  1601. -int t() { 
  1602. -/* The GNU C library defines this for functions which it implements
  1603. -    to always fail with ENOSYS.  Some functions are actually named
  1604. -    something starting with __ and the normal name is an alias.  */
  1605. -#if defined (__stub_GETB67) || defined (__stub___GETB67)
  1606. -choke me
  1607. +  cat > conftest.$ac_ext <<EOF
  1608. +#line 1207 "configure"
  1609. +#include "confdefs.h"
  1610. +#if defined(CRAY) && ! defined(CRAY2)
  1611. +webecray
  1612.  #else
  1613. -/* Override any gcc2 internal prototype to avoid an error.  */
  1614. -extern char GETB67(); GETB67();
  1615. +wenotbecray
  1616.  #endif
  1617. - }
  1618. +
  1619.  EOF
  1620. -if eval $compile; then
  1621. -  {
  1622. -test -n "$verbose" && \
  1623. -echo '    defining' CRAY_STACKSEG_END to be 'GETB67'
  1624. -DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  1625. -}
  1626. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1627. +  egrep "webecray" >/dev/null 2>&1; then
  1628. +  rm -rf conftest*
  1629. +  ac_cv_os_cray=yes
  1630. +else
  1631. +  rm -rf conftest*
  1632. +  ac_cv_os_cray=no
  1633. +fi
  1634. +rm -f conftest*
  1635. +
  1636. +fi
  1637.  
  1638. +echo "$ac_t""$ac_cv_os_cray" 1>&6
  1639. +if test $ac_cv_os_cray = yes; then
  1640. +for ac_func in _getb67 GETB67 getb67; do
  1641. +  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1642. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1643. +  echo $ac_n "(cached) $ac_c" 1>&6
  1644.  else
  1645. -  echo checking for getb67
  1646. -cat > conftest.c <<EOF
  1647. -#include <ctype.h>
  1648. -int main() { exit(0); }
  1649. -int t() { 
  1650. +  cat > conftest.$ac_ext <<EOF
  1651. +#line 1236 "configure"
  1652. +#include "confdefs.h"
  1653. +/* System header to define __stub macros and hopefully few prototypes,
  1654. +    which can conflict with char $ac_func(); below.  */
  1655. +#include <assert.h>
  1656. +/* Override any gcc2 internal prototype to avoid an error.  */
  1657. +/* We use char because int might match the return type of a gcc2
  1658. +    builtin and then its argument prototype would still apply.  */
  1659. +char $ac_func();
  1660. +
  1661. +int main() { t(); return 0; }
  1662. +int t() {
  1663. +
  1664.  /* The GNU C library defines this for functions which it implements
  1665.      to always fail with ENOSYS.  Some functions are actually named
  1666.      something starting with __ and the normal name is an alias.  */
  1667. -#if defined (__stub_getb67) || defined (__stub___getb67)
  1668. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1669.  choke me
  1670.  #else
  1671. -/* Override any gcc2 internal prototype to avoid an error.  */
  1672. -extern char getb67(); getb67();
  1673. +$ac_func();
  1674.  #endif
  1675. - }
  1676. -EOF
  1677. -if eval $compile; then
  1678. -  {
  1679. -test -n "$verbose" && \
  1680. -echo '    defining' CRAY_STACKSEG_END to be 'getb67'
  1681. -DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  1682. -}
  1683. -
  1684. -fi
  1685. -rm -f conftest*
  1686.  
  1687. +; return 0; }
  1688. +EOF
  1689. +if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1690. +  rm -rf conftest*
  1691. +  eval "ac_cv_func_$ac_func=yes"
  1692. +else
  1693. +  rm -rf conftest*
  1694. +  eval "ac_cv_func_$ac_func=no"
  1695.  fi
  1696.  rm -f conftest*
  1697.  
  1698.  fi
  1699. -rm -f conftest*
  1700. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1701. +  echo "$ac_t""yes" 1>&6
  1702. +  cat >> confdefs.h <<EOF
  1703. +#define CRAY_STACKSEG_END $ac_func
  1704. +EOF
  1705.  
  1706. +  break
  1707. +else
  1708. +  echo "$ac_t""no" 1>&6
  1709.  fi
  1710. -rm -f conftest*
  1711. -
  1712.  
  1713. +done
  1714.  fi
  1715. -rm -f conftest*
  1716. -
  1717. -if test -n "$alloca_missing"; then
  1718. -  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1719. -  # that cause trouble.  Some versions do not even contain alloca or
  1720. -  # contain a buggy version.  If you still want to use their alloca,
  1721. -  # use ar to extract alloca.o from them instead of compiling alloca.c.
  1722. -  ALLOCA=alloca.o
  1723.  
  1724. -  echo 'checking stack direction for C alloca'
  1725. -  echo checking whether cross-compiling
  1726. -# If we cannot run a trivial program, we must be cross compiling.
  1727. -cat > conftest.c <<EOF
  1728. -main(){exit(0);}
  1729. -EOF
  1730. -eval $compile
  1731. -if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1732. -  :
  1733. +echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1734. +if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1735. +  echo $ac_n "(cached) $ac_c" 1>&6
  1736.  else
  1737. -  cross_compiling=1
  1738. -fi
  1739. -rm -f conftest*
  1740. -
  1741. -if test -n "$cross_compiling"
  1742. -then
  1743. -  {
  1744. -test -n "$verbose" && \
  1745. -echo '    defining' STACK_DIRECTION to be '0'
  1746. -DEFS="$DEFS -DSTACK_DIRECTION=0"
  1747. -}
  1748. -
  1749. +  if test "$cross_compiling" = yes; then
  1750. +  ac_cv_c_stack_direction=0
  1751.  else
  1752. -cat > conftest.c <<EOF
  1753. +cat > conftest.$ac_ext <<EOF
  1754. +#line 1292 "configure"
  1755. +#include "confdefs.h"
  1756.  find_stack_direction ()
  1757.  {
  1758.    static char *addr = 0;
  1759. @@ -545,91 +1307,158 @@ main ()
  1760.    exit (find_stack_direction() < 0);
  1761.  }
  1762.  EOF
  1763. -eval $compile
  1764. +{ (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1765.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1766. -  {
  1767. -test -n "$verbose" && \
  1768. -echo '    defining' STACK_DIRECTION to be '1'
  1769. -DEFS="$DEFS -DSTACK_DIRECTION=1"
  1770. -}
  1771. -
  1772. +  ac_cv_c_stack_direction=1
  1773.  else
  1774. -  {
  1775. -test -n "$verbose" && \
  1776. -echo '    defining' STACK_DIRECTION to be '-1'
  1777. -DEFS="$DEFS -DSTACK_DIRECTION=-1"
  1778. -}
  1779. -
  1780. +  ac_cv_c_stack_direction=-1
  1781.  fi
  1782.  fi
  1783. -rm -f conftest*
  1784. +rm -fr conftest*
  1785. +fi
  1786. +
  1787. +echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1788. +cat >> confdefs.h <<EOF
  1789. +#define STACK_DIRECTION $ac_cv_c_stack_direction
  1790. +EOF
  1791. +
  1792.  fi
  1793.  
  1794. -for func in getpagesize memchr strerror valloc
  1795. +for ac_func in getpagesize memchr strerror valloc
  1796.  do
  1797. -trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  1798. -echo checking for ${func}
  1799. -cat > conftest.c <<EOF
  1800. -#include <ctype.h>
  1801. -int main() { exit(0); }
  1802. -int t() { 
  1803. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1804. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1805. +  echo $ac_n "(cached) $ac_c" 1>&6
  1806. +else
  1807. +  cat > conftest.$ac_ext <<EOF
  1808. +#line 1335 "configure"
  1809. +#include "confdefs.h"
  1810. +/* System header to define __stub macros and hopefully few prototypes,
  1811. +    which can conflict with char $ac_func(); below.  */
  1812. +#include <assert.h>
  1813. +/* Override any gcc2 internal prototype to avoid an error.  */
  1814. +/* We use char because int might match the return type of a gcc2
  1815. +    builtin and then its argument prototype would still apply.  */
  1816. +char $ac_func();
  1817. +
  1818. +int main() { t(); return 0; }
  1819. +int t() {
  1820. +
  1821.  /* The GNU C library defines this for functions which it implements
  1822.      to always fail with ENOSYS.  Some functions are actually named
  1823.      something starting with __ and the normal name is an alias.  */
  1824. -#if defined (__stub_${func}) || defined (__stub___${func})
  1825. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1826.  choke me
  1827.  #else
  1828. -/* Override any gcc2 internal prototype to avoid an error.  */
  1829. -extern char ${func}(); ${func}();
  1830. +$ac_func();
  1831.  #endif
  1832. - }
  1833. -EOF
  1834. -if eval $compile; then
  1835. -  {
  1836. -test -n "$verbose" && \
  1837. -echo '    defining' ${trfunc}
  1838. -DEFS="$DEFS -D${trfunc}=1"
  1839. -}
  1840.  
  1841. +; return 0; }
  1842. +EOF
  1843. +if { (eval echo configure:1359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1844. +  rm -rf conftest*
  1845. +  eval "ac_cv_func_$ac_func=yes"
  1846. +else
  1847. +  rm -rf conftest*
  1848. +  eval "ac_cv_func_$ac_func=no"
  1849.  fi
  1850.  rm -f conftest*
  1851. +
  1852. +fi
  1853. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1854. +  echo "$ac_t""yes" 1>&6
  1855. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1856. +  cat >> confdefs.h <<EOF
  1857. +#define $ac_tr_func 1
  1858. +EOF
  1859. +else
  1860. +  echo "$ac_t""no" 1>&6
  1861. +fi
  1862.  done
  1863.  
  1864. -echo checking for unsigned characters
  1865. -cat > conftest.c <<EOF
  1866. +echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
  1867. +if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  1868. +  echo $ac_n "(cached) $ac_c" 1>&6
  1869. +else
  1870. +  if test "$GCC" = yes; then
  1871. +  # GCC predefines this symbol on systems where it applies.
  1872. +cat > conftest.$ac_ext <<EOF
  1873. +#line 1388 "configure"
  1874. +#include "confdefs.h"
  1875. +#ifdef __CHAR_UNSIGNED__
  1876. +  yes
  1877. +#endif
  1878. +
  1879. +EOF
  1880. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1881. +  egrep "yes" >/dev/null 2>&1; then
  1882. +  rm -rf conftest*
  1883. +  ac_cv_c_char_unsigned=yes
  1884. +else
  1885. +  rm -rf conftest*
  1886. +  ac_cv_c_char_unsigned=no
  1887. +fi
  1888. +rm -f conftest*
  1889. +
  1890. +else
  1891. +if test "$cross_compiling" = yes; then
  1892. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1893. +else
  1894. +cat > conftest.$ac_ext <<EOF
  1895. +#line 1410 "configure"
  1896. +#include "confdefs.h"
  1897.  /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1898. -#if !__STDC__
  1899. +#if !defined(__STDC__) || __STDC__ != 1
  1900.  #define volatile
  1901.  #endif
  1902.  main() {
  1903. -#ifdef __CHAR_UNSIGNED__
  1904. -  exit(1); /* No need to redefine it.  */
  1905. -#else
  1906.    volatile char c = 255; exit(c < 0);
  1907. -#endif
  1908.  }
  1909.  EOF
  1910. -eval $compile
  1911. +{ (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1912.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1913. -  {
  1914. -test -n "$verbose" && \
  1915. -echo '    defining' __CHAR_UNSIGNED__
  1916. -DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  1917. -}
  1918. +  ac_cv_c_char_unsigned=yes
  1919. +else
  1920. +  ac_cv_c_char_unsigned=no
  1921. +fi
  1922. +fi
  1923. +rm -fr conftest*
  1924. +fi
  1925. +fi
  1926. +
  1927. +echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
  1928. +if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  1929. +  cat >> confdefs.h <<\EOF
  1930. +#define __CHAR_UNSIGNED__ 1
  1931. +EOF
  1932.  
  1933.  fi
  1934. -rm -f conftest*
  1935.  
  1936. -prog='/* Ultrix mips cc rejects this.  */
  1937. +echo $ac_n "checking for working const""... $ac_c" 1>&6
  1938. +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1939. +  echo $ac_n "(cached) $ac_c" 1>&6
  1940. +else
  1941. +  cat > conftest.$ac_ext <<EOF
  1942. +#line 1444 "configure"
  1943. +#include "confdefs.h"
  1944. +
  1945. +int main() { return 0; }
  1946. +int t() {
  1947. +
  1948. +/* Ultrix mips cc rejects this.  */
  1949.  typedef int charset[2]; const charset x;
  1950.  /* SunOS 4.1.1 cc rejects this.  */
  1951.  char const *const *ccp;
  1952.  char **p;
  1953. +/* NEC SVR4.0.2 mips cc rejects this.  */
  1954. +struct point {int x, y;};
  1955. +static struct point const zero = {0,0};
  1956.  /* AIX XL C 1.02.0.0 rejects this.
  1957.     It does not let you subtract one const X* pointer from another in an arm
  1958.     of an if-expression whose if-part is not a constant expression */
  1959.  const char *g = "string";
  1960. -p = &g + (g ? g-g : 0);
  1961. +ccp = &g + (g ? g-g : 0);
  1962.  /* HPUX 7.0 cc rejects these. */
  1963.  ++ccp;
  1964.  p = (char**) ccp;
  1965. @@ -641,7 +1470,7 @@ ccp = (char const *const *) p;
  1966.    *t++ = 0;
  1967.  }
  1968.  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1969. -  int x[] = {25,17};
  1970. +  int x[] = {25, 17};
  1971.    const int *foo = &x[0];
  1972.    ++foo;
  1973.  }
  1974. @@ -654,27 +1483,39 @@ ccp = (char const *const *) p;
  1975.       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1976.    struct s { int j; const int *ap[3]; };
  1977.    struct s *b; b->j = 5;
  1978. -}'
  1979. -echo checking for working const
  1980. -cat > conftest.c <<EOF
  1981. +}
  1982. +{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1983. +  const int foo = 10;
  1984. +}
  1985.  
  1986. -int main() { exit(0); }
  1987. -int t() { $prog }
  1988. +; return 0; }
  1989.  EOF
  1990. -if eval $compile; then
  1991. -  :
  1992. +if { (eval echo configure:1494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1993. +  rm -rf conftest*
  1994. +  ac_cv_c_const=yes
  1995.  else
  1996. -  {
  1997. -test -n "$verbose" && \
  1998. -echo '    defining' const to be 'empty'
  1999. -DEFS="$DEFS -Dconst="
  2000. -}
  2001. -
  2002. +  rm -rf conftest*
  2003. +  ac_cv_c_const=no
  2004.  fi
  2005.  rm -f conftest*
  2006.  
  2007. +fi
  2008. +
  2009. +echo "$ac_t""$ac_cv_c_const" 1>&6
  2010. +if test $ac_cv_c_const = no; then
  2011. +  cat >> confdefs.h <<\EOF
  2012. +#define const 
  2013. +EOF
  2014. +
  2015. +fi
  2016. +
  2017.  echo checking for working mmap
  2018. -cat > conftest.c <<EOF
  2019. +if test "$cross_compiling" = yes; then
  2020. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2021. +else
  2022. +cat > conftest.$ac_ext <<EOF
  2023. +#line 1518 "configure"
  2024. +#include "confdefs.h"
  2025.  
  2026.  #include <fcntl.h>
  2027.  #include <sys/types.h>
  2028. @@ -728,98 +1569,222 @@ main()
  2029.  }
  2030.  
  2031.  EOF
  2032. -eval $compile
  2033. +{ (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2034.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2035. -  {
  2036. -test -n "$verbose" && \
  2037. -echo '    defining' HAVE_WORKING_MMAP
  2038. -DEFS="$DEFS -DHAVE_WORKING_MMAP=1"
  2039. -}
  2040. +  cat >> confdefs.h <<\EOF
  2041. +#define HAVE_WORKING_MMAP 1
  2042. +EOF
  2043.  
  2044.  fi
  2045. -rm -f conftest*
  2046. -if test -n "$prefix"; then
  2047. -  test -z "$exec_prefix" && exec_prefix='${prefix}'
  2048. -  prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2049. -fi
  2050. -if test -n "$exec_prefix"; then
  2051. -  prsub="$prsub
  2052. -s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%\
  2053. -exec_prefix\\1=\\2$exec_prefix%"
  2054. -fi
  2055. -DEFS="`echo \"$DEFS\" | sed 's%[&\\\]%\\\&%g'`"
  2056. -
  2057. -trap 'rm -f config.status; exit 1' 1 3 15
  2058. -echo creating config.status
  2059. -rm -f config.status
  2060. -cat > config.status <<EOF
  2061. -#!/bin/sh
  2062. +fi
  2063. +rm -fr conftest*
  2064. +trap '' 1 2 15
  2065. +cat > confcache <<\EOF
  2066. +# This file is a shell script that caches the results of configure
  2067. +# tests run on this system so they can be shared between configure
  2068. +# scripts and configure runs.  It is not useful on other systems.
  2069. +# If it contains results you don't want to keep, you may remove or edit it.
  2070. +#
  2071. +# By default, configure uses ./config.cache as the cache file,
  2072. +# creating it if it does not exist already.  You can give configure
  2073. +# the --cache-file=FILE option to use a different cache file; that is
  2074. +# what configure does when it calls configure scripts in
  2075. +# subdirectories, so they share the cache.
  2076. +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  2077. +# config.status only pays attention to the cache file if you give it the
  2078. +# --recheck option to rerun configure.
  2079. +#
  2080. +EOF
  2081. +# Ultrix sh set writes to stderr and can't be redirected directly,
  2082. +# and sets the high bit in the cache file unless we assign to the vars.
  2083. +(set) 2>&1 |
  2084. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2085. +  >> confcache
  2086. +if cmp -s $cache_file confcache; then
  2087. +  :
  2088. +else
  2089. +  if test -w $cache_file; then
  2090. +    echo "updating cache $cache_file"
  2091. +    cat confcache > $cache_file
  2092. +  else
  2093. +    echo "not updating unwritable cache $cache_file"
  2094. +  fi
  2095. +fi
  2096. +rm -f confcache
  2097. +
  2098. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2099. +
  2100. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2101. +# Let make expand exec_prefix.
  2102. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2103. +
  2104. +# Any assignment to VPATH causes Sun make to only execute
  2105. +# the first set of double-colon rules, so remove it if not needed.
  2106. +# If there is a colon in the path, we need to keep it.
  2107. +if test "x$srcdir" = x.; then
  2108. +  ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2109. +fi
  2110. +
  2111. +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2112. +
  2113. +# Transform confdefs.h into DEFS.
  2114. +# Protect against shell expansion while executing Makefile rules.
  2115. +# Protect against Makefile macro expansion.
  2116. +cat > conftest.defs <<\EOF
  2117. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2118. +s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2119. +s%\[%\\&%g
  2120. +s%\]%\\&%g
  2121. +s%\$%$$%g
  2122. +EOF
  2123. +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2124. +rm -f conftest.defs
  2125. +
  2126. +
  2127. +# Without the "./", some shells look in PATH for config.status.
  2128. +: ${CONFIG_STATUS=./config.status}
  2129. +
  2130. +echo creating $CONFIG_STATUS
  2131. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  2132. +# being executed, so just move it out of the way instead.
  2133. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2134. +cat > $CONFIG_STATUS <<EOF
  2135. +#! /bin/sh
  2136.  # Generated automatically by configure.
  2137.  # Run this file to recreate the current configuration.
  2138.  # This directory was configured as follows,
  2139.  # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2140.  #
  2141. -# $0 $*
  2142. +# $0 $ac_configure_args
  2143. +#
  2144. +# Compiler output produced by configure, useful for debugging
  2145. +# configure, is in ./config.log if it exists.
  2146.  
  2147. -for arg
  2148. +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2149. +for ac_option
  2150.  do
  2151. -  case "\$arg" in
  2152. -    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2153. -    exec /bin/sh $0 $* ;;
  2154. -    *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  2155. +  case "\$ac_option" in
  2156. +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2157. +    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2158. +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2159. +  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2160. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2161. +    exit 0 ;;
  2162. +  -help | --help | --hel | --he | --h)
  2163. +    echo "\$ac_cs_usage"; exit 0 ;;
  2164. +  *) echo "\$ac_cs_usage"; exit 1 ;;
  2165.    esac
  2166.  done
  2167.  
  2168. -trap 'rm -f Makefile; exit 1' 1 3 15
  2169. -AWK='$AWK'
  2170. -CC='$CC'
  2171. -CPP='$CPP'
  2172. -INSTALL='$INSTALL'
  2173. -INSTALL_PROGRAM='$INSTALL_PROGRAM'
  2174. -INSTALL_DATA='$INSTALL_DATA'
  2175. -ALLOCA='$ALLOCA'
  2176. -LIBS='$LIBS'
  2177. -srcdir='$srcdir'
  2178. -DEFS='$DEFS'
  2179. -prefix='$prefix'
  2180. -exec_prefix='$exec_prefix'
  2181. -prsub='$prsub'
  2182. -EOF
  2183. -cat >> config.status <<\EOF
  2184. -
  2185. -top_srcdir=$srcdir
  2186. +ac_given_srcdir=$srcdir
  2187. +ac_given_INSTALL="$INSTALL"
  2188.  
  2189. -# Allow make-time overrides of the generated file list.
  2190. -test -n "$gen_files" || gen_files="Makefile"
  2191. +trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2192. +EOF
  2193. +cat >> $CONFIG_STATUS <<EOF
  2194.  
  2195. -for file in .. $gen_files; do if [ "x$file" != "x.." ]; then
  2196. -  srcdir=$top_srcdir
  2197. -  # Remove last slash and all that follows it.  Not all systems have dirname.
  2198. -  dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  2199. -  if test "$dir" != "$file"; then
  2200. -    test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  2201. -    test ! -d $dir && mkdir $dir
  2202. -  fi
  2203. -  echo creating $file
  2204. -  rm -f $file
  2205. -  echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  2206. -  sed -e "
  2207. -$prsub
  2208. +# Protect against being on the right side of a sed subst in config.status.
  2209. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2210. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2211. +$ac_vpsub
  2212. +$extrasub
  2213. +s%@CFLAGS@%$CFLAGS%g
  2214. +s%@CPPFLAGS@%$CPPFLAGS%g
  2215. +s%@CXXFLAGS@%$CXXFLAGS%g
  2216. +s%@DEFS@%$DEFS%g
  2217. +s%@LDFLAGS@%$LDFLAGS%g
  2218. +s%@LIBS@%$LIBS%g
  2219. +s%@exec_prefix@%$exec_prefix%g
  2220. +s%@prefix@%$prefix%g
  2221. +s%@program_transform_name@%$program_transform_name%g
  2222. +s%@bindir@%$bindir%g
  2223. +s%@sbindir@%$sbindir%g
  2224. +s%@libexecdir@%$libexecdir%g
  2225. +s%@datadir@%$datadir%g
  2226. +s%@sysconfdir@%$sysconfdir%g
  2227. +s%@sharedstatedir@%$sharedstatedir%g
  2228. +s%@localstatedir@%$localstatedir%g
  2229. +s%@libdir@%$libdir%g
  2230. +s%@includedir@%$includedir%g
  2231. +s%@oldincludedir@%$oldincludedir%g
  2232. +s%@infodir@%$infodir%g
  2233. +s%@guidedir@%$guidedir%g
  2234. +s%@psdir@%$psdir%g
  2235. +s%@dvidir@%$dvidir%g
  2236. +s%@mandir@%$mandir%g
  2237.  s%@AWK@%$AWK%g
  2238.  s%@CC@%$CC%g
  2239.  s%@CPP@%$CPP%g
  2240. -s%@INSTALL@%$INSTALL%g
  2241.  s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2242.  s%@INSTALL_DATA@%$INSTALL_DATA%g
  2243.  s%@ALLOCA@%$ALLOCA%g
  2244. -s%@LIBS@%$LIBS%g
  2245. +
  2246. +CEOF
  2247. +EOF
  2248. +cat >> $CONFIG_STATUS <<EOF
  2249. +
  2250. +CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2251. +EOF
  2252. +cat >> $CONFIG_STATUS <<\EOF
  2253. +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2254. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  2255. +  case "$ac_file" in
  2256. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2257. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2258. +  *) ac_file_in="${ac_file}.in" ;;
  2259. +  esac
  2260. +
  2261. +  # Adjust relative srcdir, etc. for subdirectories.
  2262. +
  2263. +  # Remove last slash and all that follows it.  Not all systems have dirname.
  2264. +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2265. +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2266. +    # The file is in a subdirectory.
  2267. +    test ! -d "$ac_dir" && mkdir "$ac_dir"
  2268. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2269. +    # A "../" for each directory in $ac_dir_suffix.
  2270. +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2271. +  else
  2272. +    ac_dir_suffix= ac_dots=
  2273. +  fi
  2274. +
  2275. +  case "$ac_given_srcdir" in
  2276. +  .)  srcdir=.
  2277. +      if test -z "$ac_dots"; then top_srcdir=.
  2278. +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2279. +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2280. +  *) # Relative path.
  2281. +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2282. +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2283. +  esac
  2284. +
  2285. +  case "$ac_given_INSTALL" in
  2286. +  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2287. +  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2288. +  esac
  2289. +  echo creating "$ac_file"
  2290. +  rm -f "$ac_file"
  2291. +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2292. +  case "$ac_file" in
  2293. +  *Makefile*) ac_comsub="1i\\
  2294. +# $configure_input" ;;
  2295. +  *) ac_comsub= ;;
  2296. +  esac
  2297. +  sed -e "$ac_comsub
  2298. +s%@configure_input@%$configure_input%g
  2299.  s%@srcdir@%$srcdir%g
  2300. -s%@DEFS@%$DEFS%
  2301. -" $top_srcdir/${file}.in >> $file
  2302. +s%@top_srcdir@%$top_srcdir%g
  2303. +s%@INSTALL@%$INSTALL%g
  2304. +" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2305.  fi; done
  2306. +rm -f conftest.subs
  2307. +
  2308. +
  2309.  
  2310.  exit 0
  2311.  EOF
  2312. -chmod +x config.status
  2313. -test -n "$no_create" || ./config.status
  2314. +chmod +x $CONFIG_STATUS
  2315. +rm -f CONFIG.STATUS.old
  2316. +rm -fr confdefs* $ac_clean_files
  2317. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2318.  
  2319. diff -rup --new-file baseline/fsf/grep/configure.in amiga/fsf/grep/configure.in
  2320. --- baseline/fsf/grep/configure.in    Fri May 21 21:20:16 1993
  2321. +++ amiga/fsf/grep/configure.in    Sat Sep 28 00:00:00 1996
  2322. @@ -7,8 +7,8 @@ AC_PROG_CPP
  2323.  AC_PROG_INSTALL
  2324.  AC_STDC_HEADERS
  2325.  AC_HAVE_HEADERS(string.h sys/param.h)
  2326. -AC_MEMORY_H
  2327. -AC_UNISTD_H
  2328. +AC_HAVE_HEADERS(memory.h)
  2329. +AC_HAVE_HEADERS(unistd.h)
  2330.  AC_SIZE_T
  2331.  AC_ALLOCA
  2332.  AC_HAVE_FUNCS(getpagesize memchr strerror valloc)
  2333. diff -rup --new-file baseline/fsf/grep/dfa.h amiga/fsf/grep/dfa.h
  2334. --- baseline/fsf/grep/dfa.h    Sun Apr 11 14:17:22 1993
  2335. +++ amiga/fsf/grep/dfa.h    Sat Sep 28 00:00:00 1996
  2336. @@ -23,13 +23,17 @@
  2337.     name space. */
  2338.  
  2339.  /* Number of bits in an unsigned char. */
  2340. +#ifndef CHARBITS
  2341.  #define CHARBITS 8
  2342. +#endif
  2343.  
  2344.  /* First integer value that is greater than any character code. */
  2345.  #define NOTCHAR (1 << CHARBITS)
  2346.  
  2347.  /* INTBITS need not be exact, just a lower bound. */
  2348. +#ifndef INTBITS
  2349.  #define INTBITS (CHARBITS * sizeof (int))
  2350. +#endif
  2351.  
  2352.  /* Number of ints required to hold a bit for every character. */
  2353.  #define CHARCLASS_INTS ((NOTCHAR + INTBITS - 1) / INTBITS)
  2354. diff -rup --new-file baseline/fsf/grep/grep.c amiga/fsf/grep/grep.c
  2355. --- baseline/fsf/grep/grep.c    Sat May 22 22:52:52 1993
  2356. +++ amiga/fsf/grep/grep.c    Sat Sep 28 00:00:00 1996
  2357. @@ -34,13 +34,13 @@ extern void free();
  2358.  
  2359.  #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
  2360.  #include <string.h>
  2361. -#ifdef NEED_MEMORY_H
  2362. +#ifdef HAVE_MEMORY_H
  2363.  #include <memory.h>
  2364.  #endif
  2365.  #else
  2366.  #include <strings.h>
  2367.  #ifdef __STDC__
  2368. -extern void *memchr();
  2369. +extern void *memchr(void *, int, size_t);
  2370.  #else
  2371.  extern char *memchr();
  2372.  #endif
  2373. diff -rup --new-file baseline/fsf/grep/kwset.c amiga/fsf/grep/kwset.c
  2374. --- baseline/fsf/grep/kwset.c    Sun May  2 12:26:20 1993
  2375. +++ amiga/fsf/grep/kwset.c    Sat Sep 28 00:00:00 1996
  2376. @@ -45,7 +45,7 @@ extern void free();
  2377.  
  2378.  #ifdef HAVE_MEMCHR
  2379.  #include <string.h>
  2380. -#ifdef NEED_MEMORY_H
  2381. +#ifdef HAVE_MEMORY_H
  2382.  #include <memory.h>
  2383.  #endif
  2384.  #else
  2385. diff -rup --new-file baseline/fsf/grep/manifests/bin amiga/fsf/grep/manifests/bin
  2386. --- baseline/fsf/grep/manifests/bin    Wed Dec 31 17:00:00 1969
  2387. +++ amiga/fsf/grep/manifests/bin    Sat Sep 28 00:00:00 1996
  2388. @@ -0,0 +1,6 @@
  2389. +COPYING
  2390. +COPYING.info
  2391. +bin/egrep
  2392. +bin/fgrep
  2393. +bin/grep
  2394. +man/man1/grep.1
  2395. diff -rup --new-file baseline/fsf/grep/manifests/src amiga/fsf/grep/manifests/src
  2396. --- baseline/fsf/grep/manifests/src    Wed Dec 31 17:00:00 1969
  2397. +++ amiga/fsf/grep/manifests/src    Sat Sep 28 00:00:00 1996
  2398. @@ -0,0 +1,37 @@
  2399. +fsf/grep/AUTHORS
  2400. +fsf/grep/COPYING
  2401. +fsf/grep/ChangeLog
  2402. +fsf/grep/INSTALL
  2403. +fsf/grep/INSTALL.VMS
  2404. +fsf/grep/MANIFEST
  2405. +fsf/grep/Makefile.in
  2406. +fsf/grep/NEWS
  2407. +fsf/grep/PROJECTS
  2408. +fsf/grep/Product-Info
  2409. +fsf/grep/README
  2410. +fsf/grep/alloca.c
  2411. +fsf/grep/configure
  2412. +fsf/grep/configure.in
  2413. +fsf/grep/dfa.c
  2414. +fsf/grep/dfa.h
  2415. +fsf/grep/getopt.c
  2416. +fsf/grep/getopt.h
  2417. +fsf/grep/getpagesize.h
  2418. +fsf/grep/grep.c
  2419. +fsf/grep/grep.h
  2420. +fsf/grep/grep.man
  2421. +fsf/grep/kwset.c
  2422. +fsf/grep/kwset.h
  2423. +fsf/grep/make.com
  2424. +fsf/grep/manifests/bin
  2425. +fsf/grep/manifests/src
  2426. +fsf/grep/obstack.c
  2427. +fsf/grep/obstack.h
  2428. +fsf/grep/regex.c
  2429. +fsf/grep/regex.h
  2430. +fsf/grep/search.c
  2431. +fsf/grep/tests/check.sh
  2432. +fsf/grep/tests/khadafy.lines
  2433. +fsf/grep/tests/khadafy.regexp
  2434. +fsf/grep/tests/scriptgen.awk
  2435. +fsf/grep/tests/spencer.tests
  2436. diff -rup --new-file baseline/fsf/grep/search.c amiga/fsf/grep/search.c
  2437. --- baseline/fsf/grep/search.c    Sun May  2 14:02:00 1993
  2438. +++ amiga/fsf/grep/search.c    Sat Sep 28 00:00:00 1996
  2439. @@ -30,7 +30,7 @@ extern char *malloc();
  2440.  
  2441.  #ifdef HAVE_MEMCHR
  2442.  #include <string.h>
  2443. -#ifdef NEED_MEMORY_H
  2444. +#ifdef HAVE_MEMORY_H
  2445.  #include <memory.h>
  2446.  #endif
  2447.  #else
  2448.