home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Src / configure.in < prev    next >
Encoding:
Text File  |  1996-02-20  |  1.3 KB  |  38 lines

  1. dnl    This file is an input file used by the GNU "autoconf" program to
  2. dnl    generate the file "configure", which is run during STk installation
  3. dnl    to configure the system for the local environment.
  4.  
  5. AC_INIT(stk.h)
  6. /bin/rm -f config.cache
  7. CC=${CC-gcc}
  8.  
  9. AC_HAVE_HEADERS(unistd.h limits.h)
  10. AC_HAVE_FUNCS(sigaction select)
  11. AC_CHECK_LIB(dl, dlopen, [LIBS="$LIBS -ldl"])
  12. LIBS="$LIBS -lm"
  13.  
  14. #--------------------------------------------------------------------
  15. # Some system needs extra libraries which are already tested for
  16. # stk (such as libsocket.a or libnsl.a)
  17. # I'm unable to test this since I know no machine which need it.
  18. # Please tell me if I'm wrong
  19. #--------------------------------------------------------------------
  20. SNOW_LIBS=""
  21. AC_CHECK_LIB(socket, socket, [SNOW_LIBS="$SNOW_LIBS -lsocket"])
  22. AC_CHECK_LIB(nsl, t_accept,   [SNOW_LIBS="$SNOW_LIBS -lnsl"])
  23. AC_SUBST(SNOW_LIBS, SNOW_LIBS)
  24.  
  25. #--------------------------------------------------------------------
  26. #    Check for various typedefs and provide substitutes if
  27. #    they don't exist. Useful for Sony WS(Sony NEWS, NEWSOS 4.2R)
  28. #    Thanks to Nobuyuki Hikichi  <hikichi@sran340.sra.co.jp>
  29. #--------------------------------------------------------------------
  30. AC_PID_T
  31.  
  32. AC_OUTPUT(Makefile)
  33.  
  34. if test ! -f ../Snow/Makefile
  35. then
  36.   ln -s ../Src/Makefile ../Snow/Makefile
  37. fi
  38.