home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / gnu / libg++-2.6-fsf.lha / libg++-2.6 / libio / configure.in < prev    next >
Text File  |  1994-03-23  |  1KB  |  47 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. configdirs="tests dbz stdio"
  6. srctrigger=libioP.h
  7. srcname="input/output library"
  8. package_makefile_frag=Make.pack
  9.  
  10. # per-host:
  11.  
  12. # per-target:
  13.  
  14. case "${target}" in
  15.   *-*-hpux*)       my_target=hpux ;;
  16.   *-*-sco3.2v4*)   my_target=sco4 ;;
  17.   *-*-isc*)        my_target=isc ;;
  18.   *-*-*)           my_target=${target_cpu}
  19. esac
  20.  
  21. if [ -f ${srcdir}/config/${my_target}.mt ] ; then
  22.   target_makefile_frag=config/${my_target}.mt
  23. fi
  24.  
  25. TO_TOPDIR=../
  26. ALL='_G_config.h libio.a libiostream.a $(OSPRIM_OBJECTS)'
  27. CINCLUDES='-I. -I$(srcdir)'
  28. CXXINCLUDES='-I. -I$(srcdir)'
  29. MOSTLYCLEAN='*.o core iostream.list'
  30. CLEAN='_G_config.h *.a'
  31. INFO_FILES=iostream
  32. (. ${srcdir}/config.shared) >${package_makefile_frag}
  33.  
  34. # post-target:
  35.  
  36. # If cross-compiling, don't build gperf or the utils.  They
  37. # will get built by the target compiler, which is confusing.
  38. # We cannot test the installation.  We install in $(tooldir).
  39. if [ ${host} != ${target} ] ; then
  40.     rm -f Makefile.tem
  41.     sed \
  42.     -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
  43.     Makefile >Makefile.tem
  44.     mv -f Makefile.tem Makefile
  45. fi
  46.  
  47.