source: rtems/c/src/configure @ d83c39dc

4.104.114.84.95
Last change on this file since d83c39dc was 473b4e5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/04/99 at 13:30:15

Regenerated.

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