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 configdirs="tests dbz stdio testsuite"
7 srcname="input/output library"
8 package_makefile_frag=Make.pack
14 echo "# Warning: this fragment is automatically generated" > temp.mt
18 *-hpux*) frags=hpux.mt ;;
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 ;;
32 case "${enable_shared}" in
35 *libio*) shared=yes ;;
39 if [ "${shared}" = "yes" ]; then
41 hppa*-*) frags="${frags} ../../config/mh-papic" ;;
42 i[3456]86-*) frags="${frags} ../../config/mh-x86pic" ;;
43 *) frags="${frags} ../../config/mh-${target_cpu}pic" ;;
47 # Make a link for the correct stdio-lock.h file.
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
54 (echo "#include <bits/libc-lock.h>" | ${CC-cc} -E -) >/dev/null 2>&1 ||
58 echo "#include <libc-lock.h>" > bits/libc-lock.h
59 echo "#include <stdio-lock.h>" > bits/stdio-lock.h
65 ln -s ${srcdir}/include/empty.h bits/stdio-lock.h
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
78 target_makefile_frag=target-mkfrag
79 ${moveifchange} temp.mt target-mkfrag
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'
90 if [ -n "${with_cross_host}" ] ; then
91 CHECK_SUBDIRS=testsuite
93 (. ${srcdir}/config.shared) >${package_makefile_frag}
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
103 -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
104 Makefile >Makefile.tem
105 mv -f Makefile.tem Makefile
108 if [ "${srcdir}" = "." ] ; then
109 if [ "${with_target_subdir}" != "." ] ; then
110 . ${with_multisrctop}../../config-ml.in
112 . ${with_multisrctop}../config-ml.in
115 . ${srcdir}/../config-ml.in