* gjavah.c (print_field_info): Changed how most negative number is
[official-gcc.git] / libstdc++ / configure.in
blobc7626d26f5e4ba482b14af6124560978ddb0b190
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.
5 # If the language specific compiler does not exist, but the "gcc" directory does,
6 # we do not build anything. Note, $r is set by the top-level Makefile.
7 compiler_name=cc1plus
8 rm -f skip-this-dir
9 if test -n "$r"; then
10   if test -d "$r"/gcc; then
11     if test -f "$r"/gcc/$compiler_name; then
12       true
13     else
14       echo "rm -f multilib.out" > skip-this-dir
15     fi
16   fi
19 if [ "${srcdir}" = "." ] ; then
20   if [ "${with_target_subdir}" != "." ] ; then
21     topsrcdir=${with_multisrctop}../..
22   else
23     topsrcdir=${with_multisrctop}..
24   fi
25 else
26   topsrcdir=${srcdir}/..
29 if [ -d ${topsrcdir}/gcc ] ; then
30   configdirs="tests testsuite"
31 else
32   configdirs="tests"
34 srctrigger=sinst.cc
35 srcname="ANSI C++ library"
36 package_makefile_frag=Make.pack
37 package_makefile_rules_frag=Make.pack.r
39 # per-host:
41 # per-target:
43 echo "# Warning: this fragment is automatically generated" > temp.mt
44 frags=
46 # If they didn't specify --enable-shared, don't generate shared libs.
47 case "${enable_shared}" in
48   yes) shared=yes ;;
49   no) shared=no ;;
50   *libstdc++*) shared=yes ;;
51   *) shared=no ;;
52 esac
54 if [ "${shared}" = "yes" ]; then
55   case "${target}" in
56     hppa*-*-*)          frags=../../config/mh-papic ;;
57     i[3456]86-*-*)      frags=../../config/mh-x86pic ;;
58     *-*-*)              frags=../../config/mh-${target_cpu}pic ;;
59   esac
60   case "${target}" in
61     *-dec-osf*)         frags="${frags} dec-osf.ml";;
62     *-*-hpux*)          frags="${frags} hpux.ml" ;;
63     *-*-irix[56]*)      frags="${frags} irix5.ml" ;;
64     *-*-linux*aout*)    ;;
65     *-*-linux*)         frags="${frags} linux.ml" ;;
66     *-*-sysv4*)         frags="${frags} elf.ml" ;;
67     *-*-solaris*)       frags="${frags} sol2shm.ml" ;;
68     *-*-sunos4*)        frags="${frags} sunos4.ml" ;;
69     *-*-aix*)           frags="${frags} aix.ml" ;;
70   esac
73 # Make sure the right flags are defined for multi-threading.
74 case "${target}" in
75   alpha*-*-linux-gnulibc1)      frags="${frags} linux.mt" ;;
76   powerpc*-*-linux-gnulibc1)    frags="${frags} linux.mt" ;;
77   *-*-linux-gnu)                frags="${frags} linux.mt" ;;
78   m68k-motorola-sysv)           frags="${frags} delta.mt" ;;
79 esac
81 for frag in ${frags}; do
82   case ${frag} in
83     ../* )
84       if [ ${srcdir} = . ]; then
85         [ -n "${with_target_subdir}" ] && frag=../${frag}
86         [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
87       fi
88       ;;
89   esac
90   frag=${srcdir}/config/$frag
91   if [ -f ${frag} ]; then
92     echo "Appending ${frag} to target-mkfrag"
93     echo "# Following fragment copied from ${frag}" >> temp.mt
94     cat ${frag} >> temp.mt
95   fi
96 done
98 target_makefile_frag=target-mkfrag
99 ${moveifchange} temp.mt target-mkfrag
101 LIBDIR=yes
102 TO_TOPDIR=../
103 ALL='libs'
104 XCXXINCLUDES="-I${srcdir} -I${srcdir}/stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
105 MOSTLYCLEAN='*.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)'
106 CLEAN='$(CLEAN_JUNK)'
107 EXTRA_DISTCLEAN='target-mkfrag'
109 (. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag} 2>${package_makefile_rules_frag}
111 . ${topsrcdir}/config.if
112 echo "
113 LIBSTDCXX_INTERFACE=${libstdcxx_interface}
114 CXX_INTERFACE=${cxx_interface}
115 LIBC_INTERFACE=${libc_interface}
116 " >> ${package_makefile_frag}
118 # post-target:
120 # If cross-compiling, we install in $(tooldir)/lib or in $(libsubdir)
121 # depending on --enable-version-specific-runtime-libs.
122 if [ -n "${with_cross_host}" ] ; then
123     rm -f Makefile.tem
124     sed \
125         -e 's|\(^[      ]*INSTALLDIR[   ]*=[    ]*\)\$(libdir)|\1$(tooldir)/lib|' \
126         Makefile >Makefile.tem
127     mv -f Makefile.tem Makefile
130 . ${topsrcdir}/config-ml.in