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