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