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