source: rtems/c/src/lib/libbsp/m68k/mvme162/tools/configure @ 15aa5ffb

4.104.114.84.95
Last change on this file since 15aa5ffb was 15aa5ffb, checked in by Joel Sherrill <joel.sherrill@…>, on 06/14/99 at 18:54:24

Patch ("FIX: no_cpu/no_bsp") from Ralf Corsepius <corsepiu@…>:

This patch should fix the nastiest configuration bugs for no_cpu/no_bsp.

With this patch applied, configure --target=no_cpu-rtems now correctly
acknowledges its configuration, but later fails building when trying to
build libcsupport (I leave this problem for you :-).

Fixes/Changes?:

  • aclocal/canonicalize-target-name.m4: use RTEMS_CPU instead of target_cpu, switch to a native compiler setup if target = no_cpu*rtems, ie. implicitly use host=target (native) and RTEMS_CPU=no_cpu for --target=no_cpu*rtems.
  • add no_bsp/bsp_specs (Support -qrtems, -qrtems_debug; please check before adding :-)
  • Use RTEMS_CANONICALIZE_TARGET_CPU instead of AC_CANONICAL_SYSTEM in toplevel/configure.in
  • All references to $target_cpu in aclocal/*.m4, Makefile.ins and *.cfg files changed to RTEMS_CPU
  • bug fixes to exec/score/cpu/no_cpu/wrap (This part of the patch may result into patch rejections, because your recently posted patch may also have addressed this problem).

After applying this patch, please do:

cvs add c/src/lib/libbsp/no_cpu/no_bsp/bsp_specs
./autogen

  • Property mode set to 100644
File size: 59.1 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=sload.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
696echo "$ac_t""$RTEMS_CPU" 1>&6
697
698
699# Find a good install program.  We prefer a C program (faster),
700# so one script is as good as another.  But avoid the broken or
701# incompatible versions:
702# SysV /etc/install, /usr/sbin/install
703# SunOS /usr/etc/install
704# IRIX /sbin/install
705# AIX /bin/install
706# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
707# AFS /usr/afsws/bin/install, which mishandles nonexistent args
708# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
709# ./install, which can be erroneously created by make from ./install.sh.
710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
711echo "configure:712: checking for a BSD compatible install" >&5
712if test -z "$INSTALL"; then
713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
714  echo $ac_n "(cached) $ac_c" 1>&6
715else
716    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
717  for ac_dir in $PATH; do
718    # Account for people who put trailing slashes in PATH elements.
719    case "$ac_dir/" in
720    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
721    *)
722      # OSF1 and SCO ODT 3.0 have their own names for install.
723      # Don't use installbsd from OSF since it installs stuff as root
724      # by default.
725      for ac_prog in ginstall scoinst install; do
726        if test -f $ac_dir/$ac_prog; then
727          if test $ac_prog = install &&
728            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
729            # AIX install.  It has an incompatible calling convention.
730            :
731          else
732            ac_cv_path_install="$ac_dir/$ac_prog -c"
733            break 2
734          fi
735        fi
736      done
737      ;;
738    esac
739  done
740  IFS="$ac_save_IFS"
741
742fi
743  if test "${ac_cv_path_install+set}" = set; then
744    INSTALL="$ac_cv_path_install"
745  else
746    # As a last resort, use the slow shell script.  We don't cache a
747    # path for INSTALL within a source directory, because that will
748    # break other packages using the cache if that directory is
749    # removed, or if the path is relative.
750    INSTALL="$ac_install_sh"
751  fi
752fi
753echo "$ac_t""$INSTALL" 1>&6
754
755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
756# It thinks the first close brace ends the variable substitution.
757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
758
759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
760
761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
762
763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
764echo "configure:765: checking whether build environment is sane" >&5
765# Just in case
766sleep 1
767echo timestamp > conftestfile
768# Do `set' in a subshell so we don't clobber the current shell's
769# arguments.  Must try -L first in case configure is actually a
770# symlink; some systems play weird games with the mod time of symlinks
771# (eg FreeBSD returns the mod time of the symlink's containing
772# directory).
773if (
774   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
775   if test "$*" = "X"; then
776      # -L didn't work.
777      set X `ls -t $srcdir/configure conftestfile`
778   fi
779   if test "$*" != "X $srcdir/configure conftestfile" \
780      && test "$*" != "X conftestfile $srcdir/configure"; then
781
782      # If neither matched, then we have a broken ls.  This can happen
783      # if, for instance, CONFIG_SHELL is bash and it inherits a
784      # broken ls alias from the environment.  This has actually
785      # happened.  Such a system could not be considered "sane".
786      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
787alias in your environment" 1>&2; exit 1; }
788   fi
789
790   test "$2" = conftestfile
791   )
792then
793   # Ok.
794   :
795else
796   { echo "configure: error: newly created file is older than distributed files!
797Check your system clock" 1>&2; exit 1; }
798fi
799rm -f conftest*
800echo "$ac_t""yes" 1>&6
801if test "$program_transform_name" = s,x,x,; then
802  program_transform_name=
803else
804  # Double any \ or $.  echo might interpret backslashes.
805  cat <<\EOF_SED > conftestsed
806s,\\,\\\\,g; s,\$,$$,g
807EOF_SED
808  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
809  rm -f conftestsed
810fi
811test "$program_prefix" != NONE &&
812  program_transform_name="s,^,${program_prefix},; $program_transform_name"
813# Use a double $ so make ignores it.
814test "$program_suffix" != NONE &&
815  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
816
817# sed with no file args requires a program.
818test "$program_transform_name" = "" && program_transform_name="s,x,x,"
819
820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
824  echo $ac_n "(cached) $ac_c" 1>&6
825else
826  cat > conftestmake <<\EOF
827all:
828        @echo 'ac_maketemp="${MAKE}"'
829EOF
830# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
831eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
832if test -n "$ac_maketemp"; then
833  eval ac_cv_prog_make_${ac_make}_set=yes
834else
835  eval ac_cv_prog_make_${ac_make}_set=no
836fi
837rm -f conftestmake
838fi
839if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
840  echo "$ac_t""yes" 1>&6
841  SET_MAKE=
842else
843  echo "$ac_t""no" 1>&6
844  SET_MAKE="MAKE=${MAKE-make}"
845fi
846
847
848PACKAGE=rtems-lib-libbsp-m68k-mvme162-tools
849
850VERSION=$RTEMS_VERSION
851
852if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
853  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
854fi
855
856
857
858missing_dir=`cd $ac_aux_dir && pwd`
859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
860echo "configure:861: checking for working aclocal" >&5
861# Run test in a subshell; some versions of sh will print an error if
862# an executable is not found, even if stderr is redirected.
863# Redirect stdin to placate older versions of autoconf.  Sigh.
864if (aclocal --version) < /dev/null > /dev/null 2>&1; then
865   ACLOCAL=aclocal
866   echo "$ac_t""found" 1>&6
867else
868   ACLOCAL="$missing_dir/missing aclocal"
869   echo "$ac_t""missing" 1>&6
870fi
871
872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
873echo "configure:874: checking for working autoconf" >&5
874# Run test in a subshell; some versions of sh will print an error if
875# an executable is not found, even if stderr is redirected.
876# Redirect stdin to placate older versions of autoconf.  Sigh.
877if (autoconf --version) < /dev/null > /dev/null 2>&1; then
878   AUTOCONF=autoconf
879   echo "$ac_t""found" 1>&6
880else
881   AUTOCONF="$missing_dir/missing autoconf"
882   echo "$ac_t""missing" 1>&6
883fi
884
885echo $ac_n "checking for working automake""... $ac_c" 1>&6
886echo "configure:887: checking for working automake" >&5
887# Run test in a subshell; some versions of sh will print an error if
888# an executable is not found, even if stderr is redirected.
889# Redirect stdin to placate older versions of autoconf.  Sigh.
890if (automake --version) < /dev/null > /dev/null 2>&1; then
891   AUTOMAKE=automake
892   echo "$ac_t""found" 1>&6
893else
894   AUTOMAKE="$missing_dir/missing automake"
895   echo "$ac_t""missing" 1>&6
896fi
897
898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
899echo "configure:900: checking for working autoheader" >&5
900# Run test in a subshell; some versions of sh will print an error if
901# an executable is not found, even if stderr is redirected.
902# Redirect stdin to placate older versions of autoconf.  Sigh.
903if (autoheader --version) < /dev/null > /dev/null 2>&1; then
904   AUTOHEADER=autoheader
905   echo "$ac_t""found" 1>&6
906else
907   AUTOHEADER="$missing_dir/missing autoheader"
908   echo "$ac_t""missing" 1>&6
909fi
910
911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
912echo "configure:913: checking for working makeinfo" >&5
913# Run test in a subshell; some versions of sh will print an error if
914# an executable is not found, even if stderr is redirected.
915# Redirect stdin to placate older versions of autoconf.  Sigh.
916if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
917   MAKEINFO=makeinfo
918   echo "$ac_t""found" 1>&6
919else
920   MAKEINFO="$missing_dir/missing makeinfo"
921   echo "$ac_t""missing" 1>&6
922fi
923
924
925
926# Extract the first word of "gcc", so it can be a program name with args.
927set dummy gcc; ac_word=$2
928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929echo "configure:930: checking for $ac_word" >&5
930if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
931  echo $ac_n "(cached) $ac_c" 1>&6
932else
933  if test -n "$CC"; then
934  ac_cv_prog_CC="$CC" # Let the user override the test.
935else
936  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
937  ac_dummy="$PATH"
938  for ac_dir in $ac_dummy; do
939    test -z "$ac_dir" && ac_dir=.
940    if test -f $ac_dir/$ac_word; then
941      ac_cv_prog_CC="gcc"
942      break
943    fi
944  done
945  IFS="$ac_save_ifs"
946fi
947fi
948CC="$ac_cv_prog_CC"
949if test -n "$CC"; then
950  echo "$ac_t""$CC" 1>&6
951else
952  echo "$ac_t""no" 1>&6
953fi
954
955if test -z "$CC"; then
956  # Extract the first word of "cc", so it can be a program name with args.
957set dummy cc; ac_word=$2
958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959echo "configure:960: checking for $ac_word" >&5
960if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
961  echo $ac_n "(cached) $ac_c" 1>&6
962else
963  if test -n "$CC"; then
964  ac_cv_prog_CC="$CC" # Let the user override the test.
965else
966  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
967  ac_prog_rejected=no
968  ac_dummy="$PATH"
969  for ac_dir in $ac_dummy; do
970    test -z "$ac_dir" && ac_dir=.
971    if test -f $ac_dir/$ac_word; then
972      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
973        ac_prog_rejected=yes
974        continue
975      fi
976      ac_cv_prog_CC="cc"
977      break
978    fi
979  done
980  IFS="$ac_save_ifs"
981if test $ac_prog_rejected = yes; then
982  # We found a bogon in the path, so make sure we never use it.
983  set dummy $ac_cv_prog_CC
984  shift
985  if test $# -gt 0; then
986    # We chose a different compiler from the bogus one.
987    # However, it has the same basename, so the bogon will be chosen
988    # first if we set CC to just the basename; use the full file name.
989    shift
990    set dummy "$ac_dir/$ac_word" "$@"
991    shift
992    ac_cv_prog_CC="$@"
993  fi
994fi
995fi
996fi
997CC="$ac_cv_prog_CC"
998if test -n "$CC"; then
999  echo "$ac_t""$CC" 1>&6
1000else
1001  echo "$ac_t""no" 1>&6
1002fi
1003
1004  if test -z "$CC"; then
1005    case "`uname -s`" in
1006    *win32* | *WIN32*)
1007      # Extract the first word of "cl", so it can be a program name with args.
1008set dummy cl; ac_word=$2
1009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1010echo "configure:1011: checking for $ac_word" >&5
1011if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1012  echo $ac_n "(cached) $ac_c" 1>&6
1013else
1014  if test -n "$CC"; then
1015  ac_cv_prog_CC="$CC" # Let the user override the test.
1016else
1017  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1018  ac_dummy="$PATH"
1019  for ac_dir in $ac_dummy; do
1020    test -z "$ac_dir" && ac_dir=.
1021    if test -f $ac_dir/$ac_word; then
1022      ac_cv_prog_CC="cl"
1023      break
1024    fi
1025  done
1026  IFS="$ac_save_ifs"
1027fi
1028fi
1029CC="$ac_cv_prog_CC"
1030if test -n "$CC"; then
1031  echo "$ac_t""$CC" 1>&6
1032else
1033  echo "$ac_t""no" 1>&6
1034fi
1035 ;;
1036    esac
1037  fi
1038  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1039fi
1040
1041echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1042echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1043
1044ac_ext=c
1045# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1046ac_cpp='$CPP $CPPFLAGS'
1047ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1048ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1049cross_compiling=$ac_cv_prog_cc_cross
1050
1051cat > conftest.$ac_ext << EOF
1052
1053#line 1054 "configure"
1054#include "confdefs.h"
1055
1056main(){return(0);}
1057EOF
1058if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1059  ac_cv_prog_cc_works=yes
1060  # If we can't run a trivial program, we are probably using a cross compiler.
1061  if (./conftest; exit) 2>/dev/null; then
1062    ac_cv_prog_cc_cross=no
1063  else
1064    ac_cv_prog_cc_cross=yes
1065  fi
1066else
1067  echo "configure: failed program was:" >&5
1068  cat conftest.$ac_ext >&5
1069  ac_cv_prog_cc_works=no
1070fi
1071rm -fr conftest*
1072ac_ext=c
1073# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1074ac_cpp='$CPP $CPPFLAGS'
1075ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1076ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1077cross_compiling=$ac_cv_prog_cc_cross
1078
1079echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1080if test $ac_cv_prog_cc_works = no; then
1081  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1082fi
1083echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1084echo "configure:1085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1085echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1086cross_compiling=$ac_cv_prog_cc_cross
1087
1088echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1089echo "configure:1090: checking whether we are using GNU C" >&5
1090if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1091  echo $ac_n "(cached) $ac_c" 1>&6
1092else
1093  cat > conftest.c <<EOF
1094#ifdef __GNUC__
1095  yes;
1096#endif
1097EOF
1098if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1099  ac_cv_prog_gcc=yes
1100else
1101  ac_cv_prog_gcc=no
1102fi
1103fi
1104
1105echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1106
1107if test $ac_cv_prog_gcc = yes; then
1108  GCC=yes
1109else
1110  GCC=
1111fi
1112
1113ac_test_CFLAGS="${CFLAGS+set}"
1114ac_save_CFLAGS="$CFLAGS"
1115CFLAGS=
1116echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1117echo "configure:1118: checking whether ${CC-cc} accepts -g" >&5
1118if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1119  echo $ac_n "(cached) $ac_c" 1>&6
1120else
1121  echo 'void f(){}' > conftest.c
1122if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1123  ac_cv_prog_cc_g=yes
1124else
1125  ac_cv_prog_cc_g=no
1126fi
1127rm -f conftest*
1128
1129fi
1130
1131echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1132if test "$ac_test_CFLAGS" = set; then
1133  CFLAGS="$ac_save_CFLAGS"
1134elif test $ac_cv_prog_cc_g = yes; then
1135  if test "$GCC" = yes; then
1136    CFLAGS="-g -O2"
1137  else
1138    CFLAGS="-g"
1139  fi
1140else
1141  if test "$GCC" = yes; then
1142    CFLAGS="-O2"
1143  else
1144    CFLAGS=
1145  fi
1146fi
1147
1148
1149echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1150echo "configure:1151: checking how to run the C preprocessor" >&5
1151# On Suns, sometimes $CPP names a directory.
1152if test -n "$CPP" && test -d "$CPP"; then
1153  CPP=
1154fi
1155if test -z "$CPP"; then
1156if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1157  echo $ac_n "(cached) $ac_c" 1>&6
1158else
1159    # This must be in double quotes, not single quotes, because CPP may get
1160  # substituted into the Makefile and "${CC-cc}" will confuse make.
1161  CPP="${CC-cc} -E"
1162  # On the NeXT, cc -E runs the code through the compiler's parser,
1163  # not just through cpp.
1164  cat > conftest.$ac_ext <<EOF
1165#line 1166 "configure"
1166#include "confdefs.h"
1167#include <assert.h>
1168Syntax Error
1169EOF
1170ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1171{ (eval echo configure:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1172ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1173if test -z "$ac_err"; then
1174  :
1175else
1176  echo "$ac_err" >&5
1177  echo "configure: failed program was:" >&5
1178  cat conftest.$ac_ext >&5
1179  rm -rf conftest*
1180  CPP="${CC-cc} -E -traditional-cpp"
1181  cat > conftest.$ac_ext <<EOF
1182#line 1183 "configure"
1183#include "confdefs.h"
1184#include <assert.h>
1185Syntax Error
1186EOF
1187ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1188{ (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1189ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1190if test -z "$ac_err"; then
1191  :
1192else
1193  echo "$ac_err" >&5
1194  echo "configure: failed program was:" >&5
1195  cat conftest.$ac_ext >&5
1196  rm -rf conftest*
1197  CPP="${CC-cc} -nologo -E"
1198  cat > conftest.$ac_ext <<EOF
1199#line 1200 "configure"
1200#include "confdefs.h"
1201#include <assert.h>
1202Syntax Error
1203EOF
1204ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1205{ (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1206ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1207if test -z "$ac_err"; then
1208  :
1209else
1210  echo "$ac_err" >&5
1211  echo "configure: failed program was:" >&5
1212  cat conftest.$ac_ext >&5
1213  rm -rf conftest*
1214  CPP=/lib/cpp
1215fi
1216rm -f conftest*
1217fi
1218rm -f conftest*
1219fi
1220rm -f conftest*
1221  ac_cv_prog_CPP="$CPP"
1222fi
1223  CPP="$ac_cv_prog_CPP"
1224else
1225  ac_cv_prog_CPP="$CPP"
1226fi
1227echo "$ac_t""$CPP" 1>&6
1228
1229echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1230echo "configure:1231: checking for ANSI C header files" >&5
1231if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1232  echo $ac_n "(cached) $ac_c" 1>&6
1233else
1234  cat > conftest.$ac_ext <<EOF
1235#line 1236 "configure"
1236#include "confdefs.h"
1237#include <stdlib.h>
1238#include <stdarg.h>
1239#include <string.h>
1240#include <float.h>
1241EOF
1242ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1243{ (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1244ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1245if test -z "$ac_err"; then
1246  rm -rf conftest*
1247  ac_cv_header_stdc=yes
1248else
1249  echo "$ac_err" >&5
1250  echo "configure: failed program was:" >&5
1251  cat conftest.$ac_ext >&5
1252  rm -rf conftest*
1253  ac_cv_header_stdc=no
1254fi
1255rm -f conftest*
1256
1257if test $ac_cv_header_stdc = yes; then
1258  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1259cat > conftest.$ac_ext <<EOF
1260#line 1261 "configure"
1261#include "confdefs.h"
1262#include <string.h>
1263EOF
1264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1265  egrep "memchr" >/dev/null 2>&1; then
1266  :
1267else
1268  rm -rf conftest*
1269  ac_cv_header_stdc=no
1270fi
1271rm -f conftest*
1272
1273fi
1274
1275if test $ac_cv_header_stdc = yes; then
1276  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1277cat > conftest.$ac_ext <<EOF
1278#line 1279 "configure"
1279#include "confdefs.h"
1280#include <stdlib.h>
1281EOF
1282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1283  egrep "free" >/dev/null 2>&1; then
1284  :
1285else
1286  rm -rf conftest*
1287  ac_cv_header_stdc=no
1288fi
1289rm -f conftest*
1290
1291fi
1292
1293if test $ac_cv_header_stdc = yes; then
1294  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1295if test "$cross_compiling" = yes; then
1296  :
1297else
1298  cat > conftest.$ac_ext <<EOF
1299#line 1300 "configure"
1300#include "confdefs.h"
1301#include <ctype.h>
1302#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1303#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1304#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1305int main () { int i; for (i = 0; i < 256; i++)
1306if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1307exit (0); }
1308
1309EOF
1310if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1311then
1312  :
1313else
1314  echo "configure: failed program was:" >&5
1315  cat conftest.$ac_ext >&5
1316  rm -fr conftest*
1317  ac_cv_header_stdc=no
1318fi
1319rm -fr conftest*
1320fi
1321
1322fi
1323fi
1324
1325echo "$ac_t""$ac_cv_header_stdc" 1>&6
1326if test $ac_cv_header_stdc = yes; then
1327  cat >> confdefs.h <<\EOF
1328#define STDC_HEADERS 1
1329EOF
1330
1331fi
1332
1333for ac_hdr in unistd.h
1334do
1335ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1336echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1337echo "configure:1338: checking for $ac_hdr" >&5
1338if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1339  echo $ac_n "(cached) $ac_c" 1>&6
1340else
1341  cat > conftest.$ac_ext <<EOF
1342#line 1343 "configure"
1343#include "confdefs.h"
1344#include <$ac_hdr>
1345EOF
1346ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1347{ (eval echo configure:1348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1348ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1349if test -z "$ac_err"; then
1350  rm -rf conftest*
1351  eval "ac_cv_header_$ac_safe=yes"
1352else
1353  echo "$ac_err" >&5
1354  echo "configure: failed program was:" >&5
1355  cat conftest.$ac_ext >&5
1356  rm -rf conftest*
1357  eval "ac_cv_header_$ac_safe=no"
1358fi
1359rm -f conftest*
1360fi
1361if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1362  echo "$ac_t""yes" 1>&6
1363    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1364  cat >> confdefs.h <<EOF
1365#define $ac_tr_hdr 1
1366EOF
1367 
1368else
1369  echo "$ac_t""no" 1>&6
1370fi
1371done
1372
1373for ac_hdr in unistd.h
1374do
1375ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1376echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1377echo "configure:1378: checking for $ac_hdr" >&5
1378if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1379  echo $ac_n "(cached) $ac_c" 1>&6
1380else
1381  cat > conftest.$ac_ext <<EOF
1382#line 1383 "configure"
1383#include "confdefs.h"
1384#include <$ac_hdr>
1385EOF
1386ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1387{ (eval echo configure:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1388ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1389if test -z "$ac_err"; then
1390  rm -rf conftest*
1391  eval "ac_cv_header_$ac_safe=yes"
1392else
1393  echo "$ac_err" >&5
1394  echo "configure: failed program was:" >&5
1395  cat conftest.$ac_ext >&5
1396  rm -rf conftest*
1397  eval "ac_cv_header_$ac_safe=no"
1398fi
1399rm -f conftest*
1400fi
1401if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1402  echo "$ac_t""yes" 1>&6
1403    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1404  cat >> confdefs.h <<EOF
1405#define $ac_tr_hdr 1
1406EOF
1407 
1408else
1409  echo "$ac_t""no" 1>&6
1410fi
1411done
1412
1413for ac_func in getpagesize
1414do
1415echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1416echo "configure:1417: checking for $ac_func" >&5
1417if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1418  echo $ac_n "(cached) $ac_c" 1>&6
1419else
1420  cat > conftest.$ac_ext <<EOF
1421#line 1422 "configure"
1422#include "confdefs.h"
1423/* System header to define __stub macros and hopefully few prototypes,
1424    which can conflict with char $ac_func(); below.  */
1425#include <assert.h>
1426/* Override any gcc2 internal prototype to avoid an error.  */
1427/* We use char because int might match the return type of a gcc2
1428    builtin and then its argument prototype would still apply.  */
1429char $ac_func();
1430
1431int main() {
1432
1433/* The GNU C library defines this for functions which it implements
1434    to always fail with ENOSYS.  Some functions are actually named
1435    something starting with __ and the normal name is an alias.  */
1436#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1437choke me
1438#else
1439$ac_func();
1440#endif
1441
1442; return 0; }
1443EOF
1444if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1445  rm -rf conftest*
1446  eval "ac_cv_func_$ac_func=yes"
1447else
1448  echo "configure: failed program was:" >&5
1449  cat conftest.$ac_ext >&5
1450  rm -rf conftest*
1451  eval "ac_cv_func_$ac_func=no"
1452fi
1453rm -f conftest*
1454fi
1455
1456if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1457  echo "$ac_t""yes" 1>&6
1458    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1459  cat >> confdefs.h <<EOF
1460#define $ac_tr_func 1
1461EOF
1462 
1463else
1464  echo "$ac_t""no" 1>&6
1465fi
1466done
1467
1468echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1469echo "configure:1470: checking for working mmap" >&5
1470if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1471  echo $ac_n "(cached) $ac_c" 1>&6
1472else
1473  if test "$cross_compiling" = yes; then
1474  ac_cv_func_mmap_fixed_mapped=no
1475else
1476  cat > conftest.$ac_ext <<EOF
1477#line 1478 "configure"
1478#include "confdefs.h"
1479
1480/* Thanks to Mike Haertel and Jim Avera for this test.
1481   Here is a matrix of mmap possibilities:
1482        mmap private not fixed
1483        mmap private fixed at somewhere currently unmapped
1484        mmap private fixed at somewhere already mapped
1485        mmap shared not fixed
1486        mmap shared fixed at somewhere currently unmapped
1487        mmap shared fixed at somewhere already mapped
1488   For private mappings, we should verify that changes cannot be read()
1489   back from the file, nor mmap's back from the file at a different
1490   address.  (There have been systems where private was not correctly
1491   implemented like the infamous i386 svr4.0, and systems where the
1492   VM page cache was not coherent with the filesystem buffer cache
1493   like early versions of FreeBSD and possibly contemporary NetBSD.)
1494   For shared mappings, we should conversely verify that changes get
1495   propogated back to all the places they're supposed to be.
1496
1497   Grep wants private fixed already mapped.
1498   The main things grep needs to know about mmap are:
1499   * does it exist and is it safe to write into the mmap'd area
1500   * how to use it (BSD variants)  */
1501#include <sys/types.h>
1502#include <fcntl.h>
1503#include <sys/mman.h>
1504
1505/* This mess was copied from the GNU getpagesize.h.  */
1506#ifndef HAVE_GETPAGESIZE
1507# ifdef HAVE_UNISTD_H
1508#  include <unistd.h>
1509# endif
1510
1511/* Assume that all systems that can run configure have sys/param.h.  */
1512# ifndef HAVE_SYS_PARAM_H
1513#  define HAVE_SYS_PARAM_H 1
1514# endif
1515
1516# ifdef _SC_PAGESIZE
1517#  define getpagesize() sysconf(_SC_PAGESIZE)
1518# else /* no _SC_PAGESIZE */
1519#  ifdef HAVE_SYS_PARAM_H
1520#   include <sys/param.h>
1521#   ifdef EXEC_PAGESIZE
1522#    define getpagesize() EXEC_PAGESIZE
1523#   else /* no EXEC_PAGESIZE */
1524#    ifdef NBPG
1525#     define getpagesize() NBPG * CLSIZE
1526#     ifndef CLSIZE
1527#      define CLSIZE 1
1528#     endif /* no CLSIZE */
1529#    else /* no NBPG */
1530#     ifdef NBPC
1531#      define getpagesize() NBPC
1532#     else /* no NBPC */
1533#      ifdef PAGESIZE
1534#       define getpagesize() PAGESIZE
1535#      endif /* PAGESIZE */
1536#     endif /* no NBPC */
1537#    endif /* no NBPG */
1538#   endif /* no EXEC_PAGESIZE */
1539#  else /* no HAVE_SYS_PARAM_H */
1540#   define getpagesize() 8192   /* punt totally */
1541#  endif /* no HAVE_SYS_PARAM_H */
1542# endif /* no _SC_PAGESIZE */
1543
1544#endif /* no HAVE_GETPAGESIZE */
1545
1546#ifdef __cplusplus
1547extern "C" { void *malloc(unsigned); }
1548#else
1549char *malloc();
1550#endif
1551
1552int
1553main()
1554{
1555        char *data, *data2, *data3;
1556        int i, pagesize;
1557        int fd;
1558
1559        pagesize = getpagesize();
1560
1561        /*
1562         * First, make a file with some known garbage in it.
1563         */
1564        data = malloc(pagesize);
1565        if (!data)
1566                exit(1);
1567        for (i = 0; i < pagesize; ++i)
1568                *(data + i) = rand();
1569        umask(0);
1570        fd = creat("conftestmmap", 0600);
1571        if (fd < 0)
1572                exit(1);
1573        if (write(fd, data, pagesize) != pagesize)
1574                exit(1);
1575        close(fd);
1576
1577        /*
1578         * Next, try to mmap the file at a fixed address which
1579         * already has something else allocated at it.  If we can,
1580         * also make sure that we see the same garbage.
1581         */
1582        fd = open("conftestmmap", O_RDWR);
1583        if (fd < 0)
1584                exit(1);
1585        data2 = malloc(2 * pagesize);
1586        if (!data2)
1587                exit(1);
1588        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1589        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1590            MAP_PRIVATE | MAP_FIXED, fd, 0L))
1591                exit(1);
1592        for (i = 0; i < pagesize; ++i)
1593                if (*(data + i) != *(data2 + i))
1594                        exit(1);
1595
1596        /*
1597         * Finally, make sure that changes to the mapped area
1598         * do not percolate back to the file as seen by read().
1599         * (This is a bug on some variants of i386 svr4.0.)
1600         */
1601        for (i = 0; i < pagesize; ++i)
1602                *(data2 + i) = *(data2 + i) + 1;
1603        data3 = malloc(pagesize);
1604        if (!data3)
1605                exit(1);
1606        if (read(fd, data3, pagesize) != pagesize)
1607                exit(1);
1608        for (i = 0; i < pagesize; ++i)
1609                if (*(data + i) != *(data3 + i))
1610                        exit(1);
1611        close(fd);
1612        unlink("conftestmmap");
1613        exit(0);
1614}
1615
1616EOF
1617if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1618then
1619  ac_cv_func_mmap_fixed_mapped=yes
1620else
1621  echo "configure: failed program was:" >&5
1622  cat conftest.$ac_ext >&5
1623  rm -fr conftest*
1624  ac_cv_func_mmap_fixed_mapped=no
1625fi
1626rm -fr conftest*
1627fi
1628
1629fi
1630
1631echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1632if test $ac_cv_func_mmap_fixed_mapped = yes; then
1633  cat >> confdefs.h <<\EOF
1634#define HAVE_MMAP 1
1635EOF
1636
1637fi
1638
1639
1640trap '' 1 2 15
1641cat > confcache <<\EOF
1642# This file is a shell script that caches the results of configure
1643# tests run on this system so they can be shared between configure
1644# scripts and configure runs.  It is not useful on other systems.
1645# If it contains results you don't want to keep, you may remove or edit it.
1646#
1647# By default, configure uses ./config.cache as the cache file,
1648# creating it if it does not exist already.  You can give configure
1649# the --cache-file=FILE option to use a different cache file; that is
1650# what configure does when it calls configure scripts in
1651# subdirectories, so they share the cache.
1652# Giving --cache-file=/dev/null disables caching, for debugging configure.
1653# config.status only pays attention to the cache file if you give it the
1654# --recheck option to rerun configure.
1655#
1656EOF
1657# The following way of writing the cache mishandles newlines in values,
1658# but we know of no workaround that is simple, portable, and efficient.
1659# So, don't put newlines in cache variables' values.
1660# Ultrix sh set writes to stderr and can't be redirected directly,
1661# and sets the high bit in the cache file unless we assign to the vars.
1662(set) 2>&1 |
1663  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1664  *ac_space=\ *)
1665    # `set' does not quote correctly, so add quotes (double-quote substitution
1666    # turns \\\\ into \\, and sed turns \\ into \).
1667    sed -n \
1668      -e "s/'/'\\\\''/g" \
1669      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1670    ;;
1671  *)
1672    # `set' quotes correctly as required by POSIX, so do not add quotes.
1673    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1674    ;;
1675  esac >> confcache
1676if cmp -s $cache_file confcache; then
1677  :
1678else
1679  if test -w $cache_file; then
1680    echo "updating cache $cache_file"
1681    cat confcache > $cache_file
1682  else
1683    echo "not updating unwritable cache $cache_file"
1684  fi
1685fi
1686rm -f confcache
1687
1688trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1689
1690test "x$prefix" = xNONE && prefix=$ac_default_prefix
1691# Let make expand exec_prefix.
1692test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1693
1694# Any assignment to VPATH causes Sun make to only execute
1695# the first set of double-colon rules, so remove it if not needed.
1696# If there is a colon in the path, we need to keep it.
1697if test "x$srcdir" = x.; then
1698  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1699fi
1700
1701trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1702
1703# Transform confdefs.h into DEFS.
1704# Protect against shell expansion while executing Makefile rules.
1705# Protect against Makefile macro expansion.
1706cat > conftest.defs <<\EOF
1707s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1708s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1709s%\[%\\&%g
1710s%\]%\\&%g
1711s%\$%$$%g
1712EOF
1713DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1714rm -f conftest.defs
1715
1716
1717# Without the "./", some shells look in PATH for config.status.
1718: ${CONFIG_STATUS=./config.status}
1719
1720echo creating $CONFIG_STATUS
1721rm -f $CONFIG_STATUS
1722cat > $CONFIG_STATUS <<EOF
1723#! /bin/sh
1724# Generated automatically by configure.
1725# Run this file to recreate the current configuration.
1726# This directory was configured as follows,
1727# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1728#
1729# $0 $ac_configure_args
1730#
1731# Compiler output produced by configure, useful for debugging
1732# configure, is in ./config.log if it exists.
1733
1734ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1735for ac_option
1736do
1737  case "\$ac_option" in
1738  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1739    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1740    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1741  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1742    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1743    exit 0 ;;
1744  -help | --help | --hel | --he | --h)
1745    echo "\$ac_cs_usage"; exit 0 ;;
1746  *) echo "\$ac_cs_usage"; exit 1 ;;
1747  esac
1748done
1749
1750ac_given_srcdir=$srcdir
1751ac_given_INSTALL="$INSTALL"
1752
1753trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1754EOF
1755cat >> $CONFIG_STATUS <<EOF
1756
1757# Protect against being on the right side of a sed subst in config.status.
1758sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1759 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1760$ac_vpsub
1761$extrasub
1762s%@SHELL@%$SHELL%g
1763s%@CFLAGS@%$CFLAGS%g
1764s%@CPPFLAGS@%$CPPFLAGS%g
1765s%@CXXFLAGS@%$CXXFLAGS%g
1766s%@FFLAGS@%$FFLAGS%g
1767s%@DEFS@%$DEFS%g
1768s%@LDFLAGS@%$LDFLAGS%g
1769s%@LIBS@%$LIBS%g
1770s%@exec_prefix@%$exec_prefix%g
1771s%@prefix@%$prefix%g
1772s%@program_transform_name@%$program_transform_name%g
1773s%@bindir@%$bindir%g
1774s%@sbindir@%$sbindir%g
1775s%@libexecdir@%$libexecdir%g
1776s%@datadir@%$datadir%g
1777s%@sysconfdir@%$sysconfdir%g
1778s%@sharedstatedir@%$sharedstatedir%g
1779s%@localstatedir@%$localstatedir%g
1780s%@libdir@%$libdir%g
1781s%@includedir@%$includedir%g
1782s%@oldincludedir@%$oldincludedir%g
1783s%@infodir@%$infodir%g
1784s%@mandir@%$mandir%g
1785s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
1786s%@PROJECT_ROOT@%$PROJECT_ROOT%g
1787s%@RTEMS_ROOT@%$RTEMS_ROOT%g
1788s%@host@%$host%g
1789s%@host_alias@%$host_alias%g
1790s%@host_cpu@%$host_cpu%g
1791s%@host_vendor@%$host_vendor%g
1792s%@host_os@%$host_os%g
1793s%@target@%$target%g
1794s%@target_alias@%$target_alias%g
1795s%@target_cpu@%$target_cpu%g
1796s%@target_vendor@%$target_vendor%g
1797s%@target_os@%$target_os%g
1798s%@build@%$build%g
1799s%@build_alias@%$build_alias%g
1800s%@build_cpu@%$build_cpu%g
1801s%@build_vendor@%$build_vendor%g
1802s%@build_os@%$build_os%g
1803s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1804s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1805s%@INSTALL_DATA@%$INSTALL_DATA%g
1806s%@PACKAGE@%$PACKAGE%g
1807s%@VERSION@%$VERSION%g
1808s%@ACLOCAL@%$ACLOCAL%g
1809s%@AUTOCONF@%$AUTOCONF%g
1810s%@AUTOMAKE@%$AUTOMAKE%g
1811s%@AUTOHEADER@%$AUTOHEADER%g
1812s%@MAKEINFO@%$MAKEINFO%g
1813s%@SET_MAKE@%$SET_MAKE%g
1814s%@CC@%$CC%g
1815s%@CPP@%$CPP%g
1816
1817CEOF
1818EOF
1819
1820cat >> $CONFIG_STATUS <<\EOF
1821
1822# Split the substitutions into bite-sized pieces for seds with
1823# small command number limits, like on Digital OSF/1 and HP-UX.
1824ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1825ac_file=1 # Number of current file.
1826ac_beg=1 # First line for current file.
1827ac_end=$ac_max_sed_cmds # Line after last line for current file.
1828ac_more_lines=:
1829ac_sed_cmds=""
1830while $ac_more_lines; do
1831  if test $ac_beg -gt 1; then
1832    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1833  else
1834    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1835  fi
1836  if test ! -s conftest.s$ac_file; then
1837    ac_more_lines=false
1838    rm -f conftest.s$ac_file
1839  else
1840    if test -z "$ac_sed_cmds"; then
1841      ac_sed_cmds="sed -f conftest.s$ac_file"
1842    else
1843      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1844    fi
1845    ac_file=`expr $ac_file + 1`
1846    ac_beg=$ac_end
1847    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1848  fi
1849done
1850if test -z "$ac_sed_cmds"; then
1851  ac_sed_cmds=cat
1852fi
1853EOF
1854
1855cat >> $CONFIG_STATUS <<EOF
1856
1857CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1858EOF
1859cat >> $CONFIG_STATUS <<\EOF
1860for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1861  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1862  case "$ac_file" in
1863  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1864       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1865  *) ac_file_in="${ac_file}.in" ;;
1866  esac
1867
1868  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1869
1870  # Remove last slash and all that follows it.  Not all systems have dirname.
1871  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1872  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1873    # The file is in a subdirectory.
1874    test ! -d "$ac_dir" && mkdir "$ac_dir"
1875    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1876    # A "../" for each directory in $ac_dir_suffix.
1877    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1878  else
1879    ac_dir_suffix= ac_dots=
1880  fi
1881
1882  case "$ac_given_srcdir" in
1883  .)  srcdir=.
1884      if test -z "$ac_dots"; then top_srcdir=.
1885      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1886  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1887  *) # Relative path.
1888    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1889    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1890  esac
1891
1892  case "$ac_given_INSTALL" in
1893  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1894  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1895  esac
1896
1897  echo creating "$ac_file"
1898  rm -f "$ac_file"
1899  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1900  case "$ac_file" in
1901  *Makefile*) ac_comsub="1i\\
1902# $configure_input" ;;
1903  *) ac_comsub= ;;
1904  esac
1905
1906  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1907  sed -e "$ac_comsub
1908s%@configure_input@%$configure_input%g
1909s%@srcdir@%$srcdir%g
1910s%@top_srcdir@%$top_srcdir%g
1911s%@INSTALL@%$INSTALL%g
1912" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1913fi; done
1914rm -f conftest.s*
1915
1916EOF
1917cat >> $CONFIG_STATUS <<EOF
1918
1919EOF
1920cat >> $CONFIG_STATUS <<\EOF
1921
1922exit 0
1923EOF
1924chmod +x $CONFIG_STATUS
1925rm -fr confdefs* $ac_clean_files
1926test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1927
Note: See TracBrowser for help on using the repository browser.