1 |
dnl Process this file with autoconf to create configure. -*-Autoconf-*- |
## 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 |
AC_PREREQ(2.50) |
AC_PREREQ(2.50) |
20 |
AC_INIT(depdemo, 0.1) |
|
21 |
|
|
22 |
|
## ------------------------ ## |
23 |
|
## Autoconf initialisation. ## |
24 |
|
## ------------------------ ## |
25 |
|
AC_INIT([depdemo], [0.1], [bug-libtool@gnu.org]) |
26 |
AC_CONFIG_SRCDIR([main.c]) |
AC_CONFIG_SRCDIR([main.c]) |
|
AM_INIT_AUTOMAKE(depdemo,0.1) |
|
27 |
|
|
|
AC_PROG_CC |
|
|
AC_EXEEXT |
|
|
AM_PROG_LIBTOOL |
|
|
AC_SUBST(LIBTOOL_DEPS) |
|
28 |
|
|
29 |
|
## ------------------------------- ## |
30 |
|
## depdemo specific configuration. ## |
31 |
|
## ------------------------------- ## |
32 |
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then |
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then |
33 |
STATIC=-static |
STATIC=-static |
34 |
else |
else |
35 |
STATIC= |
STATIC= |
36 |
fi |
fi |
37 |
AC_SUBST(STATIC) |
AC_SUBST([STATIC]) |
38 |
|
|
|
AC_CHECK_HEADERS(math.h) |
|
39 |
|
|
40 |
|
## ------------------------ ## |
41 |
|
## Automake Initialisation. ## |
42 |
|
## ------------------------ ## |
43 |
|
AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION) |
44 |
|
|
45 |
|
|
46 |
|
## ---------------- ## |
47 |
|
## compiler checks. ## |
48 |
|
## ---------------- ## |
49 |
|
AC_PROG_CC |
50 |
|
|
51 |
|
|
52 |
|
## ----------------------- ## |
53 |
|
## Libtool initialisation. ## |
54 |
|
## ----------------------- ## |
55 |
|
AM_PROG_LIBTOOL |
56 |
|
AC_SUBST([LIBTOOL_DEPS]) |
57 |
|
|
58 |
|
|
59 |
|
## ---------------------------- ## |
60 |
|
## C headers required by cdemo. ## |
61 |
|
## ---------------------------- ## |
62 |
|
AC_CHECK_HEADERS([math.h]) |
63 |
|
|
64 |
|
|
65 |
|
## ---------------------------- ## |
66 |
|
## Libraries required by cdemo. ## |
67 |
|
## ---------------------------- ## |
68 |
AC_CHECK_LIBM |
AC_CHECK_LIBM |
69 |
AC_SUBST(LIBM) |
AC_SUBST([LIBM]) |
70 |
|
|
71 |
|
|
72 |
dnl Output the makefile |
## -------- ## |
73 |
AC_CONFIG_FILES([Makefile |
## Outputs. ## |
74 |
l1/Makefile |
## -------- ## |
75 |
l2/Makefile |
AC_CONFIG_FILES([Makefile l1/Makefile l2/Makefile l3/Makefile l4/Makefile]) |
|
l3/Makefile |
|
|
l4/Makefile |
|
|
]) |
|
76 |
AC_OUTPUT |
AC_OUTPUT |