]>
Commit | Line | Data |
---|---|---|
6599da04 JM |
1 | # This file is a shell script fragment that supplies the information |
2 | # necessary for a configure script to process the program in | |
3 | # this directory. For more information, look at ../configure. | |
4 | ||
3fdcc721 L |
5 | if [ "${srcdir}" = "." ] ; then |
6 | if [ "${with_target_subdir}" != "." ] ; then | |
7 | topsrcdir=${with_multisrctop}../.. | |
8 | else | |
9 | topsrcdir=${with_multisrctop}.. | |
10 | fi | |
11 | else | |
12 | topsrcdir=${srcdir}/.. | |
13 | fi | |
14 | ||
15 | if [ -d ${topsrcdir}/gcc ] ; then | |
2c443622 JL |
16 | configdirs="tests testsuite" |
17 | else | |
18 | configdirs="tests" | |
19 | fi | |
6599da04 JM |
20 | srctrigger=sinst.cc |
21 | srcname="ANSI C++ library" | |
22 | package_makefile_frag=Make.pack | |
23 | ||
24 | # per-host: | |
25 | ||
26 | # per-target: | |
27 | ||
28 | echo "# Warning: this fragment is automatically generated" > temp.mt | |
29 | frags= | |
30 | ||
31 | # If they didn't specify --enable-shared, don't generate shared libs. | |
32 | case "${enable_shared}" in | |
33 | yes) shared=yes ;; | |
34 | no) shared=no ;; | |
35 | *libstdc++*) shared=yes ;; | |
36 | *) shared=no ;; | |
37 | esac | |
38 | ||
39 | if [ "${shared}" = "yes" ]; then | |
40 | case "${target}" in | |
41 | hppa*-*-*) frags=../../config/mh-papic ;; | |
42 | i[3456]86-*-*) frags=../../config/mh-x86pic ;; | |
43 | *-*-*) frags=../../config/mh-${target_cpu}pic ;; | |
44 | esac | |
45 | case "${target}" in | |
46 | *-dec-osf*) frags="${frags} dec-osf.ml";; | |
47 | *-*-hpux*) frags="${frags} hpux.ml" ;; | |
48 | *-*-irix[56]*) frags="${frags} irix5.ml" ;; | |
49 | *-*-linux*aout*) ;; | |
50 | *-*-linux*) frags="${frags} linux.ml" ;; | |
51 | *-*-sysv4*) frags="${frags} elf.ml" ;; | |
52 | *-*-solaris*) frags="${frags} sol2shm.ml" ;; | |
53 | *-*-sunos4*) frags="${frags} sunos4.ml" ;; | |
54 | *-*-aix*) frags="${frags} aix.ml" ;; | |
55 | esac | |
56 | fi | |
57 | ||
e693cc28 UD |
58 | # Make sure the right flags are defined for multi-threading. |
59 | case "${target}" in | |
93ad003a FS |
60 | alpha*-*-linux-gnulibc1) frags="${frags} linux.mt" ;; |
61 | powerpc*-*-linux-gnulibc1) frags="${frags} linux.mt" ;; | |
62 | *-*-linux-gnu) frags="${frags} linux.mt" ;; | |
63 | m68k-motorola-sysv) frags="${frags} delta.mt" ;; | |
e693cc28 UD |
64 | esac |
65 | ||
6599da04 JM |
66 | for frag in ${frags}; do |
67 | frag=${srcdir}/config/$frag | |
68 | if [ -f ${frag} ]; then | |
69 | echo "Appending ${frag} to target-mkfrag" | |
70 | echo "# Following fragment copied from ${frag}" >> temp.mt | |
71 | cat ${frag} >> temp.mt | |
72 | fi | |
73 | done | |
74 | ||
75 | target_makefile_frag=target-mkfrag | |
76 | ${moveifchange} temp.mt target-mkfrag | |
77 | ||
78 | LIBDIR=yes | |
79 | TO_TOPDIR=../ | |
80 | ALL='libs' | |
81 | XCXXINCLUDES="-I${srcdir} -I${srcdir}/stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio" | |
82 | MOSTLYCLEAN='*.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)' | |
83 | CLEAN='$(CLEAN_JUNK)' | |
84 | EXTRA_DISTCLEAN='target-mkfrag' | |
85 | ||
86 | (. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag} | |
87 | ||
88 | # post-target: | |
89 | ||
90 | # If cross-compiling, we install in $(tooldir). | |
91 | if [ -n "${with_cross_host}" ] ; then | |
92 | rm -f Makefile.tem | |
93 | sed \ | |
94 | -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \ | |
95 | Makefile >Makefile.tem | |
96 | mv -f Makefile.tem Makefile | |
97 | fi | |
98 | ||
3fdcc721 | 99 | . ${topsrcdir}/config-ml.in |