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