source: SVN/cambria/redboot/host/libcdl/configure @ 1

Last change on this file since 1 was 1, checked in by Tim Harvey, 2 years ago

restored latest version of files from server backup

Signed-off-by: Tim Harvey <tharvey@…>

  • Property svn:executable set to *
File size: 74.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  --enable-maintainer-mode enable make rules and dependencies not useful
16                          (and sometimes confusing) to the casual installer"
17ac_help="$ac_help
18 --enable-debug           do a debug rather than a release build"
19ac_help="$ac_help
20 --enable-ansi            do an ANSI rather than a unicode build"
21ac_help="$ac_help
22 --disable-asserts        disable all assertions"
23ac_help="$ac_help
24 --disable-preconditions  disable a subset of the assertions"
25ac_help="$ac_help
26 --disable-postconditions disable a subset of the assertions"
27ac_help="$ac_help
28 --disable-invariants     disable a subset of the assertions"
29ac_help="$ac_help
30 --disable-loopinvariants disable a subset of the assertions"
31ac_help="$ac_help
32 --disable-tracing        disable tracing"
33ac_help="$ac_help
34 --disable-fntracing      disable function entry/exit tracing"
35ac_help="$ac_help
36 --with-infra-header=<path> location of eCos infrastructure headers"
37ac_help="$ac_help
38 --with-infra-lib=<path>    location of eCos infrastructure library"
39ac_help="$ac_help
40 --with-infra=<path>        location of eCos infrastructure installation"
41ac_help="$ac_help
42 --with-tcl=<path>        location of Tcl header and libraries"
43ac_help="$ac_help
44 --with-tcl-version=<vsn> version of Tcl to be used"
45ac_help="$ac_help
46 --with-tcl-header=<path> location of Tcl header"
47ac_help="$ac_help
48 --with-tcl-lib=<path>    location of Tcl libraries"
49
50# Initialize some variables set by options.
51# The variables have the same names as the options, with
52# dashes changed to underlines.
53build=NONE
54cache_file=./config.cache
55exec_prefix=NONE
56host=NONE
57no_create=
58nonopt=NONE
59no_recursion=
60prefix=NONE
61program_prefix=NONE
62program_suffix=NONE
63program_transform_name=s,x,x,
64silent=
65site=
66srcdir=
67target=NONE
68verbose=
69x_includes=NONE
70x_libraries=NONE
71bindir='${exec_prefix}/bin'
72sbindir='${exec_prefix}/sbin'
73libexecdir='${exec_prefix}/libexec'
74datadir='${prefix}/share'
75sysconfdir='${prefix}/etc'
76sharedstatedir='${prefix}/com'
77localstatedir='${prefix}/var'
78libdir='${exec_prefix}/lib'
79includedir='${prefix}/include'
80oldincludedir='/usr/include'
81infodir='${prefix}/info'
82mandir='${prefix}/man'
83
84# Initialize some other variables.
85subdirs=
86MFLAGS= MAKEFLAGS=
87SHELL=${CONFIG_SHELL-/bin/sh}
88# Maximum number of lines to put in a shell here document.
89ac_max_here_lines=12
90
91ac_prev=
92for ac_option
93do
94
95  # If the previous option needs an argument, assign it.
96  if test -n "$ac_prev"; then
97    eval "$ac_prev=\$ac_option"
98    ac_prev=
99    continue
100  fi
101
102  case "$ac_option" in
103  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104  *) ac_optarg= ;;
105  esac
106
107  # Accept the important Cygnus configure options, so we can diagnose typos.
108
109  case "$ac_option" in
110
111  -bindir | --bindir | --bindi | --bind | --bin | --bi)
112    ac_prev=bindir ;;
113  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
114    bindir="$ac_optarg" ;;
115
116  -build | --build | --buil | --bui | --bu)
117    ac_prev=build ;;
118  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
119    build="$ac_optarg" ;;
120
121  -cache-file | --cache-file | --cache-fil | --cache-fi \
122  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
123    ac_prev=cache_file ;;
124  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
125  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
126    cache_file="$ac_optarg" ;;
127
128  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
129    ac_prev=datadir ;;
130  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
131  | --da=*)
132    datadir="$ac_optarg" ;;
133
134  -disable-* | --disable-*)
135    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
136    # Reject names that are not valid shell variable names.
137    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
138      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139    fi
140    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141    eval "enable_${ac_feature}=no" ;;
142
143  -enable-* | --enable-*)
144    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
145    # Reject names that are not valid shell variable names.
146    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
147      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148    fi
149    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150    case "$ac_option" in
151      *=*) ;;
152      *) ac_optarg=yes ;;
153    esac
154    eval "enable_${ac_feature}='$ac_optarg'" ;;
155
156  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
157  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
158  | --exec | --exe | --ex)
159    ac_prev=exec_prefix ;;
160  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
161  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
162  | --exec=* | --exe=* | --ex=*)
163    exec_prefix="$ac_optarg" ;;
164
165  -gas | --gas | --ga | --g)
166    # Obsolete; use --with-gas.
167    with_gas=yes ;;
168
169  -help | --help | --hel | --he)
170    # Omit some internal or obsolete options to make the list less imposing.
171    # This message is too long to be a string in the A/UX 3.1 sh.
172    cat << EOF
173Usage: configure [options] [host]
174Options: [defaults in brackets after descriptions]
175Configuration:
176  --cache-file=FILE       cache test results in FILE
177  --help                  print this message
178  --no-create             do not create output files
179  --quiet, --silent       do not print \`checking...' messages
180  --version               print the version of autoconf that created configure
181Directory and file names:
182  --prefix=PREFIX         install architecture-independent files in PREFIX
183                          [$ac_default_prefix]
184  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
185                          [same as prefix]
186  --bindir=DIR            user executables in DIR [EPREFIX/bin]
187  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
188  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
189  --datadir=DIR           read-only architecture-independent data in DIR
190                          [PREFIX/share]
191  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
192  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
193                          [PREFIX/com]
194  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
195  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
196  --includedir=DIR        C header files in DIR [PREFIX/include]
197  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
198  --infodir=DIR           info documentation in DIR [PREFIX/info]
199  --mandir=DIR            man documentation in DIR [PREFIX/man]
200  --srcdir=DIR            find the sources in DIR [configure dir or ..]
201  --program-prefix=PREFIX prepend PREFIX to installed program names
202  --program-suffix=SUFFIX append SUFFIX to installed program names
203  --program-transform-name=PROGRAM
204                          run sed PROGRAM on installed program names
205EOF
206    cat << EOF
207Host type:
208  --build=BUILD           configure for building on BUILD [BUILD=HOST]
209  --host=HOST             configure for HOST [guessed]
210  --target=TARGET         configure for TARGET [TARGET=HOST]
211Features and packages:
212  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
213  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
214  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
215  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
216  --x-includes=DIR        X include files are in DIR
217  --x-libraries=DIR       X library files are in DIR
218EOF
219    if test -n "$ac_help"; then
220      echo "--enable and --with options recognized:$ac_help"
221    fi
222    exit 0 ;;
223
224  -host | --host | --hos | --ho)
225    ac_prev=host ;;
226  -host=* | --host=* | --hos=* | --ho=*)
227    host="$ac_optarg" ;;
228
229  -includedir | --includedir | --includedi | --included | --include \
230  | --includ | --inclu | --incl | --inc)
231    ac_prev=includedir ;;
232  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
233  | --includ=* | --inclu=* | --incl=* | --inc=*)
234    includedir="$ac_optarg" ;;
235
236  -infodir | --infodir | --infodi | --infod | --info | --inf)
237    ac_prev=infodir ;;
238  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
239    infodir="$ac_optarg" ;;
240
241  -libdir | --libdir | --libdi | --libd)
242    ac_prev=libdir ;;
243  -libdir=* | --libdir=* | --libdi=* | --libd=*)
244    libdir="$ac_optarg" ;;
245
246  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
247  | --libexe | --libex | --libe)
248    ac_prev=libexecdir ;;
249  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
250  | --libexe=* | --libex=* | --libe=*)
251    libexecdir="$ac_optarg" ;;
252
253  -localstatedir | --localstatedir | --localstatedi | --localstated \
254  | --localstate | --localstat | --localsta | --localst \
255  | --locals | --local | --loca | --loc | --lo)
256    ac_prev=localstatedir ;;
257  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
258  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
259  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
260    localstatedir="$ac_optarg" ;;
261
262  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
263    ac_prev=mandir ;;
264  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
265    mandir="$ac_optarg" ;;
266
267  -nfp | --nfp | --nf)
268    # Obsolete; use --without-fp.
269    with_fp=no ;;
270
271  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272  | --no-cr | --no-c)
273    no_create=yes ;;
274
275  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
277    no_recursion=yes ;;
278
279  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
280  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
281  | --oldin | --oldi | --old | --ol | --o)
282    ac_prev=oldincludedir ;;
283  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
284  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
285  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
286    oldincludedir="$ac_optarg" ;;
287
288  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
289    ac_prev=prefix ;;
290  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
291    prefix="$ac_optarg" ;;
292
293  -program-prefix | --program-prefix | --program-prefi | --program-pref \
294  | --program-pre | --program-pr | --program-p)
295    ac_prev=program_prefix ;;
296  -program-prefix=* | --program-prefix=* | --program-prefi=* \
297  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
298    program_prefix="$ac_optarg" ;;
299
300  -program-suffix | --program-suffix | --program-suffi | --program-suff \
301  | --program-suf | --program-su | --program-s)
302    ac_prev=program_suffix ;;
303  -program-suffix=* | --program-suffix=* | --program-suffi=* \
304  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
305    program_suffix="$ac_optarg" ;;
306
307  -program-transform-name | --program-transform-name \
308  | --program-transform-nam | --program-transform-na \
309  | --program-transform-n | --program-transform- \
310  | --program-transform | --program-transfor \
311  | --program-transfo | --program-transf \
312  | --program-trans | --program-tran \
313  | --progr-tra | --program-tr | --program-t)
314    ac_prev=program_transform_name ;;
315  -program-transform-name=* | --program-transform-name=* \
316  | --program-transform-nam=* | --program-transform-na=* \
317  | --program-transform-n=* | --program-transform-=* \
318  | --program-transform=* | --program-transfor=* \
319  | --program-transfo=* | --program-transf=* \
320  | --program-trans=* | --program-tran=* \
321  | --progr-tra=* | --program-tr=* | --program-t=*)
322    program_transform_name="$ac_optarg" ;;
323
324  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
325  | -silent | --silent | --silen | --sile | --sil)
326    silent=yes ;;
327
328  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
329    ac_prev=sbindir ;;
330  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
331  | --sbi=* | --sb=*)
332    sbindir="$ac_optarg" ;;
333
334  -sharedstatedir | --sharedstatedir | --sharedstatedi \
335  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
336  | --sharedst | --shareds | --shared | --share | --shar \
337  | --sha | --sh)
338    ac_prev=sharedstatedir ;;
339  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
340  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
341  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
342  | --sha=* | --sh=*)
343    sharedstatedir="$ac_optarg" ;;
344
345  -site | --site | --sit)
346    ac_prev=site ;;
347  -site=* | --site=* | --sit=*)
348    site="$ac_optarg" ;;
349
350  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
351    ac_prev=srcdir ;;
352  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
353    srcdir="$ac_optarg" ;;
354
355  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
356  | --syscon | --sysco | --sysc | --sys | --sy)
357    ac_prev=sysconfdir ;;
358  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
359  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
360    sysconfdir="$ac_optarg" ;;
361
362  -target | --target | --targe | --targ | --tar | --ta | --t)
363    ac_prev=target ;;
364  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
365    target="$ac_optarg" ;;
366
367  -v | -verbose | --verbose | --verbos | --verbo | --verb)
368    verbose=yes ;;
369
370  -version | --version | --versio | --versi | --vers)
371    echo "configure generated by autoconf version 2.13"
372    exit 0 ;;
373
374  -with-* | --with-*)
375    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
376    # Reject names that are not valid shell variable names.
377    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
378      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379    fi
380    ac_package=`echo $ac_package| sed 's/-/_/g'`
381    case "$ac_option" in
382      *=*) ;;
383      *) ac_optarg=yes ;;
384    esac
385    eval "with_${ac_package}='$ac_optarg'" ;;
386
387  -without-* | --without-*)
388    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
389    # Reject names that are not valid shell variable names.
390    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
391      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392    fi
393    ac_package=`echo $ac_package| sed 's/-/_/g'`
394    eval "with_${ac_package}=no" ;;
395
396  --x)
397    # Obsolete; use --with-x.
398    with_x=yes ;;
399
400  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
401  | --x-incl | --x-inc | --x-in | --x-i)
402    ac_prev=x_includes ;;
403  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
404  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
405    x_includes="$ac_optarg" ;;
406
407  -x-libraries | --x-libraries | --x-librarie | --x-librari \
408  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
409    ac_prev=x_libraries ;;
410  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
411  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
412    x_libraries="$ac_optarg" ;;
413
414  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415    ;;
416
417  *)
418    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
419      echo "configure: warning: $ac_option: invalid host type" 1>&2
420    fi
421    if test "x$nonopt" != xNONE; then
422      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423    fi
424    nonopt="$ac_option"
425    ;;
426
427  esac
428done
429
430if test -n "$ac_prev"; then
431  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
432fi
433
434trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435
436# File descriptor usage:
437# 0 standard input
438# 1 file creation
439# 2 errors and warnings
440# 3 some systems may open it to /dev/tty
441# 4 used on the Kubota Titan
442# 6 checking for... messages and results
443# 5 compiler messages saved in config.log
444if test "$silent" = yes; then
445  exec 6>/dev/null
446else
447  exec 6>&1
448fi
449exec 5>./config.log
450
451echo "\
452This file contains any messages produced by compilers while
453running configure, to aid debugging if configure makes a mistake.
454" 1>&5
455
456# Strip out --no-create and --no-recursion so they do not pile up.
457# Also quote any args containing shell metacharacters.
458ac_configure_args=
459for ac_arg
460do
461  case "$ac_arg" in
462  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
463  | --no-cr | --no-c) ;;
464  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
465  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
466  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
467  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
468  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
469  esac
470done
471
472# NLS nuisances.
473# Only set these to C if already set.  These must not be set unconditionally
474# because not all systems understand e.g. LANG=C (notably SCO).
475# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
476# Non-C LC_CTYPE values break the ctype check.
477if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
478if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
479if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
480if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
481
482# confdefs.h avoids OS command line length limits that DEFS can exceed.
483rm -rf conftest* confdefs.h
484# AIX cpp loses on an empty file, so make sure it contains at least a newline.
485echo > confdefs.h
486
487# A filename unique to this package, relative to the directory that
488# configure is in, which we can look for to find out if srcdir is correct.
489ac_unique_file=cdlcore.hxx
490
491# Find the source files, if location was not specified.
492if test -z "$srcdir"; then
493  ac_srcdir_defaulted=yes
494  # Try the directory containing this script, then its parent.
495  ac_prog=$0
496  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
497  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
498  srcdir=$ac_confdir
499  if test ! -r $srcdir/$ac_unique_file; then
500    srcdir=..
501  fi
502else
503  ac_srcdir_defaulted=no
504fi
505if test ! -r $srcdir/$ac_unique_file; then
506  if test "$ac_srcdir_defaulted" = yes; then
507    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
508  else
509    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
510  fi
511fi
512srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513
514# Prefer explicitly selected file to automatically selected ones.
515if test -z "$CONFIG_SITE"; then
516  if test "x$prefix" != xNONE; then
517    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
518  else
519    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520  fi
521fi
522for ac_site_file in $CONFIG_SITE; do
523  if test -r "$ac_site_file"; then
524    echo "loading site script $ac_site_file"
525    . "$ac_site_file"
526  fi
527done
528
529if test -r "$cache_file"; then
530  echo "loading cache $cache_file"
531  . $cache_file
532else
533  echo "creating cache $cache_file"
534  > $cache_file
535fi
536
537ac_ext=c
538# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
539ac_cpp='$CPP $CPPFLAGS'
540ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
541ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
542cross_compiling=$ac_cv_prog_cc_cross
543
544ac_exeext=
545ac_objext=o
546if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
547  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
548  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549    ac_n= ac_c='
550' ac_t='        '
551  else
552    ac_n=-n ac_c= ac_t=
553  fi
554else
555  ac_n= ac_c='\c' ac_t=
556fi
557
558
559
560ac_aux_dir=
561for ac_dir in ../../acsupport $srcdir/../../acsupport; do
562  if test -f $ac_dir/install-sh; then
563    ac_aux_dir=$ac_dir
564    ac_install_sh="$ac_aux_dir/install-sh -c"
565    break
566  elif test -f $ac_dir/install.sh; then
567    ac_aux_dir=$ac_dir
568    ac_install_sh="$ac_aux_dir/install.sh -c"
569    break
570  fi
571done
572if test -z "$ac_aux_dir"; then
573  { echo "configure: error: can not find install-sh or install.sh in ../../acsupport $srcdir/../../acsupport" 1>&2; exit 1; }
574fi
575ac_config_guess=$ac_aux_dir/config.guess
576ac_config_sub=$ac_aux_dir/config.sub
577ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
578
579
580
581    echo $ac_n "checking that a separate build tree is being used""... $ac_c" 1>&6
582echo "configure:583: checking that a separate build tree is being used" >&5
583    ecos_cwd=`/bin/pwd`
584    if test "${srcdir}" = "." ; then
585        srcdir=${ecos_cwd}
586    fi
587    if test "${ecos_cwd}" = "${srcdir}" ; then
588        echo "$ac_t""no" 1>&6
589        { echo "configure: error: This configure script should not be run inside the source tree. Instead please use a separate build tree" 1>&2; exit 1; }
590    else
591        echo "$ac_t""yes" 1>&6
592    fi
593
594
595# Make sure we can run config.sub.
596if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
597else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
598fi
599
600echo $ac_n "checking host system type""... $ac_c" 1>&6
601echo "configure:602: checking host system type" >&5
602
603host_alias=$host
604case "$host_alias" in
605NONE)
606  case $nonopt in
607  NONE)
608    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
609    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
610    fi ;;
611  *) host_alias=$nonopt ;;
612  esac ;;
613esac
614
615host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
616host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619echo "$ac_t""$host" 1>&6
620
621# Find a good install program.  We prefer a C program (faster),
622# so one script is as good as another.  But avoid the broken or
623# incompatible versions:
624# SysV /etc/install, /usr/sbin/install
625# SunOS /usr/etc/install
626# IRIX /sbin/install
627# AIX /bin/install
628# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
629# AFS /usr/afsws/bin/install, which mishandles nonexistent args
630# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
631# ./install, which can be erroneously created by make from ./install.sh.
632echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
633echo "configure:634: checking for a BSD compatible install" >&5
634if test -z "$INSTALL"; then
635if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
636  echo $ac_n "(cached) $ac_c" 1>&6
637else
638    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
639  for ac_dir in $PATH; do
640    # Account for people who put trailing slashes in PATH elements.
641    case "$ac_dir/" in
642    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
643    *)
644      # OSF1 and SCO ODT 3.0 have their own names for install.
645      # Don't use installbsd from OSF since it installs stuff as root
646      # by default.
647      for ac_prog in ginstall scoinst install; do
648        if test -f $ac_dir/$ac_prog; then
649          if test $ac_prog = install &&
650            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
651            # AIX install.  It has an incompatible calling convention.
652            :
653          else
654            ac_cv_path_install="$ac_dir/$ac_prog -c"
655            break 2
656          fi
657        fi
658      done
659      ;;
660    esac
661  done
662  IFS="$ac_save_IFS"
663
664fi
665  if test "${ac_cv_path_install+set}" = set; then
666    INSTALL="$ac_cv_path_install"
667  else
668    # As a last resort, use the slow shell script.  We don't cache a
669    # path for INSTALL within a source directory, because that will
670    # break other packages using the cache if that directory is
671    # removed, or if the path is relative.
672    INSTALL="$ac_install_sh"
673  fi
674fi
675echo "$ac_t""$INSTALL" 1>&6
676
677# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
678# It thinks the first close brace ends the variable substitution.
679test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
680
681test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
682
683test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
684
685echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
686echo "configure:687: checking whether build environment is sane" >&5
687# Just in case
688sleep 1
689echo timestamp > conftestfile
690# Do `set' in a subshell so we don't clobber the current shell's
691# arguments.  Must try -L first in case configure is actually a
692# symlink; some systems play weird games with the mod time of symlinks
693# (eg FreeBSD returns the mod time of the symlink's containing
694# directory).
695if (
696   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
697   if test "$*" = "X"; then
698      # -L didn't work.
699      set X `ls -t $srcdir/configure conftestfile`
700   fi
701   if test "$*" != "X $srcdir/configure conftestfile" \
702      && test "$*" != "X conftestfile $srcdir/configure"; then
703
704      # If neither matched, then we have a broken ls.  This can happen
705      # if, for instance, CONFIG_SHELL is bash and it inherits a
706      # broken ls alias from the environment.  This has actually
707      # happened.  Such a system could not be considered "sane".
708      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
709alias in your environment" 1>&2; exit 1; }
710   fi
711
712   test "$2" = conftestfile
713   )
714then
715   # Ok.
716   :
717else
718   { echo "configure: error: newly created file is older than distributed files!
719Check your system clock" 1>&2; exit 1; }
720fi
721rm -f conftest*
722echo "$ac_t""yes" 1>&6
723if test "$program_transform_name" = s,x,x,; then
724  program_transform_name=
725else
726  # Double any \ or $.  echo might interpret backslashes.
727  cat <<\EOF_SED > conftestsed
728s,\\,\\\\,g; s,\$,$$,g
729EOF_SED
730  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
731  rm -f conftestsed
732fi
733test "$program_prefix" != NONE &&
734  program_transform_name="s,^,${program_prefix},; $program_transform_name"
735# Use a double $ so make ignores it.
736test "$program_suffix" != NONE &&
737  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
738
739# sed with no file args requires a program.
740test "$program_transform_name" = "" && program_transform_name="s,x,x,"
741
742echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
743echo "configure:744: checking whether ${MAKE-make} sets \${MAKE}" >&5
744set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
745if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
746  echo $ac_n "(cached) $ac_c" 1>&6
747else
748  cat > conftestmake <<\EOF
749all:
750        @echo 'ac_maketemp="${MAKE}"'
751EOF
752# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
753eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
754if test -n "$ac_maketemp"; then
755  eval ac_cv_prog_make_${ac_make}_set=yes
756else
757  eval ac_cv_prog_make_${ac_make}_set=no
758fi
759rm -f conftestmake
760fi
761if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
762  echo "$ac_t""yes" 1>&6
763  SET_MAKE=
764else
765  echo "$ac_t""no" 1>&6
766  SET_MAKE="MAKE=${MAKE-make}"
767fi
768
769
770PACKAGE=libcdl
771
772VERSION=0.2
773
774if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
775  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
776fi
777cat >> confdefs.h <<EOF
778#define PACKAGE "$PACKAGE"
779EOF
780
781cat >> confdefs.h <<EOF
782#define VERSION "$VERSION"
783EOF
784
785
786
787missing_dir=`cd $ac_aux_dir && pwd`
788echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
789echo "configure:790: checking for working aclocal" >&5
790# Run test in a subshell; some versions of sh will print an error if
791# an executable is not found, even if stderr is redirected.
792# Redirect stdin to placate older versions of autoconf.  Sigh.
793if (aclocal --version) < /dev/null > /dev/null 2>&1; then
794   ACLOCAL=aclocal
795   echo "$ac_t""found" 1>&6
796else
797   ACLOCAL="$missing_dir/missing aclocal"
798   echo "$ac_t""missing" 1>&6
799fi
800
801echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
802echo "configure:803: checking for working autoconf" >&5
803# Run test in a subshell; some versions of sh will print an error if
804# an executable is not found, even if stderr is redirected.
805# Redirect stdin to placate older versions of autoconf.  Sigh.
806if (autoconf --version) < /dev/null > /dev/null 2>&1; then
807   AUTOCONF=autoconf
808   echo "$ac_t""found" 1>&6
809else
810   AUTOCONF="$missing_dir/missing autoconf"
811   echo "$ac_t""missing" 1>&6
812fi
813
814echo $ac_n "checking for working automake""... $ac_c" 1>&6
815echo "configure:816: checking for working automake" >&5
816# Run test in a subshell; some versions of sh will print an error if
817# an executable is not found, even if stderr is redirected.
818# Redirect stdin to placate older versions of autoconf.  Sigh.
819if (automake --version) < /dev/null > /dev/null 2>&1; then
820   AUTOMAKE=automake
821   echo "$ac_t""found" 1>&6
822else
823   AUTOMAKE="$missing_dir/missing automake"
824   echo "$ac_t""missing" 1>&6
825fi
826
827echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
828echo "configure:829: checking for working autoheader" >&5
829# Run test in a subshell; some versions of sh will print an error if
830# an executable is not found, even if stderr is redirected.
831# Redirect stdin to placate older versions of autoconf.  Sigh.
832if (autoheader --version) < /dev/null > /dev/null 2>&1; then
833   AUTOHEADER=autoheader
834   echo "$ac_t""found" 1>&6
835else
836   AUTOHEADER="$missing_dir/missing autoheader"
837   echo "$ac_t""missing" 1>&6
838fi
839
840echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
841echo "configure:842: checking for working makeinfo" >&5
842# Run test in a subshell; some versions of sh will print an error if
843# an executable is not found, even if stderr is redirected.
844# Redirect stdin to placate older versions of autoconf.  Sigh.
845if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
846   MAKEINFO=makeinfo
847   echo "$ac_t""found" 1>&6
848else
849   MAKEINFO="$missing_dir/missing makeinfo"
850   echo "$ac_t""missing" 1>&6
851fi
852
853
854
855   
856   
857    cat >> confdefs.h <<EOF
858#define CYGNUM_LIBCDL_VERSION "$VERSION"
859EOF
860
861
862echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
863echo "configure:864: checking whether to enable maintainer-specific portions of Makefiles" >&5
864    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
865if test "${enable_maintainer_mode+set}" = set; then
866  enableval="$enable_maintainer_mode"
867  USE_MAINTAINER_MODE=$enableval
868else
869  USE_MAINTAINER_MODE=no
870fi
871
872  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
873 
874
875if test $USE_MAINTAINER_MODE = yes; then
876  MAINTAINER_MODE_TRUE=
877  MAINTAINER_MODE_FALSE='#'
878else
879  MAINTAINER_MODE_TRUE='#'
880  MAINTAINER_MODE_FALSE=
881fi
882  MAINT=$MAINTAINER_MODE_TRUE
883 
884
885
886# Extract the first word of "gcc", so it can be a program name with args.
887set dummy gcc; ac_word=$2
888echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
889echo "configure:890: checking for $ac_word" >&5
890if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
891  echo $ac_n "(cached) $ac_c" 1>&6
892else
893  if test -n "$CC"; then
894  ac_cv_prog_CC="$CC" # Let the user override the test.
895else
896  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
897  ac_dummy="$PATH"
898  for ac_dir in $ac_dummy; do
899    test -z "$ac_dir" && ac_dir=.
900    if test -f $ac_dir/$ac_word; then
901      ac_cv_prog_CC="gcc"
902      break
903    fi
904  done
905  IFS="$ac_save_ifs"
906fi
907fi
908CC="$ac_cv_prog_CC"
909if test -n "$CC"; then
910  echo "$ac_t""$CC" 1>&6
911else
912  echo "$ac_t""no" 1>&6
913fi
914
915if test -z "$CC"; then
916  # Extract the first word of "cc", so it can be a program name with args.
917set dummy cc; ac_word=$2
918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
919echo "configure:920: checking for $ac_word" >&5
920if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
921  echo $ac_n "(cached) $ac_c" 1>&6
922else
923  if test -n "$CC"; then
924  ac_cv_prog_CC="$CC" # Let the user override the test.
925else
926  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
927  ac_prog_rejected=no
928  ac_dummy="$PATH"
929  for ac_dir in $ac_dummy; do
930    test -z "$ac_dir" && ac_dir=.
931    if test -f $ac_dir/$ac_word; then
932      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
933        ac_prog_rejected=yes
934        continue
935      fi
936      ac_cv_prog_CC="cc"
937      break
938    fi
939  done
940  IFS="$ac_save_ifs"
941if test $ac_prog_rejected = yes; then
942  # We found a bogon in the path, so make sure we never use it.
943  set dummy $ac_cv_prog_CC
944  shift
945  if test $# -gt 0; then
946    # We chose a different compiler from the bogus one.
947    # However, it has the same basename, so the bogon will be chosen
948    # first if we set CC to just the basename; use the full file name.
949    shift
950    set dummy "$ac_dir/$ac_word" "$@"
951    shift
952    ac_cv_prog_CC="$@"
953  fi
954fi
955fi
956fi
957CC="$ac_cv_prog_CC"
958if test -n "$CC"; then
959  echo "$ac_t""$CC" 1>&6
960else
961  echo "$ac_t""no" 1>&6
962fi
963
964  if test -z "$CC"; then
965    case "`uname -s`" in
966    *win32* | *WIN32*)
967      # Extract the first word of "cl", so it can be a program name with args.
968set dummy cl; ac_word=$2
969echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
970echo "configure:971: checking for $ac_word" >&5
971if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
972  echo $ac_n "(cached) $ac_c" 1>&6
973else
974  if test -n "$CC"; then
975  ac_cv_prog_CC="$CC" # Let the user override the test.
976else
977  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
978  ac_dummy="$PATH"
979  for ac_dir in $ac_dummy; do
980    test -z "$ac_dir" && ac_dir=.
981    if test -f $ac_dir/$ac_word; then
982      ac_cv_prog_CC="cl"
983      break
984    fi
985  done
986  IFS="$ac_save_ifs"
987fi
988fi
989CC="$ac_cv_prog_CC"
990if test -n "$CC"; then
991  echo "$ac_t""$CC" 1>&6
992else
993  echo "$ac_t""no" 1>&6
994fi
995 ;;
996    esac
997  fi
998  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
999fi
1000
1001echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1002echo "configure:1003: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1003
1004ac_ext=c
1005# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1006ac_cpp='$CPP $CPPFLAGS'
1007ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1008ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1009cross_compiling=$ac_cv_prog_cc_cross
1010
1011cat > conftest.$ac_ext << EOF
1012
1013#line 1014 "configure"
1014#include "confdefs.h"
1015
1016main(){return(0);}
1017EOF
1018if { (eval echo configure:1019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1019  ac_cv_prog_cc_works=yes
1020  # If we can't run a trivial program, we are probably using a cross compiler.
1021  if (./conftest; exit) 2>/dev/null; then
1022    ac_cv_prog_cc_cross=no
1023  else
1024    ac_cv_prog_cc_cross=yes
1025  fi
1026else
1027  echo "configure: failed program was:" >&5
1028  cat conftest.$ac_ext >&5
1029  ac_cv_prog_cc_works=no
1030fi
1031rm -fr conftest*
1032ac_ext=c
1033# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1034ac_cpp='$CPP $CPPFLAGS'
1035ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1036ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1037cross_compiling=$ac_cv_prog_cc_cross
1038
1039echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1040if test $ac_cv_prog_cc_works = no; then
1041  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1042fi
1043echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1044echo "configure:1045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1045echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1046cross_compiling=$ac_cv_prog_cc_cross
1047
1048echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1049echo "configure:1050: checking whether we are using GNU C" >&5
1050if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1051  echo $ac_n "(cached) $ac_c" 1>&6
1052else
1053  cat > conftest.c <<EOF
1054#ifdef __GNUC__
1055  yes;
1056#endif
1057EOF
1058if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1059  ac_cv_prog_gcc=yes
1060else
1061  ac_cv_prog_gcc=no
1062fi
1063fi
1064
1065echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1066
1067if test $ac_cv_prog_gcc = yes; then
1068  GCC=yes
1069else
1070  GCC=
1071fi
1072
1073ac_test_CFLAGS="${CFLAGS+set}"
1074ac_save_CFLAGS="$CFLAGS"
1075CFLAGS=
1076echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1077echo "configure:1078: checking whether ${CC-cc} accepts -g" >&5
1078if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1079  echo $ac_n "(cached) $ac_c" 1>&6
1080else
1081  echo 'void f(){}' > conftest.c
1082if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1083  ac_cv_prog_cc_g=yes
1084else
1085  ac_cv_prog_cc_g=no
1086fi
1087rm -f conftest*
1088
1089fi
1090
1091echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1092if test "$ac_test_CFLAGS" = set; then
1093  CFLAGS="$ac_save_CFLAGS"
1094elif test $ac_cv_prog_cc_g = yes; then
1095  if test "$GCC" = yes; then
1096    CFLAGS="-g -O2"
1097  else
1098    CFLAGS="-g"
1099  fi
1100else
1101  if test "$GCC" = yes; then
1102    CFLAGS="-O2"
1103  else
1104    CFLAGS=
1105  fi
1106fi
1107
1108for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1109do
1110# Extract the first word of "$ac_prog", so it can be a program name with args.
1111set dummy $ac_prog; ac_word=$2
1112echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1113echo "configure:1114: checking for $ac_word" >&5
1114if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1115  echo $ac_n "(cached) $ac_c" 1>&6
1116else
1117  if test -n "$CXX"; then
1118  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1119else
1120  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1121  ac_dummy="$PATH"
1122  for ac_dir in $ac_dummy; do
1123    test -z "$ac_dir" && ac_dir=.
1124    if test -f $ac_dir/$ac_word; then
1125      ac_cv_prog_CXX="$ac_prog"
1126      break
1127    fi
1128  done
1129  IFS="$ac_save_ifs"
1130fi
1131fi
1132CXX="$ac_cv_prog_CXX"
1133if test -n "$CXX"; then
1134  echo "$ac_t""$CXX" 1>&6
1135else
1136  echo "$ac_t""no" 1>&6
1137fi
1138
1139test -n "$CXX" && break
1140done
1141test -n "$CXX" || CXX="gcc"
1142
1143
1144echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1145echo "configure:1146: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1146
1147ac_ext=C
1148# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1149ac_cpp='$CXXCPP $CPPFLAGS'
1150ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1151ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1152cross_compiling=$ac_cv_prog_cxx_cross
1153
1154cat > conftest.$ac_ext << EOF
1155
1156#line 1157 "configure"
1157#include "confdefs.h"
1158
1159int main(){return(0);}
1160EOF
1161if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1162  ac_cv_prog_cxx_works=yes
1163  # If we can't run a trivial program, we are probably using a cross compiler.
1164  if (./conftest; exit) 2>/dev/null; then
1165    ac_cv_prog_cxx_cross=no
1166  else
1167    ac_cv_prog_cxx_cross=yes
1168  fi
1169else
1170  echo "configure: failed program was:" >&5
1171  cat conftest.$ac_ext >&5
1172  ac_cv_prog_cxx_works=no
1173fi
1174rm -fr conftest*
1175ac_ext=c
1176# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1177ac_cpp='$CPP $CPPFLAGS'
1178ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1179ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1180cross_compiling=$ac_cv_prog_cc_cross
1181
1182echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1183if test $ac_cv_prog_cxx_works = no; then
1184  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1185fi
1186echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1187echo "configure:1188: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1188echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1189cross_compiling=$ac_cv_prog_cxx_cross
1190
1191echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1192echo "configure:1193: checking whether we are using GNU C++" >&5
1193if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1194  echo $ac_n "(cached) $ac_c" 1>&6
1195else
1196  cat > conftest.C <<EOF
1197#ifdef __GNUC__
1198  yes;
1199#endif
1200EOF
1201if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1202  ac_cv_prog_gxx=yes
1203else
1204  ac_cv_prog_gxx=no
1205fi
1206fi
1207
1208echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1209
1210if test $ac_cv_prog_gxx = yes; then
1211  GXX=yes
1212else
1213  GXX=
1214fi
1215
1216ac_test_CXXFLAGS="${CXXFLAGS+set}"
1217ac_save_CXXFLAGS="$CXXFLAGS"
1218CXXFLAGS=
1219echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1220echo "configure:1221: checking whether ${CXX-g++} accepts -g" >&5
1221if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1222  echo $ac_n "(cached) $ac_c" 1>&6
1223else
1224  echo 'void f(){}' > conftest.cc
1225if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1226  ac_cv_prog_cxx_g=yes
1227else
1228  ac_cv_prog_cxx_g=no
1229fi
1230rm -f conftest*
1231
1232fi
1233
1234echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1235if test "$ac_test_CXXFLAGS" = set; then
1236  CXXFLAGS="$ac_save_CXXFLAGS"
1237elif test $ac_cv_prog_cxx_g = yes; then
1238  if test "$GXX" = yes; then
1239    CXXFLAGS="-g -O2"
1240  else
1241    CXXFLAGS="-g"
1242  fi
1243else
1244  if test "$GXX" = yes; then
1245    CXXFLAGS="-O2"
1246  else
1247    CXXFLAGS=
1248  fi
1249fi
1250
1251for ac_declaration in \
1252   ''\
1253   '#include <stdlib.h>' \
1254   'extern "C" void std::exit (int) throw (); using std::exit;' \
1255   'extern "C" void std::exit (int); using std::exit;' \
1256   'extern "C" void exit (int) throw ();' \
1257   'extern "C" void exit (int);' \
1258   'void exit (int);'
1259do
1260  cat > conftest.$ac_ext <<EOF
1261#line 1262 "configure"
1262#include "confdefs.h"
1263#include <stdlib.h>
1264$ac_declaration
1265int main() {
1266exit (42);
1267; return 0; }
1268EOF
1269if { (eval echo configure:1270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1270  :
1271else
1272  echo "configure: failed program was:" >&5
1273  cat conftest.$ac_ext >&5
1274  rm -rf conftest*
1275  continue
1276fi
1277rm -f conftest*
1278  cat > conftest.$ac_ext <<EOF
1279#line 1280 "configure"
1280#include "confdefs.h"
1281$ac_declaration
1282int main() {
1283exit (42);
1284; return 0; }
1285EOF
1286if { (eval echo configure:1287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1287  rm -rf conftest*
1288  break
1289else
1290  echo "configure: failed program was:" >&5
1291  cat conftest.$ac_ext >&5
1292fi
1293rm -f conftest*
1294done
1295if test -n "$ac_declaration"; then
1296  echo '#ifdef __cplusplus' >>confdefs.h
1297  echo $ac_declaration      >>confdefs.h
1298  echo '#endif'             >>confdefs.h
1299fi
1300
1301
1302# Extract the first word of "ranlib", so it can be a program name with args.
1303set dummy ranlib; ac_word=$2
1304echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305echo "configure:1306: checking for $ac_word" >&5
1306if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1307  echo $ac_n "(cached) $ac_c" 1>&6
1308else
1309  if test -n "$RANLIB"; then
1310  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1311else
1312  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1313  ac_dummy="$PATH"
1314  for ac_dir in $ac_dummy; do
1315    test -z "$ac_dir" && ac_dir=.
1316    if test -f $ac_dir/$ac_word; then
1317      ac_cv_prog_RANLIB="ranlib"
1318      break
1319    fi
1320  done
1321  IFS="$ac_save_ifs"
1322  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1323fi
1324fi
1325RANLIB="$ac_cv_prog_RANLIB"
1326if test -n "$RANLIB"; then
1327  echo "$ac_t""$RANLIB" 1>&6
1328else
1329  echo "$ac_t""no" 1>&6
1330fi
1331
1332echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1333echo "configure:1334: checking for object suffix" >&5
1334if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1335  echo $ac_n "(cached) $ac_c" 1>&6
1336else
1337  rm -f conftest*
1338echo 'int i = 1;' > conftest.$ac_ext
1339if { (eval echo configure:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1340  for ac_file in conftest.*; do
1341    case $ac_file in
1342    *.c) ;;
1343    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1344    esac
1345  done
1346else
1347  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1348fi
1349rm -f conftest*
1350fi
1351
1352echo "$ac_t""$ac_cv_objext" 1>&6
1353OBJEXT=$ac_cv_objext
1354ac_objext=$ac_cv_objext
1355
1356echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1357echo "configure:1358: checking for Cygwin environment" >&5
1358if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1359  echo $ac_n "(cached) $ac_c" 1>&6
1360else
1361  cat > conftest.$ac_ext <<EOF
1362#line 1363 "configure"
1363#include "confdefs.h"
1364
1365int main() {
1366
1367#ifndef __CYGWIN__
1368#define __CYGWIN__ __CYGWIN32__
1369#endif
1370return __CYGWIN__;
1371; return 0; }
1372EOF
1373if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374  rm -rf conftest*
1375  ac_cv_cygwin=yes
1376else
1377  echo "configure: failed program was:" >&5
1378  cat conftest.$ac_ext >&5
1379  rm -rf conftest*
1380  ac_cv_cygwin=no
1381fi
1382rm -f conftest*
1383rm -f conftest*
1384fi
1385
1386echo "$ac_t""$ac_cv_cygwin" 1>&6
1387CYGWIN=
1388test "$ac_cv_cygwin" = yes && CYGWIN=yes
1389echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1390echo "configure:1391: checking for mingw32 environment" >&5
1391if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1392  echo $ac_n "(cached) $ac_c" 1>&6
1393else
1394  cat > conftest.$ac_ext <<EOF
1395#line 1396 "configure"
1396#include "confdefs.h"
1397
1398int main() {
1399return __MINGW32__;
1400; return 0; }
1401EOF
1402if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403  rm -rf conftest*
1404  ac_cv_mingw32=yes
1405else
1406  echo "configure: failed program was:" >&5
1407  cat conftest.$ac_ext >&5
1408  rm -rf conftest*
1409  ac_cv_mingw32=no
1410fi
1411rm -f conftest*
1412rm -f conftest*
1413fi
1414
1415echo "$ac_t""$ac_cv_mingw32" 1>&6
1416MINGW32=
1417test "$ac_cv_mingw32" = yes && MINGW32=yes
1418
1419
1420echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1421echo "configure:1422: checking for executable suffix" >&5
1422if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1423  echo $ac_n "(cached) $ac_c" 1>&6
1424else
1425  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1426  ac_cv_exeext=.exe
1427else
1428  rm -f conftest*
1429  echo 'int main () { return 0; }' > conftest.$ac_ext
1430  ac_cv_exeext=
1431  if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1432    for file in conftest.*; do
1433      case $file in
1434      *.c | *.o | *.obj) ;;
1435      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1436      esac
1437    done
1438  else
1439    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1440  fi
1441  rm -f conftest*
1442  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1443fi
1444fi
1445
1446EXEEXT=""
1447test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1448echo "$ac_t""${ac_cv_exeext}" 1>&6
1449ac_exeext=$EXEEXT
1450
1451
1452    ecos_CFLAGS=""
1453    ecos_CXXFLAGS=""
1454    ecos_LDADD=""
1455    ecos_INCLUDES=""
1456    ecos_LIBS=""
1457   
1458   
1459   
1460   
1461   
1462
1463
1464   
1465   
1466   
1467
1468    echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
1469echo "configure:1470: checking "for Visual C++"" >&5
1470    MSVC="no";
1471    if test "${CC}" = "cl" ; then
1472       MSVC="yes"
1473       CXX="cl"
1474       MSVC_SRCDIR=${srcdir}
1475       
1476   
1477   
1478    if test "${MSVC}" = "yes" ; then
1479      MSVC_SRCDIR=`cygpath -w ${MSVC_SRCDIR} | tr \\\\\\\\ /`
1480    fi
1481
1482       
1483       ecos_INCLUDES="${ecos_INCLUDES} \"-I${MSVC_SRCDIR}\""
1484       ecos_LDADD="-link"
1485       ecos_LIBS="advapi32.lib"
1486    fi
1487   
1488
1489if test "${MSVC}" = "yes"; then
1490  MSVC_TRUE=
1491  MSVC_FALSE='#'
1492else
1493  MSVC_TRUE='#'
1494  MSVC_FALSE=
1495fi
1496    if test "${MSVC}" = "yes" ; then
1497        echo "$ac_t""unfortunately yes" 1>&6
1498    else
1499        echo "$ac_t""no" 1>&6
1500    fi
1501
1502
1503   
1504   
1505   
1506   
1507
1508    echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
1509echo "configure:1510: checking "the default compiler flags"" >&5
1510
1511            ecosflags_enable_debug="no"
1512    # Check whether --enable-debug or --disable-debug was given.
1513if test "${enable_debug+set}" = set; then
1514  enableval="$enable_debug"
1515  case "${enableval}" in
1516       yes) ecosflags_enable_debug="yes" ;;
1517       *)   ecosflags_enable_debug="no" ;;
1518    esac
1519fi
1520
1521
1522                    ecosflags_enable_ansi="no"
1523    if test "${MSVC}" = "yes" ; then
1524      # Check whether --enable-ansi or --disable-ansi was given.
1525if test "${enable_ansi+set}" = set; then
1526  enableval="$enable_ansi"
1527  case "${enableval}" in
1528         yes) ecosflags_enable_ansi="yes" ;;
1529         *)   ecosflags_enable_ansi="no" ;;
1530      esac
1531fi
1532
1533    fi
1534
1535        if test "${GCC}" = "yes" ; then
1536        ecos_CFLAGS="${ecos_CFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
1537        ecos_CXXFLAGS="${ecos_CXXFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual"
1538    elif test "${MSVC}" = "yes" ; then
1539        ecos_CFLAGS="${ecos_CFLAGS} -nologo -W3"
1540        ecos_CXXFLAGS="${ecos_CXXFLAGS} -nologo -W3 -GR -GX"
1541    else
1542        { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; }
1543    fi
1544
1545        if test "${ecosflags_enable_debug}" = "yes" ; then
1546        if test "${GCC}" = "yes" ; then
1547            ecos_CFLAGS="${ecos_CFLAGS} -g -O0"
1548            ecos_CXXFLAGS="${ecos_CXXFLAGS} -g -O0"
1549        elif test "${MSVC}" = "yes" ; then
1550            ecos_CFLAGS="${ecos_CFLAGS} -MDd -Zi"
1551            ecos_CXXFLAGS="${ecos_CXXFLAGS} -MDd -Zi"
1552        fi
1553    else
1554                                        if test "${GCC}" = "yes" ; then
1555            ecos_CFLAGS="${ecos_CFLAGS} -O0"
1556            ecos_CXXFLAGS="${ecos_CXXFLAGS} -O0"
1557        elif test "${MSVC}" = "yes" ; then
1558            ecos_CFLAGS="${ecos_CFLAGS} -MD -O2"
1559            ecos_CXXFLAGS="${ecos_CXXFLAGS} -MD -O2"
1560        fi
1561    fi
1562
1563    CFLAGS="${ac_save_CFLAGS}"
1564    CXXFLAGS="${ac_save_CXXFLAGS}"
1565
1566    echo "$ac_t""done" 1>&6
1567
1568
1569
1570   
1571
1572    if test "${ecosflags_enable_debug}" = "yes" ; then
1573        ecosinfra_asserts="yes"
1574        ecosinfra_preconditions="yes"
1575        ecosinfra_postconditions="yes"
1576        ecosinfra_invariants="yes"
1577        ecosinfra_loopinvariants="yes"
1578        ecosinfra_tracing="yes"
1579        ecosinfra_fntracing="yes"
1580    else
1581        ecosinfra_asserts="no"
1582        ecosinfra_preconditions="no"
1583        ecosinfra_postconditions="no"
1584        ecosinfra_invariants="no"
1585        ecosinfra_loopinvariants="no"
1586        ecosinfra_tracing="no"
1587        ecosinfra_fntracing="no"
1588    fi
1589
1590    # Check whether --enable-asserts or --disable-asserts was given.
1591if test "${enable_asserts+set}" = set; then
1592  enableval="$enable_asserts"
1593  case "${enableval}" in
1594            yes) ecosinfra_asserts="yes" ;;
1595            no)  ecosinfra_asserts="no"  ;;
1596            *)   { echo "configure: error: bad value ${enableval} for disable-asserts option" 1>&2; exit 1; } ;;
1597        esac
1598fi
1599
1600    if test "${ecosinfra_asserts}" = "yes"; then
1601        cat >> confdefs.h <<\EOF
1602#define CYGDBG_USE_ASSERTS 1
1603EOF
1604
1605    fi
1606
1607    # Check whether --enable-preconditions or --disable-preconditions was given.
1608if test "${enable_preconditions+set}" = set; then
1609  enableval="$enable_preconditions"
1610  case "${enableval}" in
1611            yes) ecosinfra_preconditions="yes" ;;
1612            no)  ecosinfra_preconditions="no"  ;;
1613            *)   { echo "configure: error: bad value ${enableval} for disable-preconditions option" 1>&2; exit 1; } ;;
1614        esac
1615fi
1616
1617    if test "${ecosinfra_preconditions}" = "yes"; then
1618        cat >> confdefs.h <<\EOF
1619#define CYGDBG_INFRA_DEBUG_PRECONDITIONS 1
1620EOF
1621
1622    fi
1623
1624    # Check whether --enable-postconditions or --disable-postconditions was given.
1625if test "${enable_postconditions+set}" = set; then
1626  enableval="$enable_postconditions"
1627  case "${enableval}" in
1628            yes) ecosinfra_postconditions="yes" ;;
1629            no)  ecosinfra_postconditions="no"  ;;
1630            *)   { echo "configure: error: bad value ${enableval} for disable-postconditions option" 1>&2; exit 1; } ;;
1631        esac
1632fi
1633
1634    if test "${ecosinfra_postconditions}" = "yes"; then
1635        cat >> confdefs.h <<\EOF
1636#define CYGDBG_INFRA_DEBUG_POSTCONDITIONS 1
1637EOF
1638
1639    fi
1640
1641    # Check whether --enable-invariants or --disable-invariants was given.
1642if test "${enable_invariants+set}" = set; then
1643  enableval="$enable_invariants"
1644  case "${enableval}" in
1645            yes) ecosinfra_invariants="yes" ;;
1646            no)  ecosinfra_invariants="no"  ;;
1647            *)   { echo "configure: error: bad value ${enableval} for disable-invariants option" 1>&2; exit 1; } ;;
1648        esac
1649fi
1650
1651    if test "${ecosinfra_invariants}" = "yes"; then
1652        cat >> confdefs.h <<\EOF
1653#define CYGDBG_INFRA_DEBUG_INVARIANTS 1
1654EOF
1655
1656    fi
1657
1658    # Check whether --enable-loopinvariants or --disable-loopinvariants was given.
1659if test "${enable_loopinvariants+set}" = set; then
1660  enableval="$enable_loopinvariants"
1661  case "${enableval}" in
1662            yes) ecosinfra_loopinvariants="yes" ;;
1663            no)  ecosinfra_loopinvariants="no"  ;;
1664            *)   { echo "configure: error: bad value ${enableval} for disable-loopinvariants option" 1>&2; exit 1; } ;;
1665        esac
1666fi
1667
1668    if test "${ecosinfra_loopinvariants}" = "yes"; then
1669        cat >> confdefs.h <<\EOF
1670#define CYGDBG_INFRA_DEBUG_LOOP_INVARIANTS 1
1671EOF
1672
1673    fi
1674
1675    # Check whether --enable-tracing or --disable-tracing was given.
1676if test "${enable_tracing+set}" = set; then
1677  enableval="$enable_tracing"
1678  case "${enableval}" in
1679            yes) ecosinfra_tracing="yes" ;;
1680            no)  ecosinfra_tracing="no"  ;;
1681            *)   { echo "configure: error: bad value ${enableval} for disable-tracing option" 1>&2; exit 1; } ;;
1682        esac
1683fi
1684
1685    if test "${ecosinfra_tracing}" = "yes"; then
1686        cat >> confdefs.h <<\EOF
1687#define CYGDBG_USE_TRACING 1
1688EOF
1689
1690    fi
1691
1692    # Check whether --enable-fntracing or --disable-fntracing was given.
1693if test "${enable_fntracing+set}" = set; then
1694  enableval="$enable_fntracing"
1695  case "${enableval}" in
1696            yes) ecosinfra_fntracing="yes" ;;
1697            no)  ecosinfra_fntracing=no  ;;
1698            *)   { echo "configure: error: bad value ${enableval} for disable-fntracing option" 1>&2; exit 1; } ;;
1699    esac
1700fi
1701
1702    if test "${ecosinfra_fntracing}" = "yes"; then
1703        cat >> confdefs.h <<\EOF
1704#define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS 1
1705EOF
1706
1707    fi
1708
1709
1710    echo $ac_n "checking for eCos host-side infrastructure""... $ac_c" 1>&6
1711echo "configure:1712: checking for eCos host-side infrastructure" >&5
1712
1713                infra_builddir=""
1714    possibles=".. ../.. ../../.. ../../../.. ../../../../.."
1715   
1716    infra_builddir=""
1717    for i in ${possibles}; do
1718        if test -d "$i/"infra""; then
1719            infra_builddir=$i
1720            break
1721        fi
1722    done
1723
1724    if test "${infra_builddir}" = "" ; then
1725      possibles="../host ../../host ../../../host ../../../../host ../../../../../host ../../../../../../host"
1726     
1727    infra_builddir=""
1728    for i in ${possibles}; do
1729        if test -d "$i/"infra""; then
1730            infra_builddir=$i
1731            break
1732        fi
1733    done
1734
1735    fi
1736    if test "${infra_builddir}" != "" ; then
1737        infra_builddir="${infra_builddir}/infra"
1738        infra_builddir=`cd ${infra_builddir} && /bin/pwd`
1739    fi
1740
1741    ecos_infra_incdir=""
1742    ecos_infra_libdir=""
1743    ecos_infra_libs=""
1744
1745    # Check whether --with-infra-header or --without-infra-header was given.
1746if test "${with_infra_header+set}" = set; then
1747  withval="$with_infra_header"
1748  :
1749fi
1750
1751    # Check whether --with-infra-lib or --without-infra-lib was given.
1752if test "${with_infra_lib+set}" = set; then
1753  withval="$with_infra_lib"
1754  :
1755fi
1756
1757    # Check whether --with-infra or --without-infra was given.
1758if test "${with_infra+set}" = set; then
1759  withval="$with_infra"
1760  :
1761fi
1762
1763
1764    if test "${with_infra_header+set}" = "set"; then
1765        ecos_infra_incdir="${with_infra_header}"
1766    elif test "${with_infra+set}" = "set"; then
1767        ecos_infra_incdir="${with_infra}/include"
1768    elif test "${infra_builddir}" != "" ; then
1769        ecos_infra_incdir="${infra_builddir}"
1770    else
1771        { echo "configure: error: infrastructure headers not found" 1>&2; exit 1; }
1772    fi
1773    if test "${MSVC}" = "yes" ; then
1774        ecos_msvc_infra_incdir=${ecos_infra_incdir}
1775       
1776   
1777   
1778    if test "${MSVC}" = "yes" ; then
1779      ecos_msvc_infra_incdir=`cygpath -w ${ecos_msvc_infra_incdir} | tr \\\\\\\\ /`
1780    fi
1781
1782        ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_msvc_infra_incdir}\""
1783    else
1784        ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_infra_incdir}"
1785    fi
1786
1787    if test "${with_infra_lib+set}" = "set"; then
1788        ecos_infra_libdir="${with_infra_lib}"
1789    elif test "${with_infra+set}" = "set"; then
1790        ecos_infra_libdir="${with_infra}/lib"
1791    elif test "${infra_builddir}" != "" ; then
1792        ecos_infra_libdir="${infra_builddir}"
1793    else
1794        { echo "configure: error: infrastructure library not found" 1>&2; exit 1; }
1795    fi
1796    if test "${MSVC}" = "yes" ; then
1797        ecos_msvc_infra_libdir=${ecos_infra_libdir}
1798       
1799   
1800   
1801    if test "${MSVC}" = "yes" ; then
1802      ecos_msvc_infra_libdir=`cygpath -w ${ecos_msvc_infra_libdir} | tr \\\\\\\\ /`
1803    fi
1804
1805        ecos_LIBS="${ecos_LIBS} cyginfra.lib"
1806        ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_msvc_infra_libdir}\""
1807    else
1808        ecos_LIBS="${ecos_LIBS} -lcyginfra"
1809        ecos_LDADD="${ecos_LDADD} -L${ecos_infra_libdir}"
1810    fi
1811
1812   
1813   
1814    echo "$ac_t""-I${ecos_infra_incdir} -L${ecos_infra_libdir}" 1>&6
1815
1816
1817
1818   
1819   
1820
1821    ecos_tk_libs=""
1822    ecos_tk_libdir=""
1823
1824        echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6
1825echo "configure:1826: checking for Tcl installation" >&5
1826    # Check whether --with-tcl or --without-tcl was given.
1827if test "${with_tcl+set}" = set; then
1828  withval="$with_tcl"
1829  :
1830fi
1831
1832    # Check whether --with-tcl-version or --without-tcl-version was given.
1833if test "${with_tcl_version+set}" = set; then
1834  withval="$with_tcl_version"
1835  :
1836fi
1837
1838
1839                                    if test "${MSVC}" = "yes" ; then
1840        # Check whether --with-tcl-header or --without-tcl-header was given.
1841if test "${with_tcl_header+set}" = set; then
1842  withval="$with_tcl_header"
1843  :
1844fi
1845
1846        # Check whether --with-tcl-lib or --without-tcl-lib was given.
1847if test "${with_tcl_lib+set}" = set; then
1848  withval="$with_tcl_lib"
1849  :
1850fi
1851
1852        ecos_tcl_incdir=""
1853        ecos_tcl_libdir=""
1854        if test "${with_tcl_version+set}" != set ; then
1855            { echo "configure: error: You must specify a Tcl version using --with-tcl-version=<vsn>" 1>&2; exit 1; }
1856        fi
1857        if test "${with_tcl_header+set}" = set ; then
1858            ecos_tcl_incdir=${with_tcl_header}
1859        elif test "${with_tcl+set}" = set ; then
1860            ecos_tcl_incdir="${with_tcl}/include"
1861        else
1862            { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-header=<path>" 1>&2; exit 1; }
1863        fi
1864        if test "${with_tcl_lib+set}" = set; then
1865            ecos_tcl_libdir=${with_tcl_lib}
1866        elif test "${with_tcl+set}" = set; then
1867            ecos_tcl_libdir="${with_tcl}/lib"
1868        else
1869            { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-lib=<path>" 1>&2; exit 1; }
1870        fi
1871 
1872                        if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then
1873            { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; }
1874        fi
1875
1876       
1877   
1878   
1879    if test "${MSVC}" = "yes" ; then
1880      ecos_tcl_incdir=`cygpath -w ${ecos_tcl_incdir} | tr \\\\\\\\ /`
1881    fi
1882
1883       
1884   
1885   
1886    if test "${MSVC}" = "yes" ; then
1887      ecos_tcl_libdir=`cygpath -w ${ecos_tcl_libdir} | tr \\\\\\\\ /`
1888    fi
1889
1890        ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_tcl_incdir}\""
1891        ecos_LIBS="${ecos_LIBS} tcl${with_tcl_version}.lib"
1892        ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_tcl_libdir}\""
1893
1894                        ecos_tk_libs=""
1895
1896    else
1897                possibles=""
1898        if test "${with_tcl+set}" = set ; then
1899            possibles="${with_tcl}/lib"
1900            if test "${with_tcl_version+set}" = set ; then
1901                possibles="${possibles} ${with_tcl}/lib/tcl${with_tcl_version}"
1902            fi
1903        fi
1904        possibles="${possibles} ${prefix}/lib"
1905        if test "${with_tcl_version+set}" = set ; then
1906            possibles="${possibles} ${prefix}/lib/tcl${with_tcl_version}"
1907        fi
1908        possibles="${possibles} /usr/lib"
1909        if test "${with_tcl_version+set}" = set ; then
1910            possibles="${possibles} /usr/lib/tcl${with_tcl_version}"
1911        fi
1912       
1913    tclconfig=""
1914    for i in ${possibles}; do
1915        if test -r "$i/"tclConfig.sh""; then
1916            tclconfig=$i
1917            break
1918        fi
1919    done
1920
1921        if test \! -r "${tclconfig}/tclConfig.sh" ; then
1922            { echo "configure: error: unable to locate Tcl configuration file tclConfig.sh" 1>&2; exit 1; }
1923        else
1924            . ${tclconfig}/tclConfig.sh
1925
1926        ecos_INCLUDES="${ecos_INCLUDES} ${TCL_INCLUDE_SPEC}"
1927 
1928                                                    if test -z "${TCL_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
1929               
1930    libtcl=""
1931    for i in ${possibles}; do
1932        if test -r "$i/"libtcl${with_tcl_version}.a""; then
1933            libtcl=$i
1934            break
1935        fi
1936    done
1937
1938                if test -r "${libtcl}/libtcl${with_tcl_version}.a" ; then
1939                    TCL_LIB_SPEC="-L${libtcl} -ltcl${with_tcl_version}"
1940                fi
1941            fi
1942            if test -z "${TCL_LIB_SPEC}" ; then
1943               
1944    libtcl=""
1945    for i in ${possibles}; do
1946        if test -r "$i/"libtcl.a""; then
1947            libtcl=$i
1948            break
1949        fi
1950    done
1951
1952                if test -r "${libtcl}/libtcl.a" ; then
1953                    TCL_LIB_SPEC="-L${libtcl} -ltcl"
1954                fi
1955            fi
1956            if test -z "${TCL_LIB_SPEC}" ; then
1957                { echo "configure: error: ${tclconfig}/tclConfig.sh does not define TCL_LIB_SPEC" 1>&2; exit 1; }
1958            fi
1959            ecos_LIBS="${ecos_LIBS} ${TCL_LIB_SPEC}"
1960
1961                    possibles=`echo ${possibles} | sed -e 's,tcl,tk,g'`
1962           
1963    tkconfig=""
1964    for i in ${possibles}; do
1965        if test -r "$i/"tkConfig.sh""; then
1966            tkconfig=$i
1967            break
1968        fi
1969    done
1970
1971            if test \! -r "${tkconfig}/tkConfig.sh" ; then
1972                { echo "configure: error: unable to locate Tk config file tkConfig.sh" 1>&2; exit 1; }
1973            else
1974                . ${tkconfig}/tkConfig.sh
1975                if test -z "${TK_INC_DIR}" ; then
1976                    if test "${TK_PREFIX}" = "/usr" ; then
1977                        ecos_tk_includes="${TK_XINCLUDES}"
1978                    else
1979                        ecos_tk_includes="-I${TK_PREFIX}/include ${TK_XINCLUDES}"
1980                    fi
1981                else
1982                    ecos_tk_includes="-I${TK_INC_DIR} ${TK_XINCLUDES}"
1983                fi
1984
1985                                if test -z "${TK_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
1986                   
1987    libtk=""
1988    for i in ${possibles}; do
1989        if test -r "$i/"libtk${with_tcl_version}.a""; then
1990            libtk=$i
1991            break
1992        fi
1993    done
1994
1995                    if test -r "${libtk}/libtk${with_tcl_version}.a" ; then
1996                        TK_LIB_SPEC="-L${libtk} -ltk${with_tcl_version}"
1997                    fi
1998                fi
1999                if test -z "${TK_LIB_SPEC}" ; then
2000                   
2001    libtk=""
2002    for i in ${possibles}; do
2003        if test -r "$i/"libtk.a""; then
2004            libtk=$i
2005            break
2006        fi
2007    done
2008
2009                    if test -r "${libtk}/libtk.a" ; then
2010                        TK_LIB_SPEC="-L${libtk} -ltk"
2011                    fi
2012                fi
2013                if test -z "${TK_LIB_SPEC}" ; then
2014                    { echo "configure: error: ${tkconfig}/tkConfig.sh does not define TK_LIB_SPEC" 1>&2; exit 1; }
2015                fi
2016                ecos_tk_libs="${TK_LIB_SPEC} ${TK_LIBS}"
2017            fi
2018        fi
2019    fi
2020
2021    echo "$ac_t""-I${ecos_tcl_incdir} ${TCL_LIB_SPEC}" 1>&6
2022   
2023   
2024
2025
2026
2027
2028
2029trap '' 1 2 15
2030cat > confcache <<\EOF
2031# This file is a shell script that caches the results of configure
2032# tests run on this system so they can be shared between configure
2033# scripts and configure runs.  It is not useful on other systems.
2034# If it contains results you don't want to keep, you may remove or edit it.
2035#
2036# By default, configure uses ./config.cache as the cache file,
2037# creating it if it does not exist already.  You can give configure
2038# the --cache-file=FILE option to use a different cache file; that is
2039# what configure does when it calls configure scripts in
2040# subdirectories, so they share the cache.
2041# Giving --cache-file=/dev/null disables caching, for debugging configure.
2042# config.status only pays attention to the cache file if you give it the
2043# --recheck option to rerun configure.
2044#
2045EOF
2046# The following way of writing the cache mishandles newlines in values,
2047# but we know of no workaround that is simple, portable, and efficient.
2048# So, don't put newlines in cache variables' values.
2049# Ultrix sh set writes to stderr and can't be redirected directly,
2050# and sets the high bit in the cache file unless we assign to the vars.
2051(set) 2>&1 |
2052  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2053  *ac_space=\ *)
2054    # `set' does not quote correctly, so add quotes (double-quote substitution
2055    # turns \\\\ into \\, and sed turns \\ into \).
2056    sed -n \
2057      -e "s/'/'\\\\''/g" \
2058      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2059    ;;
2060  *)
2061    # `set' quotes correctly as required by POSIX, so do not add quotes.
2062    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2063    ;;
2064  esac >> confcache
2065if cmp -s $cache_file confcache; then
2066  :
2067else
2068  if test -w $cache_file; then
2069    echo "updating cache $cache_file"
2070    cat confcache > $cache_file
2071  else
2072    echo "not updating unwritable cache $cache_file"
2073  fi
2074fi
2075rm -f confcache
2076
2077trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2078
2079test "x$prefix" = xNONE && prefix=$ac_default_prefix
2080# Let make expand exec_prefix.
2081test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2082
2083# Any assignment to VPATH causes Sun make to only execute
2084# the first set of double-colon rules, so remove it if not needed.
2085# If there is a colon in the path, we need to keep it.
2086if test "x$srcdir" = x.; then
2087  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2088fi
2089
2090trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2091
2092DEFS=-DHAVE_CONFIG_H
2093
2094# Without the "./", some shells look in PATH for config.status.
2095: ${CONFIG_STATUS=./config.status}
2096
2097echo creating $CONFIG_STATUS
2098rm -f $CONFIG_STATUS
2099cat > $CONFIG_STATUS <<EOF
2100#! /bin/sh
2101# Generated automatically by configure.
2102# Run this file to recreate the current configuration.
2103# This directory was configured as follows,
2104# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2105#
2106# $0 $ac_configure_args
2107#
2108# Compiler output produced by configure, useful for debugging
2109# configure, is in ./config.log if it exists.
2110
2111ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2112for ac_option
2113do
2114  case "\$ac_option" in
2115  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2116    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2117    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2118  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2119    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2120    exit 0 ;;
2121  -help | --help | --hel | --he | --h)
2122    echo "\$ac_cs_usage"; exit 0 ;;
2123  *) echo "\$ac_cs_usage"; exit 1 ;;
2124  esac
2125done
2126
2127ac_given_srcdir=$srcdir
2128ac_given_INSTALL="$INSTALL"
2129
2130trap 'rm -fr `echo "Makefile:Makefile.in testsuite/Makefile:testsuite/Makefile.in cdlconfig.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2131EOF
2132cat >> $CONFIG_STATUS <<EOF
2133
2134# Protect against being on the right side of a sed subst in config.status.
2135sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2136 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2137$ac_vpsub
2138$extrasub
2139s%@SHELL@%$SHELL%g
2140s%@CFLAGS@%$CFLAGS%g
2141s%@CPPFLAGS@%$CPPFLAGS%g
2142s%@CXXFLAGS@%$CXXFLAGS%g
2143s%@FFLAGS@%$FFLAGS%g
2144s%@DEFS@%$DEFS%g
2145s%@LDFLAGS@%$LDFLAGS%g
2146s%@LIBS@%$LIBS%g
2147s%@exec_prefix@%$exec_prefix%g
2148s%@prefix@%$prefix%g
2149s%@program_transform_name@%$program_transform_name%g
2150s%@bindir@%$bindir%g
2151s%@sbindir@%$sbindir%g
2152s%@libexecdir@%$libexecdir%g
2153s%@datadir@%$datadir%g
2154s%@sysconfdir@%$sysconfdir%g
2155s%@sharedstatedir@%$sharedstatedir%g
2156s%@localstatedir@%$localstatedir%g
2157s%@libdir@%$libdir%g
2158s%@includedir@%$includedir%g
2159s%@oldincludedir@%$oldincludedir%g
2160s%@infodir@%$infodir%g
2161s%@mandir@%$mandir%g
2162s%@host@%$host%g
2163s%@host_alias@%$host_alias%g
2164s%@host_cpu@%$host_cpu%g
2165s%@host_vendor@%$host_vendor%g
2166s%@host_os@%$host_os%g
2167s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2168s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2169s%@INSTALL_DATA@%$INSTALL_DATA%g
2170s%@PACKAGE@%$PACKAGE%g
2171s%@VERSION@%$VERSION%g
2172s%@ACLOCAL@%$ACLOCAL%g
2173s%@AUTOCONF@%$AUTOCONF%g
2174s%@AUTOMAKE@%$AUTOMAKE%g
2175s%@AUTOHEADER@%$AUTOHEADER%g
2176s%@MAKEINFO@%$MAKEINFO%g
2177s%@SET_MAKE@%$SET_MAKE%g
2178s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2179s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2180s%@MAINT@%$MAINT%g
2181s%@CC@%$CC%g
2182s%@CXX@%$CXX%g
2183s%@RANLIB@%$RANLIB%g
2184s%@OBJEXT@%$OBJEXT%g
2185s%@EXEEXT@%$EXEEXT%g
2186s%@ecos_CFLAGS@%$ecos_CFLAGS%g
2187s%@ecos_CXXFLAGS@%$ecos_CXXFLAGS%g
2188s%@ecos_LDADD@%$ecos_LDADD%g
2189s%@ecos_INCLUDES@%$ecos_INCLUDES%g
2190s%@ecos_LIBS@%$ecos_LIBS%g
2191s%@MSVC_SRCDIR@%$MSVC_SRCDIR%g
2192s%@MSVC_TRUE@%$MSVC_TRUE%g
2193s%@MSVC_FALSE@%$MSVC_FALSE%g
2194s%@ecos_infra_incdir@%$ecos_infra_incdir%g
2195s%@ecos_infra_libdir@%$ecos_infra_libdir%g
2196s%@ecos_tk_includes@%$ecos_tk_includes%g
2197s%@ecos_tk_libs@%$ecos_tk_libs%g
2198
2199CEOF
2200EOF
2201
2202cat >> $CONFIG_STATUS <<\EOF
2203
2204# Split the substitutions into bite-sized pieces for seds with
2205# small command number limits, like on Digital OSF/1 and HP-UX.
2206ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2207ac_file=1 # Number of current file.
2208ac_beg=1 # First line for current file.
2209ac_end=$ac_max_sed_cmds # Line after last line for current file.
2210ac_more_lines=:
2211ac_sed_cmds=""
2212while $ac_more_lines; do
2213  if test $ac_beg -gt 1; then
2214    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2215  else
2216    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2217  fi
2218  if test ! -s conftest.s$ac_file; then
2219    ac_more_lines=false
2220    rm -f conftest.s$ac_file
2221  else
2222    if test -z "$ac_sed_cmds"; then
2223      ac_sed_cmds="sed -f conftest.s$ac_file"
2224    else
2225      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2226    fi
2227    ac_file=`expr $ac_file + 1`
2228    ac_beg=$ac_end
2229    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2230  fi
2231done
2232if test -z "$ac_sed_cmds"; then
2233  ac_sed_cmds=cat
2234fi
2235EOF
2236
2237cat >> $CONFIG_STATUS <<EOF
2238
2239CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in testsuite/Makefile:testsuite/Makefile.in"}
2240EOF
2241cat >> $CONFIG_STATUS <<\EOF
2242for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2243  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2244  case "$ac_file" in
2245  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2246       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2247  *) ac_file_in="${ac_file}.in" ;;
2248  esac
2249
2250  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2251
2252  # Remove last slash and all that follows it.  Not all systems have dirname.
2253  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2254  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2255    # The file is in a subdirectory.
2256    test ! -d "$ac_dir" && mkdir "$ac_dir"
2257    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2258    # A "../" for each directory in $ac_dir_suffix.
2259    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2260  else
2261    ac_dir_suffix= ac_dots=
2262  fi
2263
2264  case "$ac_given_srcdir" in
2265  .)  srcdir=.
2266      if test -z "$ac_dots"; then top_srcdir=.
2267      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2268  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2269  *) # Relative path.
2270    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2271    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2272  esac
2273
2274  case "$ac_given_INSTALL" in
2275  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2276  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2277  esac
2278
2279  echo creating "$ac_file"
2280  rm -f "$ac_file"
2281  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2282  case "$ac_file" in
2283  *Makefile*) ac_comsub="1i\\
2284# $configure_input" ;;
2285  *) ac_comsub= ;;
2286  esac
2287
2288  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2289  sed -e "$ac_comsub
2290s%@configure_input@%$configure_input%g
2291s%@srcdir@%$srcdir%g
2292s%@top_srcdir@%$top_srcdir%g
2293s%@INSTALL@%$INSTALL%g
2294" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2295fi; done
2296rm -f conftest.s*
2297
2298# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2299# NAME is the cpp macro being defined and VALUE is the value it is being given.
2300#
2301# ac_d sets the value in "#define NAME VALUE" lines.
2302ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2303ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2304ac_dC='\3'
2305ac_dD='%g'
2306# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2307ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2308ac_uB='\([      ]\)%\1#\2define\3'
2309ac_uC=' '
2310ac_uD='\4%g'
2311# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2312ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2313ac_eB='$%\1#\2define\3'
2314ac_eC=' '
2315ac_eD='%g'
2316
2317if test "${CONFIG_HEADERS+set}" != set; then
2318EOF
2319cat >> $CONFIG_STATUS <<EOF
2320  CONFIG_HEADERS="cdlconfig.h:config.h.in"
2321EOF
2322cat >> $CONFIG_STATUS <<\EOF
2323fi
2324for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2325  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2326  case "$ac_file" in
2327  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2328       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2329  *) ac_file_in="${ac_file}.in" ;;
2330  esac
2331
2332  echo creating $ac_file
2333
2334  rm -f conftest.frag conftest.in conftest.out
2335  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2336  cat $ac_file_inputs > conftest.in
2337
2338EOF
2339
2340# Transform confdefs.h into a sed script conftest.vals that substitutes
2341# the proper values into config.h.in to produce config.h.  And first:
2342# Protect against being on the right side of a sed subst in config.status.
2343# Protect against being in an unquoted here document in config.status.
2344rm -f conftest.vals
2345cat > conftest.hdr <<\EOF
2346s/[\\&%]/\\&/g
2347s%[\\$`]%\\&%g
2348s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2349s%ac_d%ac_u%gp
2350s%ac_u%ac_e%gp
2351EOF
2352sed -n -f conftest.hdr confdefs.h > conftest.vals
2353rm -f conftest.hdr
2354
2355# This sed command replaces #undef with comments.  This is necessary, for
2356# example, in the case of _POSIX_SOURCE, which is predefined and required
2357# on some systems where configure will not decide to define it.
2358cat >> conftest.vals <<\EOF
2359s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2360EOF
2361
2362# Break up conftest.vals because some shells have a limit on
2363# the size of here documents, and old seds have small limits too.
2364
2365rm -f conftest.tail
2366while :
2367do
2368  ac_lines=`grep -c . conftest.vals`
2369  # grep -c gives empty output for an empty file on some AIX systems.
2370  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2371  # Write a limited-size here document to conftest.frag.
2372  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2373  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2374  echo 'CEOF
2375  sed -f conftest.frag conftest.in > conftest.out
2376  rm -f conftest.in
2377  mv conftest.out conftest.in
2378' >> $CONFIG_STATUS
2379  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2380  rm -f conftest.vals
2381  mv conftest.tail conftest.vals
2382done
2383rm -f conftest.vals
2384
2385cat >> $CONFIG_STATUS <<\EOF
2386  rm -f conftest.frag conftest.h
2387  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2388  cat conftest.in >> conftest.h
2389  rm -f conftest.in
2390  if cmp -s $ac_file conftest.h 2>/dev/null; then
2391    echo "$ac_file is unchanged"
2392    rm -f conftest.h
2393  else
2394    # Remove last slash and all that follows it.  Not all systems have dirname.
2395      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2396      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2397      # The file is in a subdirectory.
2398      test ! -d "$ac_dir" && mkdir "$ac_dir"
2399    fi
2400    rm -f $ac_file
2401    mv conftest.h $ac_file
2402  fi
2403fi; done
2404
2405EOF
2406cat >> $CONFIG_STATUS <<EOF
2407
2408
2409EOF
2410cat >> $CONFIG_STATUS <<\EOF
2411test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2412
2413exit 0
2414EOF
2415chmod +x $CONFIG_STATUS
2416rm -fr confdefs* $ac_clean_files
2417test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2418
Note: See TracBrowser for help on using the repository browser.