source: rtems/configure @ 1670eede

4.104.114.84.95
Last change on this file since 1670eede was 1670eede, checked in by Joel Sherrill <joel.sherrill@…>, on 11/29/97 at 18:20:04

Changes from Ralf Corsepius (corsepiu@…) to automatically
generate the list of Makefiles in the configure script.

  • Property mode set to 100644
File size: 78.6 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-cross-host=HOST      host (cygnus)"
16ac_help="$ac_help
17\
18  --enable-gmake-print-directory    enable GNU Make's print directory"
19ac_help="$ac_help
20\
21  --disable-posix                   disable posix interface"
22ac_help="$ac_help
23\
24  --disable-ka9q                disable KA9Q TCP/IP stack"
25ac_help="$ac_help
26\
27  --disable-rtems-inlines           disable RTEMS inline functions (use macros)"
28ac_help="$ac_help
29\
30  --enable-cpp                           enable C++ support, and build the rtems++ library"
31ac_help="$ac_help
32\
33  --enable-gcc28                    enable use of gcc 2.8.x features"
34ac_help="$ac_help
35\
36  --enable-libcdir=directory        set the directory for the C library"
37ac_help="$ac_help
38\
39  --disable-tests                   disable tests"
40ac_help="$ac_help
41\
42  --enable-hwapi                    enable hardware API library"
43ac_help="$ac_help
44\
45  --enable-rtemsbsp=bsp1 bsp2 ..   prefix for cross-tools"
46
47# Initialize some variables set by options.
48# The variables have the same names as the options, with
49# dashes changed to underlines.
50build=NONE
51cache_file=./config.cache
52exec_prefix=NONE
53host=NONE
54no_create=
55nonopt=NONE
56no_recursion=
57prefix=NONE
58program_prefix=NONE
59program_suffix=NONE
60program_transform_name=s,x,x,
61silent=
62site=
63srcdir=
64target=NONE
65verbose=
66x_includes=NONE
67x_libraries=NONE
68bindir='${exec_prefix}/bin'
69sbindir='${exec_prefix}/sbin'
70libexecdir='${exec_prefix}/libexec'
71datadir='${prefix}/share'
72sysconfdir='${prefix}/etc'
73sharedstatedir='${prefix}/com'
74localstatedir='${prefix}/var'
75libdir='${exec_prefix}/lib'
76includedir='${prefix}/include'
77oldincludedir='/usr/include'
78infodir='${prefix}/info'
79mandir='${prefix}/man'
80
81# Initialize some other variables.
82subdirs=
83MFLAGS= MAKEFLAGS=
84# Maximum number of lines to put in a shell here document.
85ac_max_here_lines=12
86
87ac_prev=
88for ac_option
89do
90
91  # If the previous option needs an argument, assign it.
92  if test -n "$ac_prev"; then
93    eval "$ac_prev=\$ac_option"
94    ac_prev=
95    continue
96  fi
97
98  case "$ac_option" in
99  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100  *) ac_optarg= ;;
101  esac
102
103  # Accept the important Cygnus configure options, so we can diagnose typos.
104
105  case "$ac_option" in
106
107  -bindir | --bindir | --bindi | --bind | --bin | --bi)
108    ac_prev=bindir ;;
109  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110    bindir="$ac_optarg" ;;
111
112  -build | --build | --buil | --bui | --bu)
113    ac_prev=build ;;
114  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115    build="$ac_optarg" ;;
116
117  -cache-file | --cache-file | --cache-fil | --cache-fi \
118  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119    ac_prev=cache_file ;;
120  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122    cache_file="$ac_optarg" ;;
123
124  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125    ac_prev=datadir ;;
126  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127  | --da=*)
128    datadir="$ac_optarg" ;;
129
130  -disable-* | --disable-*)
131    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132    # Reject names that are not valid shell variable names.
133    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135    fi
136    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137    eval "enable_${ac_feature}=no" ;;
138
139  -enable-* | --enable-*)
140    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141    # Reject names that are not valid shell variable names.
142    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144    fi
145    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146    case "$ac_option" in
147      *=*) ;;
148      *) ac_optarg=yes ;;
149    esac
150    eval "enable_${ac_feature}='$ac_optarg'" ;;
151
152  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154  | --exec | --exe | --ex)
155    ac_prev=exec_prefix ;;
156  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158  | --exec=* | --exe=* | --ex=*)
159    exec_prefix="$ac_optarg" ;;
160
161  -gas | --gas | --ga | --g)
162    # Obsolete; use --with-gas.
163    with_gas=yes ;;
164
165  -help | --help | --hel | --he)
166    # Omit some internal or obsolete options to make the list less imposing.
167    # This message is too long to be a string in the A/UX 3.1 sh.
168    cat << EOF
169Usage: configure [options] [host]
170Options: [defaults in brackets after descriptions]
171Configuration:
172  --cache-file=FILE       cache test results in FILE
173  --help                  print this message
174  --no-create             do not create output files
175  --quiet, --silent       do not print \`checking...' messages
176  --version               print the version of autoconf that created configure
177Directory and file names:
178  --prefix=PREFIX         install architecture-independent files in PREFIX
179                          [$ac_default_prefix]
180  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
181                          [same as prefix]
182  --bindir=DIR            user executables in DIR [EPREFIX/bin]
183  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
184  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
185  --datadir=DIR           read-only architecture-independent data in DIR
186                          [PREFIX/share]
187  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
188  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
189                          [PREFIX/com]
190  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
191  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
192  --includedir=DIR        C header files in DIR [PREFIX/include]
193  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
194  --infodir=DIR           info documentation in DIR [PREFIX/info]
195  --mandir=DIR            man documentation in DIR [PREFIX/man]
196  --srcdir=DIR            find the sources in DIR [configure dir or ..]
197  --program-prefix=PREFIX prepend PREFIX to installed program names
198  --program-suffix=SUFFIX append SUFFIX to installed program names
199  --program-transform-name=PROGRAM
200                          run sed PROGRAM on installed program names
201EOF
202    cat << EOF
203Host type:
204  --build=BUILD           configure for building on BUILD [BUILD=HOST]
205  --host=HOST             configure for HOST [guessed]
206  --target=TARGET         configure for TARGET [TARGET=HOST]
207Features and packages:
208  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
209  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
210  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
211  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
212  --x-includes=DIR        X include files are in DIR
213  --x-libraries=DIR       X library files are in DIR
214EOF
215    if test -n "$ac_help"; then
216      echo "--enable and --with options recognized:$ac_help"
217    fi
218    exit 0 ;;
219
220  -host | --host | --hos | --ho)
221    ac_prev=host ;;
222  -host=* | --host=* | --hos=* | --ho=*)
223    host="$ac_optarg" ;;
224
225  -includedir | --includedir | --includedi | --included | --include \
226  | --includ | --inclu | --incl | --inc)
227    ac_prev=includedir ;;
228  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229  | --includ=* | --inclu=* | --incl=* | --inc=*)
230    includedir="$ac_optarg" ;;
231
232  -infodir | --infodir | --infodi | --infod | --info | --inf)
233    ac_prev=infodir ;;
234  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235    infodir="$ac_optarg" ;;
236
237  -libdir | --libdir | --libdi | --libd)
238    ac_prev=libdir ;;
239  -libdir=* | --libdir=* | --libdi=* | --libd=*)
240    libdir="$ac_optarg" ;;
241
242  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243  | --libexe | --libex | --libe)
244    ac_prev=libexecdir ;;
245  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246  | --libexe=* | --libex=* | --libe=*)
247    libexecdir="$ac_optarg" ;;
248
249  -localstatedir | --localstatedir | --localstatedi | --localstated \
250  | --localstate | --localstat | --localsta | --localst \
251  | --locals | --local | --loca | --loc | --lo)
252    ac_prev=localstatedir ;;
253  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256    localstatedir="$ac_optarg" ;;
257
258  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259    ac_prev=mandir ;;
260  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261    mandir="$ac_optarg" ;;
262
263  -nfp | --nfp | --nf)
264    # Obsolete; use --without-fp.
265    with_fp=no ;;
266
267  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268  | --no-cr | --no-c)
269    no_create=yes ;;
270
271  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273    no_recursion=yes ;;
274
275  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277  | --oldin | --oldi | --old | --ol | --o)
278    ac_prev=oldincludedir ;;
279  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282    oldincludedir="$ac_optarg" ;;
283
284  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285    ac_prev=prefix ;;
286  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287    prefix="$ac_optarg" ;;
288
289  -program-prefix | --program-prefix | --program-prefi | --program-pref \
290  | --program-pre | --program-pr | --program-p)
291    ac_prev=program_prefix ;;
292  -program-prefix=* | --program-prefix=* | --program-prefi=* \
293  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294    program_prefix="$ac_optarg" ;;
295
296  -program-suffix | --program-suffix | --program-suffi | --program-suff \
297  | --program-suf | --program-su | --program-s)
298    ac_prev=program_suffix ;;
299  -program-suffix=* | --program-suffix=* | --program-suffi=* \
300  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301    program_suffix="$ac_optarg" ;;
302
303  -program-transform-name | --program-transform-name \
304  | --program-transform-nam | --program-transform-na \
305  | --program-transform-n | --program-transform- \
306  | --program-transform | --program-transfor \
307  | --program-transfo | --program-transf \
308  | --program-trans | --program-tran \
309  | --progr-tra | --program-tr | --program-t)
310    ac_prev=program_transform_name ;;
311  -program-transform-name=* | --program-transform-name=* \
312  | --program-transform-nam=* | --program-transform-na=* \
313  | --program-transform-n=* | --program-transform-=* \
314  | --program-transform=* | --program-transfor=* \
315  | --program-transfo=* | --program-transf=* \
316  | --program-trans=* | --program-tran=* \
317  | --progr-tra=* | --program-tr=* | --program-t=*)
318    program_transform_name="$ac_optarg" ;;
319
320  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321  | -silent | --silent | --silen | --sile | --sil)
322    silent=yes ;;
323
324  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325    ac_prev=sbindir ;;
326  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327  | --sbi=* | --sb=*)
328    sbindir="$ac_optarg" ;;
329
330  -sharedstatedir | --sharedstatedir | --sharedstatedi \
331  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332  | --sharedst | --shareds | --shared | --share | --shar \
333  | --sha | --sh)
334    ac_prev=sharedstatedir ;;
335  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338  | --sha=* | --sh=*)
339    sharedstatedir="$ac_optarg" ;;
340
341  -site | --site | --sit)
342    ac_prev=site ;;
343  -site=* | --site=* | --sit=*)
344    site="$ac_optarg" ;;
345
346  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347    ac_prev=srcdir ;;
348  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349    srcdir="$ac_optarg" ;;
350
351  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352  | --syscon | --sysco | --sysc | --sys | --sy)
353    ac_prev=sysconfdir ;;
354  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356    sysconfdir="$ac_optarg" ;;
357
358  -target | --target | --targe | --targ | --tar | --ta | --t)
359    ac_prev=target ;;
360  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361    target="$ac_optarg" ;;
362
363  -v | -verbose | --verbose | --verbos | --verbo | --verb)
364    verbose=yes ;;
365
366  -version | --version | --versio | --versi | --vers)
367    echo "configure generated by autoconf version 2.12"
368    exit 0 ;;
369
370  -with-* | --with-*)
371    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372    # Reject names that are not valid shell variable names.
373    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375    fi
376    ac_package=`echo $ac_package| sed 's/-/_/g'`
377    case "$ac_option" in
378      *=*) ;;
379      *) ac_optarg=yes ;;
380    esac
381    eval "with_${ac_package}='$ac_optarg'" ;;
382
383  -without-* | --without-*)
384    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385    # Reject names that are not valid shell variable names.
386    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388    fi
389    ac_package=`echo $ac_package| sed 's/-/_/g'`
390    eval "with_${ac_package}=no" ;;
391
392  --x)
393    # Obsolete; use --with-x.
394    with_x=yes ;;
395
396  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397  | --x-incl | --x-inc | --x-in | --x-i)
398    ac_prev=x_includes ;;
399  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401    x_includes="$ac_optarg" ;;
402
403  -x-libraries | --x-libraries | --x-librarie | --x-librari \
404  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405    ac_prev=x_libraries ;;
406  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408    x_libraries="$ac_optarg" ;;
409
410  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411    ;;
412
413  *)
414    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415      echo "configure: warning: $ac_option: invalid host type" 1>&2
416    fi
417    if test "x$nonopt" != xNONE; then
418      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419    fi
420    nonopt="$ac_option"
421    ;;
422
423  esac
424done
425
426if test -n "$ac_prev"; then
427  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428fi
429
430trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431
432# File descriptor usage:
433# 0 standard input
434# 1 file creation
435# 2 errors and warnings
436# 3 some systems may open it to /dev/tty
437# 4 used on the Kubota Titan
438# 6 checking for... messages and results
439# 5 compiler messages saved in config.log
440if test "$silent" = yes; then
441  exec 6>/dev/null
442else
443  exec 6>&1
444fi
445exec 5>./config.log
446
447echo "\
448This file contains any messages produced by compilers while
449running configure, to aid debugging if configure makes a mistake.
450" 1>&5
451
452# Strip out --no-create and --no-recursion so they do not pile up.
453# Also quote any args containing shell metacharacters.
454ac_configure_args=
455for ac_arg
456do
457  case "$ac_arg" in
458  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459  | --no-cr | --no-c) ;;
460  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465  esac
466done
467
468# NLS nuisances.
469# Only set these to C if already set.  These must not be set unconditionally
470# because not all systems understand e.g. LANG=C (notably SCO).
471# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472# Non-C LC_CTYPE values break the ctype check.
473if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
474if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
477
478# confdefs.h avoids OS command line length limits that DEFS can exceed.
479rm -rf conftest* confdefs.h
480# AIX cpp loses on an empty file, so make sure it contains at least a newline.
481echo > confdefs.h
482
483# A filename unique to this package, relative to the directory that
484# configure is in, which we can look for to find out if srcdir is correct.
485ac_unique_file=README
486
487# Find the source files, if location was not specified.
488if test -z "$srcdir"; then
489  ac_srcdir_defaulted=yes
490  # Try the directory containing this script, then its parent.
491  ac_prog=$0
492  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494  srcdir=$ac_confdir
495  if test ! -r $srcdir/$ac_unique_file; then
496    srcdir=..
497  fi
498else
499  ac_srcdir_defaulted=no
500fi
501if test ! -r $srcdir/$ac_unique_file; then
502  if test "$ac_srcdir_defaulted" = yes; then
503    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504  else
505    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506  fi
507fi
508srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509
510# Prefer explicitly selected file to automatically selected ones.
511if test -z "$CONFIG_SITE"; then
512  if test "x$prefix" != xNONE; then
513    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514  else
515    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516  fi
517fi
518for ac_site_file in $CONFIG_SITE; do
519  if test -r "$ac_site_file"; then
520    echo "loading site script $ac_site_file"
521    . "$ac_site_file"
522  fi
523done
524
525if test -r "$cache_file"; then
526  echo "loading cache $cache_file"
527  . $cache_file
528else
529  echo "creating cache $cache_file"
530  > $cache_file
531fi
532
533ac_ext=c
534# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535ac_cpp='$CPP $CPPFLAGS'
536ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538cross_compiling=$ac_cv_prog_cc_cross
539
540if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543    ac_n= ac_c='
544' ac_t='        '
545  else
546    ac_n=-n ac_c= ac_t=
547  fi
548else
549  ac_n= ac_c='\c' ac_t=
550fi
551
552
553
554i386_mk="c/src/exec/score/cpu/i386/Makefile \
555c/src/lib/libbsp/i386/Makefile \
556c/src/lib/libbsp/i386/force386/Makefile \
557c/src/lib/libbsp/i386/force386/clock/Makefile \
558c/src/lib/libbsp/i386/force386/console/Makefile \
559c/src/lib/libbsp/i386/force386/include/Makefile \
560c/src/lib/libbsp/i386/force386/shmsupp/Makefile \
561c/src/lib/libbsp/i386/force386/startup/Makefile \
562c/src/lib/libbsp/i386/force386/timer/Makefile \
563c/src/lib/libbsp/i386/force386/wrapup/Makefile \
564c/src/lib/libbsp/i386/i386ex/Makefile \
565c/src/lib/libbsp/i386/i386ex/clock/Makefile \
566c/src/lib/libbsp/i386/i386ex/console/Makefile \
567c/src/lib/libbsp/i386/i386ex/include/Makefile \
568c/src/lib/libbsp/i386/i386ex/startup/Makefile \
569c/src/lib/libbsp/i386/i386ex/timer/Makefile \
570c/src/lib/libbsp/i386/i386ex/wrapup/Makefile \
571c/src/lib/start/i386/Makefile"
572
573i386_go32_mk="c/src/exec/score/cpu/i386/Makefile \
574c/src/lib/libbsp/i386/Makefile \
575c/src/lib/libbsp/i386/go32/Makefile \
576c/src/lib/libbsp/i386/go32/clock/Makefile \
577c/src/lib/libbsp/i386/go32/console/Makefile \
578c/src/lib/libbsp/i386/go32/include/Makefile \
579c/src/lib/libbsp/i386/go32/startup/Makefile \
580c/src/lib/libbsp/i386/go32/timer/Makefile \
581c/src/lib/libbsp/i386/go32/wrapup/Makefile"
582
583ka9q_mk="c/src/lib/libka9q/Makefile"
584
585rtemscpp_mk="c/src/lib/librtems++/Makefile"
586
587hwapi_mk="\
588c/src/lib/libhwapi/Makefile \
589c/src/lib/libhwapi/eeprom/Makefile \
590c/src/lib/libhwapi/eeprom/wrapup/Makefile \
591c/src/lib/libhwapi/eeprom/eeprom/Makefile \
592c/src/lib/libhwapi/drivers/Makefile \
593c/src/lib/libhwapi/drivers/vmebus/Makefile \
594c/src/lib/libhwapi/drivers/vmebus/dmv202/Makefile \
595c/src/lib/libhwapi/drivers/vmebus/dmv536/Makefile \
596c/src/lib/libhwapi/drivers/vmebus/dmv666/Makefile \
597c/src/lib/libhwapi/drivers/vmebus/wrapup/Makefile \
598c/src/lib/libhwapi/serial/Makefile \
599c/src/lib/libhwapi/serial/default/Makefile \
600c/src/lib/libhwapi/serial/stream/Makefile \
601c/src/lib/libhwapi/serial/template/Makefile \
602c/src/lib/libhwapi/serial/wrapup/Makefile \
603c/src/lib/libhwapi/serial/channel/Makefile \
604c/src/lib/libhwapi/discrete/Makefile \
605c/src/lib/libhwapi/discrete/tools/Makefile \
606c/src/lib/libhwapi/discrete/relay/Makefile \
607c/src/lib/libhwapi/discrete/wrapup/Makefile \
608c/src/lib/libhwapi/discrete/greycode/Makefile \
609c/src/lib/libhwapi/discrete/discrete_in/Makefile \
610c/src/lib/libhwapi/discrete/discrete_out/Makefile \
611c/src/lib/libhwapi/discrete/discrete_input/Makefile \
612c/src/lib/libhwapi/discrete/discrete_output/Makefile \
613c/src/lib/libhwapi/discrete/discrete_flag/Makefile \
614c/src/lib/libhwapi/discrete/discrete_bitfield/Makefile \
615c/src/lib/libhwapi/analog/Makefile \
616c/src/lib/libhwapi/analog/dac/Makefile \
617c/src/lib/libhwapi/analog/wrapup/Makefile \
618c/src/lib/libhwapi/analog/linear_dac/Makefile \
619c/src/lib/libhwapi/analog/linear_adc/Makefile \
620c/src/lib/libhwapi/analog/adc/Makefile \
621c/src/lib/libhwapi/wrapup/Makefile \
622c/src/lib/libhwapi/support/Makefile \
623c/src/lib/libhwapi/support/chain/Makefile \
624c/src/lib/libhwapi/support/checksum/Makefile \
625c/src/lib/libhwapi/support/wrapup/Makefile \
626c/src/lib/libhwapi/support/dumpbuf/Makefile"
627
628tests_mk="c/src/tests/libtests/Makefile \
629c/src/tests/libtests/cpuuse/Makefile \
630c/src/tests/libtests/malloctest/Makefile \
631c/src/tests/libtests/monitor/Makefile \
632c/src/tests/libtests/rtmonuse/Makefile \
633c/src/tests/libtests/stackchk/Makefile \
634c/src/tests/libtests/termios/Makefile \
635c/src/tests/libtests/rtems++/Makefile \
636c/src/tests/mptests/Makefile \
637c/src/tests/mptests/mp01/Makefile \
638c/src/tests/mptests/mp01/node1/Makefile \
639c/src/tests/mptests/mp01/node2/Makefile \
640c/src/tests/mptests/mp02/Makefile \
641c/src/tests/mptests/mp02/node1/Makefile \
642c/src/tests/mptests/mp02/node2/Makefile \
643c/src/tests/mptests/mp03/Makefile \
644c/src/tests/mptests/mp03/node1/Makefile \
645c/src/tests/mptests/mp03/node2/Makefile \
646c/src/tests/mptests/mp04/Makefile \
647c/src/tests/mptests/mp04/node1/Makefile \
648c/src/tests/mptests/mp04/node2/Makefile \
649c/src/tests/mptests/mp05/Makefile \
650c/src/tests/mptests/mp05/node1/Makefile \
651c/src/tests/mptests/mp05/node2/Makefile \
652c/src/tests/mptests/mp06/Makefile \
653c/src/tests/mptests/mp06/node1/Makefile \
654c/src/tests/mptests/mp06/node2/Makefile \
655c/src/tests/mptests/mp07/Makefile \
656c/src/tests/mptests/mp07/node1/Makefile \
657c/src/tests/mptests/mp07/node2/Makefile \
658c/src/tests/mptests/mp08/Makefile \
659c/src/tests/mptests/mp08/node1/Makefile \
660c/src/tests/mptests/mp08/node2/Makefile \
661c/src/tests/mptests/mp09/Makefile \
662c/src/tests/mptests/mp09/node1/Makefile \
663c/src/tests/mptests/mp09/node2/Makefile \
664c/src/tests/mptests/mp10/Makefile \
665c/src/tests/mptests/mp10/node1/Makefile \
666c/src/tests/mptests/mp10/node2/Makefile \
667c/src/tests/mptests/mp11/Makefile \
668c/src/tests/mptests/mp11/node1/Makefile \
669c/src/tests/mptests/mp11/node2/Makefile \
670c/src/tests/mptests/mp12/Makefile \
671c/src/tests/mptests/mp12/node1/Makefile \
672c/src/tests/mptests/mp12/node2/Makefile \
673c/src/tests/mptests/mp13/Makefile \
674c/src/tests/mptests/mp13/node1/Makefile \
675c/src/tests/mptests/mp13/node2/Makefile \
676c/src/tests/mptests/mp14/Makefile \
677c/src/tests/mptests/mp14/node1/Makefile \
678c/src/tests/mptests/mp14/node2/Makefile \
679c/src/tests/psxtests/Makefile \
680c/src/tests/psxtests/psx01/Makefile \
681c/src/tests/psxtests/psx02/Makefile \
682c/src/tests/psxtests/psx03/Makefile \
683c/src/tests/psxtests/psx04/Makefile \
684c/src/tests/psxtests/psx05/Makefile \
685c/src/tests/psxtests/psx06/Makefile \
686c/src/tests/psxtests/psx07/Makefile \
687c/src/tests/psxtests/psx08/Makefile \
688c/src/tests/psxtests/psx09/Makefile \
689c/src/tests/psxtests/psx10/Makefile \
690c/src/tests/psxtests/psx11/Makefile \
691c/src/tests/psxtests/psx12/Makefile \
692c/src/tests/psxtests/psxhdrs/Makefile \
693c/src/tests/psxtests/support/Makefile \
694c/src/tests/psxtests/support/include/Makefile \
695c/src/tests/sptests/Makefile \
696c/src/tests/sptests/sp01/Makefile \
697c/src/tests/sptests/sp02/Makefile \
698c/src/tests/sptests/sp03/Makefile \
699c/src/tests/sptests/sp04/Makefile \
700c/src/tests/sptests/sp05/Makefile \
701c/src/tests/sptests/sp06/Makefile \
702c/src/tests/sptests/sp07/Makefile \
703c/src/tests/sptests/sp08/Makefile \
704c/src/tests/sptests/sp09/Makefile \
705c/src/tests/sptests/sp11/Makefile \
706c/src/tests/sptests/sp12/Makefile \
707c/src/tests/sptests/sp13/Makefile \
708c/src/tests/sptests/sp14/Makefile \
709c/src/tests/sptests/sp15/Makefile \
710c/src/tests/sptests/sp16/Makefile \
711c/src/tests/sptests/sp17/Makefile \
712c/src/tests/sptests/sp19/Makefile \
713c/src/tests/sptests/sp20/Makefile \
714c/src/tests/sptests/sp21/Makefile \
715c/src/tests/sptests/sp22/Makefile \
716c/src/tests/sptests/sp23/Makefile \
717c/src/tests/sptests/sp24/Makefile \
718c/src/tests/sptests/sp25/Makefile \
719c/src/tests/sptests/spfatal/Makefile \
720c/src/tests/sptests/spsize/Makefile \
721c/src/tests/tmtests/Makefile \
722c/src/tests/tmtests/include/Makefile \
723c/src/tests/tmtests/tm01/Makefile \
724c/src/tests/tmtests/tm02/Makefile \
725c/src/tests/tmtests/tm03/Makefile \
726c/src/tests/tmtests/tm04/Makefile \
727c/src/tests/tmtests/tm05/Makefile \
728c/src/tests/tmtests/tm06/Makefile \
729c/src/tests/tmtests/tm07/Makefile \
730c/src/tests/tmtests/tm08/Makefile \
731c/src/tests/tmtests/tm09/Makefile \
732c/src/tests/tmtests/tm10/Makefile \
733c/src/tests/tmtests/tm11/Makefile \
734c/src/tests/tmtests/tm12/Makefile \
735c/src/tests/tmtests/tm13/Makefile \
736c/src/tests/tmtests/tm14/Makefile \
737c/src/tests/tmtests/tm15/Makefile \
738c/src/tests/tmtests/tm16/Makefile \
739c/src/tests/tmtests/tm17/Makefile \
740c/src/tests/tmtests/tm18/Makefile \
741c/src/tests/tmtests/tm19/Makefile \
742c/src/tests/tmtests/tm20/Makefile \
743c/src/tests/tmtests/tm21/Makefile \
744c/src/tests/tmtests/tm22/Makefile \
745c/src/tests/tmtests/tm23/Makefile \
746c/src/tests/tmtests/tm24/Makefile \
747c/src/tests/tmtests/tm25/Makefile \
748c/src/tests/tmtests/tm26/Makefile \
749c/src/tests/tmtests/tm27/Makefile \
750c/src/tests/tmtests/tm28/Makefile \
751c/src/tests/tmtests/tm29/Makefile \
752c/src/tests/tmtests/tmck/Makefile \
753c/src/tests/tmtests/tmoverhd/Makefile"
754
755echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
756echo "configure:757: checking whether ${MAKE-make} sets \${MAKE}" >&5
757set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
758if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
759  echo $ac_n "(cached) $ac_c" 1>&6
760else
761  cat > conftestmake <<\EOF
762all:
763        @echo 'ac_maketemp="${MAKE}"'
764EOF
765# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
766eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
767if test -n "$ac_maketemp"; then
768  eval ac_cv_prog_make_${ac_make}_set=yes
769else
770  eval ac_cv_prog_make_${ac_make}_set=no
771fi
772rm -f conftestmake
773fi
774if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
775  echo "$ac_t""yes" 1>&6
776  SET_MAKE=
777else
778  echo "$ac_t""no" 1>&6
779  SET_MAKE="MAKE=${MAKE-make}"
780fi
781
782ac_aux_dir=
783for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
784  if test -f $ac_dir/install-sh; then
785    ac_aux_dir=$ac_dir
786    ac_install_sh="$ac_aux_dir/install-sh -c"
787    break
788  elif test -f $ac_dir/install.sh; then
789    ac_aux_dir=$ac_dir
790    ac_install_sh="$ac_aux_dir/install.sh -c"
791    break
792  fi
793done
794if test -z "$ac_aux_dir"; then
795  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
796fi
797ac_config_guess=$ac_aux_dir/config.guess
798ac_config_sub=$ac_aux_dir/config.sub
799ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
800
801
802# Do some error checking and defaulting for the host and target type.
803# The inputs are:
804#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
805#
806# The rules are:
807# 1. You are not allowed to specify --host, --target, and nonopt at the
808#    same time.
809# 2. Host defaults to nonopt.
810# 3. If nonopt is not specified, then host defaults to the current host,
811#    as determined by config.guess.
812# 4. Target and build default to nonopt.
813# 5. If nonopt is not specified, then target and build default to host.
814
815# The aliases save the names the user supplied, while $host etc.
816# will get canonicalized.
817case $host---$target---$nonopt in
818NONE---*---* | *---NONE---* | *---*---NONE) ;;
819*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
820esac
821
822
823# Make sure we can run config.sub.
824if $ac_config_sub sun4 >/dev/null 2>&1; then :
825else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
826fi
827
828echo $ac_n "checking host system type""... $ac_c" 1>&6
829echo "configure:830: checking host system type" >&5
830
831host_alias=$host
832case "$host_alias" in
833NONE)
834  case $nonopt in
835  NONE)
836    if host_alias=`$ac_config_guess`; then :
837    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
838    fi ;;
839  *) host_alias=$nonopt ;;
840  esac ;;
841esac
842
843host=`$ac_config_sub $host_alias`
844host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
845host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
846host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
847echo "$ac_t""$host" 1>&6
848
849echo $ac_n "checking target system type""... $ac_c" 1>&6
850echo "configure:851: checking target system type" >&5
851
852target_alias=$target
853case "$target_alias" in
854NONE)
855  case $nonopt in
856  NONE) target_alias=$host_alias ;;
857  *) target_alias=$nonopt ;;
858  esac ;;
859esac
860
861target=`$ac_config_sub $target_alias`
862target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
863target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
864target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
865echo "$ac_t""$target" 1>&6
866
867echo $ac_n "checking build system type""... $ac_c" 1>&6
868echo "configure:869: checking build system type" >&5
869
870build_alias=$build
871case "$build_alias" in
872NONE)
873  case $nonopt in
874  NONE) build_alias=$host_alias ;;
875  *) build_alias=$nonopt ;;
876  esac ;;
877esac
878
879build=`$ac_config_sub $build_alias`
880build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
881build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
882build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
883echo "$ac_t""$build" 1>&6
884
885test "$host_alias" != "$target_alias" &&
886  test "$program_prefix$program_suffix$program_transform_name" = \
887    NONENONEs,x,x, &&
888  program_prefix=${target_alias}-
889
890# Check whether --with-cross-host or --without-cross-host was given.
891if test "${with_cross_host+set}" = set; then
892  withval="$with_cross_host"
893  \
894host=$withval
895fi
896
897
898# Check whether --enable-gmake-print-directory or --disable-gmake-print-directory was given.
899if test "${enable_gmake_print_directory+set}" = set; then
900  enableval="$enable_gmake_print_directory"
901  \
902case "${enableval}" in
903  yes) RTEMS_USE_OWN_PDIR=no ;;
904  no) RTEMS_USE_OWN_PDIR=yes ;;
905  *)  { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; } ;;
906esac
907else
908  RTEMS_USE_OWN_PDIR=yes
909fi
910
911
912# Check whether --enable-posix or --disable-posix was given.
913if test "${enable_posix+set}" = set; then
914  enableval="$enable_posix"
915  \
916case "${enableval}" in
917  yes) RTEMS_HAS_POSIX_API=yes ;;
918  no) RTEMS_HAS_POSIX_API=no ;;
919  *)  { echo "configure: error: bad value ${enableval} for disable-posix option" 1>&2; exit 1; } ;;
920esac
921else
922  RTEMS_HAS_POSIX_API=yes
923fi
924
925
926# Check whether --enable-ka9q or --disable-ka9q was given.
927if test "${enable_ka9q+set}" = set; then
928  enableval="$enable_ka9q"
929  \
930case "${enableval}" in
931  yes) RTEMS_HAS_KA9Q=yes ;;
932  no) RTEMS_HAS_KA9Q=no ;;
933  *)  { echo "configure: error: bad value ${enableval} for disable-ka9q option" 1>&2; exit 1; } ;;
934esac
935else
936  RTEMS_HAS_KA9Q=yes
937fi
938
939
940# Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
941if test "${enable_rtems_inlines+set}" = set; then
942  enableval="$enable_rtems_inlines"
943  \
944case "${enableval}" in
945  yes) RTEMS_USE_MACROS=yes ;;
946  no) RTEMS_USE_MACROS=no ;;
947  *)  { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;
948esac
949else
950  RTEMS_USE_MACROS=no
951fi
952
953
954# Check whether --enable-cpp or --disable-cpp was given.
955if test "${enable_cpp+set}" = set; then
956  enableval="$enable_cpp"
957  \
958case "${enableval}" in
959  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
960  no) RTEMS_HAS_CPLUSPLUS=no ;;
961  *)  { echo "configure: error: bad value ${enableval} for enable-cpp option" 1>&2; exit 1; } ;;
962esac
963else
964  RTEMS_HAS_CPLUSPLUS=no
965fi
966
967
968# Check whether --enable-gcc28 or --disable-gcc28 was given.
969if test "${enable_gcc28+set}" = set; then
970  enableval="$enable_gcc28"
971  \
972case "${enableval}" in
973  yes) RTEMS_USE_GCC272=no ;;
974  no) RTEMS_USE_GCC272=yes ;;
975  *)  { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;;
976esac
977else
978  RTEMS_USE_GCC272=yes
979fi
980
981
982# Check whether --enable-libcdir or --disable-libcdir was given.
983if test "${enable_libcdir+set}" = set; then
984  enableval="$enable_libcdir"
985  \
986 RTEMS_LIBC_DIR="${enableval}" ; \
987test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
988fi
989
990
991RTEMS_PREFIX=${target_cpu}-${target_vendor}
992
993
994# Extract the first word of "cat", so it can be a program name with args.
995set dummy cat; ac_word=$2
996echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
997echo "configure:998: checking for $ac_word" >&5
998if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then
999  echo $ac_n "(cached) $ac_c" 1>&6
1000else
1001  case "$CAT" in
1002  /*)
1003  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
1004  ;;
1005  *)
1006  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1007  for ac_dir in $PATH; do
1008    test -z "$ac_dir" && ac_dir=.
1009    if test -f $ac_dir/$ac_word; then
1010      ac_cv_path_CAT="$ac_dir/$ac_word"
1011      break
1012    fi
1013  done
1014  IFS="$ac_save_ifs"
1015  ;;
1016esac
1017fi
1018CAT="$ac_cv_path_CAT"
1019if test -n "$CAT"; then
1020  echo "$ac_t""$CAT" 1>&6
1021else
1022  echo "$ac_t""no" 1>&6
1023fi
1024
1025# Extract the first word of "rm", so it can be a program name with args.
1026set dummy rm; ac_word=$2
1027echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1028echo "configure:1029: checking for $ac_word" >&5
1029if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1030  echo $ac_n "(cached) $ac_c" 1>&6
1031else
1032  case "$RM" in
1033  /*)
1034  ac_cv_path_RM="$RM" # Let the user override the test with a path.
1035  ;;
1036  *)
1037  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1038  for ac_dir in $PATH; do
1039    test -z "$ac_dir" && ac_dir=.
1040    if test -f $ac_dir/$ac_word; then
1041      ac_cv_path_RM="$ac_dir/$ac_word"
1042      break
1043    fi
1044  done
1045  IFS="$ac_save_ifs"
1046  ;;
1047esac
1048fi
1049RM="$ac_cv_path_RM"
1050if test -n "$RM"; then
1051  echo "$ac_t""$RM" 1>&6
1052else
1053  echo "$ac_t""no" 1>&6
1054fi
1055
1056# Extract the first word of "cp", so it can be a program name with args.
1057set dummy cp; ac_word=$2
1058echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1059echo "configure:1060: checking for $ac_word" >&5
1060if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1061  echo $ac_n "(cached) $ac_c" 1>&6
1062else
1063  case "$CP" in
1064  /*)
1065  ac_cv_path_CP="$CP" # Let the user override the test with a path.
1066  ;;
1067  *)
1068  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1069  for ac_dir in $PATH; do
1070    test -z "$ac_dir" && ac_dir=.
1071    if test -f $ac_dir/$ac_word; then
1072      ac_cv_path_CP="$ac_dir/$ac_word"
1073      break
1074    fi
1075  done
1076  IFS="$ac_save_ifs"
1077  ;;
1078esac
1079fi
1080CP="$ac_cv_path_CP"
1081if test -n "$CP"; then
1082  echo "$ac_t""$CP" 1>&6
1083else
1084  echo "$ac_t""no" 1>&6
1085fi
1086
1087# Extract the first word of "mv", so it can be a program name with args.
1088set dummy mv; ac_word=$2
1089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090echo "configure:1091: checking for $ac_word" >&5
1091if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1092  echo $ac_n "(cached) $ac_c" 1>&6
1093else
1094  case "$MV" in
1095  /*)
1096  ac_cv_path_MV="$MV" # Let the user override the test with a path.
1097  ;;
1098  *)
1099  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1100  for ac_dir in $PATH; do
1101    test -z "$ac_dir" && ac_dir=.
1102    if test -f $ac_dir/$ac_word; then
1103      ac_cv_path_MV="$ac_dir/$ac_word"
1104      break
1105    fi
1106  done
1107  IFS="$ac_save_ifs"
1108  ;;
1109esac
1110fi
1111MV="$ac_cv_path_MV"
1112if test -n "$MV"; then
1113  echo "$ac_t""$MV" 1>&6
1114else
1115  echo "$ac_t""no" 1>&6
1116fi
1117
1118# Extract the first word of "ln", so it can be a program name with args.
1119set dummy ln; ac_word=$2
1120echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1121echo "configure:1122: checking for $ac_word" >&5
1122if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1123  echo $ac_n "(cached) $ac_c" 1>&6
1124else
1125  case "$LN" in
1126  /*)
1127  ac_cv_path_LN="$LN" # Let the user override the test with a path.
1128  ;;
1129  *)
1130  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1131  for ac_dir in $PATH; do
1132    test -z "$ac_dir" && ac_dir=.
1133    if test -f $ac_dir/$ac_word; then
1134      ac_cv_path_LN="$ac_dir/$ac_word"
1135      break
1136    fi
1137  done
1138  IFS="$ac_save_ifs"
1139  ;;
1140esac
1141fi
1142LN="$ac_cv_path_LN"
1143if test -n "$LN"; then
1144  echo "$ac_t""$LN" 1>&6
1145else
1146  echo "$ac_t""no" 1>&6
1147fi
1148
1149# Extract the first word of "chmod", so it can be a program name with args.
1150set dummy chmod; ac_word=$2
1151echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152echo "configure:1153: checking for $ac_word" >&5
1153if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1154  echo $ac_n "(cached) $ac_c" 1>&6
1155else
1156  case "$CHMOD" in
1157  /*)
1158  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1159  ;;
1160  *)
1161  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1162  for ac_dir in $PATH; do
1163    test -z "$ac_dir" && ac_dir=.
1164    if test -f $ac_dir/$ac_word; then
1165      ac_cv_path_CHMOD="$ac_dir/$ac_word"
1166      break
1167    fi
1168  done
1169  IFS="$ac_save_ifs"
1170  ;;
1171esac
1172fi
1173CHMOD="$ac_cv_path_CHMOD"
1174if test -n "$CHMOD"; then
1175  echo "$ac_t""$CHMOD" 1>&6
1176else
1177  echo "$ac_t""no" 1>&6
1178fi
1179
1180# Extract the first word of "sort", so it can be a program name with args.
1181set dummy sort; ac_word=$2
1182echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1183echo "configure:1184: checking for $ac_word" >&5
1184if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then
1185  echo $ac_n "(cached) $ac_c" 1>&6
1186else
1187  case "$SORT" in
1188  /*)
1189  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
1190  ;;
1191  *)
1192  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1193  for ac_dir in $PATH; do
1194    test -z "$ac_dir" && ac_dir=.
1195    if test -f $ac_dir/$ac_word; then
1196      ac_cv_path_SORT="$ac_dir/$ac_word"
1197      break
1198    fi
1199  done
1200  IFS="$ac_save_ifs"
1201  ;;
1202esac
1203fi
1204SORT="$ac_cv_path_SORT"
1205if test -n "$SORT"; then
1206  echo "$ac_t""$SORT" 1>&6
1207else
1208  echo "$ac_t""no" 1>&6
1209fi
1210
1211
1212# Extract the first word of "mkdir", so it can be a program name with args.
1213set dummy mkdir; ac_word=$2
1214echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215echo "configure:1216: checking for $ac_word" >&5
1216if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
1217  echo $ac_n "(cached) $ac_c" 1>&6
1218else
1219  case "$MKDIR" in
1220  /*)
1221  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
1222  ;;
1223  *)
1224  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1225  for ac_dir in $PATH; do
1226    test -z "$ac_dir" && ac_dir=.
1227    if test -f $ac_dir/$ac_word; then
1228      ac_cv_path_MKDIR="$ac_dir/$ac_word"
1229      break
1230    fi
1231  done
1232  IFS="$ac_save_ifs"
1233  ;;
1234esac
1235fi
1236MKDIR="$ac_cv_path_MKDIR"
1237if test -n "$MKDIR"; then
1238  echo "$ac_t""$MKDIR" 1>&6
1239else
1240  echo "$ac_t""no" 1>&6
1241fi
1242
1243
1244
1245
1246echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6
1247echo "configure:1248: checking for working $MKDIR -m 0755" >&5
1248if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then
1249  echo $ac_n "(cached) $ac_c" 1>&6
1250else
1251  rm -rf conftestdata
1252if $MKDIR -m 0775 conftestdata 2>/dev/null; then
1253rtems_cv_prog_MKDIR_M="yes"
1254else
1255rtems_cv_prog_MKDIR_M="no"
1256fi
1257fi
1258rm -rf conftestdata
1259echo "$ac_t""$rtems_cv_prog_MKDIR_M" 1>&6
1260
1261
1262
1263echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6
1264echo "configure:1265: checking for working $MKDIR -p" >&5
1265if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then
1266  echo $ac_n "(cached) $ac_c" 1>&6
1267else
1268  rm -rf conftestdata
1269if $MKDIR -p conftestdata 2>/dev/null ;then
1270rtems_cv_prog_MKDIR_P="yes"
1271else
1272rtems_cv_prog_MKDIR_P="no"
1273fi
1274fi
1275rm -rf conftestdata
1276echo "$ac_t""$rtems_cv_prog_MKDIR_P" 1>&6
1277
1278test "$rtems_cv_prog_MKDIR_P" = "yes" && MKDIR="$MKDIR -p"
1279test "$rtems_cv_prog_MKDIR_M" = "yes" && MKDIR="$MKDIR -m 0755"
1280
1281# Extract the first word of "enscript", so it can be a program name with args.
1282set dummy enscript; ac_word=$2
1283echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1284echo "configure:1285: checking for $ac_word" >&5
1285if eval "test \"`echo '$''{'ac_cv_path_PR'+set}'`\" = set"; then
1286  echo $ac_n "(cached) $ac_c" 1>&6
1287else
1288  case "$PR" in
1289  /*)
1290  ac_cv_path_PR="$PR" # Let the user override the test with a path.
1291  ;;
1292  *)
1293  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1294  for ac_dir in $PATH; do
1295    test -z "$ac_dir" && ac_dir=.
1296    if test -f $ac_dir/$ac_word; then
1297      ac_cv_path_PR="$ac_dir/$ac_word"
1298      break
1299    fi
1300  done
1301  IFS="$ac_save_ifs"
1302  ;;
1303esac
1304fi
1305PR="$ac_cv_path_PR"
1306if test -n "$PR"; then
1307  echo "$ac_t""$PR" 1>&6
1308else
1309  echo "$ac_t""no" 1>&6
1310fi
1311
1312test -n "$PR" && PR="$PR -G2r"
1313
1314if test -z "$PR"; then
1315# Extract the first word of "mp", so it can be a program name with args.
1316set dummy mp; ac_word=$2
1317echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318echo "configure:1319: checking for $ac_word" >&5
1319if eval "test \"`echo '$''{'ac_cv_path_PR'+set}'`\" = set"; then
1320  echo $ac_n "(cached) $ac_c" 1>&6
1321else
1322  case "$PR" in
1323  /*)
1324  ac_cv_path_PR="$PR" # Let the user override the test with a path.
1325  ;;
1326  *)
1327  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1328  for ac_dir in /usr/openwin$ac_dummy; do
1329    test -z "$ac_dir" && ac_dir=.
1330    if test -f $ac_dir/$ac_word; then
1331      ac_cv_path_PR="$ac_dir/$ac_word"
1332      break
1333    fi
1334  done
1335  IFS="$ac_save_ifs"
1336  ;;
1337esac
1338fi
1339PR="$ac_cv_path_PR"
1340if test -n "$PR"; then
1341  echo "$ac_t""$PR" 1>&6
1342else
1343  echo "$ac_t""no" 1>&6
1344fi
1345
1346test -n "$PR" && PR="$PR -l"
1347fi
1348
1349if test -z "$PR"; then
1350# Extract the first word of "pr", so it can be a program name with args.
1351set dummy pr; ac_word=$2
1352echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1353echo "configure:1354: checking for $ac_word" >&5
1354if eval "test \"`echo '$''{'ac_cv_path_PR'+set}'`\" = set"; then
1355  echo $ac_n "(cached) $ac_c" 1>&6
1356else
1357  case "$PR" in
1358  /*)
1359  ac_cv_path_PR="$PR" # Let the user override the test with a path.
1360  ;;
1361  *)
1362  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1363  for ac_dir in $PATH; do
1364    test -z "$ac_dir" && ac_dir=.
1365    if test -f $ac_dir/$ac_word; then
1366      ac_cv_path_PR="$ac_dir/$ac_word"
1367      break
1368    fi
1369  done
1370  IFS="$ac_save_ifs"
1371  ;;
1372esac
1373fi
1374PR="$ac_cv_path_PR"
1375if test -n "$PR"; then
1376  echo "$ac_t""$PR" 1>&6
1377else
1378  echo "$ac_t""no" 1>&6
1379fi
1380
1381fi
1382
1383if test -z "$PR"; then
1384echo "configure: warning: ***
1385    Cannot determine a suitable program for
1386    printing asci files on ps-printers
1387    Expect errors when printing files " 1>&2
1388fi
1389
1390for ac_prog in lp lpr
1391do
1392# Extract the first word of "$ac_prog", so it can be a program name with args.
1393set dummy $ac_prog; ac_word=$2
1394echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1395echo "configure:1396: checking for $ac_word" >&5
1396if eval "test \"`echo '$''{'ac_cv_path_PRINT'+set}'`\" = set"; then
1397  echo $ac_n "(cached) $ac_c" 1>&6
1398else
1399  case "$PRINT" in
1400  /*)
1401  ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
1402  ;;
1403  *)
1404  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1405  for ac_dir in $PATH; do
1406    test -z "$ac_dir" && ac_dir=.
1407    if test -f $ac_dir/$ac_word; then
1408      ac_cv_path_PRINT="$ac_dir/$ac_word"
1409      break
1410    fi
1411  done
1412  IFS="$ac_save_ifs"
1413  ;;
1414esac
1415fi
1416PRINT="$ac_cv_path_PRINT"
1417if test -n "$PRINT"; then
1418  echo "$ac_t""$PRINT" 1>&6
1419else
1420  echo "$ac_t""no" 1>&6
1421fi
1422
1423test -n "$PRINT" && break
1424done
1425
1426
1427# Extract the first word of "touch", so it can be a program name with args.
1428set dummy touch; ac_word=$2
1429echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1430echo "configure:1431: checking for $ac_word" >&5
1431if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
1432  echo $ac_n "(cached) $ac_c" 1>&6
1433else
1434  case "$TOUCH" in
1435  /*)
1436  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
1437  ;;
1438  *)
1439  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1440  for ac_dir in $PATH; do
1441    test -z "$ac_dir" && ac_dir=.
1442    if test -f $ac_dir/$ac_word; then
1443      ac_cv_path_TOUCH="$ac_dir/$ac_word"
1444      break
1445    fi
1446  done
1447  IFS="$ac_save_ifs"
1448  ;;
1449esac
1450fi
1451TOUCH="$ac_cv_path_TOUCH"
1452if test -n "$TOUCH"; then
1453  echo "$ac_t""$TOUCH" 1>&6
1454else
1455  echo "$ac_t""no" 1>&6
1456fi
1457
1458# Extract the first word of "cmp", so it can be a program name with args.
1459set dummy cmp; ac_word=$2
1460echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1461echo "configure:1462: checking for $ac_word" >&5
1462if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1463  echo $ac_n "(cached) $ac_c" 1>&6
1464else
1465  case "$CMP" in
1466  /*)
1467  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1468  ;;
1469  *)
1470  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1471  for ac_dir in $PATH; do
1472    test -z "$ac_dir" && ac_dir=.
1473    if test -f $ac_dir/$ac_word; then
1474      ac_cv_path_CMP="$ac_dir/$ac_word"
1475      break
1476    fi
1477  done
1478  IFS="$ac_save_ifs"
1479  ;;
1480esac
1481fi
1482CMP="$ac_cv_path_CMP"
1483if test -n "$CMP"; then
1484  echo "$ac_t""$CMP" 1>&6
1485else
1486  echo "$ac_t""no" 1>&6
1487fi
1488
1489# Extract the first word of "dirname", so it can be a program name with args.
1490set dummy dirname; ac_word=$2
1491echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1492echo "configure:1493: checking for $ac_word" >&5
1493if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
1494  echo $ac_n "(cached) $ac_c" 1>&6
1495else
1496  case "$DIRNAME" in
1497  /*)
1498  ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
1499  ;;
1500  *)
1501  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1502  for ac_dir in $PATH; do
1503    test -z "$ac_dir" && ac_dir=.
1504    if test -f $ac_dir/$ac_word; then
1505      ac_cv_path_DIRNAME="$ac_dir/$ac_word"
1506      break
1507    fi
1508  done
1509  IFS="$ac_save_ifs"
1510  ;;
1511esac
1512fi
1513DIRNAME="$ac_cv_path_DIRNAME"
1514if test -n "$DIRNAME"; then
1515  echo "$ac_t""$DIRNAME" 1>&6
1516else
1517  echo "$ac_t""no" 1>&6
1518fi
1519
1520# Extract the first word of "basename", so it can be a program name with args.
1521set dummy basename; ac_word=$2
1522echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1523echo "configure:1524: checking for $ac_word" >&5
1524if eval "test \"`echo '$''{'ac_cv_path_BASENAME'+set}'`\" = set"; then
1525  echo $ac_n "(cached) $ac_c" 1>&6
1526else
1527  case "$BASENAME" in
1528  /*)
1529  ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
1530  ;;
1531  *)
1532  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1533  for ac_dir in $PATH; do
1534    test -z "$ac_dir" && ac_dir=.
1535    if test -f $ac_dir/$ac_word; then
1536      ac_cv_path_BASENAME="$ac_dir/$ac_word"
1537      break
1538    fi
1539  done
1540  IFS="$ac_save_ifs"
1541  ;;
1542esac
1543fi
1544BASENAME="$ac_cv_path_BASENAME"
1545if test -n "$BASENAME"; then
1546  echo "$ac_t""$BASENAME" 1>&6
1547else
1548  echo "$ac_t""no" 1>&6
1549fi
1550
1551
1552# Extract the first word of "unifdef", so it can be a program name with args.
1553set dummy unifdef; ac_word=$2
1554echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1555echo "configure:1556: checking for $ac_word" >&5
1556if eval "test \"`echo '$''{'ac_cv_path_UNIFDEF'+set}'`\" = set"; then
1557  echo $ac_n "(cached) $ac_c" 1>&6
1558else
1559  case "$UNIFDEF" in
1560  /*)
1561  ac_cv_path_UNIFDEF="$UNIFDEF" # Let the user override the test with a path.
1562  ;;
1563  *)
1564  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1565  for ac_dir in $PATH; do
1566    test -z "$ac_dir" && ac_dir=.
1567    if test -f $ac_dir/$ac_word; then
1568      ac_cv_path_UNIFDEF="$ac_dir/$ac_word"
1569      break
1570    fi
1571  done
1572  IFS="$ac_save_ifs"
1573  ;;
1574esac
1575fi
1576UNIFDEF="$ac_cv_path_UNIFDEF"
1577if test -n "$UNIFDEF"; then
1578  echo "$ac_t""$UNIFDEF" 1>&6
1579else
1580  echo "$ac_t""no" 1>&6
1581fi
1582
1583# Extract the first word of "ed", so it can be a program name with args.
1584set dummy ed; ac_word=$2
1585echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1586echo "configure:1587: checking for $ac_word" >&5
1587if eval "test \"`echo '$''{'ac_cv_path_ED'+set}'`\" = set"; then
1588  echo $ac_n "(cached) $ac_c" 1>&6
1589else
1590  case "$ED" in
1591  /*)
1592  ac_cv_path_ED="$ED" # Let the user override the test with a path.
1593  ;;
1594  *)
1595  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1596  for ac_dir in $PATH; do
1597    test -z "$ac_dir" && ac_dir=.
1598    if test -f $ac_dir/$ac_word; then
1599      ac_cv_path_ED="$ac_dir/$ac_word"
1600      break
1601    fi
1602  done
1603  IFS="$ac_save_ifs"
1604  ;;
1605esac
1606fi
1607ED="$ac_cv_path_ED"
1608if test -n "$ED"; then
1609  echo "$ac_t""$ED" 1>&6
1610else
1611  echo "$ac_t""no" 1>&6
1612fi
1613
1614# Extract the first word of "sed", so it can be a program name with args.
1615set dummy sed; ac_word=$2
1616echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1617echo "configure:1618: checking for $ac_word" >&5
1618if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1619  echo $ac_n "(cached) $ac_c" 1>&6
1620else
1621  case "$SED" in
1622  /*)
1623  ac_cv_path_SED="$SED" # Let the user override the test with a path.
1624  ;;
1625  *)
1626  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1627  for ac_dir in $PATH; do
1628    test -z "$ac_dir" && ac_dir=.
1629    if test -f $ac_dir/$ac_word; then
1630      ac_cv_path_SED="$ac_dir/$ac_word"
1631      break
1632    fi
1633  done
1634  IFS="$ac_save_ifs"
1635  ;;
1636esac
1637fi
1638SED="$ac_cv_path_SED"
1639if test -n "$SED"; then
1640  echo "$ac_t""$SED" 1>&6
1641else
1642  echo "$ac_t""no" 1>&6
1643fi
1644
1645for ac_prog in mawk gawk nawk awk
1646do
1647# Extract the first word of "$ac_prog", so it can be a program name with args.
1648set dummy $ac_prog; ac_word=$2
1649echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1650echo "configure:1651: checking for $ac_word" >&5
1651if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1652  echo $ac_n "(cached) $ac_c" 1>&6
1653else
1654  case "$AWK" in
1655  /*)
1656  ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1657  ;;
1658  *)
1659  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1660  for ac_dir in $PATH; do
1661    test -z "$ac_dir" && ac_dir=.
1662    if test -f $ac_dir/$ac_word; then
1663      ac_cv_path_AWK="$ac_dir/$ac_word"
1664      break
1665    fi
1666  done
1667  IFS="$ac_save_ifs"
1668  ;;
1669esac
1670fi
1671AWK="$ac_cv_path_AWK"
1672if test -n "$AWK"; then
1673  echo "$ac_t""$AWK" 1>&6
1674else
1675  echo "$ac_t""no" 1>&6
1676fi
1677
1678test -n "$AWK" && break
1679done
1680
1681for ac_prog in gm4 m4
1682do
1683# Extract the first word of "$ac_prog", so it can be a program name with args.
1684set dummy $ac_prog; ac_word=$2
1685echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1686echo "configure:1687: checking for $ac_word" >&5
1687if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
1688  echo $ac_n "(cached) $ac_c" 1>&6
1689else
1690  case "$M4" in
1691  /*)
1692  ac_cv_path_M4="$M4" # Let the user override the test with a path.
1693  ;;
1694  *)
1695  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1696  for ac_dir in $PATH; do
1697    test -z "$ac_dir" && ac_dir=.
1698    if test -f $ac_dir/$ac_word; then
1699      ac_cv_path_M4="$ac_dir/$ac_word"
1700      break
1701    fi
1702  done
1703  IFS="$ac_save_ifs"
1704  ;;
1705esac
1706fi
1707M4="$ac_cv_path_M4"
1708if test -n "$M4"; then
1709  echo "$ac_t""$M4" 1>&6
1710else
1711  echo "$ac_t""no" 1>&6
1712fi
1713
1714test -n "$M4" && break
1715done
1716
1717
1718# Extract the first word of "fgrep", so it can be a program name with args.
1719set dummy fgrep; ac_word=$2
1720echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1721echo "configure:1722: checking for $ac_word" >&5
1722if eval "test \"`echo '$''{'ac_cv_path_FGREP'+set}'`\" = set"; then
1723  echo $ac_n "(cached) $ac_c" 1>&6
1724else
1725  case "$FGREP" in
1726  /*)
1727  ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1728  ;;
1729  *)
1730  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1731  for ac_dir in $PATH; do
1732    test -z "$ac_dir" && ac_dir=.
1733    if test -f $ac_dir/$ac_word; then
1734      ac_cv_path_FGREP="$ac_dir/$ac_word"
1735      break
1736    fi
1737  done
1738  IFS="$ac_save_ifs"
1739  ;;
1740esac
1741fi
1742FGREP="$ac_cv_path_FGREP"
1743if test -n "$FGREP"; then
1744  echo "$ac_t""$FGREP" 1>&6
1745else
1746  echo "$ac_t""no" 1>&6
1747fi
1748
1749# Extract the first word of "grep", so it can be a program name with args.
1750set dummy grep; ac_word=$2
1751echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1752echo "configure:1753: checking for $ac_word" >&5
1753if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
1754  echo $ac_n "(cached) $ac_c" 1>&6
1755else
1756  case "$GREP" in
1757  /*)
1758  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
1759  ;;
1760  *)
1761  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1762  for ac_dir in $PATH; do
1763    test -z "$ac_dir" && ac_dir=.
1764    if test -f $ac_dir/$ac_word; then
1765      ac_cv_path_GREP="$ac_dir/$ac_word"
1766      break
1767    fi
1768  done
1769  IFS="$ac_save_ifs"
1770  ;;
1771esac
1772fi
1773GREP="$ac_cv_path_GREP"
1774if test -n "$GREP"; then
1775  echo "$ac_t""$GREP" 1>&6
1776else
1777  echo "$ac_t""no" 1>&6
1778fi
1779
1780# Extract the first word of "egrep", so it can be a program name with args.
1781set dummy egrep; ac_word=$2
1782echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1783echo "configure:1784: checking for $ac_word" >&5
1784if eval "test \"`echo '$''{'ac_cv_path_EGREP'+set}'`\" = set"; then
1785  echo $ac_n "(cached) $ac_c" 1>&6
1786else
1787  case "$EGREP" in
1788  /*)
1789  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1790  ;;
1791  *)
1792  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1793  for ac_dir in $PATH; do
1794    test -z "$ac_dir" && ac_dir=.
1795    if test -f $ac_dir/$ac_word; then
1796      ac_cv_path_EGREP="$ac_dir/$ac_word"
1797      break
1798    fi
1799  done
1800  IFS="$ac_save_ifs"
1801  ;;
1802esac
1803fi
1804EGREP="$ac_cv_path_EGREP"
1805if test -n "$EGREP"; then
1806  echo "$ac_t""$EGREP" 1>&6
1807else
1808  echo "$ac_t""no" 1>&6
1809fi
1810
1811
1812# Extract the first word of "catman", so it can be a program name with args.
1813set dummy catman; ac_word=$2
1814echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815echo "configure:1816: checking for $ac_word" >&5
1816if eval "test \"`echo '$''{'ac_cv_path_CATMAN'+set}'`\" = set"; then
1817  echo $ac_n "(cached) $ac_c" 1>&6
1818else
1819  case "$CATMAN" in
1820  /*)
1821  ac_cv_path_CATMAN="$CATMAN" # Let the user override the test with a path.
1822  ;;
1823  *)
1824  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1825  for ac_dir in $PATH:/usr/etc:/etc$ac_dummy; do
1826    test -z "$ac_dir" && ac_dir=.
1827    if test -f $ac_dir/$ac_word; then
1828      ac_cv_path_CATMAN="$ac_dir/$ac_word"
1829      break
1830    fi
1831  done
1832  IFS="$ac_save_ifs"
1833  ;;
1834esac
1835fi
1836CATMAN="$ac_cv_path_CATMAN"
1837if test -n "$CATMAN"; then
1838  echo "$ac_t""$CATMAN" 1>&6
1839else
1840  echo "$ac_t""no" 1>&6
1841fi
1842
1843
1844for ac_prog in bash ksh sh
1845do
1846# Extract the first word of "$ac_prog", so it can be a program name with args.
1847set dummy $ac_prog; ac_word=$2
1848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849echo "configure:1850: checking for $ac_word" >&5
1850if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1851  echo $ac_n "(cached) $ac_c" 1>&6
1852else
1853  case "$KSH" in
1854  /*)
1855  ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1856  ;;
1857  *)
1858  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1859  for ac_dir in $PATH; do
1860    test -z "$ac_dir" && ac_dir=.
1861    if test -f $ac_dir/$ac_word; then
1862      ac_cv_path_KSH="$ac_dir/$ac_word"
1863      break
1864    fi
1865  done
1866  IFS="$ac_save_ifs"
1867  ;;
1868esac
1869fi
1870KSH="$ac_cv_path_KSH"
1871if test -n "$KSH"; then
1872  echo "$ac_t""$KSH" 1>&6
1873else
1874  echo "$ac_t""no" 1>&6
1875fi
1876
1877test -n "$KSH" && break
1878done
1879
1880
1881if test -z "$KSH"; then
1882{ echo "configure: error: ***
1883    Cannot determine a usable shell bash/ksh/sh
1884    Please contact your system administrator " 1>&2; exit 1; };
1885fi
1886
1887# Extract the first word of "ident", so it can be a program name with args.
1888set dummy ident; ac_word=$2
1889echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1890echo "configure:1891: checking for $ac_word" >&5
1891if eval "test \"`echo '$''{'ac_cv_path_RCS_IDENT'+set}'`\" = set"; then
1892  echo $ac_n "(cached) $ac_c" 1>&6
1893else
1894  case "$RCS_IDENT" in
1895  /*)
1896  ac_cv_path_RCS_IDENT="$RCS_IDENT" # Let the user override the test with a path.
1897  ;;
1898  *)
1899  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1900  for ac_dir in $PATH; do
1901    test -z "$ac_dir" && ac_dir=.
1902    if test -f $ac_dir/$ac_word; then
1903      ac_cv_path_RCS_IDENT="$ac_dir/$ac_word"
1904      break
1905    fi
1906  done
1907  IFS="$ac_save_ifs"
1908  ;;
1909esac
1910fi
1911RCS_IDENT="$ac_cv_path_RCS_IDENT"
1912if test -n "$RCS_IDENT"; then
1913  echo "$ac_t""$RCS_IDENT" 1>&6
1914else
1915  echo "$ac_t""no" 1>&6
1916fi
1917
1918# Extract the first word of "co", so it can be a program name with args.
1919set dummy co; ac_word=$2
1920echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1921echo "configure:1922: checking for $ac_word" >&5
1922if eval "test \"`echo '$''{'ac_cv_path_RCS_CO'+set}'`\" = set"; then
1923  echo $ac_n "(cached) $ac_c" 1>&6
1924else
1925  case "$RCS_CO" in
1926  /*)
1927  ac_cv_path_RCS_CO="$RCS_CO" # Let the user override the test with a path.
1928  ;;
1929  *)
1930  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1931  for ac_dir in $PATH; do
1932    test -z "$ac_dir" && ac_dir=.
1933    if test -f $ac_dir/$ac_word; then
1934      ac_cv_path_RCS_CO="$ac_dir/$ac_word"
1935      break
1936    fi
1937  done
1938  IFS="$ac_save_ifs"
1939  ;;
1940esac
1941fi
1942RCS_CO="$ac_cv_path_RCS_CO"
1943if test -n "$RCS_CO"; then
1944  echo "$ac_t""$RCS_CO" 1>&6
1945else
1946  echo "$ac_t""no" 1>&6
1947fi
1948
1949
1950
1951
1952
1953echo "TARGET"
1954echo "cpu    $target_cpu"
1955echo "os     $target_os"
1956echo "vendor $target_vendor"
1957
1958
1959case "${target}" in
1960  # hpux unix port should go here
1961  hppa1.1-rtems*)
1962        target_cpu=hppa1_1
1963        ;;
1964  i[3456]86-go32-rtems*)
1965        target_cpu=i386
1966        rtems_bsp="go32 go32_p5"
1967        aux_makefiles=$i386_go32_mk
1968        RTEMS_HAS_POSIX_API=no
1969        ;;
1970  i[3456]86-rtems*)
1971        target_cpu=i386
1972        rtems_bsp="force386 i386ex"
1973        aux_makefiles=$i386_mk
1974        ;;
1975  i[3456]86-pc-linux*)         # unix "simulator" port
1976        target_cpu=unix
1977        RTEMS_HAS_POSIX_API=no
1978        ;;
1979  no_cpu-rtems*)
1980        target_cpu=no_cpu
1981        RTEMS_HAS_POSIX_API=no
1982        ;;
1983  powerpc-rtems*|ppc-rtems*)
1984        target_cpu=ppc
1985        ;;
1986  sparc-sun-solaris*)             # unix "simulator" port
1987        target_cpu=unix
1988        RTEMS_HAS_POSIX_API=no
1989        ;;
1990  *)
1991        echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
1992echo "configure:1993: checking rtems target cpu" >&5
1993target_cpu=`echo $target | /usr/bin/sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1994echo "$ac_t""$target_cpu" 1>&6
1995
1996        ;;
1997esac
1998
1999echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
2000echo "configure:2001: checking if cpu $target_cpu is supported" >&5
2001if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
2002  echo "$ac_t""yes" 1>&6
2003  makefiles="c/src/exec/score/cpu/$target_cpu/Makefile"
2004else
2005  { echo "configure: error: no" 1>&2; exit 1; }
2006fi
2007
2008 echo $ac_n "checking for Makefiles in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
2009echo "configure:2010: checking for Makefiles in c/src/exec/score/tools/$target_cpu" >&5
2010  if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
2011      test -f $srcdir/c/src/exec/score/tools/$target_cpu/Makefile.in && \
2012    makefiles="$makefiles c/src/exec/score/tools/$target_cpu/Makefile"
2013
2014  itemlist=`ls $srcdir/c/src/exec/score/tools/$target_cpu`
2015  for item in $itemlist; do
2016    if test -d "$srcdir/c/src/exec/score/tools/$target_cpu/$item"; then
2017        test -f $srcdir/c/src/exec/score/tools/$target_cpu/$item/Makefile.in && \
2018    makefiles="$makefiles c/src/exec/score/tools/$target_cpu/$item/Makefile"
2019
2020  item0list=`ls $srcdir/c/src/exec/score/tools/$target_cpu/$item`
2021  for item0 in $item0list; do
2022    if test -d "$srcdir/c/src/exec/score/tools/$target_cpu/$item/$item0"; then
2023       test -f $srcdir/c/src/exec/score/tools/$target_cpu/$item/$item0/Makefile.in && \
2024    makefiles="$makefiles c/src/exec/score/tools/$target_cpu/$item/$item0/Makefile"
2025
2026     
2027    fi
2028  done
2029
2030   
2031    fi
2032  done
2033
2034    echo "$ac_t""done" 1>&6
2035  else
2036    echo "$ac_t""no" 1>&6
2037  fi
2038
2039
2040if test -n "$aux_makefiles";then
2041  makefiles="$makefiles $aux_makefiles"
2042  echo "MAKEFILES PRESET TO $makefiles"
2043else
2044echo $ac_n "checking for c/src/lib/libbsp/$target_cpu""... $ac_c" 1>&6
2045echo "configure:2046: checking for c/src/lib/libbsp/$target_cpu" >&5
2046if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
2047  echo "$ac_t""yes" 1>&6
2048  files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
2049  for file in $files; do
2050    case $file in
2051      shared*);;
2052      Makefile*);;
2053      READ*);;
2054      *) rtems_bsp="$rtems_bsp $file";;
2055    esac;
2056  done
2057   echo $ac_n "checking for Makefiles in c/src/lib/libbsp/$target_cpu""... $ac_c" 1>&6
2058echo "configure:2059: checking for Makefiles in c/src/lib/libbsp/$target_cpu" >&5
2059  if test -d $srcdir/c/src/lib/libbsp/$target_cpu; then
2060      test -f $srcdir/c/src/lib/libbsp/$target_cpu/Makefile.in && \
2061    makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile"
2062
2063  itemlist=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
2064  for item in $itemlist; do
2065    if test -d "$srcdir/c/src/lib/libbsp/$target_cpu/$item"; then
2066        test -f $srcdir/c/src/lib/libbsp/$target_cpu/$item/Makefile.in && \
2067    makefiles="$makefiles c/src/lib/libbsp/$target_cpu/$item/Makefile"
2068
2069  item0list=`ls $srcdir/c/src/lib/libbsp/$target_cpu/$item`
2070  for item0 in $item0list; do
2071    if test -d "$srcdir/c/src/lib/libbsp/$target_cpu/$item/$item0"; then
2072       test -f $srcdir/c/src/lib/libbsp/$target_cpu/$item/$item0/Makefile.in && \
2073    makefiles="$makefiles c/src/lib/libbsp/$target_cpu/$item/$item0/Makefile"
2074
2075     
2076    fi
2077  done
2078
2079   
2080    fi
2081  done
2082
2083    echo "$ac_t""done" 1>&6
2084  else
2085    echo "$ac_t""no" 1>&6
2086  fi
2087
2088else
2089  echo "$ac_t""no" 1>&6
2090fi
2091
2092 echo $ac_n "checking for Makefiles in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
2093echo "configure:2094: checking for Makefiles in c/src/lib/libcpu/$target_cpu" >&5
2094  if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
2095      test -f $srcdir/c/src/lib/libcpu/$target_cpu/Makefile.in && \
2096    makefiles="$makefiles c/src/lib/libcpu/$target_cpu/Makefile"
2097
2098  itemlist=`ls $srcdir/c/src/lib/libcpu/$target_cpu`
2099  for item in $itemlist; do
2100    if test -d "$srcdir/c/src/lib/libcpu/$target_cpu/$item"; then
2101        test -f $srcdir/c/src/lib/libcpu/$target_cpu/$item/Makefile.in && \
2102    makefiles="$makefiles c/src/lib/libcpu/$target_cpu/$item/Makefile"
2103
2104  item0list=`ls $srcdir/c/src/lib/libcpu/$target_cpu/$item`
2105  for item0 in $item0list; do
2106    if test -d "$srcdir/c/src/lib/libcpu/$target_cpu/$item/$item0"; then
2107       test -f $srcdir/c/src/lib/libcpu/$target_cpu/$item/$item0/Makefile.in && \
2108    makefiles="$makefiles c/src/lib/libcpu/$target_cpu/$item/$item0/Makefile"
2109
2110     
2111    fi
2112  done
2113
2114   
2115    fi
2116  done
2117
2118    echo "$ac_t""done" 1>&6
2119  else
2120    echo "$ac_t""no" 1>&6
2121  fi
2122
2123 echo $ac_n "checking for Makefiles in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
2124echo "configure:2125: checking for Makefiles in c/src/lib/start/$target_cpu" >&5
2125  if test -d $srcdir/c/src/lib/start/$target_cpu; then
2126      test -f $srcdir/c/src/lib/start/$target_cpu/Makefile.in && \
2127    makefiles="$makefiles c/src/lib/start/$target_cpu/Makefile"
2128
2129  itemlist=`ls $srcdir/c/src/lib/start/$target_cpu`
2130  for item in $itemlist; do
2131    if test -d "$srcdir/c/src/lib/start/$target_cpu/$item"; then
2132        test -f $srcdir/c/src/lib/start/$target_cpu/$item/Makefile.in && \
2133    makefiles="$makefiles c/src/lib/start/$target_cpu/$item/Makefile"
2134
2135  item0list=`ls $srcdir/c/src/lib/start/$target_cpu/$item`
2136  for item0 in $item0list; do
2137    if test -d "$srcdir/c/src/lib/start/$target_cpu/$item/$item0"; then
2138       test -f $srcdir/c/src/lib/start/$target_cpu/$item/$item0/Makefile.in && \
2139    makefiles="$makefiles c/src/lib/start/$target_cpu/$item/$item0/Makefile"
2140
2141     
2142    fi
2143  done
2144
2145   
2146    fi
2147  done
2148
2149    echo "$ac_t""done" 1>&6
2150  else
2151    echo "$ac_t""no" 1>&6
2152  fi
2153
2154
2155fi      # aux_makefiles
2156
2157echo "MAKEFILES $makefiles"
2158
2159
2160
2161#
2162#  Target configurations are listed in alphabetical order. 
2163#  The BSPs for a target configuration are also listed in alphabetical order.
2164#
2165
2166
2167if [ "${program_prefix}" = "NONE" ] ; then
2168  if [ "${target}" = "${host}" ] ; then
2169    program_prefix=
2170  else
2171    program_prefix=${target}-
2172  fi
2173fi
2174
2175echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2176echo "configure:2177: checking whether ln -s works" >&5
2177if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2178  echo $ac_n "(cached) $ac_c" 1>&6
2179else
2180  rm -f conftestdata
2181if ln -s X conftestdata 2>/dev/null
2182then
2183  rm -f conftestdata
2184  ac_cv_prog_LN_S="ln -s"
2185else
2186  ac_cv_prog_LN_S=ln
2187fi
2188fi
2189LN_S="$ac_cv_prog_LN_S"
2190if test "$ac_cv_prog_LN_S" = "ln -s"; then
2191  echo "$ac_t""yes" 1>&6
2192else
2193  echo "$ac_t""no" 1>&6
2194fi
2195
2196
2197RTEMS_BSP=$rtems_bsp
2198RTEMS_HOST=$host_os
2199RTEMS_ROOT=`cd $srcdir/c; pwd`
2200PROJECT_ROOT=`pwd;`
2201
2202# For now always generate the KA9Q TCP/IP Makefiles
2203makefiles="$makefiles $ka9q_mk $rtemscpp_mk"
2204
2205# Check whether --enable-tests or --disable-tests was given.
2206if test "${enable_tests+set}" = set; then
2207  enableval="$enable_tests"
2208  \
2209tests_mk=
2210else
2211  makefiles="${makefiles} ${tests_mk}"
2212fi
2213
2214
2215# Check whether --enable-hwapi or --disable-hwapi was given.
2216if test "${enable_hwapi+set}" = set; then
2217  enableval="$enable_hwapi"
2218  \
2219makefiles="${makefiles} ${hwapi_mk}"
2220else
2221  hwapi_mk=
2222fi
2223
2224
2225# Check whether --enable-rtemsbsp or --disable-rtemsbsp was given.
2226if test "${enable_rtemsbsp+set}" = set; then
2227  enableval="$enable_rtemsbsp"
2228  \
2229RTEMS_BSP=$enableval
2230fi
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248trap '' 1 2 15
2249cat > confcache <<\EOF
2250# This file is a shell script that caches the results of configure
2251# tests run on this system so they can be shared between configure
2252# scripts and configure runs.  It is not useful on other systems.
2253# If it contains results you don't want to keep, you may remove or edit it.
2254#
2255# By default, configure uses ./config.cache as the cache file,
2256# creating it if it does not exist already.  You can give configure
2257# the --cache-file=FILE option to use a different cache file; that is
2258# what configure does when it calls configure scripts in
2259# subdirectories, so they share the cache.
2260# Giving --cache-file=/dev/null disables caching, for debugging configure.
2261# config.status only pays attention to the cache file if you give it the
2262# --recheck option to rerun configure.
2263#
2264EOF
2265# The following way of writing the cache mishandles newlines in values,
2266# but we know of no workaround that is simple, portable, and efficient.
2267# So, don't put newlines in cache variables' values.
2268# Ultrix sh set writes to stderr and can't be redirected directly,
2269# and sets the high bit in the cache file unless we assign to the vars.
2270(set) 2>&1 |
2271  case `(ac_space=' '; set) 2>&1` in
2272  *ac_space=\ *)
2273    # `set' does not quote correctly, so add quotes (double-quote substitution
2274    # turns \\\\ into \\, and sed turns \\ into \).
2275    sed -n \
2276      -e "s/'/'\\\\''/g" \
2277      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2278    ;;
2279  *)
2280    # `set' quotes correctly as required by POSIX, so do not add quotes.
2281    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2282    ;;
2283  esac >> confcache
2284if cmp -s $cache_file confcache; then
2285  :
2286else
2287  if test -w $cache_file; then
2288    echo "updating cache $cache_file"
2289    cat confcache > $cache_file
2290  else
2291    echo "not updating unwritable cache $cache_file"
2292  fi
2293fi
2294rm -f confcache
2295
2296trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2297
2298test "x$prefix" = xNONE && prefix=$ac_default_prefix
2299# Let make expand exec_prefix.
2300test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2301
2302# Any assignment to VPATH causes Sun make to only execute
2303# the first set of double-colon rules, so remove it if not needed.
2304# If there is a colon in the path, we need to keep it.
2305if test "x$srcdir" = x.; then
2306  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2307fi
2308
2309trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2310
2311# Transform confdefs.h into DEFS.
2312# Protect against shell expansion while executing Makefile rules.
2313# Protect against Makefile macro expansion.
2314cat > conftest.defs <<\EOF
2315s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2316s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2317s%\[%\\&%g
2318s%\]%\\&%g
2319s%\$%$$%g
2320EOF
2321DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2322rm -f conftest.defs
2323
2324
2325# Without the "./", some shells look in PATH for config.status.
2326: ${CONFIG_STATUS=./config.status}
2327
2328echo creating $CONFIG_STATUS
2329rm -f $CONFIG_STATUS
2330cat > $CONFIG_STATUS <<EOF
2331#! /bin/sh
2332# Generated automatically by configure.
2333# Run this file to recreate the current configuration.
2334# This directory was configured as follows,
2335# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2336#
2337# $0 $ac_configure_args
2338#
2339# Compiler output produced by configure, useful for debugging
2340# configure, is in ./config.log if it exists.
2341
2342ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2343for ac_option
2344do
2345  case "\$ac_option" in
2346  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2347    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2348    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2349  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2350    echo "$CONFIG_STATUS generated by autoconf version 2.12"
2351    exit 0 ;;
2352  -help | --help | --hel | --he | --h)
2353    echo "\$ac_cs_usage"; exit 0 ;;
2354  *) echo "\$ac_cs_usage"; exit 1 ;;
2355  esac
2356done
2357
2358ac_given_srcdir=$srcdir
2359
2360trap 'rm -fr `echo "Makefile
2361c/Makefile
2362c/build-tools/Makefile
2363c/build-tools/os/Makefile
2364c/build-tools/os/msdos/Makefile
2365c/build-tools/scripts/Makefile
2366c/build-tools/src/Makefile
2367c/make/Makefile
2368c/make/host.cfg
2369c/make/Templates/Makefile.inc
2370c/src/Makefile
2371c/src/exec/Makefile
2372c/src/exec/posix/Makefile
2373c/src/exec/posix/base/Makefile
2374c/src/exec/posix/headers/Makefile
2375c/src/exec/posix/inline/Makefile
2376c/src/exec/posix/macros/Makefile
2377c/src/exec/posix/optman/Makefile
2378c/src/exec/posix/src/Makefile
2379c/src/exec/posix/sys/Makefile
2380c/src/exec/rtems/Makefile
2381c/src/exec/rtems/headers/Makefile
2382c/src/exec/rtems/inline/Makefile
2383c/src/exec/rtems/macros/Makefile
2384c/src/exec/rtems/optman/Makefile
2385c/src/exec/rtems/src/Makefile
2386c/src/exec/sapi/Makefile
2387c/src/exec/sapi/headers/Makefile
2388c/src/exec/sapi/inline/Makefile
2389c/src/exec/sapi/macros/Makefile
2390c/src/exec/sapi/optman/Makefile
2391c/src/exec/sapi/src/Makefile
2392c/src/exec/score/Makefile
2393c/src/exec/score/cpu/Makefile
2394c/src/exec/score/headers/Makefile
2395c/src/exec/score/inline/Makefile
2396c/src/exec/score/macros/Makefile
2397c/src/exec/score/src/Makefile
2398c/src/exec/score/tools/Makefile
2399c/src/exec/score/tools/generic/Makefile
2400c/src/exec/wrapup/Makefile
2401c/src/exec/wrapup/posix/Makefile
2402c/src/exec/wrapup/rtems/Makefile
2403c/src/lib/Makefile
2404c/src/lib/include/Makefile
2405c/src/lib/libbsp/Makefile
2406c/src/lib/libbsp/shmdr/Makefile
2407c/src/lib/libc/Makefile
2408c/src/lib/libcpu/Makefile
2409c/src/lib/libmisc/Makefile
2410c/src/lib/libmisc/assoc/Makefile
2411c/src/lib/libmisc/cpuuse/Makefile
2412c/src/lib/libmisc/error/Makefile
2413c/src/lib/libmisc/monitor/Makefile
2414c/src/lib/libmisc/rtmonuse/Makefile
2415c/src/lib/libmisc/stackchk/Makefile
2416c/src/lib/libmisc/wrapup/Makefile
2417c/src/lib/start/Makefile
2418c/src/lib/wrapup/Makefile
2419c/src/tests/Makefile
2420c/src/tests/samples/Makefile
2421c/src/tests/samples/base_mp/Makefile
2422c/src/tests/samples/base_mp/node1/Makefile
2423c/src/tests/samples/base_mp/node2/Makefile
2424c/src/tests/samples/base_sp/Makefile
2425c/src/tests/samples/cdtest/Makefile
2426c/src/tests/samples/hello/Makefile
2427c/src/tests/samples/paranoia/Makefile
2428c/src/tests/samples/ticker/Makefile
2429c/src/tests/support/Makefile
2430c/src/tests/support/include/Makefile
2431c/src/tests/support/stubdr/Makefile
2432c/src/tests/support/wrapup/Makefile
2433c/src/tests/tools/Makefile
2434c/src/tests/tools/generic/Makefile
2435c/src/tests/tools/hppa1_1/Makefile
2436c/src/tests/tools/hppa1_1/simhppa/Makefile
2437c/src/tests/tools/sparc/Makefile
2438c/src/tests/tools/sparc/erc32/Makefile
2439c/src/tests/tools/unix/Makefile
2440c/src/tests/tools/unix/posix/Makefile
2441$makefiles
2442c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2443EOF
2444cat >> $CONFIG_STATUS <<EOF
2445
2446# Protect against being on the right side of a sed subst in config.status.
2447sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2448 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2449$ac_vpsub
2450$extrasub
2451s%@CFLAGS@%$CFLAGS%g
2452s%@CPPFLAGS@%$CPPFLAGS%g
2453s%@CXXFLAGS@%$CXXFLAGS%g
2454s%@DEFS@%$DEFS%g
2455s%@LDFLAGS@%$LDFLAGS%g
2456s%@LIBS@%$LIBS%g
2457s%@exec_prefix@%$exec_prefix%g
2458s%@prefix@%$prefix%g
2459s%@program_transform_name@%$program_transform_name%g
2460s%@bindir@%$bindir%g
2461s%@sbindir@%$sbindir%g
2462s%@libexecdir@%$libexecdir%g
2463s%@datadir@%$datadir%g
2464s%@sysconfdir@%$sysconfdir%g
2465s%@sharedstatedir@%$sharedstatedir%g
2466s%@localstatedir@%$localstatedir%g
2467s%@libdir@%$libdir%g
2468s%@includedir@%$includedir%g
2469s%@oldincludedir@%$oldincludedir%g
2470s%@infodir@%$infodir%g
2471s%@mandir@%$mandir%g
2472s%@SET_MAKE@%$SET_MAKE%g
2473s%@host@%$host%g
2474s%@host_alias@%$host_alias%g
2475s%@host_cpu@%$host_cpu%g
2476s%@host_vendor@%$host_vendor%g
2477s%@host_os@%$host_os%g
2478s%@target@%$target%g
2479s%@target_alias@%$target_alias%g
2480s%@target_cpu@%$target_cpu%g
2481s%@target_vendor@%$target_vendor%g
2482s%@target_os@%$target_os%g
2483s%@build@%$build%g
2484s%@build_alias@%$build_alias%g
2485s%@build_cpu@%$build_cpu%g
2486s%@build_vendor@%$build_vendor%g
2487s%@build_os@%$build_os%g
2488s%@CAT@%$CAT%g
2489s%@RM@%$RM%g
2490s%@CP@%$CP%g
2491s%@MV@%$MV%g
2492s%@LN@%$LN%g
2493s%@CHMOD@%$CHMOD%g
2494s%@SORT@%$SORT%g
2495s%@MKDIR@%$MKDIR%g
2496s%@PR@%$PR%g
2497s%@PRINT@%$PRINT%g
2498s%@TOUCH@%$TOUCH%g
2499s%@CMP@%$CMP%g
2500s%@DIRNAME@%$DIRNAME%g
2501s%@BASENAME@%$BASENAME%g
2502s%@UNIFDEF@%$UNIFDEF%g
2503s%@ED@%$ED%g
2504s%@SED@%$SED%g
2505s%@AWK@%$AWK%g
2506s%@M4@%$M4%g
2507s%@FGREP@%$FGREP%g
2508s%@GREP@%$GREP%g
2509s%@EGREP@%$EGREP%g
2510s%@CATMAN@%$CATMAN%g
2511s%@KSH@%$KSH%g
2512s%@RCS_IDENT@%$RCS_IDENT%g
2513s%@RCS_CO@%$RCS_CO%g
2514s%@LN_S@%$LN_S%g
2515s%@RTEMS_BSP@%$RTEMS_BSP%g
2516s%@RTEMS_HOST@%$RTEMS_HOST%g
2517s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
2518s%@RTEMS_ROOT@%$RTEMS_ROOT%g
2519s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g
2520s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
2521s%@RTEMS_HAS_KA9Q@%$RTEMS_HAS_KA9Q%g
2522s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
2523s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
2524s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g
2525s%@PROJECT_ROOT@%$PROJECT_ROOT%g
2526s%@program_prefix@%$program_prefix%g
2527
2528CEOF
2529EOF
2530
2531cat >> $CONFIG_STATUS <<\EOF
2532
2533# Split the substitutions into bite-sized pieces for seds with
2534# small command number limits, like on Digital OSF/1 and HP-UX.
2535ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2536ac_file=1 # Number of current file.
2537ac_beg=1 # First line for current file.
2538ac_end=$ac_max_sed_cmds # Line after last line for current file.
2539ac_more_lines=:
2540ac_sed_cmds=""
2541while $ac_more_lines; do
2542  if test $ac_beg -gt 1; then
2543    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2544  else
2545    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2546  fi
2547  if test ! -s conftest.s$ac_file; then
2548    ac_more_lines=false
2549    rm -f conftest.s$ac_file
2550  else
2551    if test -z "$ac_sed_cmds"; then
2552      ac_sed_cmds="sed -f conftest.s$ac_file"
2553    else
2554      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2555    fi
2556    ac_file=`expr $ac_file + 1`
2557    ac_beg=$ac_end
2558    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2559  fi
2560done
2561if test -z "$ac_sed_cmds"; then
2562  ac_sed_cmds=cat
2563fi
2564EOF
2565
2566cat >> $CONFIG_STATUS <<EOF
2567
2568CONFIG_FILES=\${CONFIG_FILES-"Makefile
2569c/Makefile
2570c/build-tools/Makefile
2571c/build-tools/os/Makefile
2572c/build-tools/os/msdos/Makefile
2573c/build-tools/scripts/Makefile
2574c/build-tools/src/Makefile
2575c/make/Makefile
2576c/make/host.cfg
2577c/make/Templates/Makefile.inc
2578c/src/Makefile
2579c/src/exec/Makefile
2580c/src/exec/posix/Makefile
2581c/src/exec/posix/base/Makefile
2582c/src/exec/posix/headers/Makefile
2583c/src/exec/posix/inline/Makefile
2584c/src/exec/posix/macros/Makefile
2585c/src/exec/posix/optman/Makefile
2586c/src/exec/posix/src/Makefile
2587c/src/exec/posix/sys/Makefile
2588c/src/exec/rtems/Makefile
2589c/src/exec/rtems/headers/Makefile
2590c/src/exec/rtems/inline/Makefile
2591c/src/exec/rtems/macros/Makefile
2592c/src/exec/rtems/optman/Makefile
2593c/src/exec/rtems/src/Makefile
2594c/src/exec/sapi/Makefile
2595c/src/exec/sapi/headers/Makefile
2596c/src/exec/sapi/inline/Makefile
2597c/src/exec/sapi/macros/Makefile
2598c/src/exec/sapi/optman/Makefile
2599c/src/exec/sapi/src/Makefile
2600c/src/exec/score/Makefile
2601c/src/exec/score/cpu/Makefile
2602c/src/exec/score/headers/Makefile
2603c/src/exec/score/inline/Makefile
2604c/src/exec/score/macros/Makefile
2605c/src/exec/score/src/Makefile
2606c/src/exec/score/tools/Makefile
2607c/src/exec/score/tools/generic/Makefile
2608c/src/exec/wrapup/Makefile
2609c/src/exec/wrapup/posix/Makefile
2610c/src/exec/wrapup/rtems/Makefile
2611c/src/lib/Makefile
2612c/src/lib/include/Makefile
2613c/src/lib/libbsp/Makefile
2614c/src/lib/libbsp/shmdr/Makefile
2615c/src/lib/libc/Makefile
2616c/src/lib/libcpu/Makefile
2617c/src/lib/libmisc/Makefile
2618c/src/lib/libmisc/assoc/Makefile
2619c/src/lib/libmisc/cpuuse/Makefile
2620c/src/lib/libmisc/error/Makefile
2621c/src/lib/libmisc/monitor/Makefile
2622c/src/lib/libmisc/rtmonuse/Makefile
2623c/src/lib/libmisc/stackchk/Makefile
2624c/src/lib/libmisc/wrapup/Makefile
2625c/src/lib/start/Makefile
2626c/src/lib/wrapup/Makefile
2627c/src/tests/Makefile
2628c/src/tests/samples/Makefile
2629c/src/tests/samples/base_mp/Makefile
2630c/src/tests/samples/base_mp/node1/Makefile
2631c/src/tests/samples/base_mp/node2/Makefile
2632c/src/tests/samples/base_sp/Makefile
2633c/src/tests/samples/cdtest/Makefile
2634c/src/tests/samples/hello/Makefile
2635c/src/tests/samples/paranoia/Makefile
2636c/src/tests/samples/ticker/Makefile
2637c/src/tests/support/Makefile
2638c/src/tests/support/include/Makefile
2639c/src/tests/support/stubdr/Makefile
2640c/src/tests/support/wrapup/Makefile
2641c/src/tests/tools/Makefile
2642c/src/tests/tools/generic/Makefile
2643c/src/tests/tools/hppa1_1/Makefile
2644c/src/tests/tools/hppa1_1/simhppa/Makefile
2645c/src/tests/tools/sparc/Makefile
2646c/src/tests/tools/sparc/erc32/Makefile
2647c/src/tests/tools/unix/Makefile
2648c/src/tests/tools/unix/posix/Makefile
2649$makefiles
2650c/update-tools/Makefile"}
2651EOF
2652cat >> $CONFIG_STATUS <<\EOF
2653for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2654  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2655  case "$ac_file" in
2656  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2657       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2658  *) ac_file_in="${ac_file}.in" ;;
2659  esac
2660
2661  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2662
2663  # Remove last slash and all that follows it.  Not all systems have dirname.
2664  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2665  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2666    # The file is in a subdirectory.
2667    test ! -d "$ac_dir" && mkdir "$ac_dir"
2668    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2669    # A "../" for each directory in $ac_dir_suffix.
2670    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2671  else
2672    ac_dir_suffix= ac_dots=
2673  fi
2674
2675  case "$ac_given_srcdir" in
2676  .)  srcdir=.
2677      if test -z "$ac_dots"; then top_srcdir=.
2678      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2679  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2680  *) # Relative path.
2681    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2682    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2683  esac
2684
2685
2686  echo creating "$ac_file"
2687  rm -f "$ac_file"
2688  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2689  case "$ac_file" in
2690  *Makefile*) ac_comsub="1i\\
2691# $configure_input" ;;
2692  *) ac_comsub= ;;
2693  esac
2694
2695  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2696  sed -e "$ac_comsub
2697s%@configure_input@%$configure_input%g
2698s%@srcdir@%$srcdir%g
2699s%@top_srcdir@%$top_srcdir%g
2700" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2701fi; done
2702rm -f conftest.s*
2703
2704EOF
2705cat >> $CONFIG_STATUS <<EOF
2706
2707EOF
2708cat >> $CONFIG_STATUS <<\EOF
2709
2710exit 0
2711EOF
2712chmod +x $CONFIG_STATUS
2713rm -fr confdefs* $ac_clean_files
2714test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2715
2716
2717echo
2718echo target architecture: $target_cpu.
2719echo available BSPs: $rtems_bsp.
2720echo \'make all\' will build the following BSPs: $RTEMS_BSP.
2721echo other BSPs can be built with \'make RTEMSBSP=\"bsp1 bsp2 ...\"\'
2722echo
Note: See TracBrowser for help on using the repository browser.