home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-base.tgz / libg++-2.7.1-src.tar / fsf / libg++ / libiberty / configure.in < prev    next >
Text File  |  1995-11-01  |  2KB  |  64 lines

  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. # We need multilib support.
  6. . ${srcdir}/../cfg-ml-com.in
  7.  
  8. configdirs=
  9. srctrigger=getopt1.c
  10. srcname="-liberty library"
  11.  
  12. # per-host:
  13.  
  14. files="alloca-norm.h"
  15. links="alloca-conf.h"
  16.  
  17. xhost=${target}
  18. . ${srcdir}/config.table
  19. host_makefile_frag=${frag}
  20.  
  21. # per-target:
  22.  
  23. # post-target:
  24.  
  25. # If we are cross-compiling, check at compile time whether we are
  26. # using newlib.  If we are, we already know the files we need, since
  27. # the linker will fail when run on some of the newlib targets.
  28. if [ "${host}" != "${target}" ] ; then
  29.   cat > Makefile.tem <<'!EOF!'
  30. CONFIG_H = xconfig.h
  31. NEEDED_LIST = xneeded-list
  32.  
  33. xconfig.h: Makefile
  34.     if [ -f ../newlib/Makefile ]; then \
  35.       echo "#define NEED_sys_nerr 1" >xconfig.h; \
  36.       echo "#define NEED_sys_errlist 1" >>xconfig.h; \
  37.       echo "#define NEED_sys_siglist 1" >>xconfig.h; \
  38.       echo "#define NEED_psignal 1" >>xconfig.h; \
  39.     else \
  40.       $(MAKE) $(FLAGS_TO_PASS) lconfig.h; \
  41.       cp lconfig.h xconfig.h; \
  42.     fi
  43.  
  44. xneeded-list: Makefile
  45.     if [ -f ../newlib/Makefile ]; then \
  46.       echo insque.o random.o strdup.o alloca.o >xneeded-list; \
  47.     else \
  48.       $(MAKE) $(FLAGS_TO_PASS) lneeded-list; \
  49.       cp lneeded-list xneeded-list; \
  50.     fi
  51. !EOF!
  52. sed -e "/^####/  r Makefile.tem" \
  53.   -e '/INSTALL_DEST =/s/libdir/tooldir/' ${Makefile} > Makefile.tem3
  54. mv Makefile.tem3 ${Makefile}
  55. rm -f Makefile.tem
  56. fi
  57.  
  58. if [ "${srcdir}" = "." ] ; then
  59.   echo "EXTRA_LINKS = ${source_links}" >>Makefile
  60. fi
  61.  
  62. # We need multilib support.
  63. . ${srcdir}/../cfg-ml-pos.in
  64.