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