home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / src / mingw-runtime-19991107 / mingw / profile / configure.in < prev    next >
Encoding:
Text File  |  1999-11-04  |  1.8 KB  |  78 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2.  
  3. dnl This file is part of Mingw runtime.
  4. dnl
  5. dnl This program is free software; you can redistribute it and/or modify
  6. dnl it under the terms of the GNU General Public License as published by
  7. dnl the Free Software Foundation; either version 2 of the License, or
  8. dnl (at your option) any later version.
  9. dnl
  10. dnl This program is distributed in the hope that it will be useful,
  11. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. dnl GNU General Public License for more details.
  14. dnl
  15. dnl You should have received a copy of the GNU General Public License
  16. dnl along with this program; if not, write to the Free Software
  17. dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18.  
  19. AC_PREREQ(2.12)
  20. AC_INIT(gcrt0.c)
  21.  
  22. CC=${CC-cc}
  23. AC_SUBST(CC)
  24. AS=${AS-as}
  25. AC_SUBST(AS)
  26. AR=${AR-ar}
  27. AC_SUBST(AR)
  28. LD=${LD-ld}
  29. AC_SUBST(LD)
  30. RANLIB=${RANLIB-ranlib}
  31. AC_SUBST(RANLIB)
  32. DLLTOOL=${DLLTOOL-dlltool}
  33. AC_SUBST(DLLTOOL)
  34. DLLWRAP=${DLLWRAP-dllwrap}
  35. AC_SUBST(DLLWRAP)
  36. AC_CANONICAL_SYSTEM
  37.  
  38. case "$target_os" in
  39. *mingw32msvc*)
  40.   CRT_ID=2
  41.   MNO_CYGWIN=
  42.   RUNTIME=msvcrt
  43.   THREAD_DLL=mingwm
  44.   LIBM_A=libm.a
  45.   LIBGMON_A=libgmon.a
  46.   ;;
  47. *cygwin*)
  48.   CRT_ID=1
  49.   MNO_CYGWIN=-mno-cygwin
  50.   RUNTIME=crtdll
  51.   THREAD_DLL=mingwc
  52.   # Do not build libm.a when building under Cygwin winsup. Otherwise, it'll
  53.   # overwrite Cygwin's one. Likewise for libgmon.a.
  54.   LIBM_A=
  55.   LIBGMON_A=
  56.   ;;
  57. *)
  58.   # Build it for CRTDLL by default.
  59.   CRT_ID=1
  60.   MNO_CYGWIN=
  61.   RUNTIME=crtdll
  62.   THREAD_DLL=mingwc
  63.   LIBM_A=libm.a
  64.   LIBGMON_A=libgmon.a
  65.   ;;
  66. esac
  67.  
  68. AC_SUBST(CRT_ID)
  69. AC_SUBST(RUNTIME)
  70. AC_SUBST(MNO_CYGWIN)
  71. AC_SUBST(THREAD_DLL)
  72. AC_SUBST(LIBM_A)
  73. AC_SUBST(LIBGMON_A)
  74.  
  75. AC_PROG_INSTALL
  76. AC_OUTPUT(Makefile)
  77.  
  78.