]>
Commit | Line | Data |
---|---|---|
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 | ||
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 ;; | |
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 ;; | |
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" ;; | |
20a2fbe2 | 43 | alpha*-*-linux*) |
d604f4c6 | 44 | frags="${frags} ../../config/mh-elfalphapic" ;; |
6599da04 JM |
45 | *) frags="${frags} ../../config/mh-${target_cpu}pic" ;; |
46 | esac | |
47 | fi | |
48 | ||
20a2fbe2 | 49 | # Take care of header file lossage. |
e693cc28 | 50 | case "${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 | ;; |
67 | esac | |
68 | ||
6599da04 JM |
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=../ | |
dbfcb4be | 83 | ALL='$(_G_CONFIG_H) libio.a libiostream.a iostream.list' |
6599da04 JM |
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 |