]> gcc.gnu.org Git - gcc.git/blob - libio/configure.in
Uli's libio/libstdc++ patches.
[gcc.git] / libio / configure.in
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 dbz stdio testsuite"
6 srctrigger=libioP.h
7 srcname="input/output 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 case "${target}" in
18 *-hpux*) frags=hpux.mt ;;
19 *-linux-gnulibc1)
20 echo "WARNING: The I/O implementation in FSF libg++ 2.8.x is not"
21 echo " compatible with Linux libc through 5.2.x."
22 echo " See libg++/README for more information."
23 echo " YOU ARE ON YOUR OWN!"
24 frags=linuxlibc1.mt ;;
25 *-linux-gnu) frags=linux.mt ;;
26 *-sco3.2v[45]*) frags=sco4.mt ;;
27 *-isc*) frags=isc.mt ;;
28 *-netware*) frags=netware.mt ;;
29 *) frags=${target_cpu}.mt ;;
30 esac
31
32 case "${enable_shared}" in
33 yes) shared=yes ;;
34 no) shared=no ;;
35 *libio*) shared=yes ;;
36 *) shared=no ;;
37 esac
38
39 if [ "${shared}" = "yes" ]; then
40 case "${target}" in
41 hppa*-*) frags="${frags} ../../config/mh-papic" ;;
42 i[3456]86-*) frags="${frags} ../../config/mh-x86pic" ;;
43 *) frags="${frags} ../../config/mh-${target_cpu}pic" ;;
44 esac
45 fi
46
47 # Make a link for the correct stdio-lock.h file.
48 case "${target}" in
49 *-linux-gnu)
50 # We have a correct file in glibc but the libioP.h file is written
51 # with glibc 2.1 in mind which has the internals headers in special
52 # directory while glibc 2.0 has them in /usr/include. Create a wrapper
53 # if necessary.
54 (echo "#include <bits/libc-lock.h>" | ${CC-cc} -E -) >/dev/null 2>&1 ||
55 {
56 rm -fr bits
57 mkdir bits
58 echo "#include <libc-lock.h>" > bits/libc-lock.h
59 echo "#include <stdio-lock.h>" > bits/stdio-lock.h
60 }
61 ;;
62 *)
63 rm -fr bits
64 mkdir bits
65 ln -s ${srcdir}/include/empty.h bits/stdio-lock.h
66 ;;
67 esac
68
69 for frag in ${frags}; do
70 frag=${srcdir}/config/$frag
71 if [ -f ${frag} ]; then
72 echo "Appending ${frag} to target-mkfrag"
73 echo "# Following fragment copied from ${frag}" >> temp.mt
74 cat ${frag} >> temp.mt
75 fi
76 done
77
78 target_makefile_frag=target-mkfrag
79 ${moveifchange} temp.mt target-mkfrag
80
81 LIBDIR=yes
82 TO_TOPDIR=../
83 ALL='$(_G_CONFIG_H) libio.a libiostream.a iostream.list'
84 XCINCLUDES='-I. -I$(srcdir)'
85 XCXXINCLUDES='-I. -I$(srcdir)'
86 MOSTLYCLEAN='*.o pic stamp-picdir core iostream.list'
87 DISTCLEAN='config.status Makefile *~ Make.pack target-mkfrag multilib.out'
88 CLEAN='_G_config.h *.a'
89 INFO_FILES=iostream
90 if [ -n "${with_cross_host}" ] ; then
91 CHECK_SUBDIRS=testsuite
92 fi
93 (. ${srcdir}/config.shared) >${package_makefile_frag}
94
95 # post-target:
96
97 # If cross-compiling, don't build gperf or the utils. They
98 # will get built by the target compiler, which is confusing.
99 # We cannot test the installation. We install in $(tooldir).
100 if [ -n "${with_cross_host}" ] ; then
101 rm -f Makefile.tem
102 sed \
103 -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
104 Makefile >Makefile.tem
105 mv -f Makefile.tem Makefile
106 fi
107
108 if [ "${srcdir}" = "." ] ; then
109 if [ "${with_target_subdir}" != "." ] ; then
110 . ${with_multisrctop}../../config-ml.in
111 else
112 . ${with_multisrctop}../config-ml.in
113 fi
114 else
115 . ${srcdir}/../config-ml.in
116 fi
This page took 0.047881 seconds and 6 git commands to generate.