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++ / libstdc++ / configure.in < prev    next >
Text File  |  1995-11-04  |  2KB  |  75 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="stl tests"
  9. srctrigger=sinst.cc
  10. srcname="ANSI C++ library"
  11. package_makefile_frag=Make.pack
  12.  
  13. # per-host:
  14.  
  15. # per-target:
  16.  
  17. echo "# Warning: this fragment is automatically generated" > temp.mt
  18. frags=
  19.  
  20. # If they didn't specify --enable-shared, don't generate shared libs.
  21. if [ "${enable_shared}" = "yes" ]; then
  22.   case "${target}" in
  23.     hppa*-*-*)        frags=../../config/mh-papic ;;
  24.     i[345]86-*-*)    frags=../../config/mh-x86pic ;;
  25.     *-*-*)         frags=../../config/mh-${target_cpu}pic ;;
  26.   esac
  27.   case "${target}" in
  28.     *-dec-osf*)        frags="${frags} dec-osf.ml";;
  29.     *-*-hpux*)        frags="${frags} hpux.ml" ;;
  30.     *-*-irix5*)        frags="${frags} irix5.ml" ;;
  31.     *-*-linux*aout*)    ;;
  32.     *-*-linux*)        frags="${frags} linux.ml" ;;
  33.     *-*-sysv4*)        frags="${frags} elf.ml" ;;
  34.     *-*-solaris*)    frags="${frags} sol2shm.ml" ;;
  35.     *-*-sunos4*)    frags="${frags} sunos4.ml" ;;
  36.     *-*-aix*)        frags="${frags} aix.ml" ;;
  37.   esac
  38. fi
  39.  
  40. for frag in ${frags}; do
  41.   frag=${srcdir}/config/$frag
  42.   if [ -f ${frag} ]; then
  43.     echo "Appending ${frag} to target-mkfrag"
  44.     echo "# Following fragment copied from ${frag}" >> temp.mt
  45.     cat ${frag} >> temp.mt
  46.   fi
  47. done
  48.  
  49. target_makefile_frag=target-mkfrag
  50. ${moveifchange} temp.mt target-mkfrag
  51.  
  52. LIBDIR=yes
  53. TO_TOPDIR=../
  54. ALL='libs'
  55. XCXXINCLUDES="-I${srcdir} -I"'$(MULTITOP)/'"${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
  56. MOSTLYCLEAN='*.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)'
  57. CLEAN='$(CLEAN_JUNK)'
  58. DISTCLEAN='config.status Makefile target-mkfrag'
  59.  
  60. (. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag}
  61.  
  62. # post-target:
  63.  
  64. # If cross-compiling, we install in $(tooldir).
  65. if [ ${host} != ${target} ] ; then
  66.     rm -f Makefile.tem
  67.     sed \
  68.         -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
  69.         Makefile >Makefile.tem
  70.     mv -f Makefile.tem Makefile
  71. fi
  72.  
  73. # We need multilib support.
  74. . ${srcdir}/../cfg-ml-pos.in
  75.