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++ / libio / configure.in < prev    next >
Text File  |  1995-11-12  |  2KB  |  79 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="tests dbz stdio"
  9. srctrigger=libioP.h
  10. srcname="input/output 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. case "${target}" in
  21.   *-hpux*)       frags=hpux.mt ;;
  22.   *-linux*)      
  23.     echo "WARNING:  The I/O implementation in libg++ 2.7.x is not"
  24.     echo "  compatible with Linux libc through 5.2.x."
  25.     echo "  YOU ARE ON YOUR OWN!"
  26.          frags=linux.mt ;;
  27.   *-sco3.2v4*)   frags=sco4.mt ;;
  28.   *-isc*)        frags=isc.mt ;;
  29.   *-netware*)    frags=netware.mt ;;
  30.   *)             frags=${target_cpu}.mt ;;
  31. esac
  32.  
  33. if [ "${enable_shared}" = "yes" ]; then
  34.   case "${target}" in
  35.     hppa*-*)     frags="${frags} ../../config/mh-papic" ;;
  36.     i[345]86-*)  frags="${frags} ../../config/mh-x86pic" ;;
  37.     *)             frags="${frags} ../../config/mh-${target_cpu}pic" ;;
  38.   esac
  39. fi
  40.  
  41. for frag in ${frags}; do
  42.   frag=${srcdir}/config/$frag
  43.   if [ -f ${frag} ]; then
  44.     echo "Appending ${frag} to target-mkfrag"
  45.     echo "# Following fragment copied from ${frag}" >> temp.mt
  46.     cat ${frag} >> temp.mt
  47.   fi
  48. done
  49.  
  50. target_makefile_frag=target-mkfrag
  51. ${moveifchange} temp.mt target-mkfrag
  52.  
  53. LIBDIR=yes
  54. TO_TOPDIR=../
  55. ALL='$(_G_CONFIG_H) libio.a libiostream.a'
  56. XCINCLUDES='-I. -I$(srcdir)'
  57. XCXXINCLUDES='-I. -I$(srcdir)'
  58. MOSTLYCLEAN='*.o pic stamp-picdir core iostream.list'
  59. DISTCLEAN='config.status Makefile *~ Make.pack target-mkfrag'
  60. CLEAN='_G_config.h *.a'
  61. INFO_FILES=iostream
  62. (. ${srcdir}/config.shared) >${package_makefile_frag}
  63.  
  64. # post-target:
  65.  
  66. # If cross-compiling, don't build gperf or the utils.  They
  67. # will get built by the target compiler, which is confusing.
  68. # We cannot test the installation.  We install in $(tooldir).
  69. if [ ${host} != ${target} ] ; then
  70.     rm -f Makefile.tem
  71.     sed \
  72.     -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
  73.     Makefile >Makefile.tem
  74.     mv -f Makefile.tem Makefile
  75. fi
  76.  
  77. # We need multilib support.
  78. . ${srcdir}/../cfg-ml-pos.in
  79.