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