* srconv.c (wr_tr): Write out handcrafted tr block.
[deliverable/binutils-gdb.git] / bfd / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4
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:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
16 ac_help="$ac_help
17 --enable-targets alternative target configurations"
18
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
22 build=NONE
23 cache_file=./config.cache
24 exec_prefix=NONE
25 host=NONE
26 no_create=
27 nonopt=NONE
28 no_recursion=
29 prefix=NONE
30 program_prefix=NONE
31 program_suffix=NONE
32 program_transform_name=s,x,x,
33 silent=
34 site=
35 srcdir=
36 target=NONE
37 verbose=
38 x_includes=NONE
39 x_libraries=NONE
40
41 # Initialize some other variables.
42 subdirs=
43
44 ac_prev=
45 for ac_option
46 do
47
48 # If the previous option needs an argument, assign it.
49 if test -n "$ac_prev"; then
50 eval "$ac_prev=\$ac_option"
51 ac_prev=
52 continue
53 fi
54
55 case "$ac_option" in
56 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
57 *) ac_optarg= ;;
58 esac
59
60 # Accept the important Cygnus configure options, so we can diagnose typos.
61
62 case "$ac_option" in
63
64 -build | --build | --buil | --bui | --bu | --b)
65 ac_prev=build ;;
66 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
67 build="$ac_optarg" ;;
68
69 -cache-file | --cache-file | --cache-fil | --cache-fi \
70 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
71 ac_prev=cache_file ;;
72 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
73 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
74 cache_file="$ac_optarg" ;;
75
76 -disable-* | --disable-*)
77 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
78 # Reject names that are not valid shell variable names.
79 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
80 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
81 fi
82 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
83 eval "enable_${ac_feature}=no" ;;
84
85 -enable-* | --enable-*)
86 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
87 # Reject names that are not valid shell variable names.
88 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
89 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
90 fi
91 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
92 case "$ac_option" in
93 *=*) ;;
94 *) ac_optarg=yes ;;
95 esac
96 eval "enable_${ac_feature}='$ac_optarg'" ;;
97
98 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
99 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
100 | --exec | --exe | --ex)
101 ac_prev=exec_prefix ;;
102 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
103 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
104 | --exec=* | --exe=* | --ex=*)
105 exec_prefix="$ac_optarg" ;;
106
107 -gas | --gas | --ga | --g)
108 # Obsolete; use --with-gas.
109 with_gas=yes ;;
110
111 -help | --help | --hel | --he)
112 # Omit some internal or obsolete options to make the list less imposing.
113 # This message is too long to be a string in the A/UX 3.1 sh.
114 cat << EOF
115 Usage: configure [options] [host]
116 Options: [defaults in brackets after descriptions]
117 Configuration:
118 --cache-file=FILE cache test results in FILE
119 --help print this message
120 --no-create do not create output files
121 --quiet, --silent do not print \`checking...' messages
122 --version print the version of autoconf that created configure
123 Directory and file names:
124 --prefix=PREFIX install architecture-independent files in PREFIX
125 [$ac_default_prefix]
126 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
127 [same as prefix]
128 --srcdir=DIR find the sources in DIR [configure dir or ..]
129 --program-prefix=PREFIX prepend PREFIX to installed program names
130 --program-suffix=SUFFIX append SUFFIX to installed program names
131 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
132 Host type:
133 --build=BUILD configure for building on BUILD [BUILD=HOST]
134 --host=HOST configure for HOST [guessed]
135 --target=TARGET configure for TARGET [TARGET=HOST]
136 Features and packages:
137 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
138 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
139 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
140 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
141 --x-includes=DIR X include files are in DIR
142 --x-libraries=DIR X library files are in DIR
143 --enable and --with options recognized:$ac_help
144 EOF
145 exit 0 ;;
146
147 -host | --host | --hos | --ho)
148 ac_prev=host ;;
149 -host=* | --host=* | --hos=* | --ho=*)
150 host="$ac_optarg" ;;
151
152 -nfp | --nfp | --nf)
153 # Obsolete; use --without-fp.
154 with_fp=no ;;
155
156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
157 | --no-cr | --no-c)
158 no_create=yes ;;
159
160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
162 no_recursion=yes ;;
163
164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
165 ac_prev=prefix ;;
166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
167 prefix="$ac_optarg" ;;
168
169 -program-prefix | --program-prefix | --program-prefi | --program-pref \
170 | --program-pre | --program-pr | --program-p)
171 ac_prev=program_prefix ;;
172 -program-prefix=* | --program-prefix=* | --program-prefi=* \
173 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
174 program_prefix="$ac_optarg" ;;
175
176 -program-suffix | --program-suffix | --program-suffi | --program-suff \
177 | --program-suf | --program-su | --program-s)
178 ac_prev=program_suffix ;;
179 -program-suffix=* | --program-suffix=* | --program-suffi=* \
180 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
181 program_suffix="$ac_optarg" ;;
182
183 -program-transform-name | --program-transform-name \
184 | --program-transform-nam | --program-transform-na \
185 | --program-transform-n | --program-transform- \
186 | --program-transform | --program-transfor \
187 | --program-transfo | --program-transf \
188 | --program-trans | --program-tran \
189 | --progr-tra | --program-tr | --program-t)
190 ac_prev=program_transform_name ;;
191 -program-transform-name=* | --program-transform-name=* \
192 | --program-transform-nam=* | --program-transform-na=* \
193 | --program-transform-n=* | --program-transform-=* \
194 | --program-transform=* | --program-transfor=* \
195 | --program-transfo=* | --program-transf=* \
196 | --program-trans=* | --program-tran=* \
197 | --progr-tra=* | --program-tr=* | --program-t=*)
198 program_transform_name="$ac_optarg" ;;
199
200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
201 | -silent | --silent | --silen | --sile | --sil)
202 silent=yes ;;
203
204 -site | --site | --sit)
205 ac_prev=site ;;
206 -site=* | --site=* | --sit=*)
207 site="$ac_optarg" ;;
208
209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
210 ac_prev=srcdir ;;
211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
212 srcdir="$ac_optarg" ;;
213
214 -target | --target | --targe | --targ | --tar | --ta | --t)
215 ac_prev=target ;;
216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
217 target="$ac_optarg" ;;
218
219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
220 verbose=yes ;;
221
222 -version | --version | --versio | --versi | --vers)
223 echo "configure generated by autoconf version 2.4"
224 exit 0 ;;
225
226 -with-* | --with-*)
227 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
230 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
231 fi
232 ac_package=`echo $ac_package| sed 's/-/_/g'`
233 case "$ac_option" in
234 *=*) ;;
235 *) ac_optarg=yes ;;
236 esac
237 eval "with_${ac_package}='$ac_optarg'" ;;
238
239 -without-* | --without-*)
240 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
243 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
244 fi
245 ac_package=`echo $ac_package| sed 's/-/_/g'`
246 eval "with_${ac_package}=no" ;;
247
248 --x)
249 # Obsolete; use --with-x.
250 with_x=yes ;;
251
252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
253 | --x-incl | --x-inc | --x-in | --x-i)
254 ac_prev=x_includes ;;
255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
257 x_includes="$ac_optarg" ;;
258
259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
261 ac_prev=x_libraries ;;
262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
264 x_libraries="$ac_optarg" ;;
265
266 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
267 ;;
268
269 *)
270 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
271 echo "configure: warning: $ac_option: invalid host type" 1>&2
272 fi
273 if test "x$nonopt" != xNONE; then
274 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
275 fi
276 nonopt="$ac_option"
277 ;;
278
279 esac
280 done
281
282 if test -n "$ac_prev"; then
283 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
284 fi
285
286 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
287
288 # File descriptor usage:
289 # 0 standard input
290 # 1 file creation
291 # 2 errors and warnings
292 # 3 some systems may open it to /dev/tty
293 # 4 used on the Kubota Titan
294 # 6 checking for... messages and results
295 # 5 compiler messages saved in config.log
296 if test "$silent" = yes; then
297 exec 6>/dev/null
298 else
299 exec 6>&1
300 fi
301 exec 5>./config.log
302
303 echo "\
304 This file contains any messages produced by compilers while
305 running configure, to aid debugging if configure makes a mistake.
306 " 1>&5
307
308 # Strip out --no-create and --no-recursion so they do not pile up.
309 # Also quote any args containing shell metacharacters.
310 ac_configure_args=
311 for ac_arg
312 do
313 case "$ac_arg" in
314 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
315 | --no-cr | --no-c) ;;
316 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
317 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
318 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
319 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
320 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
321 esac
322 done
323
324 # NLS nuisances.
325 # Only set LANG and LC_ALL to C if already set.
326 # These must not be set unconditionally because not all systems understand
327 # e.g. LANG=C (notably SCO).
328 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
329 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
330
331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
332 rm -rf conftest* confdefs.h
333 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
334 echo > confdefs.h
335
336 # A filename unique to this package, relative to the directory that
337 # configure is in, which we can look for to find out if srcdir is correct.
338 ac_unique_file=libbfd.c
339
340 # Find the source files, if location was not specified.
341 if test -z "$srcdir"; then
342 ac_srcdir_defaulted=yes
343 # Try the directory containing this script, then its parent.
344 ac_prog=$0
345 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
346 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
347 srcdir=$ac_confdir
348 if test ! -r $srcdir/$ac_unique_file; then
349 srcdir=..
350 fi
351 else
352 ac_srcdir_defaulted=no
353 fi
354 if test ! -r $srcdir/$ac_unique_file; then
355 if test "$ac_srcdir_defaulted" = yes; then
356 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
357 else
358 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
359 fi
360 fi
361 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
362
363 # Prefer explicitly selected file to automatically selected ones.
364 if test -z "$CONFIG_SITE"; then
365 if test "x$prefix" != xNONE; then
366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
367 else
368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
369 fi
370 fi
371 for ac_site_file in $CONFIG_SITE; do
372 if test -r "$ac_site_file"; then
373 echo "loading site script $ac_site_file"
374 . "$ac_site_file"
375 fi
376 done
377
378 if test -r "$cache_file"; then
379 echo "loading cache $cache_file"
380 . $cache_file
381 else
382 echo "creating cache $cache_file"
383 > $cache_file
384 fi
385
386 ac_ext=c
387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
388 ac_cpp='$CPP $CPPFLAGS'
389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
390 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
391
392 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
393 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
394 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
395 ac_n= ac_c='
396 ' ac_t=' '
397 else
398 ac_n=-n ac_c= ac_t=
399 fi
400 else
401 ac_n= ac_c='\c' ac_t=
402 fi
403
404
405
406 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
407 enableval="$enable_64_bit_bfd"
408 if test -n "$enableval"; then
409 case "{$enableval}" in
410 yes) want64=true ;;
411 no) want64=false ;;
412 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
413 esac
414 else
415 want64=false
416 fi
417 # Check whether --enable-targets or --disable-targets was given.
418 enableval="$enable_targets"
419 if test -n "$enableval"; then
420 case "${enableval}" in
421 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
422 ;;
423 no) enable_targets= ;;
424 *) enable_targets=$enableval ;;
425 esac
426 fi
427
428 ac_aux_dir=
429 for ac_dir in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`; do
430 if test -f $ac_dir/install-sh; then
431 ac_aux_dir=$ac_dir
432 ac_install_sh="$ac_aux_dir/install-sh -c"
433 break
434 elif test -f $ac_dir/install.sh; then
435 ac_aux_dir=$ac_dir
436 ac_install_sh="$ac_aux_dir/install.sh -c"
437 break
438 fi
439 done
440 if test -z "$ac_aux_dir"; then
441 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`" 1>&2; exit 1; }
442 fi
443 ac_config_guess=$ac_aux_dir/config.guess
444 ac_config_sub=$ac_aux_dir/config.sub
445 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
446
447
448 # Do some error checking and defaulting for the host and target type.
449 # The inputs are:
450 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
451 #
452 # The rules are:
453 # 1. You are not allowed to specify --host, --target, and nonopt at the
454 # same time.
455 # 2. Host defaults to nonopt.
456 # 3. If nonopt is not specified, then host defaults to the current host,
457 # as determined by config.guess.
458 # 4. Target and build default to nonopt.
459 # 5. If nonopt is not specified, then target and build default to host.
460
461 # The aliases save the names the user supplied, while $host etc.
462 # will get canonicalized.
463 case $host---$target---$nonopt in
464 NONE---*---* | *---NONE---* | *---*---NONE) ;;
465 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
466 esac
467
468
469 # Make sure we can run config.sub.
470 if $ac_config_sub sun4 >/dev/null 2>&1; then :
471 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
472 fi
473
474 echo $ac_n "checking host system type""... $ac_c" 1>&6
475
476 host_alias=$host
477 case "$host_alias" in
478 NONE)
479 case $nonopt in
480 NONE)
481 if host_alias=`$ac_config_guess`; then :
482 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
483 fi ;;
484 *) host_alias=$nonopt ;;
485 esac ;;
486 esac
487
488 host=`$ac_config_sub $host_alias`
489 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
490 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
491 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
492 echo "$ac_t""$host" 1>&6
493
494 echo $ac_n "checking target system type""... $ac_c" 1>&6
495
496 target_alias=$target
497 case "$target_alias" in
498 NONE)
499 case $nonopt in
500 NONE) target_alias=$host_alias ;;
501 *) target_alias=$nonopt ;;
502 esac ;;
503 esac
504
505 target=`$ac_config_sub $target_alias`
506 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
507 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
508 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
509 echo "$ac_t""$target" 1>&6
510
511 echo $ac_n "checking build system type""... $ac_c" 1>&6
512
513 build_alias=$build
514 case "$build_alias" in
515 NONE)
516 case $nonopt in
517 NONE) build_alias=$host_alias ;;
518 *) build_alias=$nonopt ;;
519 esac ;;
520 esac
521
522 build=`$ac_config_sub $build_alias`
523 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
524 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
525 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
526 echo "$ac_t""$build" 1>&6
527
528 test "$host_alias" != "$target_alias" &&
529 test "$program_prefix$program_suffix$program_transform_name" = \
530 NONENONEs,x,x, &&
531 program_prefix=${target_alias}-
532
533 if test -z "$target" ; then
534 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
535 fi
536 if test "$program_transform_name" = s,x,x,; then
537 program_transform_name=
538 else
539 # Double any \ or $.
540 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
541 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
542 rm -f conftestsed
543 fi
544 test "$program_prefix" != NONE &&
545 program_transform_name="s,^,${program_prefix},; $program_transform_name"
546 # Use a double $ so make ignores it.
547 test "$program_suffix" != NONE &&
548 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
549
550 # sed with no file args requires a program.
551 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
552
553
554 host64=false
555 target64=false
556
557 # host stuff:
558
559 . ${srcdir}/configure.host
560
561 # Extract the first word of "ranlib", so it can be a program name with args.
562 set dummy ranlib; ac_word=$2
563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
564 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
566 else
567 if test -n "$RANLIB"; then
568 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
569 else
570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
571 for ac_dir in $PATH; do
572 test -z "$ac_dir" && ac_dir=.
573 if test -f $ac_dir/$ac_word; then
574 ac_cv_prog_RANLIB="ranlib"
575 break
576 fi
577 done
578 IFS="$ac_save_ifs"
579 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
580 fi
581 fi
582 RANLIB="$ac_cv_prog_RANLIB"
583 if test -n "$RANLIB"; then
584 echo "$ac_t""$RANLIB" 1>&6
585 else
586 echo "$ac_t""no" 1>&6
587 fi
588
589
590 # Set up to make a link between the host's include file and "sysdep.h".
591 files=hosts/${my_host}.h
592
593 if test ! -f ${srcdir}/${files} ; then
594 files=../bfd/hosts/std-host.h
595 echo "configure: warning: BFD has no specific support for host ${host} -- using std-host" 1>&2
596 fi
597
598
599
600 if test -f ${srcdir}/config/${my_host}.mh ; then
601 host_makefile_frag=$srcdir/config/${my_host}.mh
602 else
603 host_makefile_frag=/dev/null
604 fi
605
606
607 # target stuff:
608
609 # Canonicalize the secondary target names.
610 if test -n "$enable_targets" ; then
611 for targ in `echo $enable_targets | sed 's/,/ /g'`
612 do
613 result=`$ac_config_sub $targ 2>/dev/null`
614 if test -n "$result" ; then
615 canon_targets="$canon_targets $result"
616 else
617 # Allow targets that config.sub doesn't recognize, like "all".
618 canon_targets="$canon_targets $targ"
619 fi
620 done
621 fi
622
623 all_targets=false
624
625 for targ in $target $canon_targets
626 do
627 bfd_target=`${config_shell} $srcdir/config.bfd $targ`
628
629 if test "x$bfd_target" = "xall" ; then
630 all_targets=true
631 else
632 if test ! -f ${srcdir}/config/${bfd_target}.mt ; then
633 { echo "configure: error: *** No file ${srcdir}/config/${bfd_target}.mt.
634 *** BFD does not support target ${bfd_target}.
635 *** Look in bfd/config.bfd for supported targets." 1>&2; exit 1; }
636 exit 1
637 fi
638
639 if test "x$targ" = "x$target" ; then
640 target_makefile_frag=${srcdir}/config/${bfd_target}.mt
641 else
642 target_extra_frags="$target_extra_frags ${srcdir}/config/${bfd_target}.mt"
643 fi
644 fi
645 done
646
647 frags=$target_makefile_frag
648 if test $host_makefile_frag != /dev/null ; then
649 frags="$frags $host_makefile_frag"
650 fi
651
652
653
654 # This processing still needs to be done if we're to decide properly whether
655 # 64-bit support needs to be compiled in. Currently, it will be included if
656 # the default or any other explicitly requested target requires it; it
657 # will not be included on a 32-bit host if no 64-bit target is requested, and
658 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
659 # used.
660
661 # The default vector in the primary target.
662 DEFAULT_VECTOR=`sed -n '
663 s/DEFAULT_VECTOR[ ]*=[ ]*\([^ ]*\)/\1/p
664 ' $target_makefile_frag`
665
666 allfrags="$target_makefile_frag $target_extra_frags"
667
668 # The default and selected vectors in all the configured targets.
669 SELECT_VECS=`sed -n '
670 s/DEFAULT_VECTOR[ ]*=[ ]*\([^ ]*\)/\1/p
671 s/SELECT_VECS[ ]*=[ ]*\([^ ]*\)/\1/p
672 ' $allfrags`
673 # uniq the list.
674 f=""
675 for i in $SELECT_VECS ; do
676 case " $f " in
677 *" $i "*) ;;
678 *) f="$f $i" ;;
679 esac
680 done
681 SELECT_VECS="$f"
682
683 # The architectures in all the configured targets.
684 SELECT_ARCHITECTURES=`sed -n '
685 s/SELECT_ARCHITECTURES[ ]*=[ ]*//p
686 ' $allfrags`
687 # uniq the list.
688 f=""
689 for i in $SELECT_ARCHITECTURES ; do
690 case " $f " in
691 *" $i "*) ;;
692 *) f="$f $i" ;;
693 esac
694 done
695 SELECT_ARCHITECTURES="$f"
696
697 # Target backend .o files.
698 tb=
699
700 for vec in $SELECT_VECS
701 do
702 case "$vec" in
703 # This list is alphabetized to make it easy to compare
704 # with the two vector lists in targets.c.
705 a29kcoff_big_vec) tb="$tb coff-a29k.o cofflink.o" ;;
706 a_out_adobe_vec) tb="$tb aout-adobe.o aout32.o stab-syms.o" ;;
707 armpe_vec) tb="$tb pe-arm.o cofflink.o " ;;
708 armpei_vec) tb="$tb pei-arm.o cofflink.o " ;;
709 aout0_big_vec) tb="$tb aout0.o aout32.o stab-syms.o" ;;
710 aout_arm_big_vec) tb="$tb aout-arm.o aout32.o stab-syms.o" ;;
711 aout_arm_little_vec) tb="$tb aout-arm.o aout32.o stab-syms.o" ;;
712 aout_mips_big_vec) tb="$tb mipsbsd.o aout32.o stab-syms.o" ;;
713 aout_mips_little_vec) tb="$tb mipsbsd.o aout32.o stab-syms.o" ;;
714 apollocoff_vec) tb="$tb coff-apollo.o" ;;
715 b_out_vec_big_host) tb="$tb bout.o aout32.o stab-syms.o" ;;
716 b_out_vec_little_host) tb="$tb bout.o aout32.o stab-syms.o" ;;
717 # start-sanitize-arc
718 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.o elf32.o elf.o" ;;
719 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.o elf32.o elf.o" ;;
720 # end-sanitize-arc
721 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.o elf32.o elf.o" ;;
722 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.o elf32.o elf.o ecofflink.o" ;;
723 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.o elf32.o elf.o" ;;
724 bfd_elf32_i386_vec) tb="$tb elf32-i386.o elf32.o elf.o" ;;
725 bfd_elf32_i860_vec) tb="$tb elf32-i860.o elf32.o elf.o" ;;
726 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.o elf32.o elf.o" ;;
727 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.o elf32.o elf.o ecofflink.o" ;;
728 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.o elf32.o elf.o" ;;
729 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.o elf32.o elf.o" ;;
730 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.o elf32.o elf.o" ;;
731 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.o elf32.o elf.o" ;;
732 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.o elf32.o elf.o" ;;
733 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.o elf64.o elf.o"
734 target64=true ;;
735 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.o elf64.o elf.o"
736 target64=true ;;
737 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.o elf64.o elf.o"
738 target64=true ;;
739 cisco_core_vec) tb="$tb cisco-core.o" ;;
740 demo_64_vec) tb="$tb demo64.o aout64.o stab-syms.o"
741 target64=true ;;
742 ecoff_big_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;;
743 ecoff_little_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;;
744 ecoffalpha_little_vec) tb="$tb coff-alpha.o ecoff.o ecofflink.o"
745 target64=true ;;
746 h8300coff_vec) tb="$tb coff-h8300.o reloc16.o" ;;
747 h8500coff_vec) tb="$tb coff-h8500.o reloc16.o" ;;
748 host_aout_vec) tb="$tb host-aout.o aout32.o stab-syms.o" ;;
749 hp300bsd_vec) tb="$tb hp300bsd.o aout32.o stab-syms.o" ;;
750 hp300hpux_vec) tb="$tb hp300hpux.o aout32.o stab-syms.o" ;;
751 i386aout_vec) tb="$tb i386aout.o aout32.o stab-syms.o" ;;
752 i386bsd_vec) tb="$tb i386bsd.o aout32.o stab-syms.o" ;;
753 i386dynix_vec) tb="$tb i386dynix.o aout32.o stab-syms.o" ;;
754 i386coff_vec) tb="$tb coff-i386.o cofflink.o" ;;
755 i386msdos_vec) tb="$tb i386msdos.o" ;;
756 i386pe_vec) tb="$tb pe-i386.o cofflink.o " ;;
757 i386pei_vec) tb="$tb pei-i386.o cofflink.o" ;;
758 i386linux_vec) tb="$tb i386linux.o aout32.o stab-syms.o" ;;
759 i386lynx_aout_vec) tb="$tb i386lynx.o lynx-core.o aout32.o stab-syms.o" ;;
760 i386lynx_coff_vec) tb="$tb cf-i386lynx.o cofflink.o lynx-core.o stab-syms.o" ;;
761 i386mach3_vec) tb="$tb i386mach3.o aout32.o stab-syms.o" ;;
762 i386netbsd_vec) tb="$tb i386netbsd.o aout32.o stab-syms.o" ;;
763 i386os9k_vec) tb="$tb i386os9k.o aout32.o stab-syms.o" ;;
764 icoff_big_vec) tb="$tb coff-i960.o" ;;
765 icoff_little_vec) tb="$tb coff-i960.o" ;;
766 ieee_vec) tb="$tb ieee.o" ;;
767 m68kcoff_vec) tb="$tb coff-m68k.o cofflink.o" ;;
768 m68kcoffun_vec) tb="$tb coff-u68k.o coff-m68k.o cofflink.o" ;;
769 m68klynx_aout_vec) tb="$tb m68klynx.o lynx-core.o aout32.o stab-syms.o" ;;
770 m68klynx_coff_vec) tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o stab-syms.o" ;;
771 m68knetbsd_vec) tb="$tb m68knetbsd.o aout32.o stab-syms.o" ;;
772 m88kbcs_vec) tb="$tb coff-m88k.o" ;;
773 newsos3_vec) tb="$tb newsos3.o aout32.o stab-syms.o" ;;
774 nlm32_i386_vec) tb="$tb nlm32-i386.o nlm32.o nlm.o" ;;
775 nlm32_sparc_vec) tb="$tb nlm32-sparc.o nlm32.o nlm.o" ;;
776 nlm32_alpha_vec) tb="$tb nlm32-alpha.o nlm32.o nlm.o"
777 target64=true ;;
778 riscix_vec) tb="$tb aout32.o riscix.o stab-syms.o" ;;
779 nlm32_powerpc_vec) tb="$tb nlm32-ppc.o nlm32.o nlm.o" ;;
780 pc532netbsd_vec) tb="$tb ns32knetbsd.o aout-ns32k.o stab-syms.o" ;;
781 pc532machaout_vec) tb="$tb pc532-mach.o aout-ns32k.o stab-syms.o" ;;
782 rs6000coff_vec) tb="$tb coff-rs6000.o" ;;
783 shcoff_vec) tb="$tb coff-sh.o cofflink.o" ;;
784 # start-sanitize-rce
785 rce_aout_vec) tb="$tb aout-rce.o aout32.o stab-syms.o" ;;
786 # end-sanitize-rce
787 shlcoff_vec) tb="$tb coff-sh.o cofflink.o" ;;
788 som_vec) tb="$tb som.o" ;;
789 sparclynx_aout_vec) tb="$tb sparclynx.o lynx-core.o aout32.o stab-syms.o" ;;
790 sparclynx_coff_vec) tb="$tb cf-sparclynx.o lynx-core.o stab-syms.o" ;;
791 sparcnetbsd_vec) tb="$tb sparcnetbsd.o aout32.o stab-syms.o" ;;
792 sparccoff_vec) tb="$tb coff-sparc.o" ;;
793 srec_vec) tb="$tb srec.o" ;;
794 sunos_big_vec) tb="$tb sunos.o aout32.o stab-syms.o" ;;
795 symbolsrec_vec) tb="$tb srec.o" ;;
796 tekhex_vec) tb="$tb tekhex.o" ;;
797 we32kcoff_vec) tb="$tb coff-we32k.o" ;;
798 z8kcoff_vec) tb="$tb coff-z8k.o reloc16.o" ;;
799 w65_vec) tb="$tb coff-w65.o reloc16.o" ;;
800 versados_vec) tb="$tb versados.o" ;;
801
802 "") ;;
803 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
804 esac
805 done
806
807 # Target architecture .o files.
808 ta=`echo $SELECT_ARCHITECTURES | sed -e s/bfd_/cpu-/g -e s/_arch/.o/g`
809
810 # Weed out duplicate .o files.
811 f=""
812 for i in $tb ; do
813 case " $f " in
814 *" $i "*) ;;
815 *) f="$f $i" ;;
816 esac
817 done
818 tb="$f"
819
820 f=""
821 for i in $ta ; do
822 case " $f " in
823 *" $i "*) ;;
824 *) f="$f $i" ;;
825 esac
826 done
827 ta="$f"
828
829 bfd_backends="$tb"
830 bfd_machines="$ta"
831
832 if test x${all_targets} = xtrue ; then
833 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
834 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
835 else # all_targets is true
836 # Only set these if they will be nonempty, for the clever echo.
837 test -n "$SELECT_VECS" &&
838 selvecs=`echo $SELECT_VECS | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
839 test -n "SELECT_ARCHITECTURES" &&
840 selarchs=`echo $SELECT_ARCHITECTURES | sed -e 's/ \(.\)/,\1/g'`
841 fi # all_targets is true
842
843 case ${host64}-${target64}-${want64} in
844 *true*)
845 wordsize=64
846 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
847 ;;
848 false-false-false)
849 wordsize=32
850 all_backends='$(BFD32_BACKENDS)'
851 ;;
852 esac
853
854
855
856
857
858
859 test -n "$DEFAULT_VECTOR" && defvec="$DEFAULT_VECTOR"
860
861 tdefaults=""
862 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
863 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
864 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
865
866
867 rm -f doc/config.status
868 trap '' 1 2 15
869 cat > confcache <<\EOF
870 # This file is a shell script that caches the results of configure
871 # tests run on this system so they can be shared between configure
872 # scripts and configure runs. It is not useful on other systems.
873 # If it contains results you don't want to keep, you may remove or edit it.
874 #
875 # By default, configure uses ./config.cache as the cache file,
876 # creating it if it does not exist already. You can give configure
877 # the --cache-file=FILE option to use a different cache file; that is
878 # what configure does when it calls configure scripts in
879 # subdirectories, so they share the cache.
880 # Giving --cache-file=/dev/null disables caching, for debugging configure.
881 # config.status only pays attention to the cache file if you give it the
882 # --recheck option to rerun configure.
883 #
884 EOF
885 # Ultrix sh set writes to stderr and can't be redirected directly,
886 # and sets the high bit in the cache file unless we assign to the vars.
887 (set) 2>&1 |
888 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
889 >> confcache
890 if cmp -s $cache_file confcache; then
891 :
892 else
893 if test -w $cache_file; then
894 echo "updating cache $cache_file"
895 cat confcache > $cache_file
896 else
897 echo "not updating unwritable cache $cache_file"
898 fi
899 fi
900 rm -f confcache
901
902 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
903
904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
905 # Let make expand exec_prefix.
906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
907
908 # Any assignment to VPATH causes Sun make to only execute
909 # the first set of double-colon rules, so remove it if not needed.
910 # If there is a colon in the path, we need to keep it.
911 if test "x$srcdir" = x.; then
912 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
913 fi
914
915 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
916
917 # Transform confdefs.h into DEFS.
918 # Protect against shell expansion while executing Makefile rules.
919 # Protect against Makefile macro expansion.
920 cat > conftest.defs <<\EOF
921 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
922 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
923 s%\[%\\&%g
924 s%\]%\\&%g
925 s%\$%$$%g
926 EOF
927 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
928 rm -f conftest.defs
929
930
931 # Without the "./", some shells look in PATH for config.status.
932 : ${CONFIG_STATUS=./config.status}
933
934 echo creating $CONFIG_STATUS
935 rm -f $CONFIG_STATUS
936 cat > $CONFIG_STATUS <<EOF
937 #! /bin/sh
938 # Generated automatically by configure.
939 # Run this file to recreate the current configuration.
940 # This directory was configured as follows,
941 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
942 #
943 # $0 $ac_configure_args
944 #
945 # Compiler output produced by configure, useful for debugging
946 # configure, is in ./config.log if it exists.
947
948 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
949 for ac_option
950 do
951 case "\$ac_option" in
952 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
953 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
954 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
955 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
956 echo "$CONFIG_STATUS generated by autoconf version 2.4"
957 exit 0 ;;
958 -help | --help | --hel | --he | --h)
959 echo "\$ac_cs_usage"; exit 0 ;;
960 *) echo "\$ac_cs_usage"; exit 1 ;;
961 esac
962 done
963
964 ac_given_srcdir=$srcdir
965
966 trap 'rm -fr `echo "Makefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
967
968 # Protect against being on the right side of a sed subst in config.status.
969 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
970 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
971 $ac_vpsub
972 $extrasub
973 s%@CFLAGS@%$CFLAGS%g
974 s%@CPPFLAGS@%$CPPFLAGS%g
975 s%@CXXFLAGS@%$CXXFLAGS%g
976 s%@DEFS@%$DEFS%g
977 s%@LDFLAGS@%$LDFLAGS%g
978 s%@LIBS@%$LIBS%g
979 s%@exec_prefix@%$exec_prefix%g
980 s%@prefix@%$prefix%g
981 s%@program_transform_name@%$program_transform_name%g
982 s%@host@%$host%g
983 s%@host_alias@%$host_alias%g
984 s%@host_cpu@%$host_cpu%g
985 s%@host_vendor@%$host_vendor%g
986 s%@host_os@%$host_os%g
987 s%@target@%$target%g
988 s%@target_alias@%$target_alias%g
989 s%@target_cpu@%$target_cpu%g
990 s%@target_vendor@%$target_vendor%g
991 s%@target_os@%$target_os%g
992 s%@build@%$build%g
993 s%@build_alias@%$build_alias%g
994 s%@build_cpu@%$build_cpu%g
995 s%@build_vendor@%$build_vendor%g
996 s%@build_os@%$build_os%g
997 s%@RANLIB@%$RANLIB%g
998 /@host_makefile_frag@/r $host_makefile_frag
999 s%@host_makefile_frag@%%g
1000 /@target_makefile_frag@/r $target_makefile_frag
1001 s%@target_makefile_frag@%%g
1002 s%@frags@%$frags%g
1003 s%@wordsize@%$wordsize%g
1004 s%@all_backends@%$all_backends%g
1005 s%@bfd_backends@%$bfd_backends%g
1006 s%@bfd_machines@%$bfd_machines%g
1007 s%@tdefaults@%$tdefaults%g
1008
1009 CEOF
1010 EOF
1011 cat >> $CONFIG_STATUS <<EOF
1012
1013 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile"}
1014 EOF
1015 cat >> $CONFIG_STATUS <<\EOF
1016 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1017 # Support "outfile[:infile]", defaulting infile="outfile.in".
1018 case "$ac_file" in
1019 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1020 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1021 *) ac_file_in="${ac_file}.in" ;;
1022 esac
1023
1024 # Adjust relative srcdir, etc. for subdirectories.
1025
1026 # Remove last slash and all that follows it. Not all systems have dirname.
1027 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1028 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1029 # The file is in a subdirectory.
1030 test ! -d "$ac_dir" && mkdir "$ac_dir"
1031 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1032 # A "../" for each directory in $ac_dir_suffix.
1033 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1034 else
1035 ac_dir_suffix= ac_dots=
1036 fi
1037
1038 case "$ac_given_srcdir" in
1039 .) srcdir=.
1040 if test -z "$ac_dots"; then top_srcdir=.
1041 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1042 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1043 *) # Relative path.
1044 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1045 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1046 esac
1047
1048 echo creating "$ac_file"
1049 rm -f "$ac_file"
1050 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1051 case "$ac_file" in
1052 *Makefile*) ac_comsub="1i\\
1053 # $configure_input" ;;
1054 *) ac_comsub= ;;
1055 esac
1056 sed -e "$ac_comsub
1057 s%@configure_input@%$configure_input%g
1058 s%@srcdir@%$srcdir%g
1059 s%@top_srcdir@%$top_srcdir%g
1060 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1061 fi; done
1062 rm -f conftest.subs
1063
1064 EOF
1065
1066 cat >> $CONFIG_STATUS <<EOF
1067 ac_sources="$files"
1068 ac_dests="sysdep.h"
1069 EOF
1070
1071 cat >> $CONFIG_STATUS <<\EOF
1072 srcdir=$ac_given_srcdir
1073 while test -n "$ac_sources"; do
1074 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1075 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1076
1077 echo "linking $srcdir/$ac_source to $ac_dest"
1078
1079 if test ! -r $srcdir/$ac_source; then
1080 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1081 fi
1082 rm -f $ac_dest
1083
1084 # Make relative symlinks.
1085 # Remove last slash and all that follows it. Not all systems have dirname.
1086 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1087 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1088 # The dest file is in a subdirectory.
1089 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1090 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1091 # A "../" for each directory in $ac_dest_dir_suffix.
1092 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1093 else
1094 ac_dest_dir_suffix= ac_dots=
1095 fi
1096
1097 case "$srcdir" in
1098 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1099 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1100 esac
1101
1102 # Make a symlink if possible; otherwise try a hard link.
1103 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1104 ln $srcdir/$ac_source $ac_dest; then :
1105 else
1106 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1107 fi
1108 done
1109
1110
1111 exit 0
1112 EOF
1113 chmod +x $CONFIG_STATUS
1114 rm -fr confdefs* $ac_clean_files
1115 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1116
This page took 0.056583 seconds and 4 git commands to generate.