source: rtems/tools/cpu/unix/configure @ d2d22780

4.104.114.84.95
Last change on this file since d2d22780 was d2d22780, checked in by Joel Sherrill <joel.sherrill@…>, on 06/15/99 at 22:46:44

Patch from Ralf Corsepius <corsepiu@…>:

When I run my script that just repeatedly builds different targets, some
of them die with an error like this:

Making all RTEMS_BSP=gen68360 in cpugmake[5]: Entering directory
`/usr1/rtems/build/build-m68k-rtems/c/src/exec/score/cpu'
Making all RTEMS_BSP=gen68360 in @RTEMS_CPU@
/bin/sh: @RTEMS_CPU@: No such file or directory
gmake[5]: * [all] Error 1
gmake[5]: Leaving directory
`/usr1/rtems/build/build-m68k-rtems/c/src/exec/score/cpu'

It is not always the same variable substitution that fails. Sometimes it
is @INSTALL@. But reliably, it is a variable substitution that is
failing.

Do you have any idea why this happens?

Yep, I think I know what's going on.

AC_SUBST(RTEMS_CPU) is missing in configure.ins, thus @RTEMS_CPU@ in
target.cfg.in doesn't get substituted correctly, causing the bug above. Due
to the redundancy of RTEMS_CPU, other most BSPs don't seem to be affected.

Other similar problems probably exist for the unix/posix bsp and the hppa.1
cpu, because their */tools/*Makefile.ams require RTEMS_CPU, too.

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