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