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