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