* ieee.c: New file with code to read IEEE debugging information.
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
c62d1274
ILT
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
00103dfa 4# Generated automatically using autoconf version 2.6
c62d1274
ILT
5# Copyright (C) 1992, 1993, 1994 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 --enable-targets alternative target configurations"
16
17# Initialize some variables set by options.
18# The variables have the same names as the options, with
19# dashes changed to underlines.
20build=NONE
21cache_file=./config.cache
22exec_prefix=NONE
23host=NONE
24no_create=
25nonopt=NONE
26no_recursion=
27prefix=NONE
28program_prefix=NONE
29program_suffix=NONE
30program_transform_name=s,x,x,
31silent=
32site=
33srcdir=
34target=NONE
35verbose=
36x_includes=NONE
37x_libraries=NONE
00103dfa
ILT
38bindir='${exec_prefix}/bin'
39sbindir='${exec_prefix}/sbin'
40libexecdir='${exec_prefix}/libexec'
41datadir='${prefix}/share'
42sysconfdir='${prefix}/etc'
43sharedstatedir='${prefix}/com'
44localstatedir='${prefix}/var'
45libdir='${exec_prefix}/lib'
46includedir='${prefix}/include'
47oldincludedir='/usr/include'
48infodir='${prefix}/info'
49mandir='${prefix}/man'
c62d1274
ILT
50
51# Initialize some other variables.
52subdirs=
00103dfa 53MFLAGS= MAKEFLAGS=
c62d1274
ILT
54
55ac_prev=
56for ac_option
57do
58
59 # If the previous option needs an argument, assign it.
60 if test -n "$ac_prev"; then
61 eval "$ac_prev=\$ac_option"
62 ac_prev=
63 continue
64 fi
65
66 case "$ac_option" in
67 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68 *) ac_optarg= ;;
69 esac
70
71 # Accept the important Cygnus configure options, so we can diagnose typos.
72
73 case "$ac_option" in
74
00103dfa
ILT
75 -bindir | --bindir | --bindi | --bind | --bin | --bi)
76 ac_prev=bindir ;;
77 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78 bindir="$ac_optarg" ;;
79
80 -build | --build | --buil | --bui | --bu)
c62d1274 81 ac_prev=build ;;
00103dfa 82 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c62d1274
ILT
83 build="$ac_optarg" ;;
84
85 -cache-file | --cache-file | --cache-fil | --cache-fi \
86 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87 ac_prev=cache_file ;;
88 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90 cache_file="$ac_optarg" ;;
91
00103dfa
ILT
92 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
93 ac_prev=datadir ;;
94 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
95 | --da=*)
96 datadir="$ac_optarg" ;;
97
c62d1274
ILT
98 -disable-* | --disable-*)
99 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
103 fi
104 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
106
107 -enable-* | --enable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 fi
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 case "$ac_option" in
115 *=*) ;;
116 *) ac_optarg=yes ;;
117 esac
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
119
120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122 | --exec | --exe | --ex)
123 ac_prev=exec_prefix ;;
124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126 | --exec=* | --exe=* | --ex=*)
127 exec_prefix="$ac_optarg" ;;
128
129 -gas | --gas | --ga | --g)
130 # Obsolete; use --with-gas.
131 with_gas=yes ;;
132
133 -help | --help | --hel | --he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
136 cat << EOF
137Usage: configure [options] [host]
138Options: [defaults in brackets after descriptions]
139Configuration:
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
147 [$ac_default_prefix]
00103dfa 148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
c62d1274 149 [same as prefix]
00103dfa
ILT
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
154 [PREFIX/share]
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
157 [PREFIX/com]
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
c62d1274
ILT
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
00103dfa
ILT
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
169EOF
170 cat << EOF
c62d1274
ILT
171Host type:
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
c62d1274 182EOF
00103dfa
ILT
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
185 fi
c62d1274
ILT
186 exit 0 ;;
187
188 -host | --host | --hos | --ho)
189 ac_prev=host ;;
190 -host=* | --host=* | --hos=* | --ho=*)
191 host="$ac_optarg" ;;
192
00103dfa
ILT
193 -includedir | --includedir | --includedi | --included | --include \
194 | --includ | --inclu | --incl | --inc)
195 ac_prev=includedir ;;
196 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197 | --includ=* | --inclu=* | --incl=* | --inc=*)
198 includedir="$ac_optarg" ;;
199
200 -infodir | --infodir | --infodi | --infod | --info | --inf)
201 ac_prev=infodir ;;
202 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203 infodir="$ac_optarg" ;;
204
205 -libdir | --libdir | --libdi | --libd)
206 ac_prev=libdir ;;
207 -libdir=* | --libdir=* | --libdi=* | --libd=*)
208 libdir="$ac_optarg" ;;
209
210 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211 | --libexe | --libex | --libe)
212 ac_prev=libexecdir ;;
213 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214 | --libexe=* | --libex=* | --libe=*)
215 libexecdir="$ac_optarg" ;;
216
217 -localstatedir | --localstatedir | --localstatedi | --localstated \
218 | --localstate | --localstat | --localsta | --localst \
219 | --locals | --local | --loca | --loc | --lo)
220 ac_prev=localstatedir ;;
221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224 localstatedir="$ac_optarg" ;;
225
226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
227 ac_prev=mandir ;;
228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229 mandir="$ac_optarg" ;;
230
c62d1274
ILT
231 -nfp | --nfp | --nf)
232 # Obsolete; use --without-fp.
233 with_fp=no ;;
234
235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
236 | --no-cr | --no-c)
237 no_create=yes ;;
238
239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
241 no_recursion=yes ;;
242
00103dfa
ILT
243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245 | --oldin | --oldi | --old | --ol | --o)
246 ac_prev=oldincludedir ;;
247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250 oldincludedir="$ac_optarg" ;;
251
c62d1274
ILT
252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
253 ac_prev=prefix ;;
254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255 prefix="$ac_optarg" ;;
256
257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
258 | --program-pre | --program-pr | --program-p)
259 ac_prev=program_prefix ;;
260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262 program_prefix="$ac_optarg" ;;
263
264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
265 | --program-suf | --program-su | --program-s)
266 ac_prev=program_suffix ;;
267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269 program_suffix="$ac_optarg" ;;
270
271 -program-transform-name | --program-transform-name \
272 | --program-transform-nam | --program-transform-na \
273 | --program-transform-n | --program-transform- \
274 | --program-transform | --program-transfor \
275 | --program-transfo | --program-transf \
276 | --program-trans | --program-tran \
277 | --progr-tra | --program-tr | --program-t)
278 ac_prev=program_transform_name ;;
279 -program-transform-name=* | --program-transform-name=* \
280 | --program-transform-nam=* | --program-transform-na=* \
281 | --program-transform-n=* | --program-transform-=* \
282 | --program-transform=* | --program-transfor=* \
283 | --program-transfo=* | --program-transf=* \
284 | --program-trans=* | --program-tran=* \
285 | --progr-tra=* | --program-tr=* | --program-t=*)
286 program_transform_name="$ac_optarg" ;;
287
288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289 | -silent | --silent | --silen | --sile | --sil)
290 silent=yes ;;
291
00103dfa
ILT
292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
293 ac_prev=sbindir ;;
294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
295 | --sbi=* | --sb=*)
296 sbindir="$ac_optarg" ;;
297
298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300 | --sharedst | --shareds | --shared | --share | --shar \
301 | --sha | --sh)
302 ac_prev=sharedstatedir ;;
303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
306 | --sha=* | --sh=*)
307 sharedstatedir="$ac_optarg" ;;
308
c62d1274
ILT
309 -site | --site | --sit)
310 ac_prev=site ;;
311 -site=* | --site=* | --sit=*)
312 site="$ac_optarg" ;;
313
314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
315 ac_prev=srcdir ;;
316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317 srcdir="$ac_optarg" ;;
318
00103dfa
ILT
319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320 | --syscon | --sysco | --sysc | --sys | --sy)
321 ac_prev=sysconfdir ;;
322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324 sysconfdir="$ac_optarg" ;;
325
c62d1274
ILT
326 -target | --target | --targe | --targ | --tar | --ta | --t)
327 ac_prev=target ;;
328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329 target="$ac_optarg" ;;
330
331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
332 verbose=yes ;;
333
334 -version | --version | --versio | --versi | --vers)
00103dfa 335 echo "configure generated by autoconf version 2.6"
c62d1274
ILT
336 exit 0 ;;
337
338 -with-* | --with-*)
339 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
343 fi
344 ac_package=`echo $ac_package| sed 's/-/_/g'`
345 case "$ac_option" in
346 *=*) ;;
347 *) ac_optarg=yes ;;
348 esac
349 eval "with_${ac_package}='$ac_optarg'" ;;
350
351 -without-* | --without-*)
352 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 fi
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
359
360 --x)
361 # Obsolete; use --with-x.
362 with_x=yes ;;
363
364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365 | --x-incl | --x-inc | --x-in | --x-i)
366 ac_prev=x_includes ;;
367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369 x_includes="$ac_optarg" ;;
370
371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373 ac_prev=x_libraries ;;
374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376 x_libraries="$ac_optarg" ;;
377
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
379 ;;
380
00103dfa 381 *)
c62d1274
ILT
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
384 fi
385 if test "x$nonopt" != xNONE; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
387 fi
388 nonopt="$ac_option"
389 ;;
390
391 esac
392done
393
394if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
396fi
397
398trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
399
400# File descriptor usage:
401# 0 standard input
402# 1 file creation
403# 2 errors and warnings
404# 3 some systems may open it to /dev/tty
405# 4 used on the Kubota Titan
406# 6 checking for... messages and results
407# 5 compiler messages saved in config.log
408if test "$silent" = yes; then
409 exec 6>/dev/null
410else
411 exec 6>&1
412fi
413exec 5>./config.log
414
415echo "\
416This file contains any messages produced by compilers while
417running configure, to aid debugging if configure makes a mistake.
418" 1>&5
419
420# Strip out --no-create and --no-recursion so they do not pile up.
421# Also quote any args containing shell metacharacters.
422ac_configure_args=
423for ac_arg
424do
425 case "$ac_arg" in
426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 | --no-cr | --no-c) ;;
428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
433 esac
434done
435
436# NLS nuisances.
437# Only set LANG and LC_ALL to C if already set.
438# These must not be set unconditionally because not all systems understand
439# e.g. LANG=C (notably SCO).
440if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
441if test "${LANG+set}" = set; then LANG=C; export LANG; fi
442
443# confdefs.h avoids OS command line length limits that DEFS can exceed.
444rm -rf conftest* confdefs.h
445# AIX cpp loses on an empty file, so make sure it contains at least a newline.
446echo > confdefs.h
447
448# A filename unique to this package, relative to the directory that
449# configure is in, which we can look for to find out if srcdir is correct.
450ac_unique_file=z8k-dis.c
451
452# Find the source files, if location was not specified.
453if test -z "$srcdir"; then
454 ac_srcdir_defaulted=yes
455 # Try the directory containing this script, then its parent.
456 ac_prog=$0
457 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
458 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
459 srcdir=$ac_confdir
460 if test ! -r $srcdir/$ac_unique_file; then
461 srcdir=..
462 fi
463else
464 ac_srcdir_defaulted=no
465fi
466if test ! -r $srcdir/$ac_unique_file; then
467 if test "$ac_srcdir_defaulted" = yes; then
468 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
469 else
470 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
471 fi
472fi
473srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
474
475# Prefer explicitly selected file to automatically selected ones.
476if test -z "$CONFIG_SITE"; then
477 if test "x$prefix" != xNONE; then
478 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
479 else
480 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
481 fi
482fi
483for ac_site_file in $CONFIG_SITE; do
484 if test -r "$ac_site_file"; then
485 echo "loading site script $ac_site_file"
486 . "$ac_site_file"
487 fi
488done
489
490if test -r "$cache_file"; then
491 echo "loading cache $cache_file"
492 . $cache_file
493else
494 echo "creating cache $cache_file"
495 > $cache_file
496fi
497
498ac_ext=c
499# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
00103dfa
ILT
500ac_cpp='echo $CPP $CPPFLAGS 1>&5;
501$CPP $CPPFLAGS'
502ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
503${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
504ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
505${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
c62d1274
ILT
506
507if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
508 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
509 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
510 ac_n= ac_c='
511' ac_t=' '
512 else
513 ac_n=-n ac_c= ac_t=
514 fi
515else
516 ac_n= ac_c='\c' ac_t=
517fi
518
519
520# configure.in script for the opcodes library.
521# Copyright (C) 1995 Free Software Foundation, Inc.
522# Written by Cygnus Support.
523#
524# This program is free software; you can redistribute it and/or modify
525# it under the terms of the GNU General Public License as published by
526# the Free Software Foundation; either version 2 of the License, or
527# (at your option) any later version.
528#
529# This program is distributed in the hope that it will be useful,
530# but WITHOUT ANY WARRANTY; without even the implied warranty of
531# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
532# GNU General Public License for more details.
533#
534# You should have received a copy of the GNU General Public License
535# along with this program; if not, write to the Free Software
536# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
537
538# Check whether --enable-targets or --disable-targets was given.
00103dfa
ILT
539if test "${enable_targets+set}" = set; then
540 enableval="$enable_targets"
c62d1274
ILT
541 case "${enableval}" in
542 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
543 ;;
544 no) enable_targets= ;;
545 *) enable_targets=$enableval ;;
546esac
547fi
548
824155e8
ILT
549
550
551ac_aux_dir=
552for ac_dir in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`; do
553 if test -f $ac_dir/install-sh; then
554 ac_aux_dir=$ac_dir
555 ac_install_sh="$ac_aux_dir/install-sh -c"
556 break
557 elif test -f $ac_dir/install.sh; then
558 ac_aux_dir=$ac_dir
559 ac_install_sh="$ac_aux_dir/install.sh -c"
560 break
561 fi
562done
563if test -z "$ac_aux_dir"; then
564 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`" 1>&2; exit 1; }
565fi
566ac_config_guess=$ac_aux_dir/config.guess
567ac_config_sub=$ac_aux_dir/config.sub
568ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
569
570
571# Do some error checking and defaulting for the host and target type.
572# The inputs are:
573# configure --host=HOST --target=TARGET --build=BUILD NONOPT
574#
575# The rules are:
576# 1. You are not allowed to specify --host, --target, and nonopt at the
00103dfa 577# same time.
824155e8
ILT
578# 2. Host defaults to nonopt.
579# 3. If nonopt is not specified, then host defaults to the current host,
580# as determined by config.guess.
581# 4. Target and build default to nonopt.
582# 5. If nonopt is not specified, then target and build default to host.
583
584# The aliases save the names the user supplied, while $host etc.
585# will get canonicalized.
586case $host---$target---$nonopt in
587NONE---*---* | *---NONE---* | *---*---NONE) ;;
588*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
589esac
590
591
592# Make sure we can run config.sub.
593if $ac_config_sub sun4 >/dev/null 2>&1; then :
594else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
595fi
596
597echo $ac_n "checking host system type""... $ac_c" 1>&6
598
599host_alias=$host
600case "$host_alias" in
601NONE)
602 case $nonopt in
603 NONE)
604 if host_alias=`$ac_config_guess`; then :
605 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
606 fi ;;
607 *) host_alias=$nonopt ;;
608 esac ;;
609esac
610
611host=`$ac_config_sub $host_alias`
612host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
613host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
614host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
615echo "$ac_t""$host" 1>&6
616
617echo $ac_n "checking target system type""... $ac_c" 1>&6
618
619target_alias=$target
620case "$target_alias" in
621NONE)
622 case $nonopt in
623 NONE) target_alias=$host_alias ;;
624 *) target_alias=$nonopt ;;
625 esac ;;
626esac
627
628target=`$ac_config_sub $target_alias`
629target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
630target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
631target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
632echo "$ac_t""$target" 1>&6
633
634echo $ac_n "checking build system type""... $ac_c" 1>&6
635
636build_alias=$build
637case "$build_alias" in
638NONE)
639 case $nonopt in
640 NONE) build_alias=$host_alias ;;
641 *) build_alias=$nonopt ;;
642 esac ;;
643esac
644
645build=`$ac_config_sub $build_alias`
646build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
647build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
648build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
649echo "$ac_t""$build" 1>&6
650
651test "$host_alias" != "$target_alias" &&
652 test "$program_prefix$program_suffix$program_transform_name" = \
653 NONENONEs,x,x, &&
654 program_prefix=${target_alias}-
655
656if test -z "$target" ; then
657 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
658fi
659
c62d1274
ILT
660# host-specific stuff:
661
9b65d522 662. ${srcdir}/../bfd/configure.host
c62d1274 663
00103dfa
ILT
664# Extract the first word of "gcc", so it can be a program name with args.
665set dummy gcc; ac_word=$2
666echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
669else
670 if test -n "$CC"; then
671 ac_cv_prog_CC="$CC" # Let the user override the test.
672else
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
674 for ac_dir in $PATH; do
675 test -z "$ac_dir" && ac_dir=.
676 if test -f $ac_dir/$ac_word; then
677 ac_cv_prog_CC="gcc"
678 break
679 fi
680 done
681 IFS="$ac_save_ifs"
682 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
683fi
684fi
685CC="$ac_cv_prog_CC"
686if test -n "$CC"; then
687 echo "$ac_t""$CC" 1>&6
688else
689 echo "$ac_t""no" 1>&6
690fi
691
c62d1274 692
00103dfa
ILT
693echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
694if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
696else
697 cat > conftest.c <<EOF
c62d1274
ILT
698#ifdef __GNUC__
699 yes;
700#endif
701EOF
702if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
00103dfa
ILT
703 ac_cv_prog_gcc=yes
704else
705 ac_cv_prog_gcc=no
706fi
707fi
708
709echo "$ac_t""$ac_cv_prog_gcc" 1>&6
710if test $ac_cv_prog_gcc = yes; then
c62d1274
ILT
711 GCC=yes
712 if test "${CFLAGS+set}" != set; then
00103dfa
ILT
713 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
714if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
715 echo $ac_n "(cached) $ac_c" 1>&6
716else
717 echo 'void f(){}' > conftest.c
718if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
719 ac_cv_prog_gcc_g=yes
720else
721 ac_cv_prog_gcc_g=no
722fi
723rm -f conftest*
724
725fi
726
727echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
728 if test $ac_cv_prog_gcc_g = yes; then
c62d1274
ILT
729 CFLAGS="-g -O"
730 else
731 CFLAGS="-O"
732 fi
733 fi
734else
735 GCC=
736 test "${CFLAGS+set}" = set || CFLAGS="-g"
737fi
9b65d522
ILT
738
739
40db6118 740
00103dfa
ILT
741# Extract the first word of "ar", so it can be a program name with args.
742set dummy ar; ac_word=$2
743echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
744if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746else
747 if test -n "$AR"; then
748 ac_cv_prog_AR="$AR" # Let the user override the test.
749else
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
751 for ac_dir in $PATH; do
752 test -z "$ac_dir" && ac_dir=.
753 if test -f $ac_dir/$ac_word; then
754 ac_cv_prog_AR="ar"
755 break
756 fi
757 done
758 IFS="$ac_save_ifs"
759 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
760fi
761fi
762AR="$ac_cv_prog_AR"
763if test -n "$AR"; then
764 echo "$ac_t""$AR" 1>&6
765else
766 echo "$ac_t""no" 1>&6
767fi
c62d1274
ILT
768
769# Extract the first word of "ranlib", so it can be a program name with args.
770set dummy ranlib; ac_word=$2
771echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
772if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
773 echo $ac_n "(cached) $ac_c" 1>&6
774else
775 if test -n "$RANLIB"; then
776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
777else
778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
779 for ac_dir in $PATH; do
780 test -z "$ac_dir" && ac_dir=.
781 if test -f $ac_dir/$ac_word; then
782 ac_cv_prog_RANLIB="ranlib"
783 break
784 fi
785 done
786 IFS="$ac_save_ifs"
787 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
788fi
789fi
790RANLIB="$ac_cv_prog_RANLIB"
791if test -n "$RANLIB"; then
792 echo "$ac_t""$RANLIB" 1>&6
793else
794 echo "$ac_t""no" 1>&6
795fi
796
9b65d522
ILT
797# Find a good install program. We prefer a C program (faster),
798# so one script is as good as another. But avoid the broken or
799# incompatible versions:
800# SysV /etc/install, /usr/sbin/install
801# SunOS /usr/etc/install
802# IRIX /sbin/install
803# AIX /bin/install
804# AFS /usr/afsws/bin/install, which mishandles nonexistent args
805# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
806# ./install, which can be erroneously created by make from ./install.sh.
807echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
808if test -z "$INSTALL"; then
809if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
811else
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
813 for ac_dir in $PATH; do
814 # Account for people who put trailing slashes in PATH elements.
815 case "$ac_dir/" in
816 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
817 *)
818 # OSF1 and SCO ODT 3.0 have their own names for install.
819 for ac_prog in ginstall installbsd scoinst install; do
820 if test -f $ac_dir/$ac_prog; then
821 if test $ac_prog = install &&
822 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
823 # AIX install. It has an incompatible calling convention.
824 # OSF/1 installbsd also uses dspmsg, but is usable.
825 :
826 else
827 ac_cv_path_install="$ac_dir/$ac_prog -c"
828 break 2
829 fi
830 fi
831 done
832 ;;
833 esac
834 done
835 IFS="$ac_save_ifs"
00103dfa 836
9b65d522 837fi
00103dfa
ILT
838 if test "${ac_cv_path_install+set}" = set; then
839 INSTALL="$ac_cv_path_install"
840 else
841 # As a last resort, use the slow shell script. We don't cache a
842 # path for INSTALL within a source directory, because that will
843 # break other packages using the cache if that directory is
844 # removed, or if the path is relative.
845 INSTALL="$ac_install_sh"
846 fi
9b65d522
ILT
847fi
848echo "$ac_t""$INSTALL" 1>&6
849
850# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
851# It thinks the first close brace ends the variable substitution.
852test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
853
854test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
855
856
c62d1274
ILT
857echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
858# On Suns, sometimes $CPP names a directory.
859if test -n "$CPP" && test -d "$CPP"; then
860 CPP=
861fi
862if test -z "$CPP"; then
863if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
865else
866 # This must be in double quotes, not single quotes, because CPP may get
867 # substituted into the Makefile and "${CC-cc}" will confuse make.
868 CPP="${CC-cc} -E"
869 # On the NeXT, cc -E runs the code through the compiler's parser,
870 # not just through cpp.
871 cat > conftest.$ac_ext <<EOF
00103dfa 872#line 873 "configure"
c62d1274
ILT
873#include "confdefs.h"
874#include <assert.h>
875Syntax Error
876EOF
877eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
878ac_err=`grep -v '^ *+' conftest.out`
879if test -z "$ac_err"; then
880 :
881else
882 echo "$ac_err" >&5
883 rm -rf conftest*
884 CPP="${CC-cc} -E -traditional-cpp"
885 cat > conftest.$ac_ext <<EOF
00103dfa 886#line 887 "configure"
c62d1274
ILT
887#include "confdefs.h"
888#include <assert.h>
889Syntax Error
890EOF
891eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
892ac_err=`grep -v '^ *+' conftest.out`
893if test -z "$ac_err"; then
894 :
895else
896 echo "$ac_err" >&5
897 rm -rf conftest*
898 CPP=/lib/cpp
899fi
900rm -f conftest*
901fi
902rm -f conftest*
903 ac_cv_prog_CPP="$CPP"
904fi
905 CPP="$ac_cv_prog_CPP"
906else
907 ac_cv_prog_CPP="$CPP"
908fi
909echo "$ac_t""$CPP" 1>&6
910
911for ac_hdr in string.h strings.h
912do
913ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
914echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
915if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
917else
918 cat > conftest.$ac_ext <<EOF
00103dfa 919#line 920 "configure"
c62d1274
ILT
920#include "confdefs.h"
921#include <$ac_hdr>
922EOF
923eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924ac_err=`grep -v '^ *+' conftest.out`
925if test -z "$ac_err"; then
926 rm -rf conftest*
927 eval "ac_cv_header_$ac_safe=yes"
928else
929 echo "$ac_err" >&5
930 rm -rf conftest*
931 eval "ac_cv_header_$ac_safe=no"
932fi
933rm -f conftest*
934fi
935if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
936 echo "$ac_t""yes" 1>&6
00103dfa 937 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
c62d1274
ILT
938 cat >> confdefs.h <<EOF
939#define $ac_tr_hdr 1
940EOF
941
942else
943 echo "$ac_t""no" 1>&6
944fi
945done
946
947
c62d1274
ILT
948# target-specific stuff:
949
950# Canonicalize the secondary target names.
951if test -n "$enable_targets" ; then
952 for targ in `echo $enable_targets | sed 's/,/ /g'`
953 do
954 result=`$ac_config_sub $targ 2>/dev/null`
955 if test -n "$result" ; then
956 canon_targets="$canon_targets $result"
957 else
958 # Allow targets that config.sub doesn't recognize, like "all".
959 canon_targets="$canon_targets $targ"
960 fi
961 done
962fi
963
964all_targets=false
965selarchs=
966for targ in $target $canon_targets
967do
968 if test "x$targ" = "xall" ; then
969 all_targets=true
970 else
971 . $srcdir/../bfd/config.bfd
972 selarchs="$selarchs $targ_archs"
973 fi
974done
975
976# We don't do any links based on the target system, just makefile config.
977
978if test x${all_targets} = xfalse ; then
979
980 # Target architecture .o files.
981 ta=
982
983 for arch in $selarchs
984 do
985 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
986 archdefs="$archdefs -DARCH_$ad"
987 case "$arch" in
988 bfd_a29k_arch) ta="$ta a29k-dis.o" ;;
00103dfa 989 bfd_alliant_arch) ;;
c62d1274
ILT
990 bfd_alpha_arch) ta="$ta alpha-dis.o" ;;
991# start-sanitize-arc
992 bfd_arc_arch) ta="$ta arc-dis.o arc-opc.o" ;;
993# end-sanitize-arc
994 bfd_arm_arch) ta="$ta arm-dis.o" ;;
00103dfa 995 bfd_convex_arch) ;;
c62d1274
ILT
996 bfd_h8300_arch) ta="$ta h8300-dis.o" ;;
997 bfd_h8500_arch) ta="$ta h8500-dis.o" ;;
998 bfd_hppa_arch) ta="$ta hppa-dis.o" ;;
999 bfd_i386_arch) ta="$ta i386-dis.o" ;;
f98c3369 1000 bfd_i860_arch) ;;
c62d1274
ILT
1001 bfd_i960_arch) ta="$ta i960-dis.o" ;;
1002 bfd_m68k_arch) ta="$ta m68k-dis.o m68k-opc.o" ;;
1003 bfd_m88k_arch) ta="$ta m88k-dis.o" ;;
1004 bfd_mips_arch) ta="$ta mips-dis.o mips-opc.o" ;;
1005 bfd_ns32k_arch) ta="$ta ns32k-dis.o" ;;
1006 bfd_powerpc_arch) ta="$ta ppc-dis.o ppc-opc.o" ;;
00103dfa
ILT
1007 bfd_pyramid_arch) ;;
1008 bfd_romp_arch) ;;
c62d1274 1009 bfd_rs6000_arch) ta="$ta ppc-dis.o ppc-opc.o" ;;
c62d1274
ILT
1010# start-sanitize-rce
1011 bfd_rce_arch) ta="$ta rce-dis.o" ;;
1012# end-sanitize-rce
00103dfa 1013 bfd_sh_arch) ta="$ta sh-dis.o" ;;
c62d1274 1014 bfd_sparc_arch) ta="$ta sparc-dis.o sparc-opc.o" ;;
00103dfa 1015 bfd_tahoe_arch) ;;
c62d1274 1016 bfd_vax_arch) ;;
00103dfa 1017 bfd_w65_arch) ta="$ta w65-dis.o" ;;
c62d1274
ILT
1018 bfd_we32k_arch) ;;
1019 bfd_z8k_arch) ta="$ta z8k-dis.o" ;;
c62d1274
ILT
1020
1021 "") ;;
1022 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
1023 esac
1024 done
1025
1026 # Weed out duplicate .o files.
1027 f=""
1028 for i in $ta ; do
1029 case " $f " in
1030 *" $i "*) ;;
1031 *) f="$f $i" ;;
1032 esac
1033 done
1034 ta="$f"
1035
1036 # And duplicate -D flags.
1037 f=""
1038 for i in $archdefs ; do
1039 case " $f " in
1040 *" $i "*) ;;
1041 *) f="$f $i" ;;
1042 esac
1043 done
1044 archdefs="$f"
1045
1046 BFD_MACHINES="$ta"
1047
1048else # all_targets is true
1049 archdefs=-DARCH_all
1050 BFD_MACHINES='$(ALL_MACHINES)'
1051fi
1052
1053
1054
1055
c62d1274
ILT
1056trap '' 1 2 15
1057cat > confcache <<\EOF
1058# This file is a shell script that caches the results of configure
1059# tests run on this system so they can be shared between configure
1060# scripts and configure runs. It is not useful on other systems.
1061# If it contains results you don't want to keep, you may remove or edit it.
1062#
1063# By default, configure uses ./config.cache as the cache file,
1064# creating it if it does not exist already. You can give configure
1065# the --cache-file=FILE option to use a different cache file; that is
1066# what configure does when it calls configure scripts in
1067# subdirectories, so they share the cache.
1068# Giving --cache-file=/dev/null disables caching, for debugging configure.
1069# config.status only pays attention to the cache file if you give it the
1070# --recheck option to rerun configure.
1071#
1072EOF
1073# Ultrix sh set writes to stderr and can't be redirected directly,
1074# and sets the high bit in the cache file unless we assign to the vars.
1075(set) 2>&1 |
1076 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1077 >> confcache
1078if cmp -s $cache_file confcache; then
1079 :
1080else
1081 if test -w $cache_file; then
1082 echo "updating cache $cache_file"
1083 cat confcache > $cache_file
1084 else
1085 echo "not updating unwritable cache $cache_file"
1086 fi
1087fi
1088rm -f confcache
1089
1090trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1091
1092test "x$prefix" = xNONE && prefix=$ac_default_prefix
1093# Let make expand exec_prefix.
1094test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1095
1096# Any assignment to VPATH causes Sun make to only execute
1097# the first set of double-colon rules, so remove it if not needed.
1098# If there is a colon in the path, we need to keep it.
1099if test "x$srcdir" = x.; then
1100 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1101fi
1102
1103trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1104
1105DEFS=-DHAVE_CONFIG_H
1106
1107# Without the "./", some shells look in PATH for config.status.
1108: ${CONFIG_STATUS=./config.status}
1109
1110echo creating $CONFIG_STATUS
1111rm -f $CONFIG_STATUS
1112cat > $CONFIG_STATUS <<EOF
1113#! /bin/sh
1114# Generated automatically by configure.
1115# Run this file to recreate the current configuration.
1116# This directory was configured as follows,
1117# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1118#
1119# $0 $ac_configure_args
1120#
1121# Compiler output produced by configure, useful for debugging
1122# configure, is in ./config.log if it exists.
1123
1124ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1125for ac_option
1126do
1127 case "\$ac_option" in
1128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1129 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1130 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1131 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
00103dfa 1132 echo "$CONFIG_STATUS generated by autoconf version 2.6"
c62d1274
ILT
1133 exit 0 ;;
1134 -help | --help | --hel | --he | --h)
1135 echo "\$ac_cs_usage"; exit 0 ;;
1136 *) echo "\$ac_cs_usage"; exit 1 ;;
1137 esac
1138done
1139
1140ac_given_srcdir=$srcdir
9b65d522 1141ac_given_INSTALL="$INSTALL"
c62d1274
ILT
1142
1143trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1144
00103dfa
ILT
1145# Protect against being on the right side of a sed subst in config.status.
1146sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
c62d1274
ILT
1147 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1148$ac_vpsub
1149$extrasub
1150s%@CFLAGS@%$CFLAGS%g
1151s%@CPPFLAGS@%$CPPFLAGS%g
1152s%@CXXFLAGS@%$CXXFLAGS%g
1153s%@DEFS@%$DEFS%g
1154s%@LDFLAGS@%$LDFLAGS%g
1155s%@LIBS@%$LIBS%g
1156s%@exec_prefix@%$exec_prefix%g
1157s%@prefix@%$prefix%g
1158s%@program_transform_name@%$program_transform_name%g
00103dfa
ILT
1159s%@bindir@%$bindir%g
1160s%@sbindir@%$sbindir%g
1161s%@libexecdir@%$libexecdir%g
1162s%@datadir@%$datadir%g
1163s%@sysconfdir@%$sysconfdir%g
1164s%@sharedstatedir@%$sharedstatedir%g
1165s%@localstatedir@%$localstatedir%g
1166s%@libdir@%$libdir%g
1167s%@includedir@%$includedir%g
1168s%@oldincludedir@%$oldincludedir%g
1169s%@infodir@%$infodir%g
1170s%@mandir@%$mandir%g
c62d1274
ILT
1171s%@host@%$host%g
1172s%@host_alias@%$host_alias%g
1173s%@host_cpu@%$host_cpu%g
1174s%@host_vendor@%$host_vendor%g
1175s%@host_os@%$host_os%g
1176s%@target@%$target%g
1177s%@target_alias@%$target_alias%g
1178s%@target_cpu@%$target_cpu%g
1179s%@target_vendor@%$target_vendor%g
1180s%@target_os@%$target_os%g
1181s%@build@%$build%g
1182s%@build_alias@%$build_alias%g
1183s%@build_cpu@%$build_cpu%g
1184s%@build_vendor@%$build_vendor%g
1185s%@build_os@%$build_os%g
824155e8
ILT
1186s%@CC@%$CC%g
1187s%@HDEFINES@%$HDEFINES%g
1188s%@AR@%$AR%g
1189s%@RANLIB@%$RANLIB%g
1190s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1191s%@INSTALL_DATA@%$INSTALL_DATA%g
1192s%@CPP@%$CPP%g
c62d1274
ILT
1193s%@archdefs@%$archdefs%g
1194s%@BFD_MACHINES@%$BFD_MACHINES%g
1195
1196CEOF
1197EOF
1198cat >> $CONFIG_STATUS <<EOF
1199
1200CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1201EOF
1202cat >> $CONFIG_STATUS <<\EOF
1203for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1204 # Support "outfile[:infile]", defaulting infile="outfile.in".
1205 case "$ac_file" in
1206 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1207 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1208 *) ac_file_in="${ac_file}.in" ;;
1209 esac
1210
1211 # Adjust relative srcdir, etc. for subdirectories.
1212
1213 # Remove last slash and all that follows it. Not all systems have dirname.
1214 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1215 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1216 # The file is in a subdirectory.
1217 test ! -d "$ac_dir" && mkdir "$ac_dir"
1218 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1219 # A "../" for each directory in $ac_dir_suffix.
1220 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1221 else
1222 ac_dir_suffix= ac_dots=
1223 fi
1224
1225 case "$ac_given_srcdir" in
1226 .) srcdir=.
1227 if test -z "$ac_dots"; then top_srcdir=.
1228 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1229 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1230 *) # Relative path.
1231 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1232 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1233 esac
1234
9b65d522
ILT
1235 case "$ac_given_INSTALL" in
1236 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1237 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1238 esac
c62d1274
ILT
1239 echo creating "$ac_file"
1240 rm -f "$ac_file"
1241 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1242 case "$ac_file" in
1243 *Makefile*) ac_comsub="1i\\
1244# $configure_input" ;;
1245 *) ac_comsub= ;;
1246 esac
1247 sed -e "$ac_comsub
1248s%@configure_input@%$configure_input%g
1249s%@srcdir@%$srcdir%g
1250s%@top_srcdir@%$top_srcdir%g
9b65d522 1251s%@INSTALL@%$INSTALL%g
c62d1274
ILT
1252" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1253fi; done
1254rm -f conftest.subs
1255
1256# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1257# NAME is the cpp macro being defined and VALUE is the value it is being given.
1258#
1259# ac_d sets the value in "#define NAME VALUE" lines.
1260ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1261ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1262ac_dC='\3'
1263ac_dD='%g'
1264# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1265ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1266ac_uB='\([ ]\)%\1#\2define\3'
1267ac_uC=' '
1268ac_uD='\4%g'
1269# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1270ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1271ac_eB='$%\1#\2define\3'
1272ac_eC=' '
1273ac_eD='%g'
1274
1275CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"}
1276for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1277 # Support "outfile[:infile]", defaulting infile="outfile.in".
1278 case "$ac_file" in
1279 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1280 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1281 *) ac_file_in="${ac_file}.in" ;;
1282 esac
1283
1284 echo creating $ac_file
1285
1286 rm -f conftest.frag conftest.in conftest.out
1287 cp $ac_given_srcdir/$ac_file_in conftest.in
1288
1289EOF
1290
1291# Transform confdefs.h into a sed script conftest.vals that substitutes
1292# the proper values into config.h.in to produce config.h. And first:
00103dfa 1293# Protect against being on the right side of a sed subst in config.status.
c62d1274
ILT
1294# Protect against being in an unquoted here document in config.status.
1295rm -f conftest.vals
1296cat > conftest.hdr <<\EOF
1297s/[\\&%]/\\&/g
1298s%[\\$`]%\\&%g
1299s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1300s%ac_d%ac_u%gp
1301s%ac_u%ac_e%gp
1302EOF
1303sed -n -f conftest.hdr confdefs.h > conftest.vals
1304rm -f conftest.hdr
1305
1306# This sed command replaces #undef with comments. This is necessary, for
1307# example, in the case of _POSIX_SOURCE, which is predefined and required
1308# on some systems where configure will not decide to define it.
1309cat >> conftest.vals <<\EOF
1310s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1311EOF
1312
1313# Break up conftest.vals because some shells have a limit on
1314# the size of here documents, and old seds have small limits too.
1315# Maximum number of lines to put in a single here document.
1316ac_max_here_lines=12
1317
1318rm -f conftest.tail
1319while :
1320do
1321 ac_lines=`grep -c . conftest.vals`
1322 # grep -c gives empty output for an empty file on some AIX systems.
1323 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1324 # Write a limited-size here document to conftest.frag.
1325 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1326 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1327 echo 'CEOF
1328 sed -f conftest.frag conftest.in > conftest.out
1329 rm -f conftest.in
1330 mv conftest.out conftest.in
1331' >> $CONFIG_STATUS
1332 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1333 rm -f conftest.vals
1334 mv conftest.tail conftest.vals
1335done
1336rm -f conftest.vals
1337
1338cat >> $CONFIG_STATUS <<\EOF
1339 rm -f conftest.frag conftest.h
1340 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1341 cat conftest.in >> conftest.h
1342 rm -f conftest.in
1343 if cmp -s $ac_file conftest.h 2>/dev/null; then
1344 echo "$ac_file is unchanged"
1345 rm -f conftest.h
1346 else
1347 rm -f $ac_file
1348 mv conftest.h $ac_file
1349 fi
1350fi; done
1351
1352
824155e8 1353case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
c62d1274
ILT
1354exit 0
1355EOF
1356chmod +x $CONFIG_STATUS
1357rm -fr confdefs* $ac_clean_files
1358test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1359
This page took 0.087639 seconds and 4 git commands to generate.