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