]> gcc.gnu.org Git - gcc.git/blame - libstdc++/configure.in
config.shared: Emit everything which needs to be re-definable via file descriptor...
[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
23
24# per-host:
25
26# per-target:
27
28echo "# Warning: this fragment is automatically generated" > temp.mt
29frags=
30
31# If they didn't specify --enable-shared, don't generate shared libs.
32case "${enable_shared}" in
33 yes) shared=yes ;;
34 no) shared=no ;;
35 *libstdc++*) shared=yes ;;
36 *) shared=no ;;
37esac
38
39if [ "${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
56fi
57
e693cc28
UD
58# Make sure the right flags are defined for multi-threading.
59case "${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
64esac
65
6599da04
JM
66for 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
73done
74
75target_makefile_frag=target-mkfrag
76${moveifchange} temp.mt target-mkfrag
77
78LIBDIR=yes
79TO_TOPDIR=../
80ALL='libs'
81XCXXINCLUDES="-I${srcdir} -I${srcdir}/stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
82MOSTLYCLEAN='*.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)'
83CLEAN='$(CLEAN_JUNK)'
84EXTRA_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).
91if [ -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
97fi
98
3fdcc721 99. ${topsrcdir}/config-ml.in
This page took 0.056789 seconds and 5 git commands to generate.