]> gcc.gnu.org Git - gcc.git/blame - libio/configure.in
Another handful of gcc-2.8 changes (will it ever go out the door?).
[gcc.git] / libio / 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
5configdirs="tests dbz stdio testsuite"
6srctrigger=libioP.h
7srcname="input/output library"
8package_makefile_frag=Make.pack
9
10# per-host:
11
12# per-target:
13
14echo "# Warning: this fragment is automatically generated" > temp.mt
15frags=
16
17case "${target}" in
18 *-hpux*) frags=hpux.mt ;;
20a2fbe2
RH
19 alpha*-*-linux-gnulibc1)
20 frags="linux.mt linuxaxp1.mt mtsafe.mt" ;;
21 powerpc*-*-linux-gnulibc1)
22 frags="linux.mt linuxaxp1.mt mtsafe.mt" ;;
e693cc28 23 *-linux-gnulibc1)
e693cc28 24 frags=linuxlibc1.mt ;;
d604f4c6 25 *-linux-gnu) frags="linux.mt mtsafe.mt" ;;
6599da04
JM
26 *-sco3.2v[45]*) frags=sco4.mt ;;
27 *-isc*) frags=isc.mt ;;
28 *-netware*) frags=netware.mt ;;
29 *) frags=${target_cpu}.mt ;;
30esac
31
32case "${enable_shared}" in
33 yes) shared=yes ;;
34 no) shared=no ;;
35 *libio*) shared=yes ;;
36 *) shared=no ;;
37esac
38
39if [ "${shared}" = "yes" ]; then
40 case "${target}" in
41 hppa*-*) frags="${frags} ../../config/mh-papic" ;;
42 i[3456]86-*) frags="${frags} ../../config/mh-x86pic" ;;
20a2fbe2 43 alpha*-*-linux*)
d604f4c6 44 frags="${frags} ../../config/mh-elfalphapic" ;;
6599da04
JM
45 *) frags="${frags} ../../config/mh-${target_cpu}pic" ;;
46 esac
47fi
48
20a2fbe2 49# Take care of header file lossage.
e693cc28 50case "${target}" in
20a2fbe2
RH
51 alpha*-*-linux-gnulibc1)
52 # For some reason stdio-lock.h is not installed on Red Hat systems.
53 # Further, libc-lock.h needs to define the pthreads stuff weak, and
54 # fails to do this for other than _LIBC. Install our own versions
55 # of these files.
56 cp ${srcdir}/config/linuxaxp1-libc-lock.h libc-lock.h
57 cp ${srcdir}/config/linuxaxp1-stdio-lock.h stdio-lock.h
e693cc28 58 ;;
20a2fbe2
RH
59 powerpc*-*-linux-gnulibc1)
60 # For some reason stdio-lock.h is not installed on Red Hat systems.
61 # Further, libc-lock.h needs to define the pthreads stuff weak, and
62 # fails to do this for other than _LIBC. Install our own versions
63 # of these files.
64 cp ${srcdir}/config/linuxaxp1-libc-lock.h libc-lock.h
65 cp ${srcdir}/config/linuxaxp1-stdio-lock.h stdio-lock.h
e693cc28
UD
66 ;;
67esac
68
6599da04
JM
69for 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
76done
77
78target_makefile_frag=target-mkfrag
79${moveifchange} temp.mt target-mkfrag
80
81LIBDIR=yes
82TO_TOPDIR=../
dbfcb4be 83ALL='$(_G_CONFIG_H) libio.a libiostream.a iostream.list'
6599da04
JM
84XCINCLUDES='-I. -I$(srcdir)'
85XCXXINCLUDES='-I. -I$(srcdir)'
86MOSTLYCLEAN='*.o pic stamp-picdir core iostream.list'
87DISTCLEAN='config.status Makefile *~ Make.pack target-mkfrag multilib.out'
88CLEAN='_G_config.h *.a'
89INFO_FILES=iostream
90if [ -n "${with_cross_host}" ] ; then
91 CHECK_SUBDIRS=testsuite
92fi
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).
100if [ -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
106fi
107
108if [ "${srcdir}" = "." ] ; then
109 if [ "${with_target_subdir}" != "." ] ; then
110 . ${with_multisrctop}../../config-ml.in
111 else
112 . ${with_multisrctop}../config-ml.in
113 fi
114else
115 . ${srcdir}/../config-ml.in
116fi
This page took 0.053894 seconds and 5 git commands to generate.