configure.ac 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. dnl Autoconf configure script for GDB, the GNU debugger.
  2. dnl Copyright (C) 1995-2022 Free Software Foundation, Inc.
  3. dnl
  4. dnl This file is part of GDB.
  5. dnl
  6. dnl This program is free software; you can redistribute it and/or modify
  7. dnl it under the terms of the GNU General Public License as published by
  8. dnl the Free Software Foundation; either version 3 of the License, or
  9. dnl (at your option) any later version.
  10. dnl
  11. dnl This program is distributed in the hope that it will be useful,
  12. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. dnl GNU General Public License for more details.
  15. dnl
  16. dnl You should have received a copy of the GNU General Public License
  17. dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. dnl Process this file with autoconf to produce a configure script.
  19. AC_INIT([libgnu], [UNUSED-VERSION])
  20. AC_CONFIG_SRCDIR([import/memmem.c])
  21. AC_CONFIG_HEADER(config.h:config.in)
  22. AC_CONFIG_MACRO_DIRS([import/m4])
  23. AC_CONFIG_MACRO_DIRS([../config])
  24. AM_MAINTAINER_MODE
  25. AC_PROG_CC
  26. AC_USE_SYSTEM_EXTENSIONS
  27. # Needs to run before gl_EARLY so it can override AC_SYS_LARGEFILE included
  28. # there.
  29. ACX_LARGEFILE
  30. gl_EARLY
  31. AM_PROG_CC_STDC
  32. AC_CONFIG_AUX_DIR(..)
  33. AC_CANONICAL_SYSTEM
  34. gl_INIT
  35. AM_INIT_AUTOMAKE([no-define no-dist foreign])
  36. AM_SILENT_RULES([yes])
  37. # --------------------- #
  38. # Checks for programs. #
  39. # --------------------- #
  40. AC_PROG_INSTALL
  41. AC_PROG_LN_S
  42. AC_PROG_RANLIB
  43. AC_CHECK_TOOL(AR, ar)
  44. # ---------------------- #
  45. # Checks for libraries. #
  46. # ---------------------- #
  47. AC_CONFIG_FILES(Makefile.gnulib.inc)
  48. AC_OUTPUT(Makefile import/Makefile,
  49. [
  50. case x$CONFIG_HEADERS in
  51. xconfig.h:config.in)
  52. echo > stamp-h ;;
  53. esac
  54. ])
  55. exit 0