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