home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / src / mingw-runtime-19991107 / w32api / configure.in < prev    next >
Encoding:
Text File  |  1999-08-02  |  1.2 KB  |  52 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2.  
  3. dnl This file is part of a free win32 library
  4. dnl
  5. dnl This program is distributed in the hope that it will be useful,
  6. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  8. dnl GNU General Public License for more details.
  9.  
  10. AC_PREREQ(2.12)
  11. AC_INIT(lib/scrnsave.c)
  12.  
  13. AC_CANONICAL_SYSTEM
  14.  
  15. dnl Find install command
  16. AC_PROG_INSTALL
  17.  
  18. dnl check for cc and CFLAGS
  19. CFLAGS=${CFLAGS-"-O2 -g"}
  20. AC_CHECK_TOOL(CC, gcc, gcc)
  21. AC_SUBST(CC)
  22.  
  23. dnl check for various tools
  24. AC_CHECK_TOOL(AR, ar, ar)
  25. AC_SUBST(AR)
  26. AC_CHECK_TOOL(AS, as, as)
  27. AC_SUBST(AS)
  28. AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
  29. AC_SUBST(RANLIB)
  30. AC_CHECK_TOOL(LD, ld, ld)
  31. AC_SUBST(LD)
  32. AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
  33. AC_SUBST(DLLTOOL)
  34. AC_CHECK_TOOL(WINDRES, windres, windres)
  35. AC_SUBST(WINDRES)
  36.  
  37. AC_MSG_CHECKING([for build environment])
  38. BUILDENV=
  39. if test -d ../../winsup; then
  40.         BUILDENV=cygwin
  41. elif test -d ../mingw; then
  42.         BUILDENV=mingw
  43. fi
  44. if test -z "$BUILDENV"; then
  45.         AC_MSG_RESULT(standard)
  46. else
  47.         AC_MSG_RESULT($BUILDENV)
  48. fi
  49. AC_SUBST(BUILDENV)
  50.  
  51. AC_OUTPUT(Makefile lib/Makefile)
  52.