import gdb-1999-05-10
[deliverable/binutils-gdb.git] / sim / d10v / configure
1 #! /bin/sh
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 sim_inline="-DDEFAULT_INLINE=0"
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
83
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
86 #
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
91
92 # serial 3
93
94
95
96
97
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
100 #
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
105
106 # serial 1
107
108
109
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
112 #
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
117
118 # serial 1
119
120
121
122
123
124
125 # Guess values for system-dependent variables and create Makefiles.
126 # Generated automatically using autoconf version 2.13
127 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
128 #
129 # This configure script is free software; the Free Software Foundation
130 # gives unlimited permission to copy, distribute and modify it.
131
132 # Defaults:
133 ac_help=
134 ac_default_prefix=/usr/local
135 # Any additions from configure.in:
136 ac_help="$ac_help
137 --disable-nls do not use Native Language Support"
138 ac_help="$ac_help
139 --with-included-gettext use the GNU gettext library included here"
140 ac_help="$ac_help
141 --enable-maintainer-mode Enable developer functionality."
142 ac_help="$ac_help
143 --enable-sim-bswap Use Host specific BSWAP instruction."
144 ac_help="$ac_help
145 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
146 ac_help="$ac_help
147 --enable-sim-debug=opts Enable debugging flags"
148 ac_help="$ac_help
149 --enable-sim-stdio Specify whether to use stdio for console input/output."
150 ac_help="$ac_help
151 --enable-sim-trace=opts Enable tracing flags"
152 ac_help="$ac_help
153 --enable-sim-profile=opts Enable profiling flags"
154 ac_help="$ac_help
155 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
156
157 # Initialize some variables set by options.
158 # The variables have the same names as the options, with
159 # dashes changed to underlines.
160 build=NONE
161 cache_file=./config.cache
162 exec_prefix=NONE
163 host=NONE
164 no_create=
165 nonopt=NONE
166 no_recursion=
167 prefix=NONE
168 program_prefix=NONE
169 program_suffix=NONE
170 program_transform_name=s,x,x,
171 silent=
172 site=
173 sitefile=
174 srcdir=
175 target=NONE
176 verbose=
177 x_includes=NONE
178 x_libraries=NONE
179 bindir='${exec_prefix}/bin'
180 sbindir='${exec_prefix}/sbin'
181 libexecdir='${exec_prefix}/libexec'
182 datadir='${prefix}/share'
183 sysconfdir='${prefix}/etc'
184 sharedstatedir='${prefix}/com'
185 localstatedir='${prefix}/var'
186 libdir='${exec_prefix}/lib'
187 includedir='${prefix}/include'
188 oldincludedir='/usr/include'
189 infodir='${prefix}/info'
190 mandir='${prefix}/man'
191
192 # Initialize some other variables.
193 subdirs=
194 MFLAGS= MAKEFLAGS=
195 SHELL=${CONFIG_SHELL-/bin/sh}
196 # Maximum number of lines to put in a shell here document.
197 ac_max_here_lines=12
198
199 ac_prev=
200 for ac_option
201 do
202
203 # If the previous option needs an argument, assign it.
204 if test -n "$ac_prev"; then
205 eval "$ac_prev=\$ac_option"
206 ac_prev=
207 continue
208 fi
209
210 case "$ac_option" in
211 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
212 *) ac_optarg= ;;
213 esac
214
215 # Accept the important Cygnus configure options, so we can diagnose typos.
216
217 case "$ac_option" in
218
219 -bindir | --bindir | --bindi | --bind | --bin | --bi)
220 ac_prev=bindir ;;
221 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
222 bindir="$ac_optarg" ;;
223
224 -build | --build | --buil | --bui | --bu)
225 ac_prev=build ;;
226 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
227 build="$ac_optarg" ;;
228
229 -cache-file | --cache-file | --cache-fil | --cache-fi \
230 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
231 ac_prev=cache_file ;;
232 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
233 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
234 cache_file="$ac_optarg" ;;
235
236 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
237 ac_prev=datadir ;;
238 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
239 | --da=*)
240 datadir="$ac_optarg" ;;
241
242 -disable-* | --disable-*)
243 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
244 # Reject names that are not valid shell variable names.
245 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
246 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
247 fi
248 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
249 eval "enable_${ac_feature}=no" ;;
250
251 -enable-* | --enable-*)
252 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
253 # Reject names that are not valid shell variable names.
254 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
255 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
256 fi
257 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
258 case "$ac_option" in
259 *=*) ;;
260 *) ac_optarg=yes ;;
261 esac
262 eval "enable_${ac_feature}='$ac_optarg'" ;;
263
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix="$ac_optarg" ;;
272
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
275 with_gas=yes ;;
276
277 -help | --help | --hel | --he)
278 # Omit some internal or obsolete options to make the list less imposing.
279 # This message is too long to be a string in the A/UX 3.1 sh.
280 cat << EOF
281 Usage: configure [options] [host]
282 Options: [defaults in brackets after descriptions]
283 Configuration:
284 --cache-file=FILE cache test results in FILE
285 --help print this message
286 --no-create do not create output files
287 --quiet, --silent do not print \`checking...' messages
288 --site-file=FILE use FILE as the site file
289 --version print the version of autoconf that created configure
290 Directory and file names:
291 --prefix=PREFIX install architecture-independent files in PREFIX
292 [$ac_default_prefix]
293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
294 [same as prefix]
295 --bindir=DIR user executables in DIR [EPREFIX/bin]
296 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
297 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
298 --datadir=DIR read-only architecture-independent data in DIR
299 [PREFIX/share]
300 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
301 --sharedstatedir=DIR modifiable architecture-independent data in DIR
302 [PREFIX/com]
303 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
304 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
305 --includedir=DIR C header files in DIR [PREFIX/include]
306 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
307 --infodir=DIR info documentation in DIR [PREFIX/info]
308 --mandir=DIR man documentation in DIR [PREFIX/man]
309 --srcdir=DIR find the sources in DIR [configure dir or ..]
310 --program-prefix=PREFIX prepend PREFIX to installed program names
311 --program-suffix=SUFFIX append SUFFIX to installed program names
312 --program-transform-name=PROGRAM
313 run sed PROGRAM on installed program names
314 EOF
315 cat << EOF
316 Host type:
317 --build=BUILD configure for building on BUILD [BUILD=HOST]
318 --host=HOST configure for HOST [guessed]
319 --target=TARGET configure for TARGET [TARGET=HOST]
320 Features and packages:
321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
323 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
324 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
325 --x-includes=DIR X include files are in DIR
326 --x-libraries=DIR X library files are in DIR
327 EOF
328 if test -n "$ac_help"; then
329 echo "--enable and --with options recognized:$ac_help"
330 fi
331 exit 0 ;;
332
333 -host | --host | --hos | --ho)
334 ac_prev=host ;;
335 -host=* | --host=* | --hos=* | --ho=*)
336 host="$ac_optarg" ;;
337
338 -includedir | --includedir | --includedi | --included | --include \
339 | --includ | --inclu | --incl | --inc)
340 ac_prev=includedir ;;
341 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
342 | --includ=* | --inclu=* | --incl=* | --inc=*)
343 includedir="$ac_optarg" ;;
344
345 -infodir | --infodir | --infodi | --infod | --info | --inf)
346 ac_prev=infodir ;;
347 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
348 infodir="$ac_optarg" ;;
349
350 -libdir | --libdir | --libdi | --libd)
351 ac_prev=libdir ;;
352 -libdir=* | --libdir=* | --libdi=* | --libd=*)
353 libdir="$ac_optarg" ;;
354
355 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
356 | --libexe | --libex | --libe)
357 ac_prev=libexecdir ;;
358 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
359 | --libexe=* | --libex=* | --libe=*)
360 libexecdir="$ac_optarg" ;;
361
362 -localstatedir | --localstatedir | --localstatedi | --localstated \
363 | --localstate | --localstat | --localsta | --localst \
364 | --locals | --local | --loca | --loc | --lo)
365 ac_prev=localstatedir ;;
366 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
367 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
368 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
369 localstatedir="$ac_optarg" ;;
370
371 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
372 ac_prev=mandir ;;
373 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
374 mandir="$ac_optarg" ;;
375
376 -nfp | --nfp | --nf)
377 # Obsolete; use --without-fp.
378 with_fp=no ;;
379
380 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
381 | --no-cr | --no-c)
382 no_create=yes ;;
383
384 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
385 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
386 no_recursion=yes ;;
387
388 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
389 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
390 | --oldin | --oldi | --old | --ol | --o)
391 ac_prev=oldincludedir ;;
392 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
393 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
394 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
395 oldincludedir="$ac_optarg" ;;
396
397 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
398 ac_prev=prefix ;;
399 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
400 prefix="$ac_optarg" ;;
401
402 -program-prefix | --program-prefix | --program-prefi | --program-pref \
403 | --program-pre | --program-pr | --program-p)
404 ac_prev=program_prefix ;;
405 -program-prefix=* | --program-prefix=* | --program-prefi=* \
406 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
407 program_prefix="$ac_optarg" ;;
408
409 -program-suffix | --program-suffix | --program-suffi | --program-suff \
410 | --program-suf | --program-su | --program-s)
411 ac_prev=program_suffix ;;
412 -program-suffix=* | --program-suffix=* | --program-suffi=* \
413 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
414 program_suffix="$ac_optarg" ;;
415
416 -program-transform-name | --program-transform-name \
417 | --program-transform-nam | --program-transform-na \
418 | --program-transform-n | --program-transform- \
419 | --program-transform | --program-transfor \
420 | --program-transfo | --program-transf \
421 | --program-trans | --program-tran \
422 | --progr-tra | --program-tr | --program-t)
423 ac_prev=program_transform_name ;;
424 -program-transform-name=* | --program-transform-name=* \
425 | --program-transform-nam=* | --program-transform-na=* \
426 | --program-transform-n=* | --program-transform-=* \
427 | --program-transform=* | --program-transfor=* \
428 | --program-transfo=* | --program-transf=* \
429 | --program-trans=* | --program-tran=* \
430 | --progr-tra=* | --program-tr=* | --program-t=*)
431 program_transform_name="$ac_optarg" ;;
432
433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
434 | -silent | --silent | --silen | --sile | --sil)
435 silent=yes ;;
436
437 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
438 ac_prev=sbindir ;;
439 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
440 | --sbi=* | --sb=*)
441 sbindir="$ac_optarg" ;;
442
443 -sharedstatedir | --sharedstatedir | --sharedstatedi \
444 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
445 | --sharedst | --shareds | --shared | --share | --shar \
446 | --sha | --sh)
447 ac_prev=sharedstatedir ;;
448 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
449 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
450 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
451 | --sha=* | --sh=*)
452 sharedstatedir="$ac_optarg" ;;
453
454 -site | --site | --sit)
455 ac_prev=site ;;
456 -site=* | --site=* | --sit=*)
457 site="$ac_optarg" ;;
458
459 -site-file | --site-file | --site-fil | --site-fi | --site-f)
460 ac_prev=sitefile ;;
461 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
462 sitefile="$ac_optarg" ;;
463
464 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
465 ac_prev=srcdir ;;
466 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
467 srcdir="$ac_optarg" ;;
468
469 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
470 | --syscon | --sysco | --sysc | --sys | --sy)
471 ac_prev=sysconfdir ;;
472 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
473 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
474 sysconfdir="$ac_optarg" ;;
475
476 -target | --target | --targe | --targ | --tar | --ta | --t)
477 ac_prev=target ;;
478 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
479 target="$ac_optarg" ;;
480
481 -v | -verbose | --verbose | --verbos | --verbo | --verb)
482 verbose=yes ;;
483
484 -version | --version | --versio | --versi | --vers)
485 echo "configure generated by autoconf version 2.13"
486 exit 0 ;;
487
488 -with-* | --with-*)
489 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
490 # Reject names that are not valid shell variable names.
491 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
492 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
493 fi
494 ac_package=`echo $ac_package| sed 's/-/_/g'`
495 case "$ac_option" in
496 *=*) ;;
497 *) ac_optarg=yes ;;
498 esac
499 eval "with_${ac_package}='$ac_optarg'" ;;
500
501 -without-* | --without-*)
502 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
503 # Reject names that are not valid shell variable names.
504 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
505 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
506 fi
507 ac_package=`echo $ac_package| sed 's/-/_/g'`
508 eval "with_${ac_package}=no" ;;
509
510 --x)
511 # Obsolete; use --with-x.
512 with_x=yes ;;
513
514 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
515 | --x-incl | --x-inc | --x-in | --x-i)
516 ac_prev=x_includes ;;
517 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
518 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
519 x_includes="$ac_optarg" ;;
520
521 -x-libraries | --x-libraries | --x-librarie | --x-librari \
522 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
523 ac_prev=x_libraries ;;
524 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
525 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
526 x_libraries="$ac_optarg" ;;
527
528 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
529 ;;
530
531 *)
532 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
533 echo "configure: warning: $ac_option: invalid host type" 1>&2
534 fi
535 if test "x$nonopt" != xNONE; then
536 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
537 fi
538 nonopt="$ac_option"
539 ;;
540
541 esac
542 done
543
544 if test -n "$ac_prev"; then
545 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
546 fi
547
548 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
549
550 # File descriptor usage:
551 # 0 standard input
552 # 1 file creation
553 # 2 errors and warnings
554 # 3 some systems may open it to /dev/tty
555 # 4 used on the Kubota Titan
556 # 6 checking for... messages and results
557 # 5 compiler messages saved in config.log
558 if test "$silent" = yes; then
559 exec 6>/dev/null
560 else
561 exec 6>&1
562 fi
563 exec 5>./config.log
564
565 echo "\
566 This file contains any messages produced by compilers while
567 running configure, to aid debugging if configure makes a mistake.
568 " 1>&5
569
570 # Strip out --no-create and --no-recursion so they do not pile up.
571 # Also quote any args containing shell metacharacters.
572 ac_configure_args=
573 for ac_arg
574 do
575 case "$ac_arg" in
576 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
577 | --no-cr | --no-c) ;;
578 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
579 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
580 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
581 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
582 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
583 esac
584 done
585
586 # NLS nuisances.
587 # Only set these to C if already set. These must not be set unconditionally
588 # because not all systems understand e.g. LANG=C (notably SCO).
589 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
590 # Non-C LC_CTYPE values break the ctype check.
591 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
592 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
593 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
594 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
595
596 # confdefs.h avoids OS command line length limits that DEFS can exceed.
597 rm -rf conftest* confdefs.h
598 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
599 echo > confdefs.h
600
601 # A filename unique to this package, relative to the directory that
602 # configure is in, which we can look for to find out if srcdir is correct.
603 ac_unique_file=Makefile.in
604
605 # Find the source files, if location was not specified.
606 if test -z "$srcdir"; then
607 ac_srcdir_defaulted=yes
608 # Try the directory containing this script, then its parent.
609 ac_prog=$0
610 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
611 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
612 srcdir=$ac_confdir
613 if test ! -r $srcdir/$ac_unique_file; then
614 srcdir=..
615 fi
616 else
617 ac_srcdir_defaulted=no
618 fi
619 if test ! -r $srcdir/$ac_unique_file; then
620 if test "$ac_srcdir_defaulted" = yes; then
621 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
622 else
623 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
624 fi
625 fi
626 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
627
628 # Prefer explicitly selected file to automatically selected ones.
629 if test -z "$sitefile"; then
630 if test -z "$CONFIG_SITE"; then
631 if test "x$prefix" != xNONE; then
632 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
633 else
634 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
635 fi
636 fi
637 else
638 CONFIG_SITE="$sitefile"
639 fi
640 for ac_site_file in $CONFIG_SITE; do
641 if test -r "$ac_site_file"; then
642 echo "loading site script $ac_site_file"
643 . "$ac_site_file"
644 fi
645 done
646
647 if test -r "$cache_file"; then
648 echo "loading cache $cache_file"
649 . $cache_file
650 else
651 echo "creating cache $cache_file"
652 > $cache_file
653 fi
654
655 ac_ext=c
656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
657 ac_cpp='$CPP $CPPFLAGS'
658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
660 cross_compiling=$ac_cv_prog_cc_cross
661
662 ac_exeext=
663 ac_objext=o
664 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
665 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
666 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
667 ac_n= ac_c='
668 ' ac_t=' '
669 else
670 ac_n=-n ac_c= ac_t=
671 fi
672 else
673 ac_n= ac_c='\c' ac_t=
674 fi
675
676
677
678 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
679 echo "configure:680: checking how to run the C preprocessor" >&5
680 # On Suns, sometimes $CPP names a directory.
681 if test -n "$CPP" && test -d "$CPP"; then
682 CPP=
683 fi
684 if test -z "$CPP"; then
685 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
687 else
688 # This must be in double quotes, not single quotes, because CPP may get
689 # substituted into the Makefile and "${CC-cc}" will confuse make.
690 CPP="${CC-cc} -E"
691 # On the NeXT, cc -E runs the code through the compiler's parser,
692 # not just through cpp.
693 cat > conftest.$ac_ext <<EOF
694 #line 695 "configure"
695 #include "confdefs.h"
696 #include <assert.h>
697 Syntax Error
698 EOF
699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
700 { (eval echo configure:701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
702 if test -z "$ac_err"; then
703 :
704 else
705 echo "$ac_err" >&5
706 echo "configure: failed program was:" >&5
707 cat conftest.$ac_ext >&5
708 rm -rf conftest*
709 CPP="${CC-cc} -E -traditional-cpp"
710 cat > conftest.$ac_ext <<EOF
711 #line 712 "configure"
712 #include "confdefs.h"
713 #include <assert.h>
714 Syntax Error
715 EOF
716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
717 { (eval echo configure:718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
719 if test -z "$ac_err"; then
720 :
721 else
722 echo "$ac_err" >&5
723 echo "configure: failed program was:" >&5
724 cat conftest.$ac_ext >&5
725 rm -rf conftest*
726 CPP="${CC-cc} -nologo -E"
727 cat > conftest.$ac_ext <<EOF
728 #line 729 "configure"
729 #include "confdefs.h"
730 #include <assert.h>
731 Syntax Error
732 EOF
733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
734 { (eval echo configure:735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
736 if test -z "$ac_err"; then
737 :
738 else
739 echo "$ac_err" >&5
740 echo "configure: failed program was:" >&5
741 cat conftest.$ac_ext >&5
742 rm -rf conftest*
743 CPP=/lib/cpp
744 fi
745 rm -f conftest*
746 fi
747 rm -f conftest*
748 fi
749 rm -f conftest*
750 ac_cv_prog_CPP="$CPP"
751 fi
752 CPP="$ac_cv_prog_CPP"
753 else
754 ac_cv_prog_CPP="$CPP"
755 fi
756 echo "$ac_t""$CPP" 1>&6
757
758 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
759 echo "configure:760: checking whether ${MAKE-make} sets \${MAKE}" >&5
760 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
761 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
763 else
764 cat > conftestmake <<\EOF
765 all:
766 @echo 'ac_maketemp="${MAKE}"'
767 EOF
768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
769 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
770 if test -n "$ac_maketemp"; then
771 eval ac_cv_prog_make_${ac_make}_set=yes
772 else
773 eval ac_cv_prog_make_${ac_make}_set=no
774 fi
775 rm -f conftestmake
776 fi
777 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
778 echo "$ac_t""yes" 1>&6
779 SET_MAKE=
780 else
781 echo "$ac_t""no" 1>&6
782 SET_MAKE="MAKE=${MAKE-make}"
783 fi
784
785 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
786 echo "configure:787: checking for POSIXized ISC" >&5
787 if test -d /etc/conf/kconfig.d &&
788 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
789 then
790 echo "$ac_t""yes" 1>&6
791 ISC=yes # If later tests want to check for ISC.
792 cat >> confdefs.h <<\EOF
793 #define _POSIX_SOURCE 1
794 EOF
795
796 if test "$GCC" = yes; then
797 CC="$CC -posix"
798 else
799 CC="$CC -Xp"
800 fi
801 else
802 echo "$ac_t""no" 1>&6
803 ISC=
804 fi
805
806 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
807 echo "configure:808: checking for ANSI C header files" >&5
808 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810 else
811 cat > conftest.$ac_ext <<EOF
812 #line 813 "configure"
813 #include "confdefs.h"
814 #include <stdlib.h>
815 #include <stdarg.h>
816 #include <string.h>
817 #include <float.h>
818 EOF
819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
820 { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
822 if test -z "$ac_err"; then
823 rm -rf conftest*
824 ac_cv_header_stdc=yes
825 else
826 echo "$ac_err" >&5
827 echo "configure: failed program was:" >&5
828 cat conftest.$ac_ext >&5
829 rm -rf conftest*
830 ac_cv_header_stdc=no
831 fi
832 rm -f conftest*
833
834 if test $ac_cv_header_stdc = yes; then
835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
836 cat > conftest.$ac_ext <<EOF
837 #line 838 "configure"
838 #include "confdefs.h"
839 #include <string.h>
840 EOF
841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
842 egrep "memchr" >/dev/null 2>&1; then
843 :
844 else
845 rm -rf conftest*
846 ac_cv_header_stdc=no
847 fi
848 rm -f conftest*
849
850 fi
851
852 if test $ac_cv_header_stdc = yes; then
853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
854 cat > conftest.$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
857 #include <stdlib.h>
858 EOF
859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
860 egrep "free" >/dev/null 2>&1; then
861 :
862 else
863 rm -rf conftest*
864 ac_cv_header_stdc=no
865 fi
866 rm -f conftest*
867
868 fi
869
870 if test $ac_cv_header_stdc = yes; then
871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
872 if test "$cross_compiling" = yes; then
873 :
874 else
875 cat > conftest.$ac_ext <<EOF
876 #line 877 "configure"
877 #include "confdefs.h"
878 #include <ctype.h>
879 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
880 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
881 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
882 int main () { int i; for (i = 0; i < 256; i++)
883 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
884 exit (0); }
885
886 EOF
887 if { (eval echo configure:888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
888 then
889 :
890 else
891 echo "configure: failed program was:" >&5
892 cat conftest.$ac_ext >&5
893 rm -fr conftest*
894 ac_cv_header_stdc=no
895 fi
896 rm -fr conftest*
897 fi
898
899 fi
900 fi
901
902 echo "$ac_t""$ac_cv_header_stdc" 1>&6
903 if test $ac_cv_header_stdc = yes; then
904 cat >> confdefs.h <<\EOF
905 #define STDC_HEADERS 1
906 EOF
907
908 fi
909
910 echo $ac_n "checking for working const""... $ac_c" 1>&6
911 echo "configure:912: checking for working const" >&5
912 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
914 else
915 cat > conftest.$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
918
919 int main() {
920
921 /* Ultrix mips cc rejects this. */
922 typedef int charset[2]; const charset x;
923 /* SunOS 4.1.1 cc rejects this. */
924 char const *const *ccp;
925 char **p;
926 /* NEC SVR4.0.2 mips cc rejects this. */
927 struct point {int x, y;};
928 static struct point const zero = {0,0};
929 /* AIX XL C 1.02.0.0 rejects this.
930 It does not let you subtract one const X* pointer from another in an arm
931 of an if-expression whose if-part is not a constant expression */
932 const char *g = "string";
933 ccp = &g + (g ? g-g : 0);
934 /* HPUX 7.0 cc rejects these. */
935 ++ccp;
936 p = (char**) ccp;
937 ccp = (char const *const *) p;
938 { /* SCO 3.2v4 cc rejects this. */
939 char *t;
940 char const *s = 0 ? (char *) 0 : (char const *) 0;
941
942 *t++ = 0;
943 }
944 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
945 int x[] = {25, 17};
946 const int *foo = &x[0];
947 ++foo;
948 }
949 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
950 typedef const int *iptr;
951 iptr p = 0;
952 ++p;
953 }
954 { /* AIX XL C 1.02.0.0 rejects this saying
955 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
956 struct s { int j; const int *ap[3]; };
957 struct s *b; b->j = 5;
958 }
959 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
960 const int foo = 10;
961 }
962
963 ; return 0; }
964 EOF
965 if { (eval echo configure:966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
966 rm -rf conftest*
967 ac_cv_c_const=yes
968 else
969 echo "configure: failed program was:" >&5
970 cat conftest.$ac_ext >&5
971 rm -rf conftest*
972 ac_cv_c_const=no
973 fi
974 rm -f conftest*
975 fi
976
977 echo "$ac_t""$ac_cv_c_const" 1>&6
978 if test $ac_cv_c_const = no; then
979 cat >> confdefs.h <<\EOF
980 #define const
981 EOF
982
983 fi
984
985 echo $ac_n "checking for inline""... $ac_c" 1>&6
986 echo "configure:987: checking for inline" >&5
987 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 ac_cv_c_inline=no
991 for ac_kw in inline __inline__ __inline; do
992 cat > conftest.$ac_ext <<EOF
993 #line 994 "configure"
994 #include "confdefs.h"
995
996 int main() {
997 } $ac_kw foo() {
998 ; return 0; }
999 EOF
1000 if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1001 rm -rf conftest*
1002 ac_cv_c_inline=$ac_kw; break
1003 else
1004 echo "configure: failed program was:" >&5
1005 cat conftest.$ac_ext >&5
1006 fi
1007 rm -f conftest*
1008 done
1009
1010 fi
1011
1012 echo "$ac_t""$ac_cv_c_inline" 1>&6
1013 case "$ac_cv_c_inline" in
1014 inline | yes) ;;
1015 no) cat >> confdefs.h <<\EOF
1016 #define inline
1017 EOF
1018 ;;
1019 *) cat >> confdefs.h <<EOF
1020 #define inline $ac_cv_c_inline
1021 EOF
1022 ;;
1023 esac
1024
1025 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1026 echo "configure:1027: checking for off_t" >&5
1027 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030 cat > conftest.$ac_ext <<EOF
1031 #line 1032 "configure"
1032 #include "confdefs.h"
1033 #include <sys/types.h>
1034 #if STDC_HEADERS
1035 #include <stdlib.h>
1036 #include <stddef.h>
1037 #endif
1038 EOF
1039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1040 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1041 rm -rf conftest*
1042 ac_cv_type_off_t=yes
1043 else
1044 rm -rf conftest*
1045 ac_cv_type_off_t=no
1046 fi
1047 rm -f conftest*
1048
1049 fi
1050 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1051 if test $ac_cv_type_off_t = no; then
1052 cat >> confdefs.h <<\EOF
1053 #define off_t long
1054 EOF
1055
1056 fi
1057
1058 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1059 echo "configure:1060: checking for size_t" >&5
1060 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1062 else
1063 cat > conftest.$ac_ext <<EOF
1064 #line 1065 "configure"
1065 #include "confdefs.h"
1066 #include <sys/types.h>
1067 #if STDC_HEADERS
1068 #include <stdlib.h>
1069 #include <stddef.h>
1070 #endif
1071 EOF
1072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1073 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1074 rm -rf conftest*
1075 ac_cv_type_size_t=yes
1076 else
1077 rm -rf conftest*
1078 ac_cv_type_size_t=no
1079 fi
1080 rm -f conftest*
1081
1082 fi
1083 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1084 if test $ac_cv_type_size_t = no; then
1085 cat >> confdefs.h <<\EOF
1086 #define size_t unsigned
1087 EOF
1088
1089 fi
1090
1091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1092 # for constant arguments. Useless!
1093 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1094 echo "configure:1095: checking for working alloca.h" >&5
1095 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1097 else
1098 cat > conftest.$ac_ext <<EOF
1099 #line 1100 "configure"
1100 #include "confdefs.h"
1101 #include <alloca.h>
1102 int main() {
1103 char *p = alloca(2 * sizeof(int));
1104 ; return 0; }
1105 EOF
1106 if { (eval echo configure:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1107 rm -rf conftest*
1108 ac_cv_header_alloca_h=yes
1109 else
1110 echo "configure: failed program was:" >&5
1111 cat conftest.$ac_ext >&5
1112 rm -rf conftest*
1113 ac_cv_header_alloca_h=no
1114 fi
1115 rm -f conftest*
1116 fi
1117
1118 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1119 if test $ac_cv_header_alloca_h = yes; then
1120 cat >> confdefs.h <<\EOF
1121 #define HAVE_ALLOCA_H 1
1122 EOF
1123
1124 fi
1125
1126 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1127 echo "configure:1128: checking for alloca" >&5
1128 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1130 else
1131 cat > conftest.$ac_ext <<EOF
1132 #line 1133 "configure"
1133 #include "confdefs.h"
1134
1135 #ifdef __GNUC__
1136 # define alloca __builtin_alloca
1137 #else
1138 # ifdef _MSC_VER
1139 # include <malloc.h>
1140 # define alloca _alloca
1141 # else
1142 # if HAVE_ALLOCA_H
1143 # include <alloca.h>
1144 # else
1145 # ifdef _AIX
1146 #pragma alloca
1147 # else
1148 # ifndef alloca /* predefined by HP cc +Olibcalls */
1149 char *alloca ();
1150 # endif
1151 # endif
1152 # endif
1153 # endif
1154 #endif
1155
1156 int main() {
1157 char *p = (char *) alloca(1);
1158 ; return 0; }
1159 EOF
1160 if { (eval echo configure:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1161 rm -rf conftest*
1162 ac_cv_func_alloca_works=yes
1163 else
1164 echo "configure: failed program was:" >&5
1165 cat conftest.$ac_ext >&5
1166 rm -rf conftest*
1167 ac_cv_func_alloca_works=no
1168 fi
1169 rm -f conftest*
1170 fi
1171
1172 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1173 if test $ac_cv_func_alloca_works = yes; then
1174 cat >> confdefs.h <<\EOF
1175 #define HAVE_ALLOCA 1
1176 EOF
1177
1178 fi
1179
1180 if test $ac_cv_func_alloca_works = no; then
1181 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1182 # that cause trouble. Some versions do not even contain alloca or
1183 # contain a buggy version. If you still want to use their alloca,
1184 # use ar to extract alloca.o from them instead of compiling alloca.c.
1185 ALLOCA=alloca.${ac_objext}
1186 cat >> confdefs.h <<\EOF
1187 #define C_ALLOCA 1
1188 EOF
1189
1190
1191 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether alloca needs Cray hooks" >&5
1193 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1195 else
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1199 #if defined(CRAY) && ! defined(CRAY2)
1200 webecray
1201 #else
1202 wenotbecray
1203 #endif
1204
1205 EOF
1206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1207 egrep "webecray" >/dev/null 2>&1; then
1208 rm -rf conftest*
1209 ac_cv_os_cray=yes
1210 else
1211 rm -rf conftest*
1212 ac_cv_os_cray=no
1213 fi
1214 rm -f conftest*
1215
1216 fi
1217
1218 echo "$ac_t""$ac_cv_os_cray" 1>&6
1219 if test $ac_cv_os_cray = yes; then
1220 for ac_func in _getb67 GETB67 getb67; do
1221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1222 echo "configure:1223: checking for $ac_func" >&5
1223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1225 else
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1229 /* System header to define __stub macros and hopefully few prototypes,
1230 which can conflict with char $ac_func(); below. */
1231 #include <assert.h>
1232 /* Override any gcc2 internal prototype to avoid an error. */
1233 /* We use char because int might match the return type of a gcc2
1234 builtin and then its argument prototype would still apply. */
1235 char $ac_func();
1236
1237 int main() {
1238
1239 /* The GNU C library defines this for functions which it implements
1240 to always fail with ENOSYS. Some functions are actually named
1241 something starting with __ and the normal name is an alias. */
1242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1243 choke me
1244 #else
1245 $ac_func();
1246 #endif
1247
1248 ; return 0; }
1249 EOF
1250 if { (eval echo configure:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1251 rm -rf conftest*
1252 eval "ac_cv_func_$ac_func=yes"
1253 else
1254 echo "configure: failed program was:" >&5
1255 cat conftest.$ac_ext >&5
1256 rm -rf conftest*
1257 eval "ac_cv_func_$ac_func=no"
1258 fi
1259 rm -f conftest*
1260 fi
1261
1262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1263 echo "$ac_t""yes" 1>&6
1264 cat >> confdefs.h <<EOF
1265 #define CRAY_STACKSEG_END $ac_func
1266 EOF
1267
1268 break
1269 else
1270 echo "$ac_t""no" 1>&6
1271 fi
1272
1273 done
1274 fi
1275
1276 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1277 echo "configure:1278: checking stack direction for C alloca" >&5
1278 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281 if test "$cross_compiling" = yes; then
1282 ac_cv_c_stack_direction=0
1283 else
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1287 find_stack_direction ()
1288 {
1289 static char *addr = 0;
1290 auto char dummy;
1291 if (addr == 0)
1292 {
1293 addr = &dummy;
1294 return find_stack_direction ();
1295 }
1296 else
1297 return (&dummy > addr) ? 1 : -1;
1298 }
1299 main ()
1300 {
1301 exit (find_stack_direction() < 0);
1302 }
1303 EOF
1304 if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1305 then
1306 ac_cv_c_stack_direction=1
1307 else
1308 echo "configure: failed program was:" >&5
1309 cat conftest.$ac_ext >&5
1310 rm -fr conftest*
1311 ac_cv_c_stack_direction=-1
1312 fi
1313 rm -fr conftest*
1314 fi
1315
1316 fi
1317
1318 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1319 cat >> confdefs.h <<EOF
1320 #define STACK_DIRECTION $ac_cv_c_stack_direction
1321 EOF
1322
1323 fi
1324
1325 for ac_hdr in unistd.h
1326 do
1327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_hdr" >&5
1330 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1336 #include <$ac_hdr>
1337 EOF
1338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1339 { (eval echo configure:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1341 if test -z "$ac_err"; then
1342 rm -rf conftest*
1343 eval "ac_cv_header_$ac_safe=yes"
1344 else
1345 echo "$ac_err" >&5
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1348 rm -rf conftest*
1349 eval "ac_cv_header_$ac_safe=no"
1350 fi
1351 rm -f conftest*
1352 fi
1353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1356 cat >> confdefs.h <<EOF
1357 #define $ac_tr_hdr 1
1358 EOF
1359
1360 else
1361 echo "$ac_t""no" 1>&6
1362 fi
1363 done
1364
1365 for ac_func in getpagesize
1366 do
1367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_func" >&5
1369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
1376 which can conflict with char $ac_func(); below. */
1377 #include <assert.h>
1378 /* Override any gcc2 internal prototype to avoid an error. */
1379 /* We use char because int might match the return type of a gcc2
1380 builtin and then its argument prototype would still apply. */
1381 char $ac_func();
1382
1383 int main() {
1384
1385 /* The GNU C library defines this for functions which it implements
1386 to always fail with ENOSYS. Some functions are actually named
1387 something starting with __ and the normal name is an alias. */
1388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1389 choke me
1390 #else
1391 $ac_func();
1392 #endif
1393
1394 ; return 0; }
1395 EOF
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1397 rm -rf conftest*
1398 eval "ac_cv_func_$ac_func=yes"
1399 else
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1402 rm -rf conftest*
1403 eval "ac_cv_func_$ac_func=no"
1404 fi
1405 rm -f conftest*
1406 fi
1407
1408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1409 echo "$ac_t""yes" 1>&6
1410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1411 cat >> confdefs.h <<EOF
1412 #define $ac_tr_func 1
1413 EOF
1414
1415 else
1416 echo "$ac_t""no" 1>&6
1417 fi
1418 done
1419
1420 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1421 echo "configure:1422: checking for working mmap" >&5
1422 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1424 else
1425 if test "$cross_compiling" = yes; then
1426 ac_cv_func_mmap_fixed_mapped=no
1427 else
1428 cat > conftest.$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431
1432 /* Thanks to Mike Haertel and Jim Avera for this test.
1433 Here is a matrix of mmap possibilities:
1434 mmap private not fixed
1435 mmap private fixed at somewhere currently unmapped
1436 mmap private fixed at somewhere already mapped
1437 mmap shared not fixed
1438 mmap shared fixed at somewhere currently unmapped
1439 mmap shared fixed at somewhere already mapped
1440 For private mappings, we should verify that changes cannot be read()
1441 back from the file, nor mmap's back from the file at a different
1442 address. (There have been systems where private was not correctly
1443 implemented like the infamous i386 svr4.0, and systems where the
1444 VM page cache was not coherent with the filesystem buffer cache
1445 like early versions of FreeBSD and possibly contemporary NetBSD.)
1446 For shared mappings, we should conversely verify that changes get
1447 propogated back to all the places they're supposed to be.
1448
1449 Grep wants private fixed already mapped.
1450 The main things grep needs to know about mmap are:
1451 * does it exist and is it safe to write into the mmap'd area
1452 * how to use it (BSD variants) */
1453 #include <sys/types.h>
1454 #include <fcntl.h>
1455 #include <sys/mman.h>
1456
1457 /* This mess was copied from the GNU getpagesize.h. */
1458 #ifndef HAVE_GETPAGESIZE
1459 # ifdef HAVE_UNISTD_H
1460 # include <unistd.h>
1461 # endif
1462
1463 /* Assume that all systems that can run configure have sys/param.h. */
1464 # ifndef HAVE_SYS_PARAM_H
1465 # define HAVE_SYS_PARAM_H 1
1466 # endif
1467
1468 # ifdef _SC_PAGESIZE
1469 # define getpagesize() sysconf(_SC_PAGESIZE)
1470 # else /* no _SC_PAGESIZE */
1471 # ifdef HAVE_SYS_PARAM_H
1472 # include <sys/param.h>
1473 # ifdef EXEC_PAGESIZE
1474 # define getpagesize() EXEC_PAGESIZE
1475 # else /* no EXEC_PAGESIZE */
1476 # ifdef NBPG
1477 # define getpagesize() NBPG * CLSIZE
1478 # ifndef CLSIZE
1479 # define CLSIZE 1
1480 # endif /* no CLSIZE */
1481 # else /* no NBPG */
1482 # ifdef NBPC
1483 # define getpagesize() NBPC
1484 # else /* no NBPC */
1485 # ifdef PAGESIZE
1486 # define getpagesize() PAGESIZE
1487 # endif /* PAGESIZE */
1488 # endif /* no NBPC */
1489 # endif /* no NBPG */
1490 # endif /* no EXEC_PAGESIZE */
1491 # else /* no HAVE_SYS_PARAM_H */
1492 # define getpagesize() 8192 /* punt totally */
1493 # endif /* no HAVE_SYS_PARAM_H */
1494 # endif /* no _SC_PAGESIZE */
1495
1496 #endif /* no HAVE_GETPAGESIZE */
1497
1498 #ifdef __cplusplus
1499 extern "C" { void *malloc(unsigned); }
1500 #else
1501 char *malloc();
1502 #endif
1503
1504 int
1505 main()
1506 {
1507 char *data, *data2, *data3;
1508 int i, pagesize;
1509 int fd;
1510
1511 pagesize = getpagesize();
1512
1513 /*
1514 * First, make a file with some known garbage in it.
1515 */
1516 data = malloc(pagesize);
1517 if (!data)
1518 exit(1);
1519 for (i = 0; i < pagesize; ++i)
1520 *(data + i) = rand();
1521 umask(0);
1522 fd = creat("conftestmmap", 0600);
1523 if (fd < 0)
1524 exit(1);
1525 if (write(fd, data, pagesize) != pagesize)
1526 exit(1);
1527 close(fd);
1528
1529 /*
1530 * Next, try to mmap the file at a fixed address which
1531 * already has something else allocated at it. If we can,
1532 * also make sure that we see the same garbage.
1533 */
1534 fd = open("conftestmmap", O_RDWR);
1535 if (fd < 0)
1536 exit(1);
1537 data2 = malloc(2 * pagesize);
1538 if (!data2)
1539 exit(1);
1540 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1541 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1542 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1543 exit(1);
1544 for (i = 0; i < pagesize; ++i)
1545 if (*(data + i) != *(data2 + i))
1546 exit(1);
1547
1548 /*
1549 * Finally, make sure that changes to the mapped area
1550 * do not percolate back to the file as seen by read().
1551 * (This is a bug on some variants of i386 svr4.0.)
1552 */
1553 for (i = 0; i < pagesize; ++i)
1554 *(data2 + i) = *(data2 + i) + 1;
1555 data3 = malloc(pagesize);
1556 if (!data3)
1557 exit(1);
1558 if (read(fd, data3, pagesize) != pagesize)
1559 exit(1);
1560 for (i = 0; i < pagesize; ++i)
1561 if (*(data + i) != *(data3 + i))
1562 exit(1);
1563 close(fd);
1564 unlink("conftestmmap");
1565 exit(0);
1566 }
1567
1568 EOF
1569 if { (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1570 then
1571 ac_cv_func_mmap_fixed_mapped=yes
1572 else
1573 echo "configure: failed program was:" >&5
1574 cat conftest.$ac_ext >&5
1575 rm -fr conftest*
1576 ac_cv_func_mmap_fixed_mapped=no
1577 fi
1578 rm -fr conftest*
1579 fi
1580
1581 fi
1582
1583 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1584 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1585 cat >> confdefs.h <<\EOF
1586 #define HAVE_MMAP 1
1587 EOF
1588
1589 fi
1590
1591 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1592 echo "configure:1593: checking for Cygwin environment" >&5
1593 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1595 else
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599
1600 int main() {
1601
1602 #ifndef __CYGWIN__
1603 #define __CYGWIN__ __CYGWIN32__
1604 #endif
1605 return __CYGWIN__;
1606 ; return 0; }
1607 EOF
1608 if { (eval echo configure:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1609 rm -rf conftest*
1610 ac_cv_cygwin=yes
1611 else
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1614 rm -rf conftest*
1615 ac_cv_cygwin=no
1616 fi
1617 rm -f conftest*
1618 rm -f conftest*
1619 fi
1620
1621 echo "$ac_t""$ac_cv_cygwin" 1>&6
1622 CYGWIN=
1623 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1624 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1625 echo "configure:1626: checking for mingw32 environment" >&5
1626 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1628 else
1629 cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1632
1633 int main() {
1634 return __MINGW32__;
1635 ; return 0; }
1636 EOF
1637 if { (eval echo configure:1638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1638 rm -rf conftest*
1639 ac_cv_mingw32=yes
1640 else
1641 echo "configure: failed program was:" >&5
1642 cat conftest.$ac_ext >&5
1643 rm -rf conftest*
1644 ac_cv_mingw32=no
1645 fi
1646 rm -f conftest*
1647 rm -f conftest*
1648 fi
1649
1650 echo "$ac_t""$ac_cv_mingw32" 1>&6
1651 MINGW32=
1652 test "$ac_cv_mingw32" = yes && MINGW32=yes
1653
1654 # autoconf.info says this should be called right after AC_INIT.
1655
1656
1657 ac_aux_dir=
1658 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1659 if test -f $ac_dir/install-sh; then
1660 ac_aux_dir=$ac_dir
1661 ac_install_sh="$ac_aux_dir/install-sh -c"
1662 break
1663 elif test -f $ac_dir/install.sh; then
1664 ac_aux_dir=$ac_dir
1665 ac_install_sh="$ac_aux_dir/install.sh -c"
1666 break
1667 fi
1668 done
1669 if test -z "$ac_aux_dir"; then
1670 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1671 fi
1672 ac_config_guess=$ac_aux_dir/config.guess
1673 ac_config_sub=$ac_aux_dir/config.sub
1674 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1675
1676
1677 # Do some error checking and defaulting for the host and target type.
1678 # The inputs are:
1679 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1680 #
1681 # The rules are:
1682 # 1. You are not allowed to specify --host, --target, and nonopt at the
1683 # same time.
1684 # 2. Host defaults to nonopt.
1685 # 3. If nonopt is not specified, then host defaults to the current host,
1686 # as determined by config.guess.
1687 # 4. Target and build default to nonopt.
1688 # 5. If nonopt is not specified, then target and build default to host.
1689
1690 # The aliases save the names the user supplied, while $host etc.
1691 # will get canonicalized.
1692 case $host---$target---$nonopt in
1693 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1694 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1695 esac
1696
1697
1698 # Make sure we can run config.sub.
1699 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1700 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1701 fi
1702
1703 echo $ac_n "checking host system type""... $ac_c" 1>&6
1704 echo "configure:1705: checking host system type" >&5
1705
1706 host_alias=$host
1707 case "$host_alias" in
1708 NONE)
1709 case $nonopt in
1710 NONE)
1711 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1712 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1713 fi ;;
1714 *) host_alias=$nonopt ;;
1715 esac ;;
1716 esac
1717
1718 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1719 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1720 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1721 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1722 echo "$ac_t""$host" 1>&6
1723
1724 echo $ac_n "checking target system type""... $ac_c" 1>&6
1725 echo "configure:1726: checking target system type" >&5
1726
1727 target_alias=$target
1728 case "$target_alias" in
1729 NONE)
1730 case $nonopt in
1731 NONE) target_alias=$host_alias ;;
1732 *) target_alias=$nonopt ;;
1733 esac ;;
1734 esac
1735
1736 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1737 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740 echo "$ac_t""$target" 1>&6
1741
1742 echo $ac_n "checking build system type""... $ac_c" 1>&6
1743 echo "configure:1744: checking build system type" >&5
1744
1745 build_alias=$build
1746 case "$build_alias" in
1747 NONE)
1748 case $nonopt in
1749 NONE) build_alias=$host_alias ;;
1750 *) build_alias=$nonopt ;;
1751 esac ;;
1752 esac
1753
1754 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1755 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1756 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1757 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1758 echo "$ac_t""$build" 1>&6
1759
1760 test "$host_alias" != "$target_alias" &&
1761 test "$program_prefix$program_suffix$program_transform_name" = \
1762 NONENONEs,x,x, &&
1763 program_prefix=${target_alias}-
1764
1765 if test "$program_transform_name" = s,x,x,; then
1766 program_transform_name=
1767 else
1768 # Double any \ or $. echo might interpret backslashes.
1769 cat <<\EOF_SED > conftestsed
1770 s,\\,\\\\,g; s,\$,$$,g
1771 EOF_SED
1772 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1773 rm -f conftestsed
1774 fi
1775 test "$program_prefix" != NONE &&
1776 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1777 # Use a double $ so make ignores it.
1778 test "$program_suffix" != NONE &&
1779 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1780
1781 # sed with no file args requires a program.
1782 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1783
1784 # Extract the first word of "gcc", so it can be a program name with args.
1785 set dummy gcc; ac_word=$2
1786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_word" >&5
1788 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1790 else
1791 if test -n "$CC"; then
1792 ac_cv_prog_CC="$CC" # Let the user override the test.
1793 else
1794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1795 ac_dummy="$PATH"
1796 for ac_dir in $ac_dummy; do
1797 test -z "$ac_dir" && ac_dir=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_CC="gcc"
1800 break
1801 fi
1802 done
1803 IFS="$ac_save_ifs"
1804 fi
1805 fi
1806 CC="$ac_cv_prog_CC"
1807 if test -n "$CC"; then
1808 echo "$ac_t""$CC" 1>&6
1809 else
1810 echo "$ac_t""no" 1>&6
1811 fi
1812
1813 if test -z "$CC"; then
1814 # Extract the first word of "cc", so it can be a program name with args.
1815 set dummy cc; ac_word=$2
1816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1817 echo "configure:1818: checking for $ac_word" >&5
1818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1820 else
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1823 else
1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1825 ac_prog_rejected=no
1826 ac_dummy="$PATH"
1827 for ac_dir in $ac_dummy; do
1828 test -z "$ac_dir" && ac_dir=.
1829 if test -f $ac_dir/$ac_word; then
1830 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1831 ac_prog_rejected=yes
1832 continue
1833 fi
1834 ac_cv_prog_CC="cc"
1835 break
1836 fi
1837 done
1838 IFS="$ac_save_ifs"
1839 if test $ac_prog_rejected = yes; then
1840 # We found a bogon in the path, so make sure we never use it.
1841 set dummy $ac_cv_prog_CC
1842 shift
1843 if test $# -gt 0; then
1844 # We chose a different compiler from the bogus one.
1845 # However, it has the same basename, so the bogon will be chosen
1846 # first if we set CC to just the basename; use the full file name.
1847 shift
1848 set dummy "$ac_dir/$ac_word" "$@"
1849 shift
1850 ac_cv_prog_CC="$@"
1851 fi
1852 fi
1853 fi
1854 fi
1855 CC="$ac_cv_prog_CC"
1856 if test -n "$CC"; then
1857 echo "$ac_t""$CC" 1>&6
1858 else
1859 echo "$ac_t""no" 1>&6
1860 fi
1861
1862 if test -z "$CC"; then
1863 case "`uname -s`" in
1864 *win32* | *WIN32*)
1865 # Extract the first word of "cl", so it can be a program name with args.
1866 set dummy cl; ac_word=$2
1867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1868 echo "configure:1869: checking for $ac_word" >&5
1869 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1871 else
1872 if test -n "$CC"; then
1873 ac_cv_prog_CC="$CC" # Let the user override the test.
1874 else
1875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1876 ac_dummy="$PATH"
1877 for ac_dir in $ac_dummy; do
1878 test -z "$ac_dir" && ac_dir=.
1879 if test -f $ac_dir/$ac_word; then
1880 ac_cv_prog_CC="cl"
1881 break
1882 fi
1883 done
1884 IFS="$ac_save_ifs"
1885 fi
1886 fi
1887 CC="$ac_cv_prog_CC"
1888 if test -n "$CC"; then
1889 echo "$ac_t""$CC" 1>&6
1890 else
1891 echo "$ac_t""no" 1>&6
1892 fi
1893 ;;
1894 esac
1895 fi
1896 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1897 fi
1898
1899 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1900 echo "configure:1901: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1901
1902 ac_ext=c
1903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1907 cross_compiling=$ac_cv_prog_cc_cross
1908
1909 cat > conftest.$ac_ext << EOF
1910
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913
1914 main(){return(0);}
1915 EOF
1916 if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1917 ac_cv_prog_cc_works=yes
1918 # If we can't run a trivial program, we are probably using a cross compiler.
1919 if (./conftest; exit) 2>/dev/null; then
1920 ac_cv_prog_cc_cross=no
1921 else
1922 ac_cv_prog_cc_cross=yes
1923 fi
1924 else
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1927 ac_cv_prog_cc_works=no
1928 fi
1929 rm -fr conftest*
1930 ac_ext=c
1931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1932 ac_cpp='$CPP $CPPFLAGS'
1933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1935 cross_compiling=$ac_cv_prog_cc_cross
1936
1937 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1938 if test $ac_cv_prog_cc_works = no; then
1939 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1940 fi
1941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1942 echo "configure:1943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1943 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1944 cross_compiling=$ac_cv_prog_cc_cross
1945
1946 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether we are using GNU C" >&5
1948 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1950 else
1951 cat > conftest.c <<EOF
1952 #ifdef __GNUC__
1953 yes;
1954 #endif
1955 EOF
1956 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1957 ac_cv_prog_gcc=yes
1958 else
1959 ac_cv_prog_gcc=no
1960 fi
1961 fi
1962
1963 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1964
1965 if test $ac_cv_prog_gcc = yes; then
1966 GCC=yes
1967 else
1968 GCC=
1969 fi
1970
1971 ac_test_CFLAGS="${CFLAGS+set}"
1972 ac_save_CFLAGS="$CFLAGS"
1973 CFLAGS=
1974 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1975 echo "configure:1976: checking whether ${CC-cc} accepts -g" >&5
1976 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1978 else
1979 echo 'void f(){}' > conftest.c
1980 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1981 ac_cv_prog_cc_g=yes
1982 else
1983 ac_cv_prog_cc_g=no
1984 fi
1985 rm -f conftest*
1986
1987 fi
1988
1989 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1990 if test "$ac_test_CFLAGS" = set; then
1991 CFLAGS="$ac_save_CFLAGS"
1992 elif test $ac_cv_prog_cc_g = yes; then
1993 if test "$GCC" = yes; then
1994 CFLAGS="-g -O2"
1995 else
1996 CFLAGS="-g"
1997 fi
1998 else
1999 if test "$GCC" = yes; then
2000 CFLAGS="-O2"
2001 else
2002 CFLAGS=
2003 fi
2004 fi
2005
2006 # Find a good install program. We prefer a C program (faster),
2007 # so one script is as good as another. But avoid the broken or
2008 # incompatible versions:
2009 # SysV /etc/install, /usr/sbin/install
2010 # SunOS /usr/etc/install
2011 # IRIX /sbin/install
2012 # AIX /bin/install
2013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016 # ./install, which can be erroneously created by make from ./install.sh.
2017 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2018 echo "configure:2019: checking for a BSD compatible install" >&5
2019 if test -z "$INSTALL"; then
2020 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2022 else
2023 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2024 for ac_dir in $PATH; do
2025 # Account for people who put trailing slashes in PATH elements.
2026 case "$ac_dir/" in
2027 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2028 *)
2029 # OSF1 and SCO ODT 3.0 have their own names for install.
2030 # Don't use installbsd from OSF since it installs stuff as root
2031 # by default.
2032 for ac_prog in ginstall scoinst install; do
2033 if test -f $ac_dir/$ac_prog; then
2034 if test $ac_prog = install &&
2035 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2036 # AIX install. It has an incompatible calling convention.
2037 :
2038 else
2039 ac_cv_path_install="$ac_dir/$ac_prog -c"
2040 break 2
2041 fi
2042 fi
2043 done
2044 ;;
2045 esac
2046 done
2047 IFS="$ac_save_IFS"
2048
2049 fi
2050 if test "${ac_cv_path_install+set}" = set; then
2051 INSTALL="$ac_cv_path_install"
2052 else
2053 # As a last resort, use the slow shell script. We don't cache a
2054 # path for INSTALL within a source directory, because that will
2055 # break other packages using the cache if that directory is
2056 # removed, or if the path is relative.
2057 INSTALL="$ac_install_sh"
2058 fi
2059 fi
2060 echo "$ac_t""$INSTALL" 1>&6
2061
2062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2063 # It thinks the first close brace ends the variable substitution.
2064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2065
2066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2067
2068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2069
2070
2071 # Put a plausible default for CC_FOR_BUILD in Makefile.
2072 if test "x$cross_compiling" = "xno"; then
2073 CC_FOR_BUILD='$(CC)'
2074 else
2075 CC_FOR_BUILD=gcc
2076 fi
2077
2078
2079
2080
2081 AR=${AR-ar}
2082
2083 # Extract the first word of "ranlib", so it can be a program name with args.
2084 set dummy ranlib; ac_word=$2
2085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2086 echo "configure:2087: checking for $ac_word" >&5
2087 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2089 else
2090 if test -n "$RANLIB"; then
2091 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2092 else
2093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2094 ac_dummy="$PATH"
2095 for ac_dir in $ac_dummy; do
2096 test -z "$ac_dir" && ac_dir=.
2097 if test -f $ac_dir/$ac_word; then
2098 ac_cv_prog_RANLIB="ranlib"
2099 break
2100 fi
2101 done
2102 IFS="$ac_save_ifs"
2103 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2104 fi
2105 fi
2106 RANLIB="$ac_cv_prog_RANLIB"
2107 if test -n "$RANLIB"; then
2108 echo "$ac_t""$RANLIB" 1>&6
2109 else
2110 echo "$ac_t""no" 1>&6
2111 fi
2112
2113
2114 ALL_LINGUAS=
2115
2116 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2117 unistd.h values.h sys/param.h
2118 do
2119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2121 echo "configure:2122: checking for $ac_hdr" >&5
2122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2124 else
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #include <$ac_hdr>
2129 EOF
2130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131 { (eval echo configure:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2133 if test -z "$ac_err"; then
2134 rm -rf conftest*
2135 eval "ac_cv_header_$ac_safe=yes"
2136 else
2137 echo "$ac_err" >&5
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2140 rm -rf conftest*
2141 eval "ac_cv_header_$ac_safe=no"
2142 fi
2143 rm -f conftest*
2144 fi
2145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2148 cat >> confdefs.h <<EOF
2149 #define $ac_tr_hdr 1
2150 EOF
2151
2152 else
2153 echo "$ac_t""no" 1>&6
2154 fi
2155 done
2156
2157 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2158 __argz_count __argz_stringify __argz_next
2159 do
2160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2161 echo "configure:2162: checking for $ac_func" >&5
2162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2164 else
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2168 /* System header to define __stub macros and hopefully few prototypes,
2169 which can conflict with char $ac_func(); below. */
2170 #include <assert.h>
2171 /* Override any gcc2 internal prototype to avoid an error. */
2172 /* We use char because int might match the return type of a gcc2
2173 builtin and then its argument prototype would still apply. */
2174 char $ac_func();
2175
2176 int main() {
2177
2178 /* The GNU C library defines this for functions which it implements
2179 to always fail with ENOSYS. Some functions are actually named
2180 something starting with __ and the normal name is an alias. */
2181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2182 choke me
2183 #else
2184 $ac_func();
2185 #endif
2186
2187 ; return 0; }
2188 EOF
2189 if { (eval echo configure:2190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2190 rm -rf conftest*
2191 eval "ac_cv_func_$ac_func=yes"
2192 else
2193 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2195 rm -rf conftest*
2196 eval "ac_cv_func_$ac_func=no"
2197 fi
2198 rm -f conftest*
2199 fi
2200
2201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2202 echo "$ac_t""yes" 1>&6
2203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2204 cat >> confdefs.h <<EOF
2205 #define $ac_tr_func 1
2206 EOF
2207
2208 else
2209 echo "$ac_t""no" 1>&6
2210 fi
2211 done
2212
2213
2214 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2215 for ac_func in stpcpy
2216 do
2217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_func" >&5
2219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2221 else
2222 cat > conftest.$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 /* System header to define __stub macros and hopefully few prototypes,
2226 which can conflict with char $ac_func(); below. */
2227 #include <assert.h>
2228 /* Override any gcc2 internal prototype to avoid an error. */
2229 /* We use char because int might match the return type of a gcc2
2230 builtin and then its argument prototype would still apply. */
2231 char $ac_func();
2232
2233 int main() {
2234
2235 /* The GNU C library defines this for functions which it implements
2236 to always fail with ENOSYS. Some functions are actually named
2237 something starting with __ and the normal name is an alias. */
2238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2239 choke me
2240 #else
2241 $ac_func();
2242 #endif
2243
2244 ; return 0; }
2245 EOF
2246 if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2247 rm -rf conftest*
2248 eval "ac_cv_func_$ac_func=yes"
2249 else
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2252 rm -rf conftest*
2253 eval "ac_cv_func_$ac_func=no"
2254 fi
2255 rm -f conftest*
2256 fi
2257
2258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2261 cat >> confdefs.h <<EOF
2262 #define $ac_tr_func 1
2263 EOF
2264
2265 else
2266 echo "$ac_t""no" 1>&6
2267 fi
2268 done
2269
2270 fi
2271 if test "${ac_cv_func_stpcpy}" = "yes"; then
2272 cat >> confdefs.h <<\EOF
2273 #define HAVE_STPCPY 1
2274 EOF
2275
2276 fi
2277
2278 if test $ac_cv_header_locale_h = yes; then
2279 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2280 echo "configure:2281: checking for LC_MESSAGES" >&5
2281 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 #include <locale.h>
2288 int main() {
2289 return LC_MESSAGES
2290 ; return 0; }
2291 EOF
2292 if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2293 rm -rf conftest*
2294 am_cv_val_LC_MESSAGES=yes
2295 else
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 rm -rf conftest*
2299 am_cv_val_LC_MESSAGES=no
2300 fi
2301 rm -f conftest*
2302 fi
2303
2304 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2305 if test $am_cv_val_LC_MESSAGES = yes; then
2306 cat >> confdefs.h <<\EOF
2307 #define HAVE_LC_MESSAGES 1
2308 EOF
2309
2310 fi
2311 fi
2312 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2313 echo "configure:2314: checking whether NLS is requested" >&5
2314 # Check whether --enable-nls or --disable-nls was given.
2315 if test "${enable_nls+set}" = set; then
2316 enableval="$enable_nls"
2317 USE_NLS=$enableval
2318 else
2319 USE_NLS=yes
2320 fi
2321
2322 echo "$ac_t""$USE_NLS" 1>&6
2323
2324
2325 USE_INCLUDED_LIBINTL=no
2326
2327 if test "$USE_NLS" = "yes"; then
2328 cat >> confdefs.h <<\EOF
2329 #define ENABLE_NLS 1
2330 EOF
2331
2332 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2333 echo "configure:2334: checking whether included gettext is requested" >&5
2334 # Check whether --with-included-gettext or --without-included-gettext was given.
2335 if test "${with_included_gettext+set}" = set; then
2336 withval="$with_included_gettext"
2337 nls_cv_force_use_gnu_gettext=$withval
2338 else
2339 nls_cv_force_use_gnu_gettext=no
2340 fi
2341
2342 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2343
2344 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2345 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2346 nls_cv_header_intl=
2347 nls_cv_header_libgt=
2348 CATOBJEXT=NONE
2349
2350 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2351 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2352 echo "configure:2353: checking for libintl.h" >&5
2353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2355 else
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 #include <libintl.h>
2360 EOF
2361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2362 { (eval echo configure:2363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2364 if test -z "$ac_err"; then
2365 rm -rf conftest*
2366 eval "ac_cv_header_$ac_safe=yes"
2367 else
2368 echo "$ac_err" >&5
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2371 rm -rf conftest*
2372 eval "ac_cv_header_$ac_safe=no"
2373 fi
2374 rm -f conftest*
2375 fi
2376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2377 echo "$ac_t""yes" 1>&6
2378 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2379 echo "configure:2380: checking for gettext in libc" >&5
2380 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383 cat > conftest.$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2386 #include <libintl.h>
2387 int main() {
2388 return (int) gettext ("")
2389 ; return 0; }
2390 EOF
2391 if { (eval echo configure:2392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2392 rm -rf conftest*
2393 gt_cv_func_gettext_libc=yes
2394 else
2395 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2397 rm -rf conftest*
2398 gt_cv_func_gettext_libc=no
2399 fi
2400 rm -f conftest*
2401 fi
2402
2403 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2404
2405 if test "$gt_cv_func_gettext_libc" != "yes"; then
2406 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2407 echo "configure:2408: checking for bindtextdomain in -lintl" >&5
2408 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2411 else
2412 ac_save_LIBS="$LIBS"
2413 LIBS="-lintl $LIBS"
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 /* Override any gcc2 internal prototype to avoid an error. */
2418 /* We use char because int might match the return type of a gcc2
2419 builtin and then its argument prototype would still apply. */
2420 char bindtextdomain();
2421
2422 int main() {
2423 bindtextdomain()
2424 ; return 0; }
2425 EOF
2426 if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2427 rm -rf conftest*
2428 eval "ac_cv_lib_$ac_lib_var=yes"
2429 else
2430 echo "configure: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2432 rm -rf conftest*
2433 eval "ac_cv_lib_$ac_lib_var=no"
2434 fi
2435 rm -f conftest*
2436 LIBS="$ac_save_LIBS"
2437
2438 fi
2439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2440 echo "$ac_t""yes" 1>&6
2441 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2442 echo "configure:2443: checking for gettext in libintl" >&5
2443 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2445 else
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449
2450 int main() {
2451 return (int) gettext ("")
2452 ; return 0; }
2453 EOF
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2455 rm -rf conftest*
2456 gt_cv_func_gettext_libintl=yes
2457 else
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 gt_cv_func_gettext_libintl=no
2462 fi
2463 rm -f conftest*
2464 fi
2465
2466 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2467 else
2468 echo "$ac_t""no" 1>&6
2469 fi
2470
2471 fi
2472
2473 if test "$gt_cv_func_gettext_libc" = "yes" \
2474 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2475 cat >> confdefs.h <<\EOF
2476 #define HAVE_GETTEXT 1
2477 EOF
2478
2479 # Extract the first word of "msgfmt", so it can be a program name with args.
2480 set dummy msgfmt; ac_word=$2
2481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2482 echo "configure:2483: checking for $ac_word" >&5
2483 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2485 else
2486 case "$MSGFMT" in
2487 /*)
2488 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2489 ;;
2490 *)
2491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2492 for ac_dir in $PATH; do
2493 test -z "$ac_dir" && ac_dir=.
2494 if test -f $ac_dir/$ac_word; then
2495 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2496 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2497 break
2498 fi
2499 fi
2500 done
2501 IFS="$ac_save_ifs"
2502 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2503 ;;
2504 esac
2505 fi
2506 MSGFMT="$ac_cv_path_MSGFMT"
2507 if test -n "$MSGFMT"; then
2508 echo "$ac_t""$MSGFMT" 1>&6
2509 else
2510 echo "$ac_t""no" 1>&6
2511 fi
2512 if test "$MSGFMT" != "no"; then
2513 for ac_func in dcgettext
2514 do
2515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2516 echo "configure:2517: checking for $ac_func" >&5
2517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2519 else
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523 /* System header to define __stub macros and hopefully few prototypes,
2524 which can conflict with char $ac_func(); below. */
2525 #include <assert.h>
2526 /* Override any gcc2 internal prototype to avoid an error. */
2527 /* We use char because int might match the return type of a gcc2
2528 builtin and then its argument prototype would still apply. */
2529 char $ac_func();
2530
2531 int main() {
2532
2533 /* The GNU C library defines this for functions which it implements
2534 to always fail with ENOSYS. Some functions are actually named
2535 something starting with __ and the normal name is an alias. */
2536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2537 choke me
2538 #else
2539 $ac_func();
2540 #endif
2541
2542 ; return 0; }
2543 EOF
2544 if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2545 rm -rf conftest*
2546 eval "ac_cv_func_$ac_func=yes"
2547 else
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2550 rm -rf conftest*
2551 eval "ac_cv_func_$ac_func=no"
2552 fi
2553 rm -f conftest*
2554 fi
2555
2556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2559 cat >> confdefs.h <<EOF
2560 #define $ac_tr_func 1
2561 EOF
2562
2563 else
2564 echo "$ac_t""no" 1>&6
2565 fi
2566 done
2567
2568 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2569 set dummy gmsgfmt; ac_word=$2
2570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2571 echo "configure:2572: checking for $ac_word" >&5
2572 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2574 else
2575 case "$GMSGFMT" in
2576 /*)
2577 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2578 ;;
2579 ?:/*)
2580 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2581 ;;
2582 *)
2583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2584 ac_dummy="$PATH"
2585 for ac_dir in $ac_dummy; do
2586 test -z "$ac_dir" && ac_dir=.
2587 if test -f $ac_dir/$ac_word; then
2588 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2589 break
2590 fi
2591 done
2592 IFS="$ac_save_ifs"
2593 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2594 ;;
2595 esac
2596 fi
2597 GMSGFMT="$ac_cv_path_GMSGFMT"
2598 if test -n "$GMSGFMT"; then
2599 echo "$ac_t""$GMSGFMT" 1>&6
2600 else
2601 echo "$ac_t""no" 1>&6
2602 fi
2603
2604 # Extract the first word of "xgettext", so it can be a program name with args.
2605 set dummy xgettext; ac_word=$2
2606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2607 echo "configure:2608: checking for $ac_word" >&5
2608 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2610 else
2611 case "$XGETTEXT" in
2612 /*)
2613 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2614 ;;
2615 *)
2616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2617 for ac_dir in $PATH; do
2618 test -z "$ac_dir" && ac_dir=.
2619 if test -f $ac_dir/$ac_word; then
2620 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2621 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2622 break
2623 fi
2624 fi
2625 done
2626 IFS="$ac_save_ifs"
2627 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2628 ;;
2629 esac
2630 fi
2631 XGETTEXT="$ac_cv_path_XGETTEXT"
2632 if test -n "$XGETTEXT"; then
2633 echo "$ac_t""$XGETTEXT" 1>&6
2634 else
2635 echo "$ac_t""no" 1>&6
2636 fi
2637
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641
2642 int main() {
2643 extern int _nl_msg_cat_cntr;
2644 return _nl_msg_cat_cntr
2645 ; return 0; }
2646 EOF
2647 if { (eval echo configure:2648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2648 rm -rf conftest*
2649 CATOBJEXT=.gmo
2650 DATADIRNAME=share
2651 else
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2654 rm -rf conftest*
2655 CATOBJEXT=.mo
2656 DATADIRNAME=lib
2657 fi
2658 rm -f conftest*
2659 INSTOBJEXT=.mo
2660 fi
2661 fi
2662
2663 else
2664 echo "$ac_t""no" 1>&6
2665 fi
2666
2667
2668
2669 if test "$CATOBJEXT" = "NONE"; then
2670 nls_cv_use_gnu_gettext=yes
2671 fi
2672 fi
2673
2674 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2675 INTLOBJS="\$(GETTOBJS)"
2676 # Extract the first word of "msgfmt", so it can be a program name with args.
2677 set dummy msgfmt; ac_word=$2
2678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2679 echo "configure:2680: checking for $ac_word" >&5
2680 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2682 else
2683 case "$MSGFMT" in
2684 /*)
2685 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2686 ;;
2687 *)
2688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2689 for ac_dir in $PATH; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$ac_word; then
2692 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2693 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2694 break
2695 fi
2696 fi
2697 done
2698 IFS="$ac_save_ifs"
2699 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2700 ;;
2701 esac
2702 fi
2703 MSGFMT="$ac_cv_path_MSGFMT"
2704 if test -n "$MSGFMT"; then
2705 echo "$ac_t""$MSGFMT" 1>&6
2706 else
2707 echo "$ac_t""no" 1>&6
2708 fi
2709
2710 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2711 set dummy gmsgfmt; ac_word=$2
2712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2713 echo "configure:2714: checking for $ac_word" >&5
2714 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717 case "$GMSGFMT" in
2718 /*)
2719 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2720 ;;
2721 ?:/*)
2722 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2723 ;;
2724 *)
2725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2726 ac_dummy="$PATH"
2727 for ac_dir in $ac_dummy; do
2728 test -z "$ac_dir" && ac_dir=.
2729 if test -f $ac_dir/$ac_word; then
2730 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2731 break
2732 fi
2733 done
2734 IFS="$ac_save_ifs"
2735 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2736 ;;
2737 esac
2738 fi
2739 GMSGFMT="$ac_cv_path_GMSGFMT"
2740 if test -n "$GMSGFMT"; then
2741 echo "$ac_t""$GMSGFMT" 1>&6
2742 else
2743 echo "$ac_t""no" 1>&6
2744 fi
2745
2746 # Extract the first word of "xgettext", so it can be a program name with args.
2747 set dummy xgettext; ac_word=$2
2748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2749 echo "configure:2750: checking for $ac_word" >&5
2750 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2752 else
2753 case "$XGETTEXT" in
2754 /*)
2755 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2756 ;;
2757 *)
2758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2759 for ac_dir in $PATH; do
2760 test -z "$ac_dir" && ac_dir=.
2761 if test -f $ac_dir/$ac_word; then
2762 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2763 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2764 break
2765 fi
2766 fi
2767 done
2768 IFS="$ac_save_ifs"
2769 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2770 ;;
2771 esac
2772 fi
2773 XGETTEXT="$ac_cv_path_XGETTEXT"
2774 if test -n "$XGETTEXT"; then
2775 echo "$ac_t""$XGETTEXT" 1>&6
2776 else
2777 echo "$ac_t""no" 1>&6
2778 fi
2779
2780
2781 USE_INCLUDED_LIBINTL=yes
2782 CATOBJEXT=.gmo
2783 INSTOBJEXT=.mo
2784 DATADIRNAME=share
2785 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2786 INTLLIBS=$INTLDEPS
2787 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2788 nls_cv_header_intl=libintl.h
2789 nls_cv_header_libgt=libgettext.h
2790 fi
2791
2792 if test "$XGETTEXT" != ":"; then
2793 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2794 : ;
2795 else
2796 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2797 XGETTEXT=":"
2798 fi
2799 fi
2800
2801 # We need to process the po/ directory.
2802 POSUB=po
2803 else
2804 DATADIRNAME=share
2805 nls_cv_header_intl=libintl.h
2806 nls_cv_header_libgt=libgettext.h
2807 fi
2808
2809 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2810 # because some of the sources are only built for this goal.
2811 if test "$PACKAGE" = gettext; then
2812 USE_NLS=yes
2813 USE_INCLUDED_LIBINTL=yes
2814 fi
2815
2816 for lang in $ALL_LINGUAS; do
2817 GMOFILES="$GMOFILES $lang.gmo"
2818 POFILES="$POFILES $lang.po"
2819 done
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834 if test "x$CATOBJEXT" != "x"; then
2835 if test "x$ALL_LINGUAS" = "x"; then
2836 LINGUAS=
2837 else
2838 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2839 echo "configure:2840: checking for catalogs to be installed" >&5
2840 NEW_LINGUAS=
2841 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2842 case "$ALL_LINGUAS" in
2843 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2844 esac
2845 done
2846 LINGUAS=$NEW_LINGUAS
2847 echo "$ac_t""$LINGUAS" 1>&6
2848 fi
2849
2850 if test -n "$LINGUAS"; then
2851 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2852 fi
2853 fi
2854
2855 if test $ac_cv_header_locale_h = yes; then
2856 INCLUDE_LOCALE_H="#include <locale.h>"
2857 else
2858 INCLUDE_LOCALE_H="\
2859 /* The system does not provide the header <locale.h>. Take care yourself. */"
2860 fi
2861
2862
2863 if test -f $srcdir/po2tbl.sed.in; then
2864 if test "$CATOBJEXT" = ".cat"; then
2865 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2866 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2867 echo "configure:2868: checking for linux/version.h" >&5
2868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 #include <linux/version.h>
2875 EOF
2876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2877 { (eval echo configure:2878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2879 if test -z "$ac_err"; then
2880 rm -rf conftest*
2881 eval "ac_cv_header_$ac_safe=yes"
2882 else
2883 echo "$ac_err" >&5
2884 echo "configure: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2886 rm -rf conftest*
2887 eval "ac_cv_header_$ac_safe=no"
2888 fi
2889 rm -f conftest*
2890 fi
2891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2892 echo "$ac_t""yes" 1>&6
2893 msgformat=linux
2894 else
2895 echo "$ac_t""no" 1>&6
2896 msgformat=xopen
2897 fi
2898
2899
2900 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2901 fi
2902 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2903 $srcdir/po2tbl.sed.in > po2tbl.sed
2904 fi
2905
2906 if test "$PACKAGE" = "gettext"; then
2907 GT_NO="#NO#"
2908 GT_YES=
2909 else
2910 GT_NO=
2911 GT_YES="#YES#"
2912 fi
2913
2914
2915
2916 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2917
2918
2919 l=
2920
2921
2922 if test -d $srcdir/po; then
2923 test -d po || mkdir po
2924 if test "x$srcdir" != "x."; then
2925 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2926 posrcprefix="$srcdir/"
2927 else
2928 posrcprefix="../$srcdir/"
2929 fi
2930 else
2931 posrcprefix="../"
2932 fi
2933 rm -f po/POTFILES
2934 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2935 < $srcdir/po/POTFILES.in > po/POTFILES
2936 fi
2937
2938
2939 # Check for common headers.
2940 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2941 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2942 for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
2943 do
2944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2946 echo "configure:2947: checking for $ac_hdr" >&5
2947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2949 else
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <$ac_hdr>
2954 EOF
2955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2956 { (eval echo configure:2957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2958 if test -z "$ac_err"; then
2959 rm -rf conftest*
2960 eval "ac_cv_header_$ac_safe=yes"
2961 else
2962 echo "$ac_err" >&5
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2965 rm -rf conftest*
2966 eval "ac_cv_header_$ac_safe=no"
2967 fi
2968 rm -f conftest*
2969 fi
2970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2971 echo "$ac_t""yes" 1>&6
2972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2973 cat >> confdefs.h <<EOF
2974 #define $ac_tr_hdr 1
2975 EOF
2976
2977 else
2978 echo "$ac_t""no" 1>&6
2979 fi
2980 done
2981
2982 for ac_hdr in sys/time.h sys/resource.h
2983 do
2984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2986 echo "configure:2987: checking for $ac_hdr" >&5
2987 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2989 else
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <$ac_hdr>
2994 EOF
2995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2996 { (eval echo configure:2997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2998 if test -z "$ac_err"; then
2999 rm -rf conftest*
3000 eval "ac_cv_header_$ac_safe=yes"
3001 else
3002 echo "$ac_err" >&5
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 rm -rf conftest*
3006 eval "ac_cv_header_$ac_safe=no"
3007 fi
3008 rm -f conftest*
3009 fi
3010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3013 cat >> confdefs.h <<EOF
3014 #define $ac_tr_hdr 1
3015 EOF
3016
3017 else
3018 echo "$ac_t""no" 1>&6
3019 fi
3020 done
3021
3022 for ac_hdr in fcntl.h fpu_control.h
3023 do
3024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3026 echo "configure:3027: checking for $ac_hdr" >&5
3027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3029 else
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3033 #include <$ac_hdr>
3034 EOF
3035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3036 { (eval echo configure:3037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3038 if test -z "$ac_err"; then
3039 rm -rf conftest*
3040 eval "ac_cv_header_$ac_safe=yes"
3041 else
3042 echo "$ac_err" >&5
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 rm -rf conftest*
3046 eval "ac_cv_header_$ac_safe=no"
3047 fi
3048 rm -f conftest*
3049 fi
3050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3051 echo "$ac_t""yes" 1>&6
3052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3053 cat >> confdefs.h <<EOF
3054 #define $ac_tr_hdr 1
3055 EOF
3056
3057 else
3058 echo "$ac_t""no" 1>&6
3059 fi
3060 done
3061
3062 for ac_hdr in dlfcn.h errno.h sys/stat.h
3063 do
3064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3066 echo "configure:3067: checking for $ac_hdr" >&5
3067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3069 else
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 #include <$ac_hdr>
3074 EOF
3075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3076 { (eval echo configure:3077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3078 if test -z "$ac_err"; then
3079 rm -rf conftest*
3080 eval "ac_cv_header_$ac_safe=yes"
3081 else
3082 echo "$ac_err" >&5
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3085 rm -rf conftest*
3086 eval "ac_cv_header_$ac_safe=no"
3087 fi
3088 rm -f conftest*
3089 fi
3090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3093 cat >> confdefs.h <<EOF
3094 #define $ac_tr_hdr 1
3095 EOF
3096
3097 else
3098 echo "$ac_t""no" 1>&6
3099 fi
3100 done
3101
3102 for ac_func in getrusage time sigaction __setfpucw
3103 do
3104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3105 echo "configure:3106: checking for $ac_func" >&5
3106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3108 else
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 /* System header to define __stub macros and hopefully few prototypes,
3113 which can conflict with char $ac_func(); below. */
3114 #include <assert.h>
3115 /* Override any gcc2 internal prototype to avoid an error. */
3116 /* We use char because int might match the return type of a gcc2
3117 builtin and then its argument prototype would still apply. */
3118 char $ac_func();
3119
3120 int main() {
3121
3122 /* The GNU C library defines this for functions which it implements
3123 to always fail with ENOSYS. Some functions are actually named
3124 something starting with __ and the normal name is an alias. */
3125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3126 choke me
3127 #else
3128 $ac_func();
3129 #endif
3130
3131 ; return 0; }
3132 EOF
3133 if { (eval echo configure:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3134 rm -rf conftest*
3135 eval "ac_cv_func_$ac_func=yes"
3136 else
3137 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 rm -rf conftest*
3140 eval "ac_cv_func_$ac_func=no"
3141 fi
3142 rm -f conftest*
3143 fi
3144
3145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3146 echo "$ac_t""yes" 1>&6
3147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3148 cat >> confdefs.h <<EOF
3149 #define $ac_tr_func 1
3150 EOF
3151
3152 else
3153 echo "$ac_t""no" 1>&6
3154 fi
3155 done
3156
3157
3158 # Check for socket libraries
3159 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3160 echo "configure:3161: checking for bind in -lsocket" >&5
3161 ac_lib_var=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3164 else
3165 ac_save_LIBS="$LIBS"
3166 LIBS="-lsocket $LIBS"
3167 cat > conftest.$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 /* Override any gcc2 internal prototype to avoid an error. */
3171 /* We use char because int might match the return type of a gcc2
3172 builtin and then its argument prototype would still apply. */
3173 char bind();
3174
3175 int main() {
3176 bind()
3177 ; return 0; }
3178 EOF
3179 if { (eval echo configure:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3180 rm -rf conftest*
3181 eval "ac_cv_lib_$ac_lib_var=yes"
3182 else
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3185 rm -rf conftest*
3186 eval "ac_cv_lib_$ac_lib_var=no"
3187 fi
3188 rm -f conftest*
3189 LIBS="$ac_save_LIBS"
3190
3191 fi
3192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3193 echo "$ac_t""yes" 1>&6
3194 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3195 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3196 cat >> confdefs.h <<EOF
3197 #define $ac_tr_lib 1
3198 EOF
3199
3200 LIBS="-lsocket $LIBS"
3201
3202 else
3203 echo "$ac_t""no" 1>&6
3204 fi
3205
3206 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3207 echo "configure:3208: checking for gethostbyname in -lnsl" >&5
3208 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3211 else
3212 ac_save_LIBS="$LIBS"
3213 LIBS="-lnsl $LIBS"
3214 cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3217 /* Override any gcc2 internal prototype to avoid an error. */
3218 /* We use char because int might match the return type of a gcc2
3219 builtin and then its argument prototype would still apply. */
3220 char gethostbyname();
3221
3222 int main() {
3223 gethostbyname()
3224 ; return 0; }
3225 EOF
3226 if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 rm -rf conftest*
3228 eval "ac_cv_lib_$ac_lib_var=yes"
3229 else
3230 echo "configure: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3232 rm -rf conftest*
3233 eval "ac_cv_lib_$ac_lib_var=no"
3234 fi
3235 rm -f conftest*
3236 LIBS="$ac_save_LIBS"
3237
3238 fi
3239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3240 echo "$ac_t""yes" 1>&6
3241 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3242 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3243 cat >> confdefs.h <<EOF
3244 #define $ac_tr_lib 1
3245 EOF
3246
3247 LIBS="-lnsl $LIBS"
3248
3249 else
3250 echo "$ac_t""no" 1>&6
3251 fi
3252
3253
3254 . ${srcdir}/../../bfd/configure.host
3255
3256
3257
3258 USE_MAINTAINER_MODE=no
3259 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3260 if test "${enable_maintainer_mode+set}" = set; then
3261 enableval="$enable_maintainer_mode"
3262 case "${enableval}" in
3263 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
3264 no) MAINT="#" ;;
3265 *) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
3266 esac
3267 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
3268 echo "Setting maintainer mode" 6>&1
3269 fi
3270 else
3271 MAINT="#"
3272 fi
3273
3274
3275
3276 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3277 if test "${enable_sim_bswap+set}" = set; then
3278 enableval="$enable_sim_bswap"
3279 case "${enableval}" in
3280 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3281 no) sim_bswap="-DWITH_BSWAP=0";;
3282 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
3283 esac
3284 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3285 echo "Setting bswap flags = $sim_bswap" 6>&1
3286 fi
3287 else
3288 sim_bswap=""
3289 fi
3290
3291
3292
3293 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3294 if test "${enable_sim_cflags+set}" = set; then
3295 enableval="$enable_sim_cflags"
3296 case "${enableval}" in
3297 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3298 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
3299 no) sim_cflags="";;
3300 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3301 esac
3302 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3303 echo "Setting sim cflags = $sim_cflags" 6>&1
3304 fi
3305 else
3306 sim_cflags=""
3307 fi
3308
3309
3310
3311 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3312 if test "${enable_sim_debug+set}" = set; then
3313 enableval="$enable_sim_debug"
3314 case "${enableval}" in
3315 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3316 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3317 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3318 esac
3319 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3320 echo "Setting sim debug = $sim_debug" 6>&1
3321 fi
3322 else
3323 sim_debug=""
3324 fi
3325
3326
3327
3328 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3329 if test "${enable_sim_stdio+set}" = set; then
3330 enableval="$enable_sim_stdio"
3331 case "${enableval}" in
3332 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3333 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3334 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
3335 esac
3336 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3337 echo "Setting stdio flags = $sim_stdio" 6>&1
3338 fi
3339 else
3340 sim_stdio=""
3341 fi
3342
3343
3344
3345 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3346 if test "${enable_sim_trace+set}" = set; then
3347 enableval="$enable_sim_trace"
3348 case "${enableval}" in
3349 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
3350 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
3351 [-0-9]*)
3352 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3353 [a-z]*)
3354 sim_trace=""
3355 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3356 if test x"$sim_trace" = x; then
3357 sim_trace="-DWITH_TRACE='(TRACE_$x"
3358 else
3359 sim_trace="${sim_trace}|TRACE_$x"
3360 fi
3361 done
3362 sim_trace="$sim_trace)'" ;;
3363 esac
3364 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3365 echo "Setting sim trace = $sim_trace" 6>&1
3366 fi
3367 else
3368 sim_trace=""
3369 fi
3370
3371
3372
3373 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3374 if test "${enable_sim_profile+set}" = set; then
3375 enableval="$enable_sim_profile"
3376 case "${enableval}" in
3377 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
3378 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
3379 [-0-9]*)
3380 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3381 [a-z]*)
3382 sim_profile=""
3383 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3384 if test x"$sim_profile" = x; then
3385 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
3386 else
3387 sim_profile="${sim_profile}|PROFILE_$x"
3388 fi
3389 done
3390 sim_profile="$sim_profile)'" ;;
3391 esac
3392 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
3393 echo "Setting sim profile = $sim_profile" 6>&1
3394 fi
3395 else
3396 sim_profile=""
3397 fi
3398
3399
3400
3401 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3402 echo "configure:3403: checking return type of signal handlers" >&5
3403 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3405 else
3406 cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <sys/types.h>
3410 #include <signal.h>
3411 #ifdef signal
3412 #undef signal
3413 #endif
3414 #ifdef __cplusplus
3415 extern "C" void (*signal (int, void (*)(int)))(int);
3416 #else
3417 void (*signal ()) ();
3418 #endif
3419
3420 int main() {
3421 int i;
3422 ; return 0; }
3423 EOF
3424 if { (eval echo configure:3425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3425 rm -rf conftest*
3426 ac_cv_type_signal=void
3427 else
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3430 rm -rf conftest*
3431 ac_cv_type_signal=int
3432 fi
3433 rm -f conftest*
3434 fi
3435
3436 echo "$ac_t""$ac_cv_type_signal" 1>&6
3437 cat >> confdefs.h <<EOF
3438 #define RETSIGTYPE $ac_cv_type_signal
3439 EOF
3440
3441
3442
3443
3444
3445 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3446 echo "configure:3447: checking for executable suffix" >&5
3447 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3449 else
3450 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3451 ac_cv_exeext=.exe
3452 else
3453 rm -f conftest*
3454 echo 'int main () { return 0; }' > conftest.$ac_ext
3455 ac_cv_exeext=
3456 if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3457 for file in conftest.*; do
3458 case $file in
3459 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
3460 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3461 esac
3462 done
3463 else
3464 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3465 fi
3466 rm -f conftest*
3467 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3468 fi
3469 fi
3470
3471 EXEEXT=""
3472 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3473 echo "$ac_t""${ac_cv_exeext}" 1>&6
3474 ac_exeext=$EXEEXT
3475
3476
3477 sim_link_files=
3478 sim_link_links=
3479
3480 sim_link_links=tconfig.h
3481 if test -f ${srcdir}/tconfig.in
3482 then
3483 sim_link_files=tconfig.in
3484 else
3485 sim_link_files=../common/tconfig.in
3486 fi
3487
3488 # targ-vals.def points to the libc macro description file.
3489 case "${target}" in
3490 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
3491 esac
3492 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
3493 sim_link_links="${sim_link_links} targ-vals.def"
3494
3495
3496
3497
3498 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3499 if test "${enable_build_warnings+set}" = set; then
3500 enableval="$enable_build_warnings"
3501 build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3502 case "${enableval}" in
3503 yes) ;;
3504 no) build_warnings="-w";;
3505 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3506 build_warnings="${build_warnings} ${t}";;
3507 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3508 build_warnings="${t} ${build_warnings}";;
3509 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3510 esac
3511 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3512 echo "Setting warning flags = $build_warnings" 6>&1
3513 fi
3514 else
3515 build_warnings=""
3516 fi
3517
3518
3519 for ac_hdr in unistd.h
3520 do
3521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3523 echo "configure:3524: checking for $ac_hdr" >&5
3524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3526 else
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 #include <$ac_hdr>
3531 EOF
3532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3533 { (eval echo configure:3534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3535 if test -z "$ac_err"; then
3536 rm -rf conftest*
3537 eval "ac_cv_header_$ac_safe=yes"
3538 else
3539 echo "$ac_err" >&5
3540 echo "configure: failed program was:" >&5
3541 cat conftest.$ac_ext >&5
3542 rm -rf conftest*
3543 eval "ac_cv_header_$ac_safe=no"
3544 fi
3545 rm -f conftest*
3546 fi
3547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3550 cat >> confdefs.h <<EOF
3551 #define $ac_tr_hdr 1
3552 EOF
3553
3554 else
3555 echo "$ac_t""no" 1>&6
3556 fi
3557 done
3558
3559
3560
3561
3562
3563 trap '' 1 2 15
3564 cat > confcache <<\EOF
3565 # This file is a shell script that caches the results of configure
3566 # tests run on this system so they can be shared between configure
3567 # scripts and configure runs. It is not useful on other systems.
3568 # If it contains results you don't want to keep, you may remove or edit it.
3569 #
3570 # By default, configure uses ./config.cache as the cache file,
3571 # creating it if it does not exist already. You can give configure
3572 # the --cache-file=FILE option to use a different cache file; that is
3573 # what configure does when it calls configure scripts in
3574 # subdirectories, so they share the cache.
3575 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3576 # config.status only pays attention to the cache file if you give it the
3577 # --recheck option to rerun configure.
3578 #
3579 EOF
3580 # The following way of writing the cache mishandles newlines in values,
3581 # but we know of no workaround that is simple, portable, and efficient.
3582 # So, don't put newlines in cache variables' values.
3583 # Ultrix sh set writes to stderr and can't be redirected directly,
3584 # and sets the high bit in the cache file unless we assign to the vars.
3585 (set) 2>&1 |
3586 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3587 *ac_space=\ *)
3588 # `set' does not quote correctly, so add quotes (double-quote substitution
3589 # turns \\\\ into \\, and sed turns \\ into \).
3590 sed -n \
3591 -e "s/'/'\\\\''/g" \
3592 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3593 ;;
3594 *)
3595 # `set' quotes correctly as required by POSIX, so do not add quotes.
3596 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3597 ;;
3598 esac >> confcache
3599 if cmp -s $cache_file confcache; then
3600 :
3601 else
3602 if test -w $cache_file; then
3603 echo "updating cache $cache_file"
3604 cat confcache > $cache_file
3605 else
3606 echo "not updating unwritable cache $cache_file"
3607 fi
3608 fi
3609 rm -f confcache
3610
3611 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3612
3613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3614 # Let make expand exec_prefix.
3615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3616
3617 # Any assignment to VPATH causes Sun make to only execute
3618 # the first set of double-colon rules, so remove it if not needed.
3619 # If there is a colon in the path, we need to keep it.
3620 if test "x$srcdir" = x.; then
3621 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3622 fi
3623
3624 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3625
3626 DEFS=-DHAVE_CONFIG_H
3627
3628 # Without the "./", some shells look in PATH for config.status.
3629 : ${CONFIG_STATUS=./config.status}
3630
3631 echo creating $CONFIG_STATUS
3632 rm -f $CONFIG_STATUS
3633 cat > $CONFIG_STATUS <<EOF
3634 #! /bin/sh
3635 # Generated automatically by configure.
3636 # Run this file to recreate the current configuration.
3637 # This directory was configured as follows,
3638 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3639 #
3640 # $0 $ac_configure_args
3641 #
3642 # Compiler output produced by configure, useful for debugging
3643 # configure, is in ./config.log if it exists.
3644
3645 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3646 for ac_option
3647 do
3648 case "\$ac_option" in
3649 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3650 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3651 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3652 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3653 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3654 exit 0 ;;
3655 -help | --help | --hel | --he | --h)
3656 echo "\$ac_cs_usage"; exit 0 ;;
3657 *) echo "\$ac_cs_usage"; exit 1 ;;
3658 esac
3659 done
3660
3661 ac_given_srcdir=$srcdir
3662 ac_given_INSTALL="$INSTALL"
3663
3664 trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3665 EOF
3666 cat >> $CONFIG_STATUS <<EOF
3667
3668 # Protect against being on the right side of a sed subst in config.status.
3669 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3670 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3671 $ac_vpsub
3672 $extrasub
3673 s%@sim_environment@%$sim_environment%g
3674 s%@sim_alignment@%$sim_alignment%g
3675 s%@sim_assert@%$sim_assert%g
3676 s%@sim_bitsize@%$sim_bitsize%g
3677 s%@sim_endian@%$sim_endian%g
3678 s%@sim_hostendian@%$sim_hostendian%g
3679 s%@sim_float@%$sim_float%g
3680 s%@sim_scache@%$sim_scache%g
3681 s%@sim_default_model@%$sim_default_model%g
3682 s%@sim_hw_cflags@%$sim_hw_cflags%g
3683 s%@sim_hw_objs@%$sim_hw_objs%g
3684 s%@sim_hw@%$sim_hw%g
3685 s%@sim_inline@%$sim_inline%g
3686 s%@sim_packages@%$sim_packages%g
3687 s%@sim_regparm@%$sim_regparm%g
3688 s%@sim_reserved_bits@%$sim_reserved_bits%g
3689 s%@sim_smp@%$sim_smp%g
3690 s%@sim_stdcall@%$sim_stdcall%g
3691 s%@sim_xor_endian@%$sim_xor_endian%g
3692 s%@build_warnings@%$build_warnings%g
3693 s%@SHELL@%$SHELL%g
3694 s%@CFLAGS@%$CFLAGS%g
3695 s%@CPPFLAGS@%$CPPFLAGS%g
3696 s%@CXXFLAGS@%$CXXFLAGS%g
3697 s%@FFLAGS@%$FFLAGS%g
3698 s%@DEFS@%$DEFS%g
3699 s%@LDFLAGS@%$LDFLAGS%g
3700 s%@LIBS@%$LIBS%g
3701 s%@exec_prefix@%$exec_prefix%g
3702 s%@prefix@%$prefix%g
3703 s%@program_transform_name@%$program_transform_name%g
3704 s%@bindir@%$bindir%g
3705 s%@sbindir@%$sbindir%g
3706 s%@libexecdir@%$libexecdir%g
3707 s%@datadir@%$datadir%g
3708 s%@sysconfdir@%$sysconfdir%g
3709 s%@sharedstatedir@%$sharedstatedir%g
3710 s%@localstatedir@%$localstatedir%g
3711 s%@libdir@%$libdir%g
3712 s%@includedir@%$includedir%g
3713 s%@oldincludedir@%$oldincludedir%g
3714 s%@infodir@%$infodir%g
3715 s%@mandir@%$mandir%g
3716 s%@host@%$host%g
3717 s%@host_alias@%$host_alias%g
3718 s%@host_cpu@%$host_cpu%g
3719 s%@host_vendor@%$host_vendor%g
3720 s%@host_os@%$host_os%g
3721 s%@target@%$target%g
3722 s%@target_alias@%$target_alias%g
3723 s%@target_cpu@%$target_cpu%g
3724 s%@target_vendor@%$target_vendor%g
3725 s%@target_os@%$target_os%g
3726 s%@build@%$build%g
3727 s%@build_alias@%$build_alias%g
3728 s%@build_cpu@%$build_cpu%g
3729 s%@build_vendor@%$build_vendor%g
3730 s%@build_os@%$build_os%g
3731 s%@CC@%$CC%g
3732 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3733 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3734 s%@INSTALL_DATA@%$INSTALL_DATA%g
3735 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3736 s%@HDEFINES@%$HDEFINES%g
3737 s%@AR@%$AR%g
3738 s%@RANLIB@%$RANLIB%g
3739 s%@SET_MAKE@%$SET_MAKE%g
3740 s%@CPP@%$CPP%g
3741 s%@ALLOCA@%$ALLOCA%g
3742 s%@USE_NLS@%$USE_NLS%g
3743 s%@MSGFMT@%$MSGFMT%g
3744 s%@GMSGFMT@%$GMSGFMT%g
3745 s%@XGETTEXT@%$XGETTEXT%g
3746 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3747 s%@CATALOGS@%$CATALOGS%g
3748 s%@CATOBJEXT@%$CATOBJEXT%g
3749 s%@DATADIRNAME@%$DATADIRNAME%g
3750 s%@GMOFILES@%$GMOFILES%g
3751 s%@INSTOBJEXT@%$INSTOBJEXT%g
3752 s%@INTLDEPS@%$INTLDEPS%g
3753 s%@INTLLIBS@%$INTLLIBS%g
3754 s%@INTLOBJS@%$INTLOBJS%g
3755 s%@POFILES@%$POFILES%g
3756 s%@POSUB@%$POSUB%g
3757 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3758 s%@GT_NO@%$GT_NO%g
3759 s%@GT_YES@%$GT_YES%g
3760 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3761 s%@l@%$l%g
3762 s%@MAINT@%$MAINT%g
3763 s%@sim_bswap@%$sim_bswap%g
3764 s%@sim_cflags@%$sim_cflags%g
3765 s%@sim_debug@%$sim_debug%g
3766 s%@sim_stdio@%$sim_stdio%g
3767 s%@sim_trace@%$sim_trace%g
3768 s%@sim_profile@%$sim_profile%g
3769 s%@EXEEXT@%$EXEEXT%g
3770
3771 CEOF
3772 EOF
3773
3774 cat >> $CONFIG_STATUS <<\EOF
3775
3776 # Split the substitutions into bite-sized pieces for seds with
3777 # small command number limits, like on Digital OSF/1 and HP-UX.
3778 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3779 ac_file=1 # Number of current file.
3780 ac_beg=1 # First line for current file.
3781 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3782 ac_more_lines=:
3783 ac_sed_cmds=""
3784 while $ac_more_lines; do
3785 if test $ac_beg -gt 1; then
3786 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3787 else
3788 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3789 fi
3790 if test ! -s conftest.s$ac_file; then
3791 ac_more_lines=false
3792 rm -f conftest.s$ac_file
3793 else
3794 if test -z "$ac_sed_cmds"; then
3795 ac_sed_cmds="sed -f conftest.s$ac_file"
3796 else
3797 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3798 fi
3799 ac_file=`expr $ac_file + 1`
3800 ac_beg=$ac_end
3801 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3802 fi
3803 done
3804 if test -z "$ac_sed_cmds"; then
3805 ac_sed_cmds=cat
3806 fi
3807 EOF
3808
3809 cat >> $CONFIG_STATUS <<EOF
3810
3811 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
3812 EOF
3813 cat >> $CONFIG_STATUS <<\EOF
3814 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3815 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3816 case "$ac_file" in
3817 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3818 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3819 *) ac_file_in="${ac_file}.in" ;;
3820 esac
3821
3822 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3823
3824 # Remove last slash and all that follows it. Not all systems have dirname.
3825 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3826 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3827 # The file is in a subdirectory.
3828 test ! -d "$ac_dir" && mkdir "$ac_dir"
3829 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3830 # A "../" for each directory in $ac_dir_suffix.
3831 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3832 else
3833 ac_dir_suffix= ac_dots=
3834 fi
3835
3836 case "$ac_given_srcdir" in
3837 .) srcdir=.
3838 if test -z "$ac_dots"; then top_srcdir=.
3839 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3840 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3841 *) # Relative path.
3842 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3843 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3844 esac
3845
3846 case "$ac_given_INSTALL" in
3847 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3848 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3849 esac
3850
3851 echo creating "$ac_file"
3852 rm -f "$ac_file"
3853 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3854 case "$ac_file" in
3855 *Makefile*) ac_comsub="1i\\
3856 # $configure_input" ;;
3857 *) ac_comsub= ;;
3858 esac
3859
3860 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3861 sed -e "$ac_comsub
3862 s%@configure_input@%$configure_input%g
3863 s%@srcdir@%$srcdir%g
3864 s%@top_srcdir@%$top_srcdir%g
3865 s%@INSTALL@%$INSTALL%g
3866 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3867 fi; done
3868 rm -f conftest.s*
3869
3870 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3871 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3872 #
3873 # ac_d sets the value in "#define NAME VALUE" lines.
3874 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3875 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3876 ac_dC='\3'
3877 ac_dD='%g'
3878 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3879 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3880 ac_uB='\([ ]\)%\1#\2define\3'
3881 ac_uC=' '
3882 ac_uD='\4%g'
3883 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3884 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3885 ac_eB='$%\1#\2define\3'
3886 ac_eC=' '
3887 ac_eD='%g'
3888
3889 if test "${CONFIG_HEADERS+set}" != set; then
3890 EOF
3891 cat >> $CONFIG_STATUS <<EOF
3892 CONFIG_HEADERS="config.h:config.in"
3893 EOF
3894 cat >> $CONFIG_STATUS <<\EOF
3895 fi
3896 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3898 case "$ac_file" in
3899 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3900 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3901 *) ac_file_in="${ac_file}.in" ;;
3902 esac
3903
3904 echo creating $ac_file
3905
3906 rm -f conftest.frag conftest.in conftest.out
3907 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3908 cat $ac_file_inputs > conftest.in
3909
3910 EOF
3911
3912 # Transform confdefs.h into a sed script conftest.vals that substitutes
3913 # the proper values into config.h.in to produce config.h. And first:
3914 # Protect against being on the right side of a sed subst in config.status.
3915 # Protect against being in an unquoted here document in config.status.
3916 rm -f conftest.vals
3917 cat > conftest.hdr <<\EOF
3918 s/[\\&%]/\\&/g
3919 s%[\\$`]%\\&%g
3920 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3921 s%ac_d%ac_u%gp
3922 s%ac_u%ac_e%gp
3923 EOF
3924 sed -n -f conftest.hdr confdefs.h > conftest.vals
3925 rm -f conftest.hdr
3926
3927 # This sed command replaces #undef with comments. This is necessary, for
3928 # example, in the case of _POSIX_SOURCE, which is predefined and required
3929 # on some systems where configure will not decide to define it.
3930 cat >> conftest.vals <<\EOF
3931 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3932 EOF
3933
3934 # Break up conftest.vals because some shells have a limit on
3935 # the size of here documents, and old seds have small limits too.
3936
3937 rm -f conftest.tail
3938 while :
3939 do
3940 ac_lines=`grep -c . conftest.vals`
3941 # grep -c gives empty output for an empty file on some AIX systems.
3942 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3943 # Write a limited-size here document to conftest.frag.
3944 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3945 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3946 echo 'CEOF
3947 sed -f conftest.frag conftest.in > conftest.out
3948 rm -f conftest.in
3949 mv conftest.out conftest.in
3950 ' >> $CONFIG_STATUS
3951 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3952 rm -f conftest.vals
3953 mv conftest.tail conftest.vals
3954 done
3955 rm -f conftest.vals
3956
3957 cat >> $CONFIG_STATUS <<\EOF
3958 rm -f conftest.frag conftest.h
3959 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3960 cat conftest.in >> conftest.h
3961 rm -f conftest.in
3962 if cmp -s $ac_file conftest.h 2>/dev/null; then
3963 echo "$ac_file is unchanged"
3964 rm -f conftest.h
3965 else
3966 # Remove last slash and all that follows it. Not all systems have dirname.
3967 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3968 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3969 # The file is in a subdirectory.
3970 test ! -d "$ac_dir" && mkdir "$ac_dir"
3971 fi
3972 rm -f $ac_file
3973 mv conftest.h $ac_file
3974 fi
3975 fi; done
3976
3977 EOF
3978
3979 cat >> $CONFIG_STATUS <<EOF
3980 ac_sources="$sim_link_files"
3981 ac_dests="$sim_link_links"
3982 EOF
3983
3984 cat >> $CONFIG_STATUS <<\EOF
3985 srcdir=$ac_given_srcdir
3986 while test -n "$ac_sources"; do
3987 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3988 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3989
3990 echo "linking $srcdir/$ac_source to $ac_dest"
3991
3992 if test ! -r $srcdir/$ac_source; then
3993 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3994 fi
3995 rm -f $ac_dest
3996
3997 # Make relative symlinks.
3998 # Remove last slash and all that follows it. Not all systems have dirname.
3999 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4000 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4001 # The dest file is in a subdirectory.
4002 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4003 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4004 # A "../" for each directory in $ac_dest_dir_suffix.
4005 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4006 else
4007 ac_dest_dir_suffix= ac_dots=
4008 fi
4009
4010 case "$srcdir" in
4011 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4012 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4013 esac
4014
4015 # Make a symlink if possible; otherwise try a hard link.
4016 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4017 ln $srcdir/$ac_source $ac_dest; then :
4018 else
4019 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4020 fi
4021 done
4022 EOF
4023 cat >> $CONFIG_STATUS <<EOF
4024
4025 EOF
4026 cat >> $CONFIG_STATUS <<\EOF
4027 case "x$CONFIG_FILES" in
4028 xMakefile*)
4029 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4030 rm -f Makesim1.tmp Makesim2.tmp Makefile
4031 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4032 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4033 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4034 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4035 <Makefile.sim >Makefile
4036 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4037 ;;
4038 esac
4039 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4040
4041 exit 0
4042 EOF
4043 chmod +x $CONFIG_STATUS
4044 rm -fr confdefs* $ac_clean_files
4045 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4046
4047
This page took 0.226687 seconds and 4 git commands to generate.