freebsd-nq/contrib/gdb/libiberty/configure.in
Paul Traina 7929041ebe Import GDB in its full glory (all 25mb). We'll put it on a diet once it's
fully registered.

(This is the second try, the first import ignored .info files but not .info-*
 files, for some reason.  I'm going to make this consistent.)

Reviewed by:	core
Approved for:	2.2
1996-11-03 17:03:03 +00:00

78 lines
2.1 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=
srctrigger=getopt1.c
srcname="-liberty library"
# per-host:
files="alloca-norm.h"
links="alloca-conf.h"
. ${srcdir}/config.table
host_makefile_frag=${frag}
# per-target:
# post-target:
# If this is the target libiberty, check at compile time whether we are using
# newlib. If we are, we already know the files we need, since the linker
# will fail when run on some of the newlib targets.
if [ -n "${with_target_subdir}" ] ; then
cat > Makefile.tem <<'!EOF!'
CONFIG_H = xconfig.h
NEEDED_LIST = xneeded-list
xconfig.h: Makefile
if [ -f ../newlib/Makefile ]; then \
echo "#define NEED_sys_nerr 1" >xconfig.h; \
echo "#define NEED_sys_errlist 1" >>xconfig.h; \
echo "#define NEED_sys_siglist 1" >>xconfig.h; \
echo "#define NEED_psignal 1" >>xconfig.h; \
else \
$(MAKE) $(FLAGS_TO_PASS) lconfig.h; \
cp lconfig.h xconfig.h; \
fi
xneeded-list: Makefile
if [ -f ../newlib/Makefile ]; then \
echo insque.o random.o strdup.o alloca.o >xneeded-list; \
else \
$(MAKE) $(FLAGS_TO_PASS) lneeded-list; \
cp lneeded-list xneeded-list; \
fi
!EOF!
sed -e "/^####/ r Makefile.tem" \
-e '/INSTALL_DEST =/s/libdir/tooldir/' ${Makefile} > Makefile.tem3
mv Makefile.tem3 ${Makefile}
rm -f Makefile.tem
fi
# We need multilib support, but only if configuring for the target.
if [ -n "${with_target_subdir}" ] ; then
case ${srcdir} in
.)
if [ "${with_target_subdir}" != "." ] ; then
# Set MULTISRCTOP to the value we need if we are not doing
# multilib. This will be overridden if --enable-multilib was
# used.
sed -e "s:^MULTISRCTOP[ ]*=.*$:MULTISRCTOP = ../:" \
${Makefile} > Makefile.tem
rm -f ${Makefile}
mv Makefile.tem ${Makefile}
. ${srcdir}/${with_multisrctop}../../config-ml.in
else
. ${srcdir}/${with_multisrctop}../config-ml.in
fi
;;
*)
. ${srcdir}/../config-ml.in
;;
esac
fi