Keep COPYING.NEWLIB if keep-newlib.
[deliverable/binutils-gdb.git] / binutils / configure.in
CommitLineData
db19f828
RP
1# This file is a shell script that supplies the information necessary
2# to tailor a template configure script into the configure script
3# appropriate for this directory. For more information, check any
4# existing configure script.
5
6srctrigger=ar.c
a8cd562d 7srcname="Binutils"
db19f828 8
0019b190 9configdirs="testsuite"
a8cd562d 10
0019b190 11# per-host:
db19f828 12
b5775df3
DHW
13. ${srcdir}/../bfd/configure.host
14
a8cd562d
SEF
15host_makefile_frag=
16if [ -f ${srcdir}/../bfd/config/${my_host}.mh ] ; then
17 host_makefile_frag=../bfd/config/${my_host}.mh
18fi
db19f828 19
a8cd562d 20# per-target:
b5775df3
DHW
21
22# Canonicalize the secondary target names.
23if [ -n "$with_targets" ]; then
24 for targ in `echo $with_targets | sed 's/,/ /g'`
25 do
26 result=`$configsub $targ 2>/dev/null`
27 if [ -n "$result" ]; then
28 canon_targets="$canon_targets $result"
29 else
30 # Allow targets that config.sub doesn't recognize, like "all".
31 canon_targets="$canon_targets $targ"
32 fi
33 done
34else
35# If our target is rs6000 _and nothing else_ then we build only nm!
36 case $target in
37 rs6000-*-lynx*) target_makefile_frag=config/rslynx ;;
38 esac
39fi
40
41all_targets=false
42build_nlmconv=false
43build_srconv=false
44
45for targ in $target $canon_targets
46do
47 bfd_target=`$srcdir/../bfd/config.bfd $targ`
48
49 if [ "x$bfd_target" = "xall" ]; then
50 all_targets=true
51 build_nlmconv=true
52 build_srconv=true
53 else
54 case $targ in
55 *-*-netware*) build_nlmconv=true ;;
56 esac
57
58 case $targ in
59 *-*-hms*) build_srconv=true ;;
60 esac
61 fi
62done
63
64# We don't do any links based on the target system, just makefile config.
65
66# post-target:
67
68rm -f Makefile.tmp Makefile.2
69mv Makefile Makefile.tmp
70
71if [ "x${build_nlmconv}" = "xtrue" ]; then
72 echo 'BUILD_NLMCONV = $(NLMCONV_PROG)' >> Makefile.2
73fi
74
75if [ "x${build_srconv}" = "xtrue" ]; then
76 echo 'BUILD_SRCONV = $(SRCONV_PROG)' >> Makefile.2
77fi
78
6f88f031
ILT
79if [ "x`$srcdir/../bfd/config.bfd $target _`" = "xyes" ]; then
80 underscore=1
81else
82 underscore=0
83fi
84echo "UNDERSCORE = ${underscore}" >> Makefile.2
85
b5775df3
DHW
86cat Makefile.tmp >> Makefile.2
87rm -f Makefile.tmp
88mv Makefile.2 Makefile
This page took 0.176063 seconds and 4 git commands to generate.