rs6k lynx changes
[deliverable/binutils-gdb.git] / binutils / configure.in
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
6 srctrigger=ar.c
7 srcname="Binutils"
8
9 configdirs="testsuite"
10
11 # per-host:
12
13 . ${srcdir}/../bfd/configure.host
14
15 host_makefile_frag=
16 if [ -f ${srcdir}/../bfd/config/${my_host}.mh ] ; then
17 host_makefile_frag=../bfd/config/${my_host}.mh
18 fi
19
20 # per-target:
21
22 # Canonicalize the secondary target names.
23 if [ -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
34 else
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
39 fi
40
41 all_targets=false
42 build_nlmconv=false
43 build_srconv=false
44
45 for targ in $target $canon_targets
46 do
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
62 done
63
64 # We don't do any links based on the target system, just makefile config.
65
66 # post-target:
67
68 rm -f Makefile.tmp Makefile.2
69 mv Makefile Makefile.tmp
70
71 if [ "x${build_nlmconv}" = "xtrue" ]; then
72 echo 'BUILD_NLMCONV = $(NLMCONV_PROG)' >> Makefile.2
73 fi
74
75 if [ "x${build_srconv}" = "xtrue" ]; then
76 echo 'BUILD_SRCONV = $(SRCONV_PROG)' >> Makefile.2
77 fi
78
79 cat Makefile.tmp >> Makefile.2
80 rm -f Makefile.tmp
81 mv Makefile.2 Makefile
This page took 0.047742 seconds and 5 git commands to generate.