source: rtems/c/configure @ 4075af6f

4.104.114.84.95
Last change on this file since 4075af6f was 4075af6f, checked in by Joel Sherrill <joel.sherrill@…>, on 10/05/99 at 13:49:54

Regenerated.

  • Property mode set to 100644
File size: 46.6 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
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-target-subdir=DIR"
16ac_help="$ac_help
17  --enable-maintainer-mode enable make rules and dependencies not useful
18                          (and sometimes confusing) to the casual installer"
19ac_help="$ac_help
20  --enable-bare-cpu-cflags             specify a particular cpu cflag
21                                       (bare bsp specific)"
22ac_help="$ac_help
23  --enable-bare-cpu-model              specify a particular cpu model
24                                       (bare bsp specific)"
25ac_help="$ac_help
26  --enable-rtemsbsp=bsp1 bsp2 ..      BSPs to include in build"
27
28# Initialize some variables set by options.
29# The variables have the same names as the options, with
30# dashes changed to underlines.
31build=NONE
32cache_file=./config.cache
33exec_prefix=NONE
34host=NONE
35no_create=
36nonopt=NONE
37no_recursion=
38prefix=NONE
39program_prefix=NONE
40program_suffix=NONE
41program_transform_name=s,x,x,
42silent=
43site=
44srcdir=
45target=NONE
46verbose=
47x_includes=NONE
48x_libraries=NONE
49bindir='${exec_prefix}/bin'
50sbindir='${exec_prefix}/sbin'
51libexecdir='${exec_prefix}/libexec'
52datadir='${prefix}/share'
53sysconfdir='${prefix}/etc'
54sharedstatedir='${prefix}/com'
55localstatedir='${prefix}/var'
56libdir='${exec_prefix}/lib'
57includedir='${prefix}/include'
58oldincludedir='/usr/include'
59infodir='${prefix}/info'
60mandir='${prefix}/man'
61
62# Initialize some other variables.
63subdirs=
64MFLAGS= MAKEFLAGS=
65SHELL=${CONFIG_SHELL-/bin/sh}
66# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
68
69ac_prev=
70for ac_option
71do
72
73  # If the previous option needs an argument, assign it.
74  if test -n "$ac_prev"; then
75    eval "$ac_prev=\$ac_option"
76    ac_prev=
77    continue
78  fi
79
80  case "$ac_option" in
81  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82  *) ac_optarg= ;;
83  esac
84
85  # Accept the important Cygnus configure options, so we can diagnose typos.
86
87  case "$ac_option" in
88
89  -bindir | --bindir | --bindi | --bind | --bin | --bi)
90    ac_prev=bindir ;;
91  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92    bindir="$ac_optarg" ;;
93
94  -build | --build | --buil | --bui | --bu)
95    ac_prev=build ;;
96  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97    build="$ac_optarg" ;;
98
99  -cache-file | --cache-file | --cache-fil | --cache-fi \
100  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101    ac_prev=cache_file ;;
102  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104    cache_file="$ac_optarg" ;;
105
106  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107    ac_prev=datadir ;;
108  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109  | --da=*)
110    datadir="$ac_optarg" ;;
111
112  -disable-* | --disable-*)
113    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114    # Reject names that are not valid shell variable names.
115    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117    fi
118    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119    eval "enable_${ac_feature}=no" ;;
120
121  -enable-* | --enable-*)
122    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123    # Reject names that are not valid shell variable names.
124    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126    fi
127    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128    case "$ac_option" in
129      *=*) ;;
130      *) ac_optarg=yes ;;
131    esac
132    eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136  | --exec | --exe | --ex)
137    ac_prev=exec_prefix ;;
138  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140  | --exec=* | --exe=* | --ex=*)
141    exec_prefix="$ac_optarg" ;;
142
143  -gas | --gas | --ga | --g)
144    # Obsolete; use --with-gas.
145    with_gas=yes ;;
146
147  -help | --help | --hel | --he)
148    # Omit some internal or obsolete options to make the list less imposing.
149    # This message is too long to be a string in the A/UX 3.1 sh.
150    cat << EOF
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
154  --cache-file=FILE       cache test results in FILE
155  --help                  print this message
156  --no-create             do not create output files
157  --quiet, --silent       do not print \`checking...' messages
158  --version               print the version of autoconf that created configure
159Directory and file names:
160  --prefix=PREFIX         install architecture-independent files in PREFIX
161                          [$ac_default_prefix]
162  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
163                          [same as prefix]
164  --bindir=DIR            user executables in DIR [EPREFIX/bin]
165  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
166  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
167  --datadir=DIR           read-only architecture-independent data in DIR
168                          [PREFIX/share]
169  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
170  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
171                          [PREFIX/com]
172  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
173  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
174  --includedir=DIR        C header files in DIR [PREFIX/include]
175  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
176  --infodir=DIR           info documentation in DIR [PREFIX/info]
177  --mandir=DIR            man documentation in DIR [PREFIX/man]
178  --srcdir=DIR            find the sources in DIR [configure dir or ..]
179  --program-prefix=PREFIX prepend PREFIX to installed program names
180  --program-suffix=SUFFIX append SUFFIX to installed program names
181  --program-transform-name=PROGRAM
182                          run sed PROGRAM on installed program names
183EOF
184    cat << EOF
185Host type:
186  --build=BUILD           configure for building on BUILD [BUILD=HOST]
187  --host=HOST             configure for HOST [guessed]
188  --target=TARGET         configure for TARGET [TARGET=HOST]
189Features and packages:
190  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
191  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
192  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
193  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
194  --x-includes=DIR        X include files are in DIR
195  --x-libraries=DIR       X library files are in DIR
196EOF
197    if test -n "$ac_help"; then
198      echo "--enable and --with options recognized:$ac_help"
199    fi
200    exit 0 ;;
201
202  -host | --host | --hos | --ho)
203    ac_prev=host ;;
204  -host=* | --host=* | --hos=* | --ho=*)
205    host="$ac_optarg" ;;
206
207  -includedir | --includedir | --includedi | --included | --include \
208  | --includ | --inclu | --incl | --inc)
209    ac_prev=includedir ;;
210  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211  | --includ=* | --inclu=* | --incl=* | --inc=*)
212    includedir="$ac_optarg" ;;
213
214  -infodir | --infodir | --infodi | --infod | --info | --inf)
215    ac_prev=infodir ;;
216  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217    infodir="$ac_optarg" ;;
218
219  -libdir | --libdir | --libdi | --libd)
220    ac_prev=libdir ;;
221  -libdir=* | --libdir=* | --libdi=* | --libd=*)
222    libdir="$ac_optarg" ;;
223
224  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225  | --libexe | --libex | --libe)
226    ac_prev=libexecdir ;;
227  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228  | --libexe=* | --libex=* | --libe=*)
229    libexecdir="$ac_optarg" ;;
230
231  -localstatedir | --localstatedir | --localstatedi | --localstated \
232  | --localstate | --localstat | --localsta | --localst \
233  | --locals | --local | --loca | --loc | --lo)
234    ac_prev=localstatedir ;;
235  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238    localstatedir="$ac_optarg" ;;
239
240  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241    ac_prev=mandir ;;
242  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243    mandir="$ac_optarg" ;;
244
245  -nfp | --nfp | --nf)
246    # Obsolete; use --without-fp.
247    with_fp=no ;;
248
249  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250  | --no-cr | --no-c)
251    no_create=yes ;;
252
253  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255    no_recursion=yes ;;
256
257  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259  | --oldin | --oldi | --old | --ol | --o)
260    ac_prev=oldincludedir ;;
261  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264    oldincludedir="$ac_optarg" ;;
265
266  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267    ac_prev=prefix ;;
268  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269    prefix="$ac_optarg" ;;
270
271  -program-prefix | --program-prefix | --program-prefi | --program-pref \
272  | --program-pre | --program-pr | --program-p)
273    ac_prev=program_prefix ;;
274  -program-prefix=* | --program-prefix=* | --program-prefi=* \
275  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276    program_prefix="$ac_optarg" ;;
277
278  -program-suffix | --program-suffix | --program-suffi | --program-suff \
279  | --program-suf | --program-su | --program-s)
280    ac_prev=program_suffix ;;
281  -program-suffix=* | --program-suffix=* | --program-suffi=* \
282  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283    program_suffix="$ac_optarg" ;;
284
285  -program-transform-name | --program-transform-name \
286  | --program-transform-nam | --program-transform-na \
287  | --program-transform-n | --program-transform- \
288  | --program-transform | --program-transfor \
289  | --program-transfo | --program-transf \
290  | --program-trans | --program-tran \
291  | --progr-tra | --program-tr | --program-t)
292    ac_prev=program_transform_name ;;
293  -program-transform-name=* | --program-transform-name=* \
294  | --program-transform-nam=* | --program-transform-na=* \
295  | --program-transform-n=* | --program-transform-=* \
296  | --program-transform=* | --program-transfor=* \
297  | --program-transfo=* | --program-transf=* \
298  | --program-trans=* | --program-tran=* \
299  | --progr-tra=* | --program-tr=* | --program-t=*)
300    program_transform_name="$ac_optarg" ;;
301
302  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303  | -silent | --silent | --silen | --sile | --sil)
304    silent=yes ;;
305
306  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307    ac_prev=sbindir ;;
308  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309  | --sbi=* | --sb=*)
310    sbindir="$ac_optarg" ;;
311
312  -sharedstatedir | --sharedstatedir | --sharedstatedi \
313  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314  | --sharedst | --shareds | --shared | --share | --shar \
315  | --sha | --sh)
316    ac_prev=sharedstatedir ;;
317  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320  | --sha=* | --sh=*)
321    sharedstatedir="$ac_optarg" ;;
322
323  -site | --site | --sit)
324    ac_prev=site ;;
325  -site=* | --site=* | --sit=*)
326    site="$ac_optarg" ;;
327
328  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329    ac_prev=srcdir ;;
330  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331    srcdir="$ac_optarg" ;;
332
333  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334  | --syscon | --sysco | --sysc | --sys | --sy)
335    ac_prev=sysconfdir ;;
336  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338    sysconfdir="$ac_optarg" ;;
339
340  -target | --target | --targe | --targ | --tar | --ta | --t)
341    ac_prev=target ;;
342  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343    target="$ac_optarg" ;;
344
345  -v | -verbose | --verbose | --verbos | --verbo | --verb)
346    verbose=yes ;;
347
348  -version | --version | --versio | --versi | --vers)
349    echo "configure generated by autoconf version 2.13"
350    exit 0 ;;
351
352  -with-* | --with-*)
353    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354    # Reject names that are not valid shell variable names.
355    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357    fi
358    ac_package=`echo $ac_package| sed 's/-/_/g'`
359    case "$ac_option" in
360      *=*) ;;
361      *) ac_optarg=yes ;;
362    esac
363    eval "with_${ac_package}='$ac_optarg'" ;;
364
365  -without-* | --without-*)
366    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367    # Reject names that are not valid shell variable names.
368    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370    fi
371    ac_package=`echo $ac_package| sed 's/-/_/g'`
372    eval "with_${ac_package}=no" ;;
373
374  --x)
375    # Obsolete; use --with-x.
376    with_x=yes ;;
377
378  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379  | --x-incl | --x-inc | --x-in | --x-i)
380    ac_prev=x_includes ;;
381  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383    x_includes="$ac_optarg" ;;
384
385  -x-libraries | --x-libraries | --x-librarie | --x-librari \
386  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387    ac_prev=x_libraries ;;
388  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390    x_libraries="$ac_optarg" ;;
391
392  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393    ;;
394
395  *)
396    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397      echo "configure: warning: $ac_option: invalid host type" 1>&2
398    fi
399    if test "x$nonopt" != xNONE; then
400      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401    fi
402    nonopt="$ac_option"
403    ;;
404
405  esac
406done
407
408if test -n "$ac_prev"; then
409  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423  exec 6>/dev/null
424else
425  exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439  case "$ac_arg" in
440  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441  | --no-cr | --no-c) ;;
442  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447  esac
448done
449
450# NLS nuisances.
451# Only set these to C if already set.  These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
455if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=src
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471  ac_srcdir_defaulted=yes
472  # Try the directory containing this script, then its parent.
473  ac_prog=$0
474  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476  srcdir=$ac_confdir
477  if test ! -r $srcdir/$ac_unique_file; then
478    srcdir=..
479  fi
480else
481  ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484  if test "$ac_srcdir_defaulted" = yes; then
485    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486  else
487    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488  fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$CONFIG_SITE"; then
494  if test "x$prefix" != xNONE; then
495    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496  else
497    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498  fi
499fi
500for ac_site_file in $CONFIG_SITE; do
501  if test -r "$ac_site_file"; then
502    echo "loading site script $ac_site_file"
503    . "$ac_site_file"
504  fi
505done
506
507if test -r "$cache_file"; then
508  echo "loading cache $cache_file"
509  . $cache_file
510else
511  echo "creating cache $cache_file"
512  > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520cross_compiling=$ac_cv_prog_cc_cross
521
522ac_exeext=
523ac_objext=o
524if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527    ac_n= ac_c='
528' ac_t='        '
529  else
530    ac_n=-n ac_c= ac_t=
531  fi
532else
533  ac_n= ac_c='\c' ac_t=
534fi
535
536
537
538# Check whether --with-target-subdir or --without-target-subdir was given.
539if test "${with_target_subdir+set}" = set; then
540  withval="$with_target_subdir"
541  TARGET_SUBDIR="$withval"
542else
543  TARGET_SUBDIR="."
544fi
545
546
547RTEMS_TOPdir="..";
548
549
550echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
551echo "configure:552: checking for RTEMS Version" >&5
552if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
553RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
554sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
555else
556{ echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; }
557fi
558if test -z "$RTEMS_VERSION"; then
559{ echo "configure: error: Unable to determine version" 1>&2; exit 1; }
560fi
561echo "$ac_t""$RTEMS_VERSION" 1>&6
562
563ac_aux_dir=
564for ac_dir in .. $srcdir/..; do
565  if test -f $ac_dir/install-sh; then
566    ac_aux_dir=$ac_dir
567    ac_install_sh="$ac_aux_dir/install-sh -c"
568    break
569  elif test -f $ac_dir/install.sh; then
570    ac_aux_dir=$ac_dir
571    ac_install_sh="$ac_aux_dir/install.sh -c"
572    break
573  fi
574done
575if test -z "$ac_aux_dir"; then
576  { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
577fi
578ac_config_guess=$ac_aux_dir/config.guess
579ac_config_sub=$ac_aux_dir/config.sub
580ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
581
582
583
584
585# Do some error checking and defaulting for the host and target type.
586# The inputs are:
587#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
588#
589# The rules are:
590# 1. You are not allowed to specify --host, --target, and nonopt at the
591#    same time.
592# 2. Host defaults to nonopt.
593# 3. If nonopt is not specified, then host defaults to the current host,
594#    as determined by config.guess.
595# 4. Target and build default to nonopt.
596# 5. If nonopt is not specified, then target and build default to host.
597
598# The aliases save the names the user supplied, while $host etc.
599# will get canonicalized.
600case $host---$target---$nonopt in
601NONE---*---* | *---NONE---* | *---*---NONE) ;;
602*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
603esac
604
605
606# Make sure we can run config.sub.
607if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
608else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
609fi
610
611echo $ac_n "checking host system type""... $ac_c" 1>&6
612echo "configure:613: checking host system type" >&5
613
614host_alias=$host
615case "$host_alias" in
616NONE)
617  case $nonopt in
618  NONE)
619    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
620    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
621    fi ;;
622  *) host_alias=$nonopt ;;
623  esac ;;
624esac
625
626host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
627host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
628host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
629host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
630echo "$ac_t""$host" 1>&6
631
632echo $ac_n "checking target system type""... $ac_c" 1>&6
633echo "configure:634: checking target system type" >&5
634
635target_alias=$target
636case "$target_alias" in
637NONE)
638  case $nonopt in
639  NONE) target_alias=$host_alias ;;
640  *) target_alias=$nonopt ;;
641  esac ;;
642esac
643
644target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
645target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
646target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
647target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
648echo "$ac_t""$target" 1>&6
649
650echo $ac_n "checking build system type""... $ac_c" 1>&6
651echo "configure:652: checking build system type" >&5
652
653build_alias=$build
654case "$build_alias" in
655NONE)
656  case $nonopt in
657  NONE) build_alias=$host_alias ;;
658  *) build_alias=$nonopt ;;
659  esac ;;
660esac
661
662build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
663build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
664build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
665build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666echo "$ac_t""$build" 1>&6
667
668test "$host_alias" != "$target_alias" &&
669  test "$program_prefix$program_suffix$program_transform_name" = \
670    NONENONEs,x,x, &&
671  program_prefix=${target_alias}-
672
673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
674echo "configure:675: checking rtems target cpu" >&5
675case "${target}" in
676  # hpux unix port should go here
677  i[3456]86-go32-rtems*)
678        RTEMS_CPU=i386
679        ;;
680  i[3456]86-pc-linux*)          # unix "simulator" port
681        RTEMS_CPU=unix
682        ;;
683  i[3456]86-*freebsd2*)         # unix "simulator" port
684        RTEMS_CPU=unix
685        ;;
686  no_cpu-*rtems*)
687        RTEMS_CPU=no_cpu
688        ;;
689  sparc-sun-solaris*)           # unix "simulator" port
690        RTEMS_CPU=unix
691        ;;
692  *)
693        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
694        ;;
695esac
696
697echo "$ac_t""$RTEMS_CPU" 1>&6
698
699
700# Find a good install program.  We prefer a C program (faster),
701# so one script is as good as another.  But avoid the broken or
702# incompatible versions:
703# SysV /etc/install, /usr/sbin/install
704# SunOS /usr/etc/install
705# IRIX /sbin/install
706# AIX /bin/install
707# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
708# AFS /usr/afsws/bin/install, which mishandles nonexistent args
709# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
710# ./install, which can be erroneously created by make from ./install.sh.
711echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
712echo "configure:713: checking for a BSD compatible install" >&5
713if test -z "$INSTALL"; then
714if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
715  echo $ac_n "(cached) $ac_c" 1>&6
716else
717    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
718  for ac_dir in $PATH; do
719    # Account for people who put trailing slashes in PATH elements.
720    case "$ac_dir/" in
721    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
722    *)
723      # OSF1 and SCO ODT 3.0 have their own names for install.
724      # Don't use installbsd from OSF since it installs stuff as root
725      # by default.
726      for ac_prog in ginstall scoinst install; do
727        if test -f $ac_dir/$ac_prog; then
728          if test $ac_prog = install &&
729            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
730            # AIX install.  It has an incompatible calling convention.
731            :
732          else
733            ac_cv_path_install="$ac_dir/$ac_prog -c"
734            break 2
735          fi
736        fi
737      done
738      ;;
739    esac
740  done
741  IFS="$ac_save_IFS"
742
743fi
744  if test "${ac_cv_path_install+set}" = set; then
745    INSTALL="$ac_cv_path_install"
746  else
747    # As a last resort, use the slow shell script.  We don't cache a
748    # path for INSTALL within a source directory, because that will
749    # break other packages using the cache if that directory is
750    # removed, or if the path is relative.
751    INSTALL="$ac_install_sh"
752  fi
753fi
754echo "$ac_t""$INSTALL" 1>&6
755
756# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
757# It thinks the first close brace ends the variable substitution.
758test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
759
760test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
761
762test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
763
764echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
765echo "configure:766: checking whether build environment is sane" >&5
766# Just in case
767sleep 1
768echo timestamp > conftestfile
769# Do `set' in a subshell so we don't clobber the current shell's
770# arguments.  Must try -L first in case configure is actually a
771# symlink; some systems play weird games with the mod time of symlinks
772# (eg FreeBSD returns the mod time of the symlink's containing
773# directory).
774if (
775   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
776   if test "$*" = "X"; then
777      # -L didn't work.
778      set X `ls -t $srcdir/configure conftestfile`
779   fi
780   if test "$*" != "X $srcdir/configure conftestfile" \
781      && test "$*" != "X conftestfile $srcdir/configure"; then
782
783      # If neither matched, then we have a broken ls.  This can happen
784      # if, for instance, CONFIG_SHELL is bash and it inherits a
785      # broken ls alias from the environment.  This has actually
786      # happened.  Such a system could not be considered "sane".
787      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
788alias in your environment" 1>&2; exit 1; }
789   fi
790
791   test "$2" = conftestfile
792   )
793then
794   # Ok.
795   :
796else
797   { echo "configure: error: newly created file is older than distributed files!
798Check your system clock" 1>&2; exit 1; }
799fi
800rm -f conftest*
801echo "$ac_t""yes" 1>&6
802if test "$program_transform_name" = s,x,x,; then
803  program_transform_name=
804else
805  # Double any \ or $.  echo might interpret backslashes.
806  cat <<\EOF_SED > conftestsed
807s,\\,\\\\,g; s,\$,$$,g
808EOF_SED
809  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
810  rm -f conftestsed
811fi
812test "$program_prefix" != NONE &&
813  program_transform_name="s,^,${program_prefix},; $program_transform_name"
814# Use a double $ so make ignores it.
815test "$program_suffix" != NONE &&
816  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
817
818# sed with no file args requires a program.
819test "$program_transform_name" = "" && program_transform_name="s,x,x,"
820
821echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
822echo "configure:823: checking whether ${MAKE-make} sets \${MAKE}" >&5
823set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
824if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
825  echo $ac_n "(cached) $ac_c" 1>&6
826else
827  cat > conftestmake <<\EOF
828all:
829        @echo 'ac_maketemp="${MAKE}"'
830EOF
831# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
832eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
833if test -n "$ac_maketemp"; then
834  eval ac_cv_prog_make_${ac_make}_set=yes
835else
836  eval ac_cv_prog_make_${ac_make}_set=no
837fi
838rm -f conftestmake
839fi
840if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
841  echo "$ac_t""yes" 1>&6
842  SET_MAKE=
843else
844  echo "$ac_t""no" 1>&6
845  SET_MAKE="MAKE=${MAKE-make}"
846fi
847
848
849
850PACKAGE=rtems-c
851
852VERSION=$RTEMS_VERSION
853
854if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
855  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
856fi
857
858
859
860missing_dir=`cd $ac_aux_dir && pwd`
861echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
862echo "configure:863: checking for working aclocal" >&5
863# Run test in a subshell; some versions of sh will print an error if
864# an executable is not found, even if stderr is redirected.
865# Redirect stdin to placate older versions of autoconf.  Sigh.
866if (aclocal --version) < /dev/null > /dev/null 2>&1; then
867   ACLOCAL=aclocal
868   echo "$ac_t""found" 1>&6
869else
870   ACLOCAL="$missing_dir/missing aclocal"
871   echo "$ac_t""missing" 1>&6
872fi
873
874echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
875echo "configure:876: checking for working autoconf" >&5
876# Run test in a subshell; some versions of sh will print an error if
877# an executable is not found, even if stderr is redirected.
878# Redirect stdin to placate older versions of autoconf.  Sigh.
879if (autoconf --version) < /dev/null > /dev/null 2>&1; then
880   AUTOCONF=autoconf
881   echo "$ac_t""found" 1>&6
882else
883   AUTOCONF="$missing_dir/missing autoconf"
884   echo "$ac_t""missing" 1>&6
885fi
886
887echo $ac_n "checking for working automake""... $ac_c" 1>&6
888echo "configure:889: checking for working automake" >&5
889# Run test in a subshell; some versions of sh will print an error if
890# an executable is not found, even if stderr is redirected.
891# Redirect stdin to placate older versions of autoconf.  Sigh.
892if (automake --version) < /dev/null > /dev/null 2>&1; then
893   AUTOMAKE=automake
894   echo "$ac_t""found" 1>&6
895else
896   AUTOMAKE="$missing_dir/missing automake"
897   echo "$ac_t""missing" 1>&6
898fi
899
900echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
901echo "configure:902: checking for working autoheader" >&5
902# Run test in a subshell; some versions of sh will print an error if
903# an executable is not found, even if stderr is redirected.
904# Redirect stdin to placate older versions of autoconf.  Sigh.
905if (autoheader --version) < /dev/null > /dev/null 2>&1; then
906   AUTOHEADER=autoheader
907   echo "$ac_t""found" 1>&6
908else
909   AUTOHEADER="$missing_dir/missing autoheader"
910   echo "$ac_t""missing" 1>&6
911fi
912
913echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
914echo "configure:915: checking for working makeinfo" >&5
915# Run test in a subshell; some versions of sh will print an error if
916# an executable is not found, even if stderr is redirected.
917# Redirect stdin to placate older versions of autoconf.  Sigh.
918if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
919   MAKEINFO=makeinfo
920   echo "$ac_t""found" 1>&6
921else
922   MAKEINFO="$missing_dir/missing makeinfo"
923   echo "$ac_t""missing" 1>&6
924fi
925
926
927echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
928echo "configure:929: checking whether to enable maintainer-specific portions of Makefiles" >&5
929    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
930if test "${enable_maintainer_mode+set}" = set; then
931  enableval="$enable_maintainer_mode"
932  USE_MAINTAINER_MODE=$enableval
933else
934  USE_MAINTAINER_MODE=no
935fi
936
937  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
938 
939
940if test $USE_MAINTAINER_MODE = yes; then
941  MAINTAINER_MODE_TRUE=
942  MAINTAINER_MODE_FALSE='#'
943else
944  MAINTAINER_MODE_TRUE='#'
945  MAINTAINER_MODE_FALSE=
946fi
947  MAINT=$MAINTAINER_MODE_TRUE
948 
949
950
951
952# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
953if test "${enable_bare_cpu_cflags+set}" = set; then
954  enableval="$enable_bare_cpu_cflags"
955  case "${enableval}" in
956  no) BARE_CPU_CFLAGS="" ;;
957  *)    BARE_CPU_CFLAGS="${enableval}" ;;
958esac
959else
960  BARE_CPU_CFLAGS=""
961fi
962
963
964# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
965if test "${enable_bare_cpu_model+set}" = set; then
966  enableval="$enable_bare_cpu_model"
967  case "${enableval}" in
968  no)   BARE_CPU_MODEL="" ;;
969  *)    BARE_CPU_MODEL="${enableval}" ;;
970esac
971else
972  BARE_CPU_MODEL=""
973fi
974
975
976
977# Check whether --enable-rtemsbsp or --disable-rtemsbsp was given.
978if test "${enable_rtemsbsp+set}" = set; then
979  enableval="$enable_rtemsbsp"
980  case "${enableval}" in
981  yes|no) { echo "configure: error: missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"" 1>&2; exit 1; };;
982  *) rtems_bsp=$enableval;;
983esac
984else
985  rtems_bsp=""
986fi
987
988
989
990
991
992
993# Is this a supported CPU?
994echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
995echo "configure:996: checking if cpu $RTEMS_CPU is supported" >&5
996if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
997  echo "$ac_t""yes" 1>&6
998else
999  { echo "configure: error: no" 1>&2; exit 1; }
1000fi
1001
1002
1003RTEMS_HOST=$host_os
1004case "${target}" in
1005  # hpux unix port should go here
1006  i[3456]86-pc-linux*)         # unix "simulator" port
1007        RTEMS_HOST=Linux
1008        ;;
1009  i[3456]86-*freebsd2*) # unix "simulator" port
1010        RTEMS_HOST=FreeBSD
1011        ;;
1012  sparc-sun-solaris*)             # unix "simulator" port
1013        RTEMS_HOST=Solaris
1014        ;;
1015  *)
1016        ;;
1017esac
1018
1019
1020
1021if test -z "$rtems_bsp"; then
1022 
1023echo $ac_n "checking for bsps""... $ac_c" 1>&6
1024echo "configure:1025: checking for bsps" >&5
1025case "${target}" in
1026  i[3456]86-go32-rtems*)
1027    rtems_bsp="go32 go32_p5"
1028    ;;
1029  *)
1030    files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
1031    for file in $files; do
1032      case $file in
1033        shared*);;
1034        Makefile*);;
1035        READ*);;
1036        CVS*);;
1037        pxfl*);;
1038        go32*);;       # so the i386 port can pick up the other Makefiles
1039        # Now account for BSPs with build variants
1040        gen68360)      rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
1041        p4000)         rtems_bsp="$rtems_bsp p4600 p4650";;
1042        mvme162)       rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
1043        *) rtems_bsp="$rtems_bsp $file";;
1044      esac;
1045    done
1046    ;;
1047esac
1048echo "$ac_t""$rtems_bsp .. done" 1>&6
1049
1050fi
1051
1052for i in $rtems_bsp; do
1053
1054    # make sure there is a make/custom file for the bsp
1055   
1056
1057echo $ac_n "checking for make/custom/$i.cfg""... $ac_c" 1>&6
1058echo "configure:1059: checking for make/custom/$i.cfg" >&5
1059if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$i.cfg"; then
1060  echo "$ac_t""yes" 1>&6
1061else
1062  { echo "configure: error: no" 1>&2; exit 1; }
1063fi
1064
1065 
1066   
1067    # account for "aliased" bsps which share source code
1068    case $i in
1069      mvme162lx)    bspdir=mvme162  ;;  # mvme162 board variant
1070      gen68360_040) bspdir=gen68360 ;;  # 68360 in companion mode
1071      go32_p5)      bspdir=go32     ;;  # go32 on Pentium class CPU
1072      p4600)        bspdir=p4000    ;;  # p4000 board with IDT 4600
1073      p4650)        bspdir=p4000    ;;  # p4000 board with IDT 4650
1074      *)            bspdir=$i;;
1075    esac
1076
1077
1078    # Is there code where there should be for this BSP?
1079    # The bare bsp is a special case as it is not under the RTEMS_CPU path
1080    case $bspdir in
1081      bare)
1082        bspcpudir=
1083        if test "X${BARE_CPU_CFLAGS}" = "X" ; then
1084          { echo "configure: error: --enable-bare-cpu-cflags not specified for bare bsp" 1>&2; exit 1; }
1085        fi
1086        if test "X${BARE_CPU_MODEL}" = "X" ; then
1087          { echo "configure: error: --enable-bare-cpu-model not specified for bare bsp" 1>&2; exit 1; }
1088        fi
1089        ;;
1090      *)
1091        bspcpudir=$RTEMS_CPU/
1092        ;;
1093    esac
1094     
1095    if test -d "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
1096      RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
1097    else
1098      { echo "configure: error: unable to find libbsp directory ($bspdir) for  $i" 1>&2; exit 1; }
1099    fi
1100done
1101
1102#
1103# Compose the configuration arguments to be passed to c/src/configure
1104#
1105##
1106## Partially borrowed from autoconf-2.13
1107##
1108
1109## Adjust paths
1110case $srcdir in
1111/*) rtems_bsp_configure="$srcdir/src/configure";;
1112*)  rtems_bsp_configure="../$srcdir/src/configure";;
1113esac
1114
1115## Remove --cache-file, --srcdir and --enable-rtemsbsp arguments
1116## so they do not pile up
1117  rtems_bsp_configure_args=
1118  for ac_arg in $ac_configure_args; do
1119    if test -n "$ac_prev"; then
1120      ac_prev=
1121      continue
1122    fi
1123    case "$ac_arg" in
1124    -cache-file | --cache-file | --cache-fil | --cache-fi \
1125    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1126      ac_prev=cache_file ;;
1127    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1128    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1129      ;;
1130    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131      ac_prev=srcdir ;;
1132    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133      ;;
1134    --enable-rtemsbsp*) ;;
1135    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136      ;;
1137    *) rtems_bsp_configure_args="$rtems_bsp_configure_args $ac_arg" ;;
1138    esac
1139  done
1140
1141rtems_bsp_configure="$rtems_bsp_configure $rtems_bsp_configure_args"
1142
1143
1144
1145
1146trap '' 1 2 15
1147cat > confcache <<\EOF
1148# This file is a shell script that caches the results of configure
1149# tests run on this system so they can be shared between configure
1150# scripts and configure runs.  It is not useful on other systems.
1151# If it contains results you don't want to keep, you may remove or edit it.
1152#
1153# By default, configure uses ./config.cache as the cache file,
1154# creating it if it does not exist already.  You can give configure
1155# the --cache-file=FILE option to use a different cache file; that is
1156# what configure does when it calls configure scripts in
1157# subdirectories, so they share the cache.
1158# Giving --cache-file=/dev/null disables caching, for debugging configure.
1159# config.status only pays attention to the cache file if you give it the
1160# --recheck option to rerun configure.
1161#
1162EOF
1163# The following way of writing the cache mishandles newlines in values,
1164# but we know of no workaround that is simple, portable, and efficient.
1165# So, don't put newlines in cache variables' values.
1166# Ultrix sh set writes to stderr and can't be redirected directly,
1167# and sets the high bit in the cache file unless we assign to the vars.
1168(set) 2>&1 |
1169  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1170  *ac_space=\ *)
1171    # `set' does not quote correctly, so add quotes (double-quote substitution
1172    # turns \\\\ into \\, and sed turns \\ into \).
1173    sed -n \
1174      -e "s/'/'\\\\''/g" \
1175      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1176    ;;
1177  *)
1178    # `set' quotes correctly as required by POSIX, so do not add quotes.
1179    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1180    ;;
1181  esac >> confcache
1182if cmp -s $cache_file confcache; then
1183  :
1184else
1185  if test -w $cache_file; then
1186    echo "updating cache $cache_file"
1187    cat confcache > $cache_file
1188  else
1189    echo "not updating unwritable cache $cache_file"
1190  fi
1191fi
1192rm -f confcache
1193
1194trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1195
1196test "x$prefix" = xNONE && prefix=$ac_default_prefix
1197# Let make expand exec_prefix.
1198test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1199
1200# Any assignment to VPATH causes Sun make to only execute
1201# the first set of double-colon rules, so remove it if not needed.
1202# If there is a colon in the path, we need to keep it.
1203if test "x$srcdir" = x.; then
1204  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1205fi
1206
1207trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1208
1209# Transform confdefs.h into DEFS.
1210# Protect against shell expansion while executing Makefile rules.
1211# Protect against Makefile macro expansion.
1212cat > conftest.defs <<\EOF
1213s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1214s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1215s%\[%\\&%g
1216s%\]%\\&%g
1217s%\$%$$%g
1218EOF
1219DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1220rm -f conftest.defs
1221
1222
1223# Without the "./", some shells look in PATH for config.status.
1224: ${CONFIG_STATUS=./config.status}
1225
1226echo creating $CONFIG_STATUS
1227rm -f $CONFIG_STATUS
1228cat > $CONFIG_STATUS <<EOF
1229#! /bin/sh
1230# Generated automatically by configure.
1231# Run this file to recreate the current configuration.
1232# This directory was configured as follows,
1233# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1234#
1235# $0 $ac_configure_args
1236#
1237# Compiler output produced by configure, useful for debugging
1238# configure, is in ./config.log if it exists.
1239
1240ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1241for ac_option
1242do
1243  case "\$ac_option" in
1244  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1245    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1246    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1247  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1248    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1249    exit 0 ;;
1250  -help | --help | --hel | --he | --h)
1251    echo "\$ac_cs_usage"; exit 0 ;;
1252  *) echo "\$ac_cs_usage"; exit 1 ;;
1253  esac
1254done
1255
1256ac_given_srcdir=$srcdir
1257ac_given_INSTALL="$INSTALL"
1258
1259trap 'rm -fr `echo "Makefile
1260" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1261EOF
1262cat >> $CONFIG_STATUS <<EOF
1263
1264# Protect against being on the right side of a sed subst in config.status.
1265sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1266 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1267$ac_vpsub
1268$extrasub
1269s%@SHELL@%$SHELL%g
1270s%@CFLAGS@%$CFLAGS%g
1271s%@CPPFLAGS@%$CPPFLAGS%g
1272s%@CXXFLAGS@%$CXXFLAGS%g
1273s%@FFLAGS@%$FFLAGS%g
1274s%@DEFS@%$DEFS%g
1275s%@LDFLAGS@%$LDFLAGS%g
1276s%@LIBS@%$LIBS%g
1277s%@exec_prefix@%$exec_prefix%g
1278s%@prefix@%$prefix%g
1279s%@program_transform_name@%$program_transform_name%g
1280s%@bindir@%$bindir%g
1281s%@sbindir@%$sbindir%g
1282s%@libexecdir@%$libexecdir%g
1283s%@datadir@%$datadir%g
1284s%@sysconfdir@%$sysconfdir%g
1285s%@sharedstatedir@%$sharedstatedir%g
1286s%@localstatedir@%$localstatedir%g
1287s%@libdir@%$libdir%g
1288s%@includedir@%$includedir%g
1289s%@oldincludedir@%$oldincludedir%g
1290s%@infodir@%$infodir%g
1291s%@mandir@%$mandir%g
1292s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
1293s%@host@%$host%g
1294s%@host_alias@%$host_alias%g
1295s%@host_cpu@%$host_cpu%g
1296s%@host_vendor@%$host_vendor%g
1297s%@host_os@%$host_os%g
1298s%@target@%$target%g
1299s%@target_alias@%$target_alias%g
1300s%@target_cpu@%$target_cpu%g
1301s%@target_vendor@%$target_vendor%g
1302s%@target_os@%$target_os%g
1303s%@build@%$build%g
1304s%@build_alias@%$build_alias%g
1305s%@build_cpu@%$build_cpu%g
1306s%@build_vendor@%$build_vendor%g
1307s%@build_os@%$build_os%g
1308s%@RTEMS_CPU@%$RTEMS_CPU%g
1309s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1310s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1311s%@INSTALL_DATA@%$INSTALL_DATA%g
1312s%@PACKAGE@%$PACKAGE%g
1313s%@VERSION@%$VERSION%g
1314s%@ACLOCAL@%$ACLOCAL%g
1315s%@AUTOCONF@%$AUTOCONF%g
1316s%@AUTOMAKE@%$AUTOMAKE%g
1317s%@AUTOHEADER@%$AUTOHEADER%g
1318s%@MAKEINFO@%$MAKEINFO%g
1319s%@SET_MAKE@%$SET_MAKE%g
1320s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1321s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1322s%@MAINT@%$MAINT%g
1323s%@RTEMS_HOST@%$RTEMS_HOST%g
1324s%@rtems_bsp_configure@%$rtems_bsp_configure%g
1325s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
1326
1327CEOF
1328EOF
1329
1330cat >> $CONFIG_STATUS <<\EOF
1331
1332# Split the substitutions into bite-sized pieces for seds with
1333# small command number limits, like on Digital OSF/1 and HP-UX.
1334ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1335ac_file=1 # Number of current file.
1336ac_beg=1 # First line for current file.
1337ac_end=$ac_max_sed_cmds # Line after last line for current file.
1338ac_more_lines=:
1339ac_sed_cmds=""
1340while $ac_more_lines; do
1341  if test $ac_beg -gt 1; then
1342    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1343  else
1344    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1345  fi
1346  if test ! -s conftest.s$ac_file; then
1347    ac_more_lines=false
1348    rm -f conftest.s$ac_file
1349  else
1350    if test -z "$ac_sed_cmds"; then
1351      ac_sed_cmds="sed -f conftest.s$ac_file"
1352    else
1353      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1354    fi
1355    ac_file=`expr $ac_file + 1`
1356    ac_beg=$ac_end
1357    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1358  fi
1359done
1360if test -z "$ac_sed_cmds"; then
1361  ac_sed_cmds=cat
1362fi
1363EOF
1364
1365cat >> $CONFIG_STATUS <<EOF
1366
1367CONFIG_FILES=\${CONFIG_FILES-"Makefile
1368"}
1369EOF
1370cat >> $CONFIG_STATUS <<\EOF
1371for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1372  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1373  case "$ac_file" in
1374  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1375       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1376  *) ac_file_in="${ac_file}.in" ;;
1377  esac
1378
1379  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1380
1381  # Remove last slash and all that follows it.  Not all systems have dirname.
1382  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1383  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1384    # The file is in a subdirectory.
1385    test ! -d "$ac_dir" && mkdir "$ac_dir"
1386    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1387    # A "../" for each directory in $ac_dir_suffix.
1388    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1389  else
1390    ac_dir_suffix= ac_dots=
1391  fi
1392
1393  case "$ac_given_srcdir" in
1394  .)  srcdir=.
1395      if test -z "$ac_dots"; then top_srcdir=.
1396      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1397  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1398  *) # Relative path.
1399    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1400    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1401  esac
1402
1403  case "$ac_given_INSTALL" in
1404  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1405  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1406  esac
1407
1408  echo creating "$ac_file"
1409  rm -f "$ac_file"
1410  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1411  case "$ac_file" in
1412  *Makefile*) ac_comsub="1i\\
1413# $configure_input" ;;
1414  *) ac_comsub= ;;
1415  esac
1416
1417  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1418  sed -e "$ac_comsub
1419s%@configure_input@%$configure_input%g
1420s%@srcdir@%$srcdir%g
1421s%@top_srcdir@%$top_srcdir%g
1422s%@INSTALL@%$INSTALL%g
1423" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1424fi; done
1425rm -f conftest.s*
1426
1427EOF
1428cat >> $CONFIG_STATUS <<EOF
1429
1430EOF
1431cat >> $CONFIG_STATUS <<\EOF
1432
1433exit 0
1434EOF
1435chmod +x $CONFIG_STATUS
1436rm -fr confdefs* $ac_clean_files
1437test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1438
1439
1440echo
1441echo target architecture: $target_cpu.
1442echo available BSPs: $rtems_bsp.
1443echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
1444echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\'
1445echo
Note: See TracBrowser for help on using the repository browser.