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