comparison host/libcdl/configure @ 76:435cced73e2f ecos-v1_3_1-release

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