mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 23:17:06 +08:00
20a2fbe20e
* configure.in (target frags): Add powerpc*-linux-gnulibc1. (stdio-lock): Similarly. * configure.in (target frags): Add alpha*-linux-gnulibc1. (pic frags): Its alpha*- not alpha-. (stdio-lock): Kill everything. Add alpha*-linux-gnulibc1. * libio.h: Check __GLIBC_MINOR__ to find stdio-lock.h. If not _IO_MTSAFE_IO & GLIBC, make sure the lock pointer is still there. * libioP.h: Check __GLIBC_MINOR__ to find libc-lock.h. * config/linuxaxp1-libc-lock.h: New file. * config/linuxaxp1-stdio-lock.h: New file. * config/linuxaxp1.mt: New file. * gen-params (va_list): Check for and use __gnuc_va_list. (NULL): Work around some linux kernel headers and redefine NULL. From-SVN: r16769
117 lines
3.4 KiB
Plaintext
117 lines
3.4 KiB
Plaintext
# This file is a shell script fragment that supplies the information
|
|
# necessary for a configure script to process the program in
|
|
# this directory. For more information, look at ../configure.
|
|
|
|
configdirs="tests dbz stdio testsuite"
|
|
srctrigger=libioP.h
|
|
srcname="input/output library"
|
|
package_makefile_frag=Make.pack
|
|
|
|
# per-host:
|
|
|
|
# per-target:
|
|
|
|
echo "# Warning: this fragment is automatically generated" > temp.mt
|
|
frags=
|
|
|
|
case "${target}" in
|
|
*-hpux*) frags=hpux.mt ;;
|
|
alpha*-*-linux-gnulibc1)
|
|
frags="linux.mt linuxaxp1.mt mtsafe.mt" ;;
|
|
powerpc*-*-linux-gnulibc1)
|
|
frags="linux.mt linuxaxp1.mt mtsafe.mt" ;;
|
|
*-linux-gnulibc1)
|
|
frags=linuxlibc1.mt ;;
|
|
*-linux-gnu) frags="linux.mt mtsafe.mt" ;;
|
|
*-sco3.2v[45]*) frags=sco4.mt ;;
|
|
*-isc*) frags=isc.mt ;;
|
|
*-netware*) frags=netware.mt ;;
|
|
*) frags=${target_cpu}.mt ;;
|
|
esac
|
|
|
|
case "${enable_shared}" in
|
|
yes) shared=yes ;;
|
|
no) shared=no ;;
|
|
*libio*) shared=yes ;;
|
|
*) shared=no ;;
|
|
esac
|
|
|
|
if [ "${shared}" = "yes" ]; then
|
|
case "${target}" in
|
|
hppa*-*) frags="${frags} ../../config/mh-papic" ;;
|
|
i[3456]86-*) frags="${frags} ../../config/mh-x86pic" ;;
|
|
alpha*-*-linux*)
|
|
frags="${frags} ../../config/mh-elfalphapic" ;;
|
|
*) frags="${frags} ../../config/mh-${target_cpu}pic" ;;
|
|
esac
|
|
fi
|
|
|
|
# Take care of header file lossage.
|
|
case "${target}" in
|
|
alpha*-*-linux-gnulibc1)
|
|
# For some reason stdio-lock.h is not installed on Red Hat systems.
|
|
# Further, libc-lock.h needs to define the pthreads stuff weak, and
|
|
# fails to do this for other than _LIBC. Install our own versions
|
|
# of these files.
|
|
cp ${srcdir}/config/linuxaxp1-libc-lock.h libc-lock.h
|
|
cp ${srcdir}/config/linuxaxp1-stdio-lock.h stdio-lock.h
|
|
;;
|
|
powerpc*-*-linux-gnulibc1)
|
|
# For some reason stdio-lock.h is not installed on Red Hat systems.
|
|
# Further, libc-lock.h needs to define the pthreads stuff weak, and
|
|
# fails to do this for other than _LIBC. Install our own versions
|
|
# of these files.
|
|
cp ${srcdir}/config/linuxaxp1-libc-lock.h libc-lock.h
|
|
cp ${srcdir}/config/linuxaxp1-stdio-lock.h stdio-lock.h
|
|
;;
|
|
esac
|
|
|
|
for frag in ${frags}; do
|
|
frag=${srcdir}/config/$frag
|
|
if [ -f ${frag} ]; then
|
|
echo "Appending ${frag} to target-mkfrag"
|
|
echo "# Following fragment copied from ${frag}" >> temp.mt
|
|
cat ${frag} >> temp.mt
|
|
fi
|
|
done
|
|
|
|
target_makefile_frag=target-mkfrag
|
|
${moveifchange} temp.mt target-mkfrag
|
|
|
|
LIBDIR=yes
|
|
TO_TOPDIR=../
|
|
ALL='$(_G_CONFIG_H) libio.a libiostream.a iostream.list'
|
|
XCINCLUDES='-I. -I$(srcdir)'
|
|
XCXXINCLUDES='-I. -I$(srcdir)'
|
|
MOSTLYCLEAN='*.o pic stamp-picdir core iostream.list'
|
|
DISTCLEAN='config.status Makefile *~ Make.pack target-mkfrag multilib.out'
|
|
CLEAN='_G_config.h *.a'
|
|
INFO_FILES=iostream
|
|
if [ -n "${with_cross_host}" ] ; then
|
|
CHECK_SUBDIRS=testsuite
|
|
fi
|
|
(. ${srcdir}/config.shared) >${package_makefile_frag}
|
|
|
|
# post-target:
|
|
|
|
# If cross-compiling, don't build gperf or the utils. They
|
|
# will get built by the target compiler, which is confusing.
|
|
# We cannot test the installation. We install in $(tooldir).
|
|
if [ -n "${with_cross_host}" ] ; then
|
|
rm -f Makefile.tem
|
|
sed \
|
|
-e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
|
|
Makefile >Makefile.tem
|
|
mv -f Makefile.tem Makefile
|
|
fi
|
|
|
|
if [ "${srcdir}" = "." ] ; then
|
|
if [ "${with_target_subdir}" != "." ] ; then
|
|
. ${with_multisrctop}../../config-ml.in
|
|
else
|
|
. ${with_multisrctop}../config-ml.in
|
|
fi
|
|
else
|
|
. ${srcdir}/../config-ml.in
|
|
fi
|