OSDN Git Service

boehm-gc/
[pf3gnuchains/gcc-fork.git] / libjava / libltdl / configure.ac
1 ## Process this file with autoconf to create configure. -*- autoconf -*-
2 # Copyright 2001  Free Software Foundation, Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 # 02111-1307  USA
18
19
20 ## ------------------------ ##
21 ## Autoconf initialisation. ##
22 ## ------------------------ ##
23 AC_PREREQ(2.57)
24 AC_INIT([libltdl], [1.2], [bug-libtool@gnu.org])
25 AC_CONFIG_SRCDIR([ltdl.c])
26
27
28 ## ------------------------------- ##
29 ## Libltdl specific configuration. ##
30 ## ------------------------------- ##
31
32 AC_CONFIG_AUX_DIR([.])
33
34 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
35   if test -f ${srcdir}/ltmain.sh; then
36     # if libltdl is libtoolized, it is assumed to be stand-alone and
37     # installed unless the command line overrides it (tested above)
38     enable_ltdl_install=yes
39   else
40     AC_MSG_WARN([*** The top-level configure must select either])
41     AC_MSG_WARN([*** [A""C_LIBLTDL_INSTALLABLE] or [A""C_LIBLTDL_CONVENIENCE].])
42     AC_MSG_ERROR([*** Maybe you want to --enable-ltdl-install?])
43   fi
44 fi
45
46
47 ## ------------------------ ##
48 ## Automake Initialisation. ##
49 ## ------------------------ ##
50 AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION, -)
51 AM_CONFIG_HEADER([config.h:config-h.in])
52 AM_MAINTAINER_MODE
53
54
55 ## ------------------ ##
56 ## C compiler checks. ##
57 ## ------------------ ##
58 AC_PROG_CC
59 AC_C_CONST
60 AC_C_INLINE
61
62
63 ## ----------------------- ##
64 ## Libtool initialisation. ##
65 ## ----------------------- ##
66 AC_LIBTOOL_WIN32_DLL
67 AC_PROG_LIBTOOL
68 AC_SUBST([LIBTOOL_DEPS])
69
70 AC_LIB_LTDL
71
72
73 ## -------- ##
74 ## Outputs. ##
75 ## -------- ##
76 AC_CONFIG_FILES([Makefile])
77 AC_OUTPUT